2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 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 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
33 # Name of the executable.
34 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
36 if expr a
: '\(a\)' >/dev
/null
2>&1; then
42 rm -f conf$$ conf$$.exe conf$$.
file
44 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe
; then
48 # Don't use ln at all; we don't have any links
53 elif ln conf$$.
file conf$$
2>/dev
/null
; then
58 rm -f conf$$ conf$$.exe conf$$.
file
60 as_executable_p
="test -f"
62 # Support unset when possible.
63 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
70 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
71 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
72 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
73 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
74 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
75 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
76 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
77 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
80 # We need space, tab and new line, in precisely that order.
86 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=:; export CDPATH
; }
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
98 ac_default_prefix
=/usr
/local
102 SHELL
=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete. It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : ${ac_max_here_lines=38}
109 # Factoring default headers for most tests.
110 ac_includes_default
="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version
=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name
=s
,x
,x
,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir
='${exec_prefix}/bin'
172 sbindir
='${exec_prefix}/sbin'
173 libexecdir
='${exec_prefix}/libexec'
174 datadir
='${prefix}/share'
175 sysconfdir
='${prefix}/etc'
176 sharedstatedir
='${prefix}/com'
177 localstatedir
='${prefix}/var'
178 libdir
='${exec_prefix}/lib'
179 includedir
='${prefix}/include'
180 oldincludedir
='/usr/include'
181 infodir
='${prefix}/info'
182 mandir
='${prefix}/man'
184 # Identity of this package.
186 PACKAGE_TARNAME
='bison'
187 PACKAGE_VERSION
='1.28c'
188 PACKAGE_STRING
='bison 1.28c'
189 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev
=build_alias
;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias
=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev
=cache_file
;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file
=$ac_optarg ;;
225 cache_file
=config.cache
;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir
=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev
=exec_prefix
;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix
=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
271 ac_init_help
=recursive
;;
272 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
273 ac_init_help
=short
;;
275 -host | --host | --hos | --ho)
276 ac_prev
=host_alias
;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias
=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev
=includedir
;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir
=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir
=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev
=libexecdir
;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir
=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev
=localstatedir
;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir
=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev
=oldincludedir
;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir
=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev
=program_prefix
;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix
=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev
=program_suffix
;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix
=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev
=program_transform_name
;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name
=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir
=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev
=sharedstatedir
;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir
=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev
=sysconfdir
;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir
=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev
=target_alias
;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias
=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package
=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev
=x_includes
;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes
=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev
=x_libraries
;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries
=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var
in exec_prefix prefix
499 eval ac_val
=$
`echo $ac_var`
501 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val
=$
`echo $ac_var`
513 [\\/$
]* | ?
:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x
; then
527 if test "x$build_alias" = x
; then
528 cross_compiling
=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
539 test "$silent" = yes && exec 6>/dev
/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted
=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted
=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set
=${build_alias+set}
566 ac_env_build_alias_value
=$build_alias
567 ac_cv_env_build_alias_set
=${build_alias+set}
568 ac_cv_env_build_alias_value
=$build_alias
569 ac_env_host_alias_set
=${host_alias+set}
570 ac_env_host_alias_value
=$host_alias
571 ac_cv_env_host_alias_set
=${host_alias+set}
572 ac_cv_env_host_alias_value
=$host_alias
573 ac_env_target_alias_set
=${target_alias+set}
574 ac_env_target_alias_value
=$target_alias
575 ac_cv_env_target_alias_set
=${target_alias+set}
576 ac_cv_env_target_alias_value
=$target_alias
577 ac_env_CC_set
=${CC+set}
579 ac_cv_env_CC_set
=${CC+set}
580 ac_cv_env_CC_value
=$CC
581 ac_env_CFLAGS_set
=${CFLAGS+set}
582 ac_env_CFLAGS_value
=$CFLAGS
583 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value
=$CFLAGS
585 ac_env_LDFLAGS_set
=${LDFLAGS+set}
586 ac_env_LDFLAGS_value
=$LDFLAGS
587 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value
=$LDFLAGS
589 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value
=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
593 ac_env_CPP_set
=${CPP+set}
594 ac_env_CPP_value
=$CPP
595 ac_cv_env_CPP_set
=${CPP+set}
596 ac_cv_env_CPP_value
=$CPP
599 # Report the --help message.
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
605 \`configure' configures bison 1.28c to adapt to many kinds of systems.
607 Usage: $0 [OPTION]... [VAR=VALUE]...
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
612 Defaults for the options are specified in brackets.
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
639 For better control, use the options below.
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
659 --program-prefix=PREFIX prepend PREFIX to installed program names
660 --program-suffix=SUFFIX append SUFFIX to installed program names
661 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
664 --build=BUILD configure
for building on BUILD
[guessed
]
665 --host=HOST build programs to run on HOST
[BUILD
]
669 if test -n "$ac_init_help"; then
670 case $ac_init_help in
671 short
| recursive
) echo "Configuration of bison 1.28c:";;
676 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
677 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
678 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
679 --disable-nls do not use Native Language Support
682 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
683 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
684 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
685 --with-included-gettext use the GNU
gettext library included here
687 Some influential environment variables
:
688 CC C compiler
command
689 CFLAGS C compiler flags
690 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
691 nonstandard directory
<lib dir
>
692 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
693 headers
in a nonstandard directory
<include dir
>
696 Use these variables to override the choices made by
`configure' or to help
697 it to find libraries and programs with nonstandard names/locations.
699 Report bugs to <bug-bison@gnu.org>.
703 if test "$ac_init_help" = "recursive"; then
704 # If there are subdirs, report their specific --help.
706 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
708 # A "../" for each directory in /$ac_subdir.
709 ac_dots=`echo $ac_subdir |
710 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
713 .) # No --srcdir option. We are building in place.
714 ac_sub_srcdir=$srcdir ;;
715 [\\/]* | ?:[\\/]* ) # Absolute path.
716 ac_sub_srcdir=$srcdir/$ac_subdir ;;
718 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
721 # Check for guested configure; otherwise get Cygnus style configure.
722 if test -f $ac_sub_srcdir/configure.gnu; then
724 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
725 elif test -f $ac_sub_srcdir/configure; then
727 $SHELL $ac_sub_srcdir/configure --help=recursive
728 elif test -f $ac_sub_srcdir/configure.ac ||
729 test -f $ac_sub_srcdir/configure.in; then
733 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
739 test -n "$ac_init_help" && exit 0
740 if $ac_init_version; then
742 bison configure 1.28c
743 generated by GNU Autoconf 2.52
745 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
746 Free Software Foundation, Inc.
747 This configure script is free software; the Free Software Foundation
748 gives unlimited permission to copy, distribute and modify it.
754 This file contains any messages produced by compilers while
755 running configure, to aid debugging if configure makes a mistake.
757 It was created by bison $as_me 1.28c, which was
758 generated by GNU Autoconf 2.52. Invocation command line was
769 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
770 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
771 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
772 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
773 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
775 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
776 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
778 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
779 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
780 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
781 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
782 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
783 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
784 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
798 # Keep a trace of the command line.
799 # Strip out --no-create and --no-recursion so they do not pile up.
800 # Also quote any args containing shell meta-characters.
806 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
807 | --no-cr | --no-c) ;;
808 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
809 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
810 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
811 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
812 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
814 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
817 # Get rid of the leading space.
820 # When interrupted or exit'd, cleanup temporary files, and complete
821 # config.log. We remove comments because anyway the quotes in there
822 # would cause problems or look ugly.
824 # Save into config.log some information that might help in debugging.
826 echo "## ----------------- ##" >&5
827 echo "## Cache variables. ##" >&5
828 echo "## ----------------- ##" >&5
830 # The following way of writing the cache mishandles newlines in values,
833 case `(ac_space
='"'"' '"'"'; set | grep ac_space
) 2>&1` in
836 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
841 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
845 sed "/^$/d" confdefs.h >conftest.log
846 if test -s conftest.log; then
848 echo "## ------------ ##" >&5
849 echo "## confdefs.h. ##" >&5
850 echo "## ------------ ##" >&5
855 test "$ac_signal" != 0 &&
856 echo "$as_me: caught signal $ac_signal" >&5
857 echo "$as_me: exit $exit_status" >&5
858 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
861 for ac_signal in 1 2 13 15; do
862 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
867 rm -rf conftest* confdefs.h
868 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
871 # Let the site file select an alternate cache file if it wants to.
872 # Prefer explicitly selected file to automatically selected ones.
873 if test -z "$CONFIG_SITE"; then
874 if test "x$prefix" != xNONE; then
875 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
877 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
880 for ac_site_file in $CONFIG_SITE; do
881 if test -r "$ac_site_file"; then
882 { echo "$as_me:882: loading site script $ac_site_file" >&5
883 echo "$as_me: loading site script $ac_site_file" >&6;}
884 cat "$ac_site_file" >&5
889 if test -r "$cache_file"; then
890 # Some versions of bash will fail to source /dev/null (special
891 # files actually), so we avoid doing that.
892 if test -f "$cache_file"; then
893 { echo "$as_me:893: loading cache $cache_file" >&5
894 echo "$as_me: loading cache $cache_file" >&6;}
896 [\\/]* | ?:[\\/]* ) . $cache_file;;
901 { echo "$as_me:901: creating cache $cache_file" >&5
902 echo "$as_me: creating cache $cache_file" >&6;}
906 # Check that the precious variables saved in the cache have kept the same
908 ac_cache_corrupted=false
909 for ac_var in `(set) 2>&1 |
910 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
911 eval ac_old_set=\$ac_cv_env_${ac_var}_set
912 eval ac_new_set=\$ac_env_${ac_var}_set
913 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
914 eval ac_new_val="\$ac_env_${ac_var}_value"
915 case $ac_old_set,$ac_new_set in
917 { echo "$as_me:917: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
918 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
919 ac_cache_corrupted=: ;;
921 { echo "$as_me:921: error: \`$ac_var' was not
set in the previous run
" >&5
922 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
923 ac_cache_corrupted=: ;;
926 if test "x$ac_old_val" != "x$ac_new_val"; then
927 { echo "$as_me:927: error: \`$ac_var' has changed since the previous run:" >&5
928 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
929 { echo "$as_me:929: former value
: $ac_old_val" >&5
930 echo "$as_me: former value
: $ac_old_val" >&2;}
931 { echo "$as_me:931: current value
: $ac_new_val" >&5
932 echo "$as_me: current value
: $ac_new_val" >&2;}
936 # Pass precious variables to config.status. It doesn't matter if
937 # we pass some twice (in addition to the command line arguments).
938 if test "$ac_new_set" = set; then
940 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
941 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
942 ac_configure_args="$ac_configure_args '$ac_arg'"
944 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
949 if $ac_cache_corrupted; then
950 { echo "$as_me:950: error
: changes
in the environment can compromise the build
" >&5
951 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
952 { { echo "$as_me:952: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
953 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
954 { (exit 1); exit 1; }; }
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
963 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
964 *c*,-n*) ECHO_N= ECHO_C='
966 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
967 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
969 echo "#! $SHELL" >conftest.sh
970 echo "exit 0" >>conftest.sh
972 if { (echo "$as_me:972: PATH=\".;.\"; conftest.sh") >&5
973 (PATH=".;."; conftest.sh) 2>&5
975 echo "$as_me:975: \$? = $ac_status" >&5
976 (exit $ac_status); }; then
977 ac_path_separator=';'
981 PATH_SEPARATOR="$ac_path_separator"
985 for ac_dir in config $srcdir/config; do
986 if test -f $ac_dir/install-sh; then
988 ac_install_sh="$ac_aux_dir/install-sh -c"
990 elif test -f $ac_dir/install.sh; then
992 ac_install_sh="$ac_aux_dir/install.sh -c"
994 elif test -f $ac_dir/shtool; then
996 ac_install_sh="$ac_aux_dir/shtool install -c"
1000 if test -z "$ac_aux_dir"; then
1001 { { echo "$as_me:1001: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1002 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1003 { (exit 1); exit 1; }; }
1005 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1006 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1007 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1009 # Find a good install program. We prefer a C program (faster),
1010 # so one script is as good as another. But avoid the broken or
1011 # incompatible versions:
1012 # SysV /etc/install, /usr/sbin/install
1013 # SunOS /usr/etc/install
1014 # IRIX /sbin/install
1016 # AmigaOS /C/install, which installs bootblocks on floppy discs
1017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1020 # ./install, which can be erroneously created by make from ./install.sh.
1021 echo "$as_me:1021: checking for a BSD compatible install" >&5
1022 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1023 if test -z "$INSTALL"; then
1024 if test "${ac_cv_path_install+set}" = set; then
1025 echo $ECHO_N "(cached) $ECHO_C" >&6
1027 ac_save_IFS=$IFS; IFS=$ac_path_separator
1028 for ac_dir in $PATH; do
1030 # Account for people who put trailing slashes in PATH elements.
1032 / | ./ | .// | /cC/* \
1033 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1036 # OSF1 and SCO ODT 3.0 have their own names for install.
1037 # Don't use installbsd from OSF since it installs stuff as root
1039 for ac_prog in ginstall scoinst install; do
1040 if $as_executable_p "$ac_dir/$ac_prog"; then
1041 if test $ac_prog = install &&
1042 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1043 # AIX install. It has an incompatible calling convention.
1045 elif test $ac_prog = install &&
1046 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1047 # program-specific install script used by HP pwplus--don't use.
1050 ac_cv_path_install="$ac_dir/$ac_prog -c"
1060 if test "${ac_cv_path_install+set}" = set; then
1061 INSTALL=$ac_cv_path_install
1063 # As a last resort, use the slow shell script. We don't cache a
1064 # path for INSTALL within a source directory, because that will
1065 # break other packages using the cache if that directory is
1066 # removed, or if the path is relative.
1067 INSTALL=$ac_install_sh
1070 echo "$as_me:1070: result: $INSTALL" >&5
1071 echo "${ECHO_T}$INSTALL" >&6
1073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1074 # It thinks the first close brace ends the variable substitution.
1075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1081 echo "$as_me:1081: checking whether build environment is sane" >&5
1082 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1085 echo timestamp > conftestfile
1086 # Do `set' in a subshell so we don't clobber the current shell
's
1087 # arguments. Must try -L first in case configure is actually a
1088 # symlink; some systems play weird games with the mod time of symlinks
1089 # (eg FreeBSD returns the mod time of the symlink's containing
1092 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1093 if test "$*" = "X"; then
1095 set X
`ls -t $srcdir/configure conftestfile`
1097 if test "$*" != "X $srcdir/configure conftestfile" \
1098 && test "$*" != "X conftestfile $srcdir/configure"; then
1100 # If neither matched, then we have a broken ls. This can happen
1101 # if, for instance, CONFIG_SHELL is bash and it inherits a
1102 # broken ls alias from the environment. This has actually
1103 # happened. Such a system could not be considered "sane".
1104 { { echo "$as_me:1104: error: ls -t appears to fail. Make sure there is not a broken
1105 alias in your environment" >&5
1106 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1107 alias in your environment" >&2;}
1108 { (exit 1); exit 1; }; }
1111 test "$2" = conftestfile
1117 { { echo "$as_me:1117: error: newly created file is older than distributed files!
1118 Check your system clock" >&5
1119 echo "$as_me: error: newly created file is older than distributed files!
1120 Check your system clock" >&2;}
1121 { (exit 1); exit 1; }; }
1124 echo "$as_me:1124: result: yes" >&5
1125 echo "${ECHO_T}yes" >&6
1126 test "$program_prefix" != NONE
&&
1127 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1128 # Use a double $ so make ignores it.
1129 test "$program_suffix" != NONE
&&
1130 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1131 # Double any \ or $. echo might interpret backslashes.
1132 # By default was `s,x,x', remove it if useless.
1133 cat <<\_ACEOF
>conftest.
sed
1134 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1136 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1139 echo "$as_me:1139: checking whether ${MAKE-make} sets \${MAKE}" >&5
1140 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1141 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1142 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1143 echo $ECHO_N "(cached) $ECHO_C" >&6
1145 cat >conftest.
make <<\EOF
1147 @
echo 'ac_maketemp="${MAKE}"'
1149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1150 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1151 if test -n "$ac_maketemp"; then
1152 eval ac_cv_prog_make_
${ac_make}_set
=yes
1154 eval ac_cv_prog_make_
${ac_make}_set
=no
1158 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1159 echo "$as_me:1159: result: yes" >&5
1160 echo "${ECHO_T}yes" >&6
1163 echo "$as_me:1163: result: no" >&5
1164 echo "${ECHO_T}no" >&6
1165 SET_MAKE
="MAKE=${MAKE-make}"
1172 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1173 { { echo "$as_me:1173: error: source directory already configured; run \"make distclean\" there first" >&5
1174 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1175 { (exit 1); exit 1; }; }
1178 cat >>confdefs.h
<<EOF
1179 #define PACKAGE "$PACKAGE"
1182 cat >>confdefs.h
<<EOF
1183 #define VERSION "$VERSION"
1186 missing_dir
=`cd $ac_aux_dir && pwd`
1187 echo "$as_me:1187: checking for working aclocal" >&5
1188 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1189 # Run test in a subshell; some versions of sh will print an error if
1190 # an executable is not found, even if stderr is redirected.
1191 # Redirect stdin to placate older versions of autoconf. Sigh.
1192 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1194 echo "$as_me:1194: result: found" >&5
1195 echo "${ECHO_T}found" >&6
1197 ACLOCAL
="$missing_dir/missing aclocal"
1198 echo "$as_me:1198: result: missing" >&5
1199 echo "${ECHO_T}missing" >&6
1202 echo "$as_me:1202: checking for working autoconf" >&5
1203 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1204 # Run test in a subshell; some versions of sh will print an error if
1205 # an executable is not found, even if stderr is redirected.
1206 # Redirect stdin to placate older versions of autoconf. Sigh.
1207 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1209 echo "$as_me:1209: result: found" >&5
1210 echo "${ECHO_T}found" >&6
1212 AUTOCONF
="$missing_dir/missing autoconf"
1213 echo "$as_me:1213: result: missing" >&5
1214 echo "${ECHO_T}missing" >&6
1217 echo "$as_me:1217: checking for working automake" >&5
1218 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1219 # Run test in a subshell; some versions of sh will print an error if
1220 # an executable is not found, even if stderr is redirected.
1221 # Redirect stdin to placate older versions of autoconf. Sigh.
1222 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1224 echo "$as_me:1224: result: found" >&5
1225 echo "${ECHO_T}found" >&6
1227 AUTOMAKE
="$missing_dir/missing automake"
1228 echo "$as_me:1228: result: missing" >&5
1229 echo "${ECHO_T}missing" >&6
1232 echo "$as_me:1232: checking for working autoheader" >&5
1233 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1234 # Run test in a subshell; some versions of sh will print an error if
1235 # an executable is not found, even if stderr is redirected.
1236 # Redirect stdin to placate older versions of autoconf. Sigh.
1237 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1238 AUTOHEADER
=autoheader
1239 echo "$as_me:1239: result: found" >&5
1240 echo "${ECHO_T}found" >&6
1242 AUTOHEADER
="$missing_dir/missing autoheader"
1243 echo "$as_me:1243: result: missing" >&5
1244 echo "${ECHO_T}missing" >&6
1247 echo "$as_me:1247: checking for working makeinfo" >&5
1248 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1249 # Run test in a subshell; some versions of sh will print an error if
1250 # an executable is not found, even if stderr is redirected.
1251 # Redirect stdin to placate older versions of autoconf. Sigh.
1252 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1254 echo "$as_me:1254: result: found" >&5
1255 echo "${ECHO_T}found" >&6
1257 MAKEINFO
="$missing_dir/missing makeinfo"
1258 echo "$as_me:1258: result: missing" >&5
1259 echo "${ECHO_T}missing" >&6
1262 ac_config_headers
="$ac_config_headers config.h:config.hin"
1264 ac_config_commands
="$ac_config_commands default-1"
1266 # Initialize the test suite.
1269 # Try to be compatible with both Autoconf 2.13 and 2.50.
1270 if test -z "$ECHO_C$ECHO_N$ECHO_T"; then
1277 # Checks for programs.
1279 ac_cpp
='$CPP $CPPFLAGS'
1280 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1283 if test -n "$ac_tool_prefix"; then
1284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1285 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1286 echo "$as_me:1286: checking for $ac_word" >&5
1287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1288 if test "${ac_cv_prog_CC+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1291 if test -n "$CC"; then
1292 ac_cv_prog_CC
="$CC" # Let the user override the test.
1294 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1296 for ac_dir
in $ac_dummy; do
1298 test -z "$ac_dir" && ac_dir
=.
1299 $as_executable_p "$ac_dir/$ac_word" || continue
1300 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1301 echo "$as_me:1301: found $ac_dir/$ac_word" >&5
1308 if test -n "$CC"; then
1309 echo "$as_me:1309: result: $CC" >&5
1310 echo "${ECHO_T}$CC" >&6
1312 echo "$as_me:1312: result: no" >&5
1313 echo "${ECHO_T}no" >&6
1317 if test -z "$ac_cv_prog_CC"; then
1319 # Extract the first word of "gcc", so it can be a program name with args.
1320 set dummy gcc
; ac_word
=$2
1321 echo "$as_me:1321: checking for $ac_word" >&5
1322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 if test -n "$ac_ct_CC"; then
1327 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1329 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1331 for ac_dir
in $ac_dummy; do
1333 test -z "$ac_dir" && ac_dir
=.
1334 $as_executable_p "$ac_dir/$ac_word" || continue
1335 ac_cv_prog_ac_ct_CC
="gcc"
1336 echo "$as_me:1336: found $ac_dir/$ac_word" >&5
1342 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1343 if test -n "$ac_ct_CC"; then
1344 echo "$as_me:1344: result: $ac_ct_CC" >&5
1345 echo "${ECHO_T}$ac_ct_CC" >&6
1347 echo "$as_me:1347: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1356 if test -z "$CC"; then
1357 if test -n "$ac_tool_prefix"; then
1358 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1359 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1360 echo "$as_me:1360: checking for $ac_word" >&5
1361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362 if test "${ac_cv_prog_CC+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 if test -n "$CC"; then
1366 ac_cv_prog_CC
="$CC" # Let the user override the test.
1368 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1370 for ac_dir
in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir
=.
1373 $as_executable_p "$ac_dir/$ac_word" || continue
1374 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1375 echo "$as_me:1375: found $ac_dir/$ac_word" >&5
1382 if test -n "$CC"; then
1383 echo "$as_me:1383: result: $CC" >&5
1384 echo "${ECHO_T}$CC" >&6
1386 echo "$as_me:1386: result: no" >&5
1387 echo "${ECHO_T}no" >&6
1391 if test -z "$ac_cv_prog_CC"; then
1393 # Extract the first word of "cc", so it can be a program name with args.
1394 set dummy cc
; ac_word
=$2
1395 echo "$as_me:1395: checking for $ac_word" >&5
1396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 if test -n "$ac_ct_CC"; then
1401 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1403 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1405 for ac_dir
in $ac_dummy; do
1407 test -z "$ac_dir" && ac_dir
=.
1408 $as_executable_p "$ac_dir/$ac_word" || continue
1409 ac_cv_prog_ac_ct_CC
="cc"
1410 echo "$as_me:1410: found $ac_dir/$ac_word" >&5
1416 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1417 if test -n "$ac_ct_CC"; then
1418 echo "$as_me:1418: result: $ac_ct_CC" >&5
1419 echo "${ECHO_T}$ac_ct_CC" >&6
1421 echo "$as_me:1421: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1431 if test -z "$CC"; then
1432 # Extract the first word of "cc", so it can be a program name with args.
1433 set dummy cc
; ac_word
=$2
1434 echo "$as_me:1434: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_prog_CC+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 if test -n "$CC"; then
1440 ac_cv_prog_CC
="$CC" # Let the user override the test.
1443 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1445 for ac_dir
in $ac_dummy; do
1447 test -z "$ac_dir" && ac_dir
=.
1448 $as_executable_p "$ac_dir/$ac_word" || continue
1449 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1450 ac_prog_rejected
=yes
1454 echo "$as_me:1454: found $ac_dir/$ac_word" >&5
1458 if test $ac_prog_rejected = yes; then
1459 # We found a bogon in the path, so make sure we never use it.
1460 set dummy
$ac_cv_prog_CC
1462 if test $# != 0; then
1463 # We chose a different compiler from the bogus one.
1464 # However, it has the same basename, so the bogon will be chosen
1465 # first if we set CC to just the basename; use the full file name.
1467 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
1475 if test -n "$CC"; then
1476 echo "$as_me:1476: result: $CC" >&5
1477 echo "${ECHO_T}$CC" >&6
1479 echo "$as_me:1479: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1484 if test -z "$CC"; then
1485 if test -n "$ac_tool_prefix"; then
1488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1489 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1490 echo "$as_me:1490: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC
="$CC" # Let the user override the test.
1498 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1500 for ac_dir
in $ac_dummy; do
1502 test -z "$ac_dir" && ac_dir
=.
1503 $as_executable_p "$ac_dir/$ac_word" || continue
1504 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1505 echo "$as_me:1505: found $ac_dir/$ac_word" >&5
1512 if test -n "$CC"; then
1513 echo "$as_me:1513: result: $CC" >&5
1514 echo "${ECHO_T}$CC" >&6
1516 echo "$as_me:1516: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1520 test -n "$CC" && break
1523 if test -z "$CC"; then
1527 # Extract the first word of "$ac_prog", so it can be a program name with args.
1528 set dummy
$ac_prog; ac_word
=$2
1529 echo "$as_me:1529: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$ac_ct_CC"; then
1535 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1537 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1539 for ac_dir
in $ac_dummy; do
1541 test -z "$ac_dir" && ac_dir
=.
1542 $as_executable_p "$ac_dir/$ac_word" || continue
1543 ac_cv_prog_ac_ct_CC
="$ac_prog"
1544 echo "$as_me:1544: found $ac_dir/$ac_word" >&5
1550 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1551 if test -n "$ac_ct_CC"; then
1552 echo "$as_me:1552: result: $ac_ct_CC" >&5
1553 echo "${ECHO_T}$ac_ct_CC" >&6
1555 echo "$as_me:1555: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1559 test -n "$ac_ct_CC" && break
1567 test -z "$CC" && { { echo "$as_me:1567: error: no acceptable cc found in \$PATH" >&5
1568 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1569 { (exit 1); exit 1; }; }
1571 # Provide some information about the compiler.
1572 echo "$as_me:1572:" \
1573 "checking for C compiler version" >&5
1574 ac_compiler
=`set X $ac_compile; echo $2`
1575 { (eval echo "$as_me:1575: \"$ac_compiler --version </dev/null >&5\"") >&5
1576 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1578 echo "$as_me:1578: \$? = $ac_status" >&5
1579 (exit $ac_status); }
1580 { (eval echo "$as_me:1580: \"$ac_compiler -v </dev/null >&5\"") >&5
1581 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1583 echo "$as_me:1583: \$? = $ac_status" >&5
1584 (exit $ac_status); }
1585 { (eval echo "$as_me:1585: \"$ac_compiler -V </dev/null >&5\"") >&5
1586 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1588 echo "$as_me:1588: \$? = $ac_status" >&5
1589 (exit $ac_status); }
1591 cat >conftest.
$ac_ext <<_ACEOF
1592 #line 1592 "configure"
1593 #include "confdefs.h"
1603 ac_clean_files_save
=$ac_clean_files
1604 ac_clean_files
="$ac_clean_files a.out a.exe"
1605 # Try to create an executable without -o first, disregard a.out.
1606 # It will help us diagnose broken compilers, and finding out an intuition
1608 echo "$as_me:1608: checking for C compiler default output" >&5
1609 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1610 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1611 if { (eval echo "$as_me:1611: \"$ac_link_default\"") >&5
1612 (eval $ac_link_default) 2>&5
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); }; then
1616 # Find the output, starting from the most likely. This scheme is
1617 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1619 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
1620 ls a.out conftest 2>/dev/null;
1621 ls a.* conftest.* 2>/dev/null`; do
1623 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1624 a.out
) # We found the default executable, but exeext='' is most
1627 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1628 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1635 echo "$as_me: failed program was:" >&5
1636 cat conftest.
$ac_ext >&5
1637 { { echo "$as_me:1637: error: C compiler cannot create executables" >&5
1638 echo "$as_me: error: C compiler cannot create executables" >&2;}
1639 { (exit 77); exit 77; }; }
1642 ac_exeext
=$ac_cv_exeext
1643 echo "$as_me:1643: result: $ac_file" >&5
1644 echo "${ECHO_T}$ac_file" >&6
1646 # Check the compiler produces executables we can run. If not, either
1647 # the compiler is broken, or we cross compile.
1648 echo "$as_me:1648: checking whether the C compiler works" >&5
1649 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1650 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1651 # If not cross compiling, check that we can run a simple program.
1652 if test "$cross_compiling" != yes; then
1653 if { ac_try
='./$ac_file'
1654 { (eval echo "$as_me:1654: \"$ac_try\"") >&5
1657 echo "$as_me:1657: \$? = $ac_status" >&5
1658 (exit $ac_status); }; }; then
1661 if test "$cross_compiling" = maybe
; then
1664 { { echo "$as_me:1664: error: cannot run C compiled programs.
1665 If you meant to cross compile, use \`--host'." >&5
1666 echo "$as_me: error: cannot run C compiled programs.
1667 If you meant to cross compile, use \`--host'." >&2;}
1668 { (exit 1); exit 1; }; }
1672 echo "$as_me:1672: result: yes" >&5
1673 echo "${ECHO_T}yes" >&6
1675 rm -f a.out a.exe conftest
$ac_cv_exeext
1676 ac_clean_files
=$ac_clean_files_save
1677 # Check the compiler produces executables we can run. If not, either
1678 # the compiler is broken, or we cross compile.
1679 echo "$as_me:1679: checking whether we are cross compiling" >&5
1680 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1681 echo "$as_me:1681: result: $cross_compiling" >&5
1682 echo "${ECHO_T}$cross_compiling" >&6
1684 echo "$as_me:1684: checking for executable suffix" >&5
1685 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1686 if { (eval echo "$as_me:1686: \"$ac_link\"") >&5
1687 (eval $ac_link) 2>&5
1689 echo "$as_me:1689: \$? = $ac_status" >&5
1690 (exit $ac_status); }; then
1691 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1692 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1693 # work properly (i.e., refer to `conftest.exe'), while it won't with
1695 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1697 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1698 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1705 { { echo "$as_me:1705: error: cannot compute EXEEXT: cannot compile and link" >&5
1706 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1707 { (exit 1); exit 1; }; }
1710 rm -f conftest
$ac_cv_exeext
1711 echo "$as_me:1711: result: $ac_cv_exeext" >&5
1712 echo "${ECHO_T}$ac_cv_exeext" >&6
1714 rm -f conftest.
$ac_ext
1715 EXEEXT
=$ac_cv_exeext
1717 echo "$as_me:1717: checking for object suffix" >&5
1718 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1719 if test "${ac_cv_objext+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 cat >conftest.
$ac_ext <<_ACEOF
1723 #line 1723 "configure"
1724 #include "confdefs.h"
1734 rm -f conftest.o conftest.obj
1735 if { (eval echo "$as_me:1735: \"$ac_compile\"") >&5
1736 (eval $ac_compile) 2>&5
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); }; then
1740 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1742 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1743 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1748 echo "$as_me: failed program was:" >&5
1749 cat conftest.
$ac_ext >&5
1750 { { echo "$as_me:1750: error: cannot compute OBJEXT: cannot compile" >&5
1751 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1752 { (exit 1); exit 1; }; }
1755 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1757 echo "$as_me:1757: result: $ac_cv_objext" >&5
1758 echo "${ECHO_T}$ac_cv_objext" >&6
1759 OBJEXT
=$ac_cv_objext
1761 echo "$as_me:1761: checking whether we are using the GNU C compiler" >&5
1762 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 cat >conftest.
$ac_ext <<_ACEOF
1767 #line 1767 "configure"
1768 #include "confdefs.h"
1781 rm -f conftest.
$ac_objext
1782 if { (eval echo "$as_me:1782: \"$ac_compile\"") >&5
1783 (eval $ac_compile) 2>&5
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); } &&
1787 { ac_try
='test -s conftest.$ac_objext'
1788 { (eval echo "$as_me:1788: \"$ac_try\"") >&5
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1795 echo "$as_me: failed program was:" >&5
1796 cat conftest.
$ac_ext >&5
1799 rm -f conftest.
$ac_objext conftest.
$ac_ext
1800 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1803 echo "$as_me:1803: result: $ac_cv_c_compiler_gnu" >&5
1804 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1805 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1806 ac_test_CFLAGS
=${CFLAGS+set}
1807 ac_save_CFLAGS
=$CFLAGS
1809 echo "$as_me:1809: checking whether $CC accepts -g" >&5
1810 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1811 if test "${ac_cv_prog_cc_g+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 cat >conftest.
$ac_ext <<_ACEOF
1815 #line 1815 "configure"
1816 #include "confdefs.h"
1826 rm -f conftest.
$ac_objext
1827 if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5
1828 (eval $ac_compile) 2>&5
1830 echo "$as_me:1830: \$? = $ac_status" >&5
1831 (exit $ac_status); } &&
1832 { ac_try
='test -s conftest.$ac_objext'
1833 { (eval echo "$as_me:1833: \"$ac_try\"") >&5
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit $ac_status); }; }; then
1840 echo "$as_me: failed program was:" >&5
1841 cat conftest.
$ac_ext >&5
1844 rm -f conftest.
$ac_objext conftest.
$ac_ext
1846 echo "$as_me:1846: result: $ac_cv_prog_cc_g" >&5
1847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1848 if test "$ac_test_CFLAGS" = set; then
1849 CFLAGS
=$ac_save_CFLAGS
1850 elif test $ac_cv_prog_cc_g = yes; then
1851 if test "$GCC" = yes; then
1857 if test "$GCC" = yes; then
1863 # Some people use a C++ compiler to compile C. Since we use `exit',
1864 # in C++ we need to declare it. In case someone uses the same compiler
1865 # for both compiling C and C++ we need to have the C++ compiler decide
1866 # the declaration of exit, since it's the most demanding environment.
1867 cat >conftest.
$ac_ext <<_ACEOF
1872 rm -f conftest.
$ac_objext
1873 if { (eval echo "$as_me:1873: \"$ac_compile\"") >&5
1874 (eval $ac_compile) 2>&5
1876 echo "$as_me:1876: \$? = $ac_status" >&5
1877 (exit $ac_status); } &&
1878 { ac_try
='test -s conftest.$ac_objext'
1879 { (eval echo "$as_me:1879: \"$ac_try\"") >&5
1882 echo "$as_me:1882: \$? = $ac_status" >&5
1883 (exit $ac_status); }; }; then
1884 for ac_declaration
in \
1886 '#include <stdlib.h>' \
1887 'extern "C" void std::exit (int) throw (); using std::exit;' \
1888 'extern "C" void std::exit (int); using std::exit;' \
1889 'extern "C" void exit (int) throw ();' \
1890 'extern "C" void exit (int);' \
1893 cat >conftest.
$ac_ext <<_ACEOF
1894 #line 1894 "configure"
1895 #include "confdefs.h"
1906 rm -f conftest.
$ac_objext
1907 if { (eval echo "$as_me:1907: \"$ac_compile\"") >&5
1908 (eval $ac_compile) 2>&5
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit $ac_status); } &&
1912 { ac_try
='test -s conftest.$ac_objext'
1913 { (eval echo "$as_me:1913: \"$ac_try\"") >&5
1916 echo "$as_me:1916: \$? = $ac_status" >&5
1917 (exit $ac_status); }; }; then
1920 echo "$as_me: failed program was:" >&5
1921 cat conftest.
$ac_ext >&5
1924 rm -f conftest.
$ac_objext conftest.
$ac_ext
1925 cat >conftest.
$ac_ext <<_ACEOF
1926 #line 1926 "configure"
1927 #include "confdefs.h"
1937 rm -f conftest.
$ac_objext
1938 if { (eval echo "$as_me:1938: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1941 echo "$as_me:1941: \$? = $ac_status" >&5
1942 (exit $ac_status); } &&
1943 { ac_try
='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:1944: \"$ac_try\"") >&5
1947 echo "$as_me:1947: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1951 echo "$as_me: failed program was:" >&5
1952 cat conftest.
$ac_ext >&5
1954 rm -f conftest.
$ac_objext conftest.
$ac_ext
1957 if test -n "$ac_declaration"; then
1958 echo '#ifdef __cplusplus' >>confdefs.h
1959 echo $ac_declaration >>confdefs.h
1960 echo '#endif' >>confdefs.h
1964 echo "$as_me: failed program was:" >&5
1965 cat conftest.
$ac_ext >&5
1967 rm -f conftest.
$ac_objext conftest.
$ac_ext
1969 ac_cpp
='$CPP $CPPFLAGS'
1970 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1975 ac_cpp
='$CPP $CPPFLAGS'
1976 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1979 echo "$as_me:1979: checking how to run the C preprocessor" >&5
1980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1981 # On Suns, sometimes $CPP names a directory.
1982 if test -n "$CPP" && test -d "$CPP"; then
1985 if test -z "$CPP"; then
1986 if test "${ac_cv_prog_CPP+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 # Double quotes because CPP needs to be expanded
1990 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1993 for ac_c_preproc_warn_flag
in '' yes
1995 # Use a header file that comes with gcc, so configuring glibc
1996 # with a fresh cross-compiler works.
1997 # On the NeXT, cc -E runs the code through the compiler's parser,
1998 # not just through cpp. "Syntax error" is here to catch this case.
1999 cat >conftest.
$ac_ext <<_ACEOF
2000 #line 2000 "configure"
2001 #include "confdefs.h"
2005 if { (eval echo "$as_me:2005: \"$ac_cpp conftest.$ac_ext\"") >&5
2006 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2008 egrep -v '^ *\+' conftest.er1
>conftest.err
2010 cat conftest.err
>&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); } >/dev
/null
; then
2013 if test -s conftest.err
; then
2014 ac_cpp_err
=$ac_c_preproc_warn_flag
2021 if test -z "$ac_cpp_err"; then
2024 echo "$as_me: failed program was:" >&5
2025 cat conftest.
$ac_ext >&5
2026 # Broken: fails on valid input.
2029 rm -f conftest.err conftest.
$ac_ext
2031 # OK, works on sane cases. Now check whether non-existent headers
2032 # can be detected and how.
2033 cat >conftest.
$ac_ext <<_ACEOF
2034 #line 2034 "configure"
2035 #include "confdefs.h"
2036 #include <ac_nonexistent.h>
2038 if { (eval echo "$as_me:2038: \"$ac_cpp conftest.$ac_ext\"") >&5
2039 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2041 egrep -v '^ *\+' conftest.er1
>conftest.err
2043 cat conftest.err
>&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } >/dev
/null
; then
2046 if test -s conftest.err
; then
2047 ac_cpp_err
=$ac_c_preproc_warn_flag
2054 if test -z "$ac_cpp_err"; then
2055 # Broken: success on invalid input.
2058 echo "$as_me: failed program was:" >&5
2059 cat conftest.
$ac_ext >&5
2060 # Passes both tests.
2064 rm -f conftest.err conftest.
$ac_ext
2067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2068 rm -f conftest.err conftest.
$ac_ext
2069 if $ac_preproc_ok; then
2081 echo "$as_me:2081: result: $CPP" >&5
2082 echo "${ECHO_T}$CPP" >&6
2084 for ac_c_preproc_warn_flag
in '' yes
2086 # Use a header file that comes with gcc, so configuring glibc
2087 # with a fresh cross-compiler works.
2088 # On the NeXT, cc -E runs the code through the compiler's parser,
2089 # not just through cpp. "Syntax error" is here to catch this case.
2090 cat >conftest.
$ac_ext <<_ACEOF
2091 #line 2091 "configure"
2092 #include "confdefs.h"
2096 if { (eval echo "$as_me:2096: \"$ac_cpp conftest.$ac_ext\"") >&5
2097 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2099 egrep -v '^ *\+' conftest.er1
>conftest.err
2101 cat conftest.err
>&5
2102 echo "$as_me:2102: \$? = $ac_status" >&5
2103 (exit $ac_status); } >/dev
/null
; then
2104 if test -s conftest.err
; then
2105 ac_cpp_err
=$ac_c_preproc_warn_flag
2112 if test -z "$ac_cpp_err"; then
2115 echo "$as_me: failed program was:" >&5
2116 cat conftest.
$ac_ext >&5
2117 # Broken: fails on valid input.
2120 rm -f conftest.err conftest.
$ac_ext
2122 # OK, works on sane cases. Now check whether non-existent headers
2123 # can be detected and how.
2124 cat >conftest.
$ac_ext <<_ACEOF
2125 #line 2125 "configure"
2126 #include "confdefs.h"
2127 #include <ac_nonexistent.h>
2129 if { (eval echo "$as_me:2129: \"$ac_cpp conftest.$ac_ext\"") >&5
2130 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2132 egrep -v '^ *\+' conftest.er1
>conftest.err
2134 cat conftest.err
>&5
2135 echo "$as_me:2135: \$? = $ac_status" >&5
2136 (exit $ac_status); } >/dev
/null
; then
2137 if test -s conftest.err
; then
2138 ac_cpp_err
=$ac_c_preproc_warn_flag
2145 if test -z "$ac_cpp_err"; then
2146 # Broken: success on invalid input.
2149 echo "$as_me: failed program was:" >&5
2150 cat conftest.
$ac_ext >&5
2151 # Passes both tests.
2155 rm -f conftest.err conftest.
$ac_ext
2158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2159 rm -f conftest.err conftest.
$ac_ext
2160 if $ac_preproc_ok; then
2163 { { echo "$as_me:2163: error: C preprocessor \"$CPP\" fails sanity check" >&5
2164 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2165 { (exit 1); exit 1; }; }
2169 ac_cpp
='$CPP $CPPFLAGS'
2170 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2174 echo "$as_me:2174: checking for minix/config.h" >&5
2175 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2176 if test "${ac_cv_header_minix_config_h+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 cat >conftest.
$ac_ext <<_ACEOF
2180 #line 2180 "configure"
2181 #include "confdefs.h"
2182 #include <minix/config.h>
2184 if { (eval echo "$as_me:2184: \"$ac_cpp conftest.$ac_ext\"") >&5
2185 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2187 egrep -v '^ *\+' conftest.er1
>conftest.err
2189 cat conftest.err
>&5
2190 echo "$as_me:2190: \$? = $ac_status" >&5
2191 (exit $ac_status); } >/dev
/null
; then
2192 if test -s conftest.err
; then
2193 ac_cpp_err
=$ac_c_preproc_warn_flag
2200 if test -z "$ac_cpp_err"; then
2201 ac_cv_header_minix_config_h
=yes
2203 echo "$as_me: failed program was:" >&5
2204 cat conftest.
$ac_ext >&5
2205 ac_cv_header_minix_config_h
=no
2207 rm -f conftest.err conftest.
$ac_ext
2209 echo "$as_me:2209: result: $ac_cv_header_minix_config_h" >&5
2210 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2211 if test $ac_cv_header_minix_config_h = yes; then
2217 if test "$MINIX" = yes; then
2219 cat >>confdefs.h
<<\EOF
2220 #define _POSIX_SOURCE 1
2223 cat >>confdefs.h
<<\EOF
2224 #define _POSIX_1_SOURCE 2
2227 cat >>confdefs.h
<<\EOF
2233 echo "$as_me:2233: checking for strerror in -lcposix" >&5
2234 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2235 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 ac_check_lib_save_LIBS
=$LIBS
2239 LIBS
="-lcposix $LIBS"
2240 cat >conftest.
$ac_ext <<_ACEOF
2241 #line 2241 "configure"
2242 #include "confdefs.h"
2244 /* Override any gcc2 internal prototype to avoid an error. */
2248 /* We use char because int might match the return type of a gcc2
2249 builtin and then its argument prototype would still apply. */
2259 rm -f conftest.
$ac_objext conftest
$ac_exeext
2260 if { (eval echo "$as_me:2260: \"$ac_link\"") >&5
2261 (eval $ac_link) 2>&5
2263 echo "$as_me:2263: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try
='test -s conftest$ac_exeext'
2266 { (eval echo "$as_me:2266: \"$ac_try\"") >&5
2269 echo "$as_me:2269: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2271 ac_cv_lib_cposix_strerror
=yes
2273 echo "$as_me: failed program was:" >&5
2274 cat conftest.
$ac_ext >&5
2275 ac_cv_lib_cposix_strerror
=no
2277 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2278 LIBS
=$ac_check_lib_save_LIBS
2280 echo "$as_me:2280: result: $ac_cv_lib_cposix_strerror" >&5
2281 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2282 if test $ac_cv_lib_cposix_strerror = yes; then
2283 LIBS
="$LIBS -lcposix"
2286 echo "$as_me:2286: checking for ${CC-cc} option to accept ANSI C" >&5
2287 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2288 if test "${am_cv_prog_cc_stdc+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 am_cv_prog_cc_stdc
=no
2293 # Don't try gcc -ansi; that turns off useful extensions and
2294 # breaks some systems' header files.
2295 # AIX -qlanglvl=ansi
2296 # Ultrix and OSF/1 -std1
2297 # HP-UX -Aa -D_HPUX_SOURCE
2298 # SVR4 -Xc -D__EXTENSIONS__
2299 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2301 CC
="$ac_save_CC $ac_arg"
2302 cat >conftest.
$ac_ext <<_ACEOF
2303 #line 2303 "configure"
2304 #include "confdefs.h"
2307 #include <sys/types.h>
2308 #include <sys/stat.h>
2309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2310 struct buf { int x; };
2311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2312 static char *e (p, i)
2318 static char *f (char * (*g) (char **, int), char **p, ...)
2323 s = g (p, va_arg (v,int));
2327 int test (int i, double x);
2328 struct s1 {int (*f) (int a);};
2329 struct s2 {int (*f) (double a);};
2330 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2344 rm -f conftest.
$ac_objext
2345 if { (eval echo "$as_me:2345: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>&5
2348 echo "$as_me:2348: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try
='test -s conftest.$ac_objext'
2351 { (eval echo "$as_me:2351: \"$ac_try\"") >&5
2354 echo "$as_me:2354: \$? = $ac_status" >&5
2355 (exit $ac_status); }; }; then
2356 am_cv_prog_cc_stdc
="$ac_arg"; break
2358 echo "$as_me: failed program was:" >&5
2359 cat conftest.
$ac_ext >&5
2361 rm -f conftest.
$ac_objext conftest.
$ac_ext
2367 if test -z "$am_cv_prog_cc_stdc"; then
2368 echo "$as_me:2368: result: none needed" >&5
2369 echo "${ECHO_T}none needed" >&6
2371 echo "$as_me:2371: result: $am_cv_prog_cc_stdc" >&5
2372 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2374 case "x$am_cv_prog_cc_stdc" in
2376 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2381 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2382 echo "$as_me:2382: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2384 if test "${ac_cv_prog_RANLIB+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test -n "$RANLIB"; then
2388 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2390 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2392 for ac_dir
in $ac_dummy; do
2394 test -z "$ac_dir" && ac_dir
=.
2395 $as_executable_p "$ac_dir/$ac_word" || continue
2396 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2397 echo "$as_me:2397: found $ac_dir/$ac_word" >&5
2403 RANLIB
=$ac_cv_prog_RANLIB
2404 if test -n "$RANLIB"; then
2405 echo "$as_me:2405: result: $RANLIB" >&5
2406 echo "${ECHO_T}$RANLIB" >&6
2408 echo "$as_me:2408: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2413 if test -z "$ac_cv_prog_RANLIB"; then
2414 ac_ct_RANLIB
=$RANLIB
2415 # Extract the first word of "ranlib", so it can be a program name with args.
2416 set dummy ranlib
; ac_word
=$2
2417 echo "$as_me:2417: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$ac_ct_RANLIB"; then
2423 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2425 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2427 for ac_dir
in $ac_dummy; do
2429 test -z "$ac_dir" && ac_dir
=.
2430 $as_executable_p "$ac_dir/$ac_word" || continue
2431 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2432 echo "$as_me:2432: found $ac_dir/$ac_word" >&5
2436 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2439 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2440 if test -n "$ac_ct_RANLIB"; then
2441 echo "$as_me:2441: result: $ac_ct_RANLIB" >&5
2442 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2444 echo "$as_me:2444: result: no" >&5
2445 echo "${ECHO_T}no" >&6
2448 RANLIB
=$ac_ct_RANLIB
2450 RANLIB
="$ac_cv_prog_RANLIB"
2453 # GNU M4 is needed to build the testsuite.
2454 for ac_prog
in gm4 gnum4
m4
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy
$ac_prog; ac_word
=$2
2458 echo "$as_me:2458: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_path_M4+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
2468 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2470 for ac_dir
in $ac_dummy; do
2472 test -z "$ac_dir" && ac_dir
=.
2473 if $as_executable_p "$ac_dir/$ac_word"; then
2474 ac_cv_path_M4
="$ac_dir/$ac_word"
2475 echo "$as_me:2475: found $ac_dir/$ac_word" >&5
2485 if test -n "$M4"; then
2486 echo "$as_me:2486: result: $M4" >&5
2487 echo "${ECHO_T}$M4" >&6
2489 echo "$as_me:2489: result: no" >&5
2490 echo "${ECHO_T}no" >&6
2493 test -n "$M4" && break
2495 test -n "$M4" || M4
="m4"
2497 echo "$as_me:2497: checking whether m4 supports frozen files" >&5
2498 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
2499 if test "${ac_cv_prog_gnu_m4+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 ac_cv_prog_gnu_m4
=no
2503 if test x
"$M4" != x
; then
2504 case `$M4 --help < /dev/null 2>&1` in
2505 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
2509 echo "$as_me:2509: result: $ac_cv_prog_gnu_m4" >&5
2510 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
2512 if test "$ac_cv_prog_gnu_m4" != yes; then
2513 missing_dir
=`cd $ac_aux_dir && pwd`
2514 M4
="$missing_dir/missing m4"
2517 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
2518 if test "${enable_gcc_warnings+set}" = set; then
2519 enableval
="$enable_gcc_warnings"
2520 case "${enableval}" in
2522 *) { { echo "$as_me:2522: error: bad value ${enableval} for gcc-warnings option" >&5
2523 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
2524 { (exit 1); exit 1; }; } ;;
2529 if test "${enableval}" = yes; then
2530 echo "$as_me:2530: checking whether compiler accepts -Wall" >&5
2531 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
2533 ac_save_CFLAGS
="$CFLAGS"
2534 CFLAGS
="$CFLAGS -Wall"
2535 cat >conftest.
$ac_ext <<_ACEOF
2536 #line 2536 "configure"
2537 #include "confdefs.h"
2547 rm -f conftest.
$ac_objext
2548 if { (eval echo "$as_me:2548: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>&5
2551 echo "$as_me:2551: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try
='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:2554: \"$ac_try\"") >&5
2557 echo "$as_me:2557: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
2560 echo "$as_me:2560: result: yes" >&5
2561 echo "${ECHO_T}yes" >&6
2563 echo "$as_me: failed program was:" >&5
2564 cat conftest.
$ac_ext >&5
2565 echo "$as_me:2565: result: no" >&5
2566 echo "${ECHO_T}no" >&6
2568 rm -f conftest.
$ac_objext conftest.
$ac_ext
2569 CFLAGS
="$ac_save_CFLAGS"
2570 echo "$as_me:2570: checking whether compiler accepts -W" >&5
2571 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
2573 ac_save_CFLAGS
="$CFLAGS"
2575 cat >conftest.
$ac_ext <<_ACEOF
2576 #line 2576 "configure"
2577 #include "confdefs.h"
2587 rm -f conftest.
$ac_objext
2588 if { (eval echo "$as_me:2588: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2591 echo "$as_me:2591: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try
='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:2594: \"$ac_try\"") >&5
2597 echo "$as_me:2597: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
2600 echo "$as_me:2600: result: yes" >&5
2601 echo "${ECHO_T}yes" >&6
2603 echo "$as_me: failed program was:" >&5
2604 cat conftest.
$ac_ext >&5
2605 echo "$as_me:2605: result: no" >&5
2606 echo "${ECHO_T}no" >&6
2608 rm -f conftest.
$ac_objext conftest.
$ac_ext
2609 CFLAGS
="$ac_save_CFLAGS"
2610 echo "$as_me:2610: checking whether compiler accepts -Wbad-function-cast" >&5
2611 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
2613 ac_save_CFLAGS
="$CFLAGS"
2614 CFLAGS
="$CFLAGS -Wbad-function-cast"
2615 cat >conftest.
$ac_ext <<_ACEOF
2616 #line 2616 "configure"
2617 #include "confdefs.h"
2627 rm -f conftest.
$ac_objext
2628 if { (eval echo "$as_me:2628: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>&5
2631 echo "$as_me:2631: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try
='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:2634: \"$ac_try\"") >&5
2637 echo "$as_me:2637: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
2640 echo "$as_me:2640: result: yes" >&5
2641 echo "${ECHO_T}yes" >&6
2643 echo "$as_me: failed program was:" >&5
2644 cat conftest.
$ac_ext >&5
2645 echo "$as_me:2645: result: no" >&5
2646 echo "${ECHO_T}no" >&6
2648 rm -f conftest.
$ac_objext conftest.
$ac_ext
2649 CFLAGS
="$ac_save_CFLAGS"
2650 echo "$as_me:2650: checking whether compiler accepts -Wcast-align" >&5
2651 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
2653 ac_save_CFLAGS
="$CFLAGS"
2654 CFLAGS
="$CFLAGS -Wcast-align"
2655 cat >conftest.
$ac_ext <<_ACEOF
2656 #line 2656 "configure"
2657 #include "confdefs.h"
2667 rm -f conftest.
$ac_objext
2668 if { (eval echo "$as_me:2668: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>&5
2671 echo "$as_me:2671: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try
='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:2674: \"$ac_try\"") >&5
2677 echo "$as_me:2677: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
2680 echo "$as_me:2680: result: yes" >&5
2681 echo "${ECHO_T}yes" >&6
2683 echo "$as_me: failed program was:" >&5
2684 cat conftest.
$ac_ext >&5
2685 echo "$as_me:2685: result: no" >&5
2686 echo "${ECHO_T}no" >&6
2688 rm -f conftest.
$ac_objext conftest.
$ac_ext
2689 CFLAGS
="$ac_save_CFLAGS"
2690 echo "$as_me:2690: checking whether compiler accepts -Wcast-qual" >&5
2691 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
2693 ac_save_CFLAGS
="$CFLAGS"
2694 CFLAGS
="$CFLAGS -Wcast-qual"
2695 cat >conftest.
$ac_ext <<_ACEOF
2696 #line 2696 "configure"
2697 #include "confdefs.h"
2707 rm -f conftest.
$ac_objext
2708 if { (eval echo "$as_me:2708: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>&5
2711 echo "$as_me:2711: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try
='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:2714: \"$ac_try\"") >&5
2717 echo "$as_me:2717: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
2720 echo "$as_me:2720: result: yes" >&5
2721 echo "${ECHO_T}yes" >&6
2723 echo "$as_me: failed program was:" >&5
2724 cat conftest.
$ac_ext >&5
2725 echo "$as_me:2725: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2728 rm -f conftest.
$ac_objext conftest.
$ac_ext
2729 CFLAGS
="$ac_save_CFLAGS"
2730 echo "$as_me:2730: checking whether compiler accepts -Wformat" >&5
2731 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
2733 ac_save_CFLAGS
="$CFLAGS"
2734 CFLAGS
="$CFLAGS -Wformat"
2735 cat >conftest.
$ac_ext <<_ACEOF
2736 #line 2736 "configure"
2737 #include "confdefs.h"
2747 rm -f conftest.
$ac_objext
2748 if { (eval echo "$as_me:2748: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>&5
2751 echo "$as_me:2751: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try
='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:2754: \"$ac_try\"") >&5
2757 echo "$as_me:2757: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
2760 echo "$as_me:2760: result: yes" >&5
2761 echo "${ECHO_T}yes" >&6
2763 echo "$as_me: failed program was:" >&5
2764 cat conftest.
$ac_ext >&5
2765 echo "$as_me:2765: result: no" >&5
2766 echo "${ECHO_T}no" >&6
2768 rm -f conftest.
$ac_objext conftest.
$ac_ext
2769 CFLAGS
="$ac_save_CFLAGS"
2770 echo "$as_me:2770: checking whether compiler accepts -Wmissing-declarations" >&5
2771 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
2773 ac_save_CFLAGS
="$CFLAGS"
2774 CFLAGS
="$CFLAGS -Wmissing-declarations"
2775 cat >conftest.
$ac_ext <<_ACEOF
2776 #line 2776 "configure"
2777 #include "confdefs.h"
2787 rm -f conftest.
$ac_objext
2788 if { (eval echo "$as_me:2788: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>&5
2791 echo "$as_me:2791: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try
='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:2794: \"$ac_try\"") >&5
2797 echo "$as_me:2797: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
2800 echo "$as_me:2800: result: yes" >&5
2801 echo "${ECHO_T}yes" >&6
2803 echo "$as_me: failed program was:" >&5
2804 cat conftest.
$ac_ext >&5
2805 echo "$as_me:2805: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2808 rm -f conftest.
$ac_objext conftest.
$ac_ext
2809 CFLAGS
="$ac_save_CFLAGS"
2810 echo "$as_me:2810: checking whether compiler accepts -Wmissing-prototypes" >&5
2811 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
2813 ac_save_CFLAGS
="$CFLAGS"
2814 CFLAGS
="$CFLAGS -Wmissing-prototypes"
2815 cat >conftest.
$ac_ext <<_ACEOF
2816 #line 2816 "configure"
2817 #include "confdefs.h"
2827 rm -f conftest.
$ac_objext
2828 if { (eval echo "$as_me:2828: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>&5
2831 echo "$as_me:2831: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try
='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:2834: \"$ac_try\"") >&5
2837 echo "$as_me:2837: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
2840 echo "$as_me:2840: result: yes" >&5
2841 echo "${ECHO_T}yes" >&6
2843 echo "$as_me: failed program was:" >&5
2844 cat conftest.
$ac_ext >&5
2845 echo "$as_me:2845: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2848 rm -f conftest.
$ac_objext conftest.
$ac_ext
2849 CFLAGS
="$ac_save_CFLAGS"
2850 echo "$as_me:2850: checking whether compiler accepts -Wnested-externs" >&5
2851 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
2853 ac_save_CFLAGS
="$CFLAGS"
2854 CFLAGS
="$CFLAGS -Wnested-externs"
2855 cat >conftest.
$ac_ext <<_ACEOF
2856 #line 2856 "configure"
2857 #include "confdefs.h"
2867 rm -f conftest.
$ac_objext
2868 if { (eval echo "$as_me:2868: \"$ac_compile\"") >&5
2869 (eval $ac_compile) 2>&5
2871 echo "$as_me:2871: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try
='test -s conftest.$ac_objext'
2874 { (eval echo "$as_me:2874: \"$ac_try\"") >&5
2877 echo "$as_me:2877: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
2880 echo "$as_me:2880: result: yes" >&5
2881 echo "${ECHO_T}yes" >&6
2883 echo "$as_me: failed program was:" >&5
2884 cat conftest.
$ac_ext >&5
2885 echo "$as_me:2885: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2888 rm -f conftest.
$ac_objext conftest.
$ac_ext
2889 CFLAGS
="$ac_save_CFLAGS"
2890 echo "$as_me:2890: checking whether compiler accepts -Wshadow" >&5
2891 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
2893 ac_save_CFLAGS
="$CFLAGS"
2894 CFLAGS
="$CFLAGS -Wshadow"
2895 cat >conftest.
$ac_ext <<_ACEOF
2896 #line 2896 "configure"
2897 #include "confdefs.h"
2907 rm -f conftest.
$ac_objext
2908 if { (eval echo "$as_me:2908: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>&5
2911 echo "$as_me:2911: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try
='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:2914: \"$ac_try\"") >&5
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
2920 echo "$as_me:2920: result: yes" >&5
2921 echo "${ECHO_T}yes" >&6
2923 echo "$as_me: failed program was:" >&5
2924 cat conftest.
$ac_ext >&5
2925 echo "$as_me:2925: result: no" >&5
2926 echo "${ECHO_T}no" >&6
2928 rm -f conftest.
$ac_objext conftest.
$ac_ext
2929 CFLAGS
="$ac_save_CFLAGS"
2930 echo "$as_me:2930: checking whether compiler accepts -Wstrict-prototypes" >&5
2931 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
2933 ac_save_CFLAGS
="$CFLAGS"
2934 CFLAGS
="$CFLAGS -Wstrict-prototypes"
2935 cat >conftest.
$ac_ext <<_ACEOF
2936 #line 2936 "configure"
2937 #include "confdefs.h"
2947 rm -f conftest.
$ac_objext
2948 if { (eval echo "$as_me:2948: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>&5
2951 echo "$as_me:2951: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try
='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:2954: \"$ac_try\"") >&5
2957 echo "$as_me:2957: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
2960 echo "$as_me:2960: result: yes" >&5
2961 echo "${ECHO_T}yes" >&6
2963 echo "$as_me: failed program was:" >&5
2964 cat conftest.
$ac_ext >&5
2965 echo "$as_me:2965: result: no" >&5
2966 echo "${ECHO_T}no" >&6
2968 rm -f conftest.
$ac_objext conftest.
$ac_ext
2969 CFLAGS
="$ac_save_CFLAGS"
2970 echo "$as_me:2970: checking whether compiler accepts -Wwrite-strings" >&5
2971 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
2973 ac_save_CFLAGS
="$CFLAGS"
2974 CFLAGS
="$CFLAGS -Wwrite-strings"
2975 cat >conftest.
$ac_ext <<_ACEOF
2976 #line 2976 "configure"
2977 #include "confdefs.h"
2987 rm -f conftest.
$ac_objext
2988 if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>&5
2991 echo "$as_me:2991: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try
='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3000 echo "$as_me:3000: result: yes" >&5
3001 echo "${ECHO_T}yes" >&6
3003 echo "$as_me: failed program was:" >&5
3004 cat conftest.
$ac_ext >&5
3005 echo "$as_me:3005: result: no" >&5
3006 echo "${ECHO_T}no" >&6
3008 rm -f conftest.
$ac_objext conftest.
$ac_ext
3009 CFLAGS
="$ac_save_CFLAGS"
3010 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3013 # Checks for libraries.
3015 cat >>confdefs.h
<<\EOF
3016 #define _GNU_SOURCE 1
3019 # Checks for header files.
3020 echo "$as_me:3020: checking for ANSI C header files" >&5
3021 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3022 if test "${ac_cv_header_stdc+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 cat >conftest.
$ac_ext <<_ACEOF
3026 #line 3026 "configure"
3027 #include "confdefs.h"
3034 if { (eval echo "$as_me:3034: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3037 egrep -v '^ *\+' conftest.er1
>conftest.err
3039 cat conftest.err
>&5
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev
/null
; then
3042 if test -s conftest.err
; then
3043 ac_cpp_err
=$ac_c_preproc_warn_flag
3050 if test -z "$ac_cpp_err"; then
3051 ac_cv_header_stdc
=yes
3053 echo "$as_me: failed program was:" >&5
3054 cat conftest.
$ac_ext >&5
3055 ac_cv_header_stdc
=no
3057 rm -f conftest.err conftest.
$ac_ext
3059 if test $ac_cv_header_stdc = yes; then
3060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3061 cat >conftest.
$ac_ext <<_ACEOF
3062 #line 3062 "configure"
3063 #include "confdefs.h"
3067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3068 egrep "memchr" >/dev
/null
2>&1; then
3071 ac_cv_header_stdc
=no
3077 if test $ac_cv_header_stdc = yes; then
3078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3079 cat >conftest.
$ac_ext <<_ACEOF
3080 #line 3080 "configure"
3081 #include "confdefs.h"
3085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086 egrep "free" >/dev
/null
2>&1; then
3089 ac_cv_header_stdc
=no
3095 if test $ac_cv_header_stdc = yes; then
3096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3097 if test "$cross_compiling" = yes; then
3100 cat >conftest.
$ac_ext <<_ACEOF
3101 #line 3101 "configure"
3102 #include "confdefs.h"
3104 #if ((' ' & 0x0FF) == 0x020)
3105 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3106 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3108 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3109 || ('j' <= (c) && (c) <= 'r') \
3110 || ('s' <= (c) && (c) <= 'z'))
3111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3119 for (i = 0; i < 256; i++)
3120 if (XOR (islower (i), ISLOWER (i))
3121 || toupper (i) != TOUPPER (i))
3126 rm -f conftest
$ac_exeext
3127 if { (eval echo "$as_me:3127: \"$ac_link\"") >&5
3128 (eval $ac_link) 2>&5
3130 echo "$as_me:3130: \$? = $ac_status" >&5
3131 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3132 { (eval echo "$as_me:3132: \"$ac_try\"") >&5
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3139 echo "$as_me: program exited with status $ac_status" >&5
3140 echo "$as_me: failed program was:" >&5
3141 cat conftest.
$ac_ext >&5
3142 ac_cv_header_stdc
=no
3144 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3148 echo "$as_me:3148: result: $ac_cv_header_stdc" >&5
3149 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3150 if test $ac_cv_header_stdc = yes; then
3152 cat >>confdefs.h
<<\EOF
3153 #define STDC_HEADERS 1
3158 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3160 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3161 echo "$as_me:3161: checking for $ac_header" >&5
3162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 cat >conftest.
$ac_ext <<_ACEOF
3167 #line 3167 "configure"
3168 #include "confdefs.h"
3169 #include <$ac_header>
3171 if { (eval echo "$as_me:3171: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3174 egrep -v '^ *\+' conftest.er1
>conftest.err
3176 cat conftest.err
>&5
3177 echo "$as_me:3177: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev
/null
; then
3179 if test -s conftest.err
; then
3180 ac_cpp_err
=$ac_c_preproc_warn_flag
3187 if test -z "$ac_cpp_err"; then
3188 eval "$as_ac_Header=yes"
3190 echo "$as_me: failed program was:" >&5
3191 cat conftest.
$ac_ext >&5
3192 eval "$as_ac_Header=no"
3194 rm -f conftest.err conftest.
$ac_ext
3196 echo "$as_me:3196: result: `eval echo '${'$as_ac_Header'}'`" >&5
3197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3199 cat >>confdefs.h
<<EOF
3200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3206 # Checks for typedefs.
3208 # Checks for structures.
3210 # Checks for compiler characteristics.
3211 echo "$as_me:3211: checking for $CC option to accept ANSI C" >&5
3212 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3213 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 ac_cv_prog_cc_stdc
=no
3218 cat >conftest.
$ac_ext <<_ACEOF
3219 #line 3219 "configure"
3220 #include "confdefs.h"
3223 #include <sys/types.h>
3224 #include <sys/stat.h>
3225 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3226 struct buf { int x; };
3227 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3228 static char *e (p, i)
3234 static char *f (char * (*g) (char **, int), char **p, ...)
3239 s = g (p, va_arg (v,int));
3243 int test (int i, double x);
3244 struct s1 {int (*f) (int a);};
3245 struct s2 {int (*f) (double a);};
3246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3257 # Don't try gcc -ansi; that turns off useful extensions and
3258 # breaks some systems' header files.
3259 # AIX -qlanglvl=ansi
3260 # Ultrix and OSF/1 -std1
3261 # HP-UX 10.20 and later -Ae
3262 # HP-UX older versions -Aa -D_HPUX_SOURCE
3263 # SVR4 -Xc -D__EXTENSIONS__
3264 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3266 CC
="$ac_save_CC $ac_arg"
3267 rm -f conftest.
$ac_objext
3268 if { (eval echo "$as_me:3268: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3271 echo "$as_me:3271: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try
='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:3274: \"$ac_try\"") >&5
3277 echo "$as_me:3277: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_prog_cc_stdc
=$ac_arg
3282 echo "$as_me: failed program was:" >&5
3283 cat conftest.
$ac_ext >&5
3285 rm -f conftest.
$ac_objext
3287 rm -f conftest.
$ac_ext conftest.
$ac_objext
3292 case "x$ac_cv_prog_cc_stdc" in
3294 echo "$as_me:3294: result: none needed" >&5
3295 echo "${ECHO_T}none needed" >&6 ;;
3297 echo "$as_me:3297: result: $ac_cv_prog_cc_stdc" >&5
3298 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3299 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3302 echo "$as_me:3302: checking for an ANSI C-conforming const" >&5
3303 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3304 if test "${ac_cv_c_const+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 cat >conftest.
$ac_ext <<_ACEOF
3308 #line 3308 "configure"
3309 #include "confdefs.h"
3314 /* FIXME: Include the comments suggested by Paul. */
3316 /* Ultrix mips cc rejects this. */
3317 typedef int charset[2];
3319 /* SunOS 4.1.1 cc rejects this. */
3320 char const *const *ccp;
3322 /* NEC SVR4.0.2 mips cc rejects this. */
3323 struct point {int x, y;};
3324 static struct point const zero = {0,0};
3325 /* AIX XL C 1.02.0.0 rejects this.
3326 It does not let you subtract one const X* pointer from another in
3327 an arm of an if-expression whose if-part is not a constant
3329 const char *g = "string";
3330 ccp = &g + (g ? g-g : 0);
3331 /* HPUX 7.0 cc rejects these. */
3334 ccp = (char const *const *) p;
3335 { /* SCO 3.2v4 cc rejects this. */
3337 char const *s = 0 ? (char *) 0 : (char const *) 0;
3341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3343 const int *foo = &x[0];
3346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3347 typedef const int *iptr;
3351 { /* AIX XL C 1.02.0.0 rejects this saying
3352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3353 struct s { int j; const int *ap[3]; };
3354 struct s *b; b->j = 5;
3356 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3365 rm -f conftest.
$ac_objext
3366 if { (eval echo "$as_me:3366: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>&5
3369 echo "$as_me:3369: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try
='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:3372: \"$ac_try\"") >&5
3375 echo "$as_me:3375: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3379 echo "$as_me: failed program was:" >&5
3380 cat conftest.
$ac_ext >&5
3383 rm -f conftest.
$ac_objext conftest.
$ac_ext
3385 echo "$as_me:3385: result: $ac_cv_c_const" >&5
3386 echo "${ECHO_T}$ac_cv_c_const" >&6
3387 if test $ac_cv_c_const = no
; then
3389 cat >>confdefs.h
<<\EOF
3395 echo "$as_me:3395: checking for inline" >&5
3396 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3397 if test "${ac_cv_c_inline+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 for ac_kw
in inline __inline__ __inline
; do
3402 cat >conftest.
$ac_ext <<_ACEOF
3403 #line 3403 "configure"
3404 #include "confdefs.h"
3406 static $ac_kw int static_foo () {return 0; }
3407 $ac_kw int foo () {return 0; }
3411 rm -f conftest.
$ac_objext
3412 if { (eval echo "$as_me:3412: \"$ac_compile\"") >&5
3413 (eval $ac_compile) 2>&5
3415 echo "$as_me:3415: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try
='test -s conftest.$ac_objext'
3418 { (eval echo "$as_me:3418: \"$ac_try\"") >&5
3421 echo "$as_me:3421: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 ac_cv_c_inline
=$ac_kw; break
3425 echo "$as_me: failed program was:" >&5
3426 cat conftest.
$ac_ext >&5
3428 rm -f conftest.
$ac_objext conftest.
$ac_ext
3432 echo "$as_me:3432: result: $ac_cv_c_inline" >&5
3433 echo "${ECHO_T}$ac_cv_c_inline" >&6
3434 case $ac_cv_c_inline in
3437 cat >>confdefs.h
<<\EOF
3441 *) cat >>confdefs.h
<<EOF
3442 #define inline $ac_cv_c_inline
3447 echo "$as_me:3447: checking for function prototypes" >&5
3448 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3449 if test "$am_cv_prog_cc_stdc" != no
; then
3450 echo "$as_me:3450: result: yes" >&5
3451 echo "${ECHO_T}yes" >&6
3453 cat >>confdefs.h
<<\EOF
3454 #define PROTOTYPES 1
3459 echo "$as_me:3459: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3461 U
=_ ANSI2KNR
=.
/ansi2knr
3462 # Ensure some checks needed by ansi2knr itself.
3463 echo "$as_me:3463: checking for ANSI C header files" >&5
3464 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3465 if test "${ac_cv_header_stdc+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 cat >conftest.
$ac_ext <<_ACEOF
3469 #line 3469 "configure"
3470 #include "confdefs.h"
3477 if { (eval echo "$as_me:3477: \"$ac_cpp conftest.$ac_ext\"") >&5
3478 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3480 egrep -v '^ *\+' conftest.er1
>conftest.err
3482 cat conftest.err
>&5
3483 echo "$as_me:3483: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev
/null
; then
3485 if test -s conftest.err
; then
3486 ac_cpp_err
=$ac_c_preproc_warn_flag
3493 if test -z "$ac_cpp_err"; then
3494 ac_cv_header_stdc
=yes
3496 echo "$as_me: failed program was:" >&5
3497 cat conftest.
$ac_ext >&5
3498 ac_cv_header_stdc
=no
3500 rm -f conftest.err conftest.
$ac_ext
3502 if test $ac_cv_header_stdc = yes; then
3503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3504 cat >conftest.
$ac_ext <<_ACEOF
3505 #line 3505 "configure"
3506 #include "confdefs.h"
3510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3511 egrep "memchr" >/dev
/null
2>&1; then
3514 ac_cv_header_stdc
=no
3520 if test $ac_cv_header_stdc = yes; then
3521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3522 cat >conftest.
$ac_ext <<_ACEOF
3523 #line 3523 "configure"
3524 #include "confdefs.h"
3528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3529 egrep "free" >/dev
/null
2>&1; then
3532 ac_cv_header_stdc
=no
3538 if test $ac_cv_header_stdc = yes; then
3539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3540 if test "$cross_compiling" = yes; then
3543 cat >conftest.
$ac_ext <<_ACEOF
3544 #line 3544 "configure"
3545 #include "confdefs.h"
3547 #if ((' ' & 0x0FF) == 0x020)
3548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3551 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3552 || ('j' <= (c) && (c) <= 'r') \
3553 || ('s' <= (c) && (c) <= 'z'))
3554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3562 for (i = 0; i < 256; i++)
3563 if (XOR (islower (i), ISLOWER (i))
3564 || toupper (i) != TOUPPER (i))
3569 rm -f conftest
$ac_exeext
3570 if { (eval echo "$as_me:3570: \"$ac_link\"") >&5
3571 (eval $ac_link) 2>&5
3573 echo "$as_me:3573: \$? = $ac_status" >&5
3574 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3575 { (eval echo "$as_me:3575: \"$ac_try\"") >&5
3578 echo "$as_me:3578: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3582 echo "$as_me: program exited with status $ac_status" >&5
3583 echo "$as_me: failed program was:" >&5
3584 cat conftest.
$ac_ext >&5
3585 ac_cv_header_stdc
=no
3587 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3591 echo "$as_me:3591: result: $ac_cv_header_stdc" >&5
3592 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3593 if test $ac_cv_header_stdc = yes; then
3595 cat >>confdefs.h
<<\EOF
3596 #define STDC_HEADERS 1
3601 for ac_header
in string.h
3603 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3604 echo "$as_me:3604: checking for $ac_header" >&5
3605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 cat >conftest.
$ac_ext <<_ACEOF
3610 #line 3610 "configure"
3611 #include "confdefs.h"
3612 #include <$ac_header>
3614 if { (eval echo "$as_me:3614: \"$ac_cpp conftest.$ac_ext\"") >&5
3615 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3617 egrep -v '^ *\+' conftest.er1
>conftest.err
3619 cat conftest.err
>&5
3620 echo "$as_me:3620: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev
/null
; then
3622 if test -s conftest.err
; then
3623 ac_cpp_err
=$ac_c_preproc_warn_flag
3630 if test -z "$ac_cpp_err"; then
3631 eval "$as_ac_Header=yes"
3633 echo "$as_me: failed program was:" >&5
3634 cat conftest.
$ac_ext >&5
3635 eval "$as_ac_Header=no"
3637 rm -f conftest.err conftest.
$ac_ext
3639 echo "$as_me:3639: result: `eval echo '${'$as_ac_Header'}'`" >&5
3640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3642 cat >>confdefs.h
<<EOF
3643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3651 # Checks for library functions.
3652 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3653 # for constant arguments. Useless!
3654 echo "$as_me:3654: checking for working alloca.h" >&5
3655 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3656 if test "${ac_cv_working_alloca_h+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 cat >conftest.
$ac_ext <<_ACEOF
3660 #line 3660 "configure"
3661 #include "confdefs.h"
3666 char *p = (char *) alloca (2 * sizeof (int));
3671 rm -f conftest.
$ac_objext conftest
$ac_exeext
3672 if { (eval echo "$as_me:3672: \"$ac_link\"") >&5
3673 (eval $ac_link) 2>&5
3675 echo "$as_me:3675: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try
='test -s conftest$ac_exeext'
3678 { (eval echo "$as_me:3678: \"$ac_try\"") >&5
3681 echo "$as_me:3681: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_working_alloca_h
=yes
3685 echo "$as_me: failed program was:" >&5
3686 cat conftest.
$ac_ext >&5
3687 ac_cv_working_alloca_h
=no
3689 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3691 echo "$as_me:3691: result: $ac_cv_working_alloca_h" >&5
3692 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3693 if test $ac_cv_working_alloca_h = yes; then
3695 cat >>confdefs.h
<<\EOF
3696 #define HAVE_ALLOCA_H 1
3701 echo "$as_me:3701: checking for alloca" >&5
3702 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3703 if test "${ac_cv_func_alloca_works+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 cat >conftest.
$ac_ext <<_ACEOF
3707 #line 3707 "configure"
3708 #include "confdefs.h"
3710 # define alloca __builtin_alloca
3713 # include <malloc.h>
3714 # define alloca _alloca
3717 # include <alloca.h>
3722 # ifndef alloca /* predefined by HP cc +Olibcalls */
3733 char *p = (char *) alloca (1);
3738 rm -f conftest.
$ac_objext conftest
$ac_exeext
3739 if { (eval echo "$as_me:3739: \"$ac_link\"") >&5
3740 (eval $ac_link) 2>&5
3742 echo "$as_me:3742: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try
='test -s conftest$ac_exeext'
3745 { (eval echo "$as_me:3745: \"$ac_try\"") >&5
3748 echo "$as_me:3748: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 ac_cv_func_alloca_works
=yes
3752 echo "$as_me: failed program was:" >&5
3753 cat conftest.
$ac_ext >&5
3754 ac_cv_func_alloca_works
=no
3756 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3758 echo "$as_me:3758: result: $ac_cv_func_alloca_works" >&5
3759 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3761 if test $ac_cv_func_alloca_works = yes; then
3763 cat >>confdefs.h
<<\EOF
3764 #define HAVE_ALLOCA 1
3768 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3769 # that cause trouble. Some versions do not even contain alloca or
3770 # contain a buggy version. If you still want to use their alloca,
3771 # use ar to extract alloca.o from them instead of compiling alloca.c.
3773 ALLOCA
=alloca.
$ac_objext
3775 cat >>confdefs.h
<<\EOF
3779 echo "$as_me:3779: checking whether \`alloca.c' needs Cray hooks" >&5
3780 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3781 if test "${ac_cv_os_cray+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 cat >conftest.
$ac_ext <<_ACEOF
3785 #line 3785 "configure"
3786 #include "confdefs.h"
3787 #if defined(CRAY) && ! defined(CRAY2)
3794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795 egrep "webecray" >/dev
/null
2>&1; then
3803 echo "$as_me:3803: result: $ac_cv_os_cray" >&5
3804 echo "${ECHO_T}$ac_cv_os_cray" >&6
3805 if test $ac_cv_os_cray = yes; then
3806 for ac_func
in _getb67 GETB67 getb67
; do
3807 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3808 echo "$as_me:3808: checking for $ac_func" >&5
3809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3810 if eval "test \"\${$as_ac_var+set}\" = set"; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 cat >conftest.
$ac_ext <<_ACEOF
3814 #line 3814 "configure"
3815 #include "confdefs.h"
3816 /* System header to define __stub macros and hopefully few prototypes,
3817 which can conflict with char $ac_func (); below. */
3819 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3831 /* The GNU C library defines this for functions which it implements
3832 to always fail with ENOSYS. Some functions are actually named
3833 something starting with __ and the normal name is an alias. */
3834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3844 rm -f conftest.
$ac_objext conftest
$ac_exeext
3845 if { (eval echo "$as_me:3845: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>&5
3848 echo "$as_me:3848: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try
='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:3851: \"$ac_try\"") >&5
3854 echo "$as_me:3854: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 eval "$as_ac_var=yes"
3858 echo "$as_me: failed program was:" >&5
3859 cat conftest.
$ac_ext >&5
3860 eval "$as_ac_var=no"
3862 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3864 echo "$as_me:3864: result: `eval echo '${'$as_ac_var'}'`" >&5
3865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3866 if test `eval echo '${'$as_ac_var'}'` = yes; then
3868 cat >>confdefs.h
<<EOF
3869 #define CRAY_STACKSEG_END $ac_func
3878 echo "$as_me:3878: checking stack direction for C alloca" >&5
3879 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3880 if test "${ac_cv_c_stack_direction+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 if test "$cross_compiling" = yes; then
3884 ac_cv_c_stack_direction
=0
3886 cat >conftest.
$ac_ext <<_ACEOF
3887 #line 3887 "configure"
3888 #include "confdefs.h"
3890 find_stack_direction ()
3892 static char *addr = 0;
3897 return find_stack_direction ();
3900 return (&dummy > addr) ? 1 : -1;
3906 exit (find_stack_direction () < 0);
3909 rm -f conftest
$ac_exeext
3910 if { (eval echo "$as_me:3910: \"$ac_link\"") >&5
3911 (eval $ac_link) 2>&5
3913 echo "$as_me:3913: \$? = $ac_status" >&5
3914 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3915 { (eval echo "$as_me:3915: \"$ac_try\"") >&5
3918 echo "$as_me:3918: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3920 ac_cv_c_stack_direction
=1
3922 echo "$as_me: program exited with status $ac_status" >&5
3923 echo "$as_me: failed program was:" >&5
3924 cat conftest.
$ac_ext >&5
3925 ac_cv_c_stack_direction
=-1
3927 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3930 echo "$as_me:3930: result: $ac_cv_c_stack_direction" >&5
3931 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3933 cat >>confdefs.h
<<EOF
3934 #define STACK_DIRECTION $ac_cv_c_stack_direction
3939 for ac_func
in mkstemp setlocale
3941 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3942 echo "$as_me:3942: checking for $ac_func" >&5
3943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3944 if eval "test \"\${$as_ac_var+set}\" = set"; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 cat >conftest.
$ac_ext <<_ACEOF
3948 #line 3948 "configure"
3949 #include "confdefs.h"
3950 /* System header to define __stub macros and hopefully few prototypes,
3951 which can conflict with char $ac_func (); below. */
3953 /* Override any gcc2 internal prototype to avoid an error. */
3957 /* We use char because int might match the return type of a gcc2
3958 builtin and then its argument prototype would still apply. */
3965 /* The GNU C library defines this for functions which it implements
3966 to always fail with ENOSYS. Some functions are actually named
3967 something starting with __ and the normal name is an alias. */
3968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3978 rm -f conftest.
$ac_objext conftest
$ac_exeext
3979 if { (eval echo "$as_me:3979: \"$ac_link\"") >&5
3980 (eval $ac_link) 2>&5
3982 echo "$as_me:3982: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try
='test -s conftest$ac_exeext'
3985 { (eval echo "$as_me:3985: \"$ac_try\"") >&5
3988 echo "$as_me:3988: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 eval "$as_ac_var=yes"
3992 echo "$as_me: failed program was:" >&5
3993 cat conftest.
$ac_ext >&5
3994 eval "$as_ac_var=no"
3996 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3998 echo "$as_me:3998: result: `eval echo '${'$as_ac_var'}'`" >&5
3999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4000 if test `eval echo '${'$as_ac_var'}'` = yes; then
4001 cat >>confdefs.h
<<EOF
4002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4008 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4011 inttypes.h stdint.h unistd.h
4013 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014 echo "$as_me:4014: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cat >conftest.
$ac_ext <<_ACEOF
4020 #line 4020 "configure"
4021 #include "confdefs.h"
4022 $ac_includes_default
4023 #include <$ac_header>
4025 rm -f conftest.
$ac_objext
4026 if { (eval echo "$as_me:4026: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>&5
4029 echo "$as_me:4029: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try
='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:4032: \"$ac_try\"") >&5
4035 echo "$as_me:4035: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 eval "$as_ac_Header=yes"
4039 echo "$as_me: failed program was:" >&5
4040 cat conftest.
$ac_ext >&5
4041 eval "$as_ac_Header=no"
4043 rm -f conftest.
$ac_objext conftest.
$ac_ext
4045 echo "$as_me:4045: result: `eval echo '${'$as_ac_Header'}'`" >&5
4046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4048 cat >>confdefs.h
<<EOF
4049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055 echo "$as_me:4055: checking whether stpcpy is declared" >&5
4056 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4057 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 cat >conftest.
$ac_ext <<_ACEOF
4061 #line 4061 "configure"
4062 #include "confdefs.h"
4063 $ac_includes_default
4068 char *p = (char *) stpcpy;
4075 rm -f conftest.
$ac_objext
4076 if { (eval echo "$as_me:4076: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>&5
4079 echo "$as_me:4079: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try
='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:4082: \"$ac_try\"") >&5
4085 echo "$as_me:4085: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_have_decl_stpcpy
=yes
4089 echo "$as_me: failed program was:" >&5
4090 cat conftest.
$ac_ext >&5
4091 ac_cv_have_decl_stpcpy
=no
4093 rm -f conftest.
$ac_objext conftest.
$ac_ext
4095 echo "$as_me:4095: result: $ac_cv_have_decl_stpcpy" >&5
4096 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4097 if test $ac_cv_have_decl_stpcpy = yes; then
4099 cat >>confdefs.h
<<EOF
4100 #define HAVE_DECL_STPCPY 1
4104 cat >>confdefs.h
<<EOF
4105 #define HAVE_DECL_STPCPY 0
4109 echo "$as_me:4109: checking whether strndup is declared" >&5
4110 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4111 if test "${ac_cv_have_decl_strndup+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 cat >conftest.
$ac_ext <<_ACEOF
4115 #line 4115 "configure"
4116 #include "confdefs.h"
4117 $ac_includes_default
4122 char *p = (char *) strndup;
4129 rm -f conftest.
$ac_objext
4130 if { (eval echo "$as_me:4130: \"$ac_compile\"") >&5
4131 (eval $ac_compile) 2>&5
4133 echo "$as_me:4133: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try
='test -s conftest.$ac_objext'
4136 { (eval echo "$as_me:4136: \"$ac_try\"") >&5
4139 echo "$as_me:4139: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
4141 ac_cv_have_decl_strndup
=yes
4143 echo "$as_me: failed program was:" >&5
4144 cat conftest.
$ac_ext >&5
4145 ac_cv_have_decl_strndup
=no
4147 rm -f conftest.
$ac_objext conftest.
$ac_ext
4149 echo "$as_me:4149: result: $ac_cv_have_decl_strndup" >&5
4150 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4151 if test $ac_cv_have_decl_strndup = yes; then
4153 cat >>confdefs.h
<<EOF
4154 #define HAVE_DECL_STRNDUP 1
4158 cat >>confdefs.h
<<EOF
4159 #define HAVE_DECL_STRNDUP 0
4163 echo "$as_me:4163: checking whether strnlen is declared" >&5
4164 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4165 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 cat >conftest.
$ac_ext <<_ACEOF
4169 #line 4169 "configure"
4170 #include "confdefs.h"
4171 $ac_includes_default
4176 char *p = (char *) strnlen;
4183 rm -f conftest.
$ac_objext
4184 if { (eval echo "$as_me:4184: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>&5
4187 echo "$as_me:4187: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try
='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:4190: \"$ac_try\"") >&5
4193 echo "$as_me:4193: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_have_decl_strnlen
=yes
4197 echo "$as_me: failed program was:" >&5
4198 cat conftest.
$ac_ext >&5
4199 ac_cv_have_decl_strnlen
=no
4201 rm -f conftest.
$ac_objext conftest.
$ac_ext
4203 echo "$as_me:4203: result: $ac_cv_have_decl_strnlen" >&5
4204 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4205 if test $ac_cv_have_decl_strnlen = yes; then
4207 cat >>confdefs.h
<<EOF
4208 #define HAVE_DECL_STRNLEN 1
4212 cat >>confdefs.h
<<EOF
4213 #define HAVE_DECL_STRNLEN 0
4217 echo "$as_me:4217: checking whether memchr is declared" >&5
4218 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4219 if test "${ac_cv_have_decl_memchr+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 cat >conftest.
$ac_ext <<_ACEOF
4223 #line 4223 "configure"
4224 #include "confdefs.h"
4225 $ac_includes_default
4230 char *p = (char *) memchr;
4237 rm -f conftest.
$ac_objext
4238 if { (eval echo "$as_me:4238: \"$ac_compile\"") >&5
4239 (eval $ac_compile) 2>&5
4241 echo "$as_me:4241: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try
='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:4244: \"$ac_try\"") >&5
4247 echo "$as_me:4247: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 ac_cv_have_decl_memchr
=yes
4251 echo "$as_me: failed program was:" >&5
4252 cat conftest.
$ac_ext >&5
4253 ac_cv_have_decl_memchr
=no
4255 rm -f conftest.
$ac_objext conftest.
$ac_ext
4257 echo "$as_me:4257: result: $ac_cv_have_decl_memchr" >&5
4258 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
4259 if test $ac_cv_have_decl_memchr = yes; then
4261 cat >>confdefs.h
<<EOF
4262 #define HAVE_DECL_MEMCHR 1
4266 cat >>confdefs.h
<<EOF
4267 #define HAVE_DECL_MEMCHR 0
4272 for ac_func
in stpcpy strndup strnlen strspn memchr
4274 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4275 echo "$as_me:4275: checking for $ac_func" >&5
4276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4277 if eval "test \"\${$as_ac_var+set}\" = set"; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 cat >conftest.
$ac_ext <<_ACEOF
4281 #line 4281 "configure"
4282 #include "confdefs.h"
4283 /* System header to define __stub macros and hopefully few prototypes,
4284 which can conflict with char $ac_func (); below. */
4286 /* Override any gcc2 internal prototype to avoid an error. */
4290 /* We use char because int might match the return type of a gcc2
4291 builtin and then its argument prototype would still apply. */
4298 /* The GNU C library defines this for functions which it implements
4299 to always fail with ENOSYS. Some functions are actually named
4300 something starting with __ and the normal name is an alias. */
4301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4311 rm -f conftest.
$ac_objext conftest
$ac_exeext
4312 if { (eval echo "$as_me:4312: \"$ac_link\"") >&5
4313 (eval $ac_link) 2>&5
4315 echo "$as_me:4315: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try
='test -s conftest$ac_exeext'
4318 { (eval echo "$as_me:4318: \"$ac_try\"") >&5
4321 echo "$as_me:4321: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 eval "$as_ac_var=yes"
4325 echo "$as_me: failed program was:" >&5
4326 cat conftest.
$ac_ext >&5
4327 eval "$as_ac_var=no"
4329 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4331 echo "$as_me:4331: result: `eval echo '${'$as_ac_var'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4333 if test `eval echo '${'$as_ac_var'}'` = yes; then
4334 cat >>confdefs.h
<<EOF
4335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4339 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
4343 cat >>confdefs.h
<<EOF
4344 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
4347 echo "$as_me:4347: checking for working malloc" >&5
4348 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
4349 if test "${jm_cv_func_working_malloc+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 if test "$cross_compiling" = yes; then
4353 jm_cv_func_working_malloc
=no
4355 cat >conftest.
$ac_ext <<_ACEOF
4356 #line 4356 "configure"
4357 #include "confdefs.h"
4363 exit (malloc (0) ? 0 : 1);
4367 rm -f conftest
$ac_exeext
4368 if { (eval echo "$as_me:4368: \"$ac_link\"") >&5
4369 (eval $ac_link) 2>&5
4371 echo "$as_me:4371: \$? = $ac_status" >&5
4372 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4373 { (eval echo "$as_me:4373: \"$ac_try\"") >&5
4376 echo "$as_me:4376: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 jm_cv_func_working_malloc
=yes
4380 echo "$as_me: program exited with status $ac_status" >&5
4381 echo "$as_me: failed program was:" >&5
4382 cat conftest.
$ac_ext >&5
4383 jm_cv_func_working_malloc
=no
4385 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4389 echo "$as_me:4389: result: $jm_cv_func_working_malloc" >&5
4390 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
4391 if test $jm_cv_func_working_malloc = no
; then
4393 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
4395 cat >>confdefs.h
<<EOF
4396 #define malloc rpl_malloc
4401 cat >>confdefs.h
<<EOF
4402 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
4405 echo "$as_me:4405: checking for working realloc" >&5
4406 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
4407 if test "${jm_cv_func_working_realloc+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 if test "$cross_compiling" = yes; then
4411 jm_cv_func_working_realloc
=no
4413 cat >conftest.
$ac_ext <<_ACEOF
4414 #line 4414 "configure"
4415 #include "confdefs.h"
4421 exit (realloc (0, 0) ? 0 : 1);
4425 rm -f conftest
$ac_exeext
4426 if { (eval echo "$as_me:4426: \"$ac_link\"") >&5
4427 (eval $ac_link) 2>&5
4429 echo "$as_me:4429: \$? = $ac_status" >&5
4430 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4431 { (eval echo "$as_me:4431: \"$ac_try\"") >&5
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 jm_cv_func_working_realloc
=yes
4438 echo "$as_me: program exited with status $ac_status" >&5
4439 echo "$as_me: failed program was:" >&5
4440 cat conftest.
$ac_ext >&5
4441 jm_cv_func_working_realloc
=no
4443 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4447 echo "$as_me:4447: result: $jm_cv_func_working_realloc" >&5
4448 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
4449 if test $jm_cv_func_working_realloc = no
; then
4451 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
4453 cat >>confdefs.h
<<EOF
4454 #define realloc rpl_realloc
4459 for ac_func
in isascii iswprint mbrtowc
4461 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4462 echo "$as_me:4462: checking for $ac_func" >&5
4463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4464 if eval "test \"\${$as_ac_var+set}\" = set"; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 cat >conftest.
$ac_ext <<_ACEOF
4468 #line 4468 "configure"
4469 #include "confdefs.h"
4470 /* System header to define __stub macros and hopefully few prototypes,
4471 which can conflict with char $ac_func (); below. */
4473 /* Override any gcc2 internal prototype to avoid an error. */
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4485 /* The GNU C library defines this for functions which it implements
4486 to always fail with ENOSYS. Some functions are actually named
4487 something starting with __ and the normal name is an alias. */
4488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4498 rm -f conftest.
$ac_objext conftest
$ac_exeext
4499 if { (eval echo "$as_me:4499: \"$ac_link\"") >&5
4500 (eval $ac_link) 2>&5
4502 echo "$as_me:4502: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try
='test -s conftest$ac_exeext'
4505 { (eval echo "$as_me:4505: \"$ac_try\"") >&5
4508 echo "$as_me:4508: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 eval "$as_ac_var=yes"
4512 echo "$as_me: failed program was:" >&5
4513 cat conftest.
$ac_ext >&5
4514 eval "$as_ac_var=no"
4516 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4518 echo "$as_me:4518: result: `eval echo '${'$as_ac_var'}'`" >&5
4519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4520 if test `eval echo '${'$as_ac_var'}'` = yes; then
4521 cat >>confdefs.h
<<EOF
4522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4528 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
4530 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4531 echo "$as_me:4531: checking for $ac_header" >&5
4532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 cat >conftest.
$ac_ext <<_ACEOF
4537 #line 4537 "configure"
4538 #include "confdefs.h"
4539 #include <$ac_header>
4541 if { (eval echo "$as_me:4541: \"$ac_cpp conftest.$ac_ext\"") >&5
4542 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4544 egrep -v '^ *\+' conftest.er1
>conftest.err
4546 cat conftest.err
>&5
4547 echo "$as_me:4547: \$? = $ac_status" >&5
4548 (exit $ac_status); } >/dev
/null
; then
4549 if test -s conftest.err
; then
4550 ac_cpp_err
=$ac_c_preproc_warn_flag
4557 if test -z "$ac_cpp_err"; then
4558 eval "$as_ac_Header=yes"
4560 echo "$as_me: failed program was:" >&5
4561 cat conftest.
$ac_ext >&5
4562 eval "$as_ac_Header=no"
4564 rm -f conftest.err conftest.
$ac_ext
4566 echo "$as_me:4566: result: `eval echo '${'$as_ac_Header'}'`" >&5
4567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569 cat >>confdefs.h
<<EOF
4570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4576 echo "$as_me:4576: checking for ANSI C header files" >&5
4577 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4578 if test "${ac_cv_header_stdc+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 cat >conftest.
$ac_ext <<_ACEOF
4582 #line 4582 "configure"
4583 #include "confdefs.h"
4590 if { (eval echo "$as_me:4590: \"$ac_cpp conftest.$ac_ext\"") >&5
4591 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4593 egrep -v '^ *\+' conftest.er1
>conftest.err
4595 cat conftest.err
>&5
4596 echo "$as_me:4596: \$? = $ac_status" >&5
4597 (exit $ac_status); } >/dev
/null
; then
4598 if test -s conftest.err
; then
4599 ac_cpp_err
=$ac_c_preproc_warn_flag
4606 if test -z "$ac_cpp_err"; then
4607 ac_cv_header_stdc
=yes
4609 echo "$as_me: failed program was:" >&5
4610 cat conftest.
$ac_ext >&5
4611 ac_cv_header_stdc
=no
4613 rm -f conftest.err conftest.
$ac_ext
4615 if test $ac_cv_header_stdc = yes; then
4616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4617 cat >conftest.
$ac_ext <<_ACEOF
4618 #line 4618 "configure"
4619 #include "confdefs.h"
4623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 egrep "memchr" >/dev
/null
2>&1; then
4627 ac_cv_header_stdc
=no
4633 if test $ac_cv_header_stdc = yes; then
4634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4635 cat >conftest.
$ac_ext <<_ACEOF
4636 #line 4636 "configure"
4637 #include "confdefs.h"
4641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4642 egrep "free" >/dev
/null
2>&1; then
4645 ac_cv_header_stdc
=no
4651 if test $ac_cv_header_stdc = yes; then
4652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4653 if test "$cross_compiling" = yes; then
4656 cat >conftest.
$ac_ext <<_ACEOF
4657 #line 4657 "configure"
4658 #include "confdefs.h"
4660 #if ((' ' & 0x0FF) == 0x020)
4661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4664 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4665 || ('j' <= (c) && (c) <= 'r') \
4666 || ('s' <= (c) && (c) <= 'z'))
4667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4675 for (i = 0; i < 256; i++)
4676 if (XOR (islower (i), ISLOWER (i))
4677 || toupper (i) != TOUPPER (i))
4682 rm -f conftest
$ac_exeext
4683 if { (eval echo "$as_me:4683: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>&5
4686 echo "$as_me:4686: \$? = $ac_status" >&5
4687 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4688 { (eval echo "$as_me:4688: \"$ac_try\"") >&5
4691 echo "$as_me:4691: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4695 echo "$as_me: program exited with status $ac_status" >&5
4696 echo "$as_me: failed program was:" >&5
4697 cat conftest.
$ac_ext >&5
4698 ac_cv_header_stdc
=no
4700 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4704 echo "$as_me:4704: result: $ac_cv_header_stdc" >&5
4705 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4706 if test $ac_cv_header_stdc = yes; then
4708 cat >>confdefs.h
<<\EOF
4709 #define STDC_HEADERS 1
4714 echo "$as_me:4714: checking whether backslash-a works in strings" >&5
4715 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
4716 if test "${ac_cv_c_backslash_a+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 cat >conftest.
$ac_ext <<_ACEOF
4720 #line 4720 "configure"
4721 #include "confdefs.h"
4730 char buf['\a' == 'a' ? -1 : 1];
4732 return buf[0] != "\a"[0];
4738 rm -f conftest.
$ac_objext
4739 if { (eval echo "$as_me:4739: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>&5
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try
='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:4745: \"$ac_try\"") >&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 ac_cv_c_backslash_a
=yes
4752 echo "$as_me: failed program was:" >&5
4753 cat conftest.
$ac_ext >&5
4754 ac_cv_c_backslash_a
=no
4756 rm -f conftest.
$ac_objext conftest.
$ac_ext
4758 echo "$as_me:4758: result: $ac_cv_c_backslash_a" >&5
4759 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
4760 if test $ac_cv_c_backslash_a = yes; then
4762 cat >>confdefs.h
<<\EOF
4763 #define HAVE_C_BACKSLASH_A 1
4768 for ac_header
in stdlib.h
4770 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4771 echo "$as_me:4771: checking for $ac_header" >&5
4772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 cat >conftest.
$ac_ext <<_ACEOF
4777 #line 4777 "configure"
4778 #include "confdefs.h"
4779 #include <$ac_header>
4781 if { (eval echo "$as_me:4781: \"$ac_cpp conftest.$ac_ext\"") >&5
4782 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4784 egrep -v '^ *\+' conftest.er1
>conftest.err
4786 cat conftest.err
>&5
4787 echo "$as_me:4787: \$? = $ac_status" >&5
4788 (exit $ac_status); } >/dev
/null
; then
4789 if test -s conftest.err
; then
4790 ac_cpp_err
=$ac_c_preproc_warn_flag
4797 if test -z "$ac_cpp_err"; then
4798 eval "$as_ac_Header=yes"
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.
$ac_ext >&5
4802 eval "$as_ac_Header=no"
4804 rm -f conftest.err conftest.
$ac_ext
4806 echo "$as_me:4806: result: `eval echo '${'$as_ac_Header'}'`" >&5
4807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4809 cat >>confdefs.h
<<EOF
4810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4816 echo "$as_me:4816: checking for mbstate_t" >&5
4817 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
4818 if test "${ac_cv_type_mbstate_t+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 cat >conftest.
$ac_ext <<_ACEOF
4822 #line 4822 "configure"
4823 #include "confdefs.h"
4826 # include <stdlib.h>
4832 mbstate_t x; return sizeof x;
4837 rm -f conftest.
$ac_objext
4838 if { (eval echo "$as_me:4838: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>&5
4841 echo "$as_me:4841: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try
='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:4844: \"$ac_try\"") >&5
4847 echo "$as_me:4847: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_type_mbstate_t
=yes
4851 echo "$as_me: failed program was:" >&5
4852 cat conftest.
$ac_ext >&5
4853 ac_cv_type_mbstate_t
=no
4855 rm -f conftest.
$ac_objext conftest.
$ac_ext
4857 echo "$as_me:4857: result: $ac_cv_type_mbstate_t" >&5
4858 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
4859 if test $ac_cv_type_mbstate_t = no
; then
4861 cat >>confdefs.h
<<\EOF
4862 #define mbstate_t int
4867 echo "$as_me:4867: checking for function prototypes" >&5
4868 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4869 if test "$am_cv_prog_cc_stdc" != no
; then
4870 echo "$as_me:4870: result: yes" >&5
4871 echo "${ECHO_T}yes" >&6
4873 cat >>confdefs.h
<<\EOF
4874 #define PROTOTYPES 1
4879 echo "$as_me:4879: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4881 U
=_ ANSI2KNR
=.
/ansi2knr
4882 # Ensure some checks needed by ansi2knr itself.
4883 echo "$as_me:4883: checking for ANSI C header files" >&5
4884 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4885 if test "${ac_cv_header_stdc+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 cat >conftest.
$ac_ext <<_ACEOF
4889 #line 4889 "configure"
4890 #include "confdefs.h"
4897 if { (eval echo "$as_me:4897: \"$ac_cpp conftest.$ac_ext\"") >&5
4898 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4900 egrep -v '^ *\+' conftest.er1
>conftest.err
4902 cat conftest.err
>&5
4903 echo "$as_me:4903: \$? = $ac_status" >&5
4904 (exit $ac_status); } >/dev
/null
; then
4905 if test -s conftest.err
; then
4906 ac_cpp_err
=$ac_c_preproc_warn_flag
4913 if test -z "$ac_cpp_err"; then
4914 ac_cv_header_stdc
=yes
4916 echo "$as_me: failed program was:" >&5
4917 cat conftest.
$ac_ext >&5
4918 ac_cv_header_stdc
=no
4920 rm -f conftest.err conftest.
$ac_ext
4922 if test $ac_cv_header_stdc = yes; then
4923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4924 cat >conftest.
$ac_ext <<_ACEOF
4925 #line 4925 "configure"
4926 #include "confdefs.h"
4930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931 egrep "memchr" >/dev
/null
2>&1; then
4934 ac_cv_header_stdc
=no
4940 if test $ac_cv_header_stdc = yes; then
4941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4942 cat >conftest.
$ac_ext <<_ACEOF
4943 #line 4943 "configure"
4944 #include "confdefs.h"
4948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949 egrep "free" >/dev
/null
2>&1; then
4952 ac_cv_header_stdc
=no
4958 if test $ac_cv_header_stdc = yes; then
4959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4960 if test "$cross_compiling" = yes; then
4963 cat >conftest.
$ac_ext <<_ACEOF
4964 #line 4964 "configure"
4965 #include "confdefs.h"
4967 #if ((' ' & 0x0FF) == 0x020)
4968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4971 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4972 || ('j' <= (c) && (c) <= 'r') \
4973 || ('s' <= (c) && (c) <= 'z'))
4974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4982 for (i = 0; i < 256; i++)
4983 if (XOR (islower (i), ISLOWER (i))
4984 || toupper (i) != TOUPPER (i))
4989 rm -f conftest
$ac_exeext
4990 if { (eval echo "$as_me:4990: \"$ac_link\"") >&5
4991 (eval $ac_link) 2>&5
4993 echo "$as_me:4993: \$? = $ac_status" >&5
4994 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4995 { (eval echo "$as_me:4995: \"$ac_try\"") >&5
4998 echo "$as_me:4998: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5002 echo "$as_me: program exited with status $ac_status" >&5
5003 echo "$as_me: failed program was:" >&5
5004 cat conftest.
$ac_ext >&5
5005 ac_cv_header_stdc
=no
5007 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5011 echo "$as_me:5011: result: $ac_cv_header_stdc" >&5
5012 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5013 if test $ac_cv_header_stdc = yes; then
5015 cat >>confdefs.h
<<\EOF
5016 #define STDC_HEADERS 1
5021 for ac_header
in string.h
5023 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5024 echo "$as_me:5024: checking for $ac_header" >&5
5025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 cat >conftest.
$ac_ext <<_ACEOF
5030 #line 5030 "configure"
5031 #include "confdefs.h"
5032 #include <$ac_header>
5034 if { (eval echo "$as_me:5034: \"$ac_cpp conftest.$ac_ext\"") >&5
5035 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5037 egrep -v '^ *\+' conftest.er1
>conftest.err
5039 cat conftest.err
>&5
5040 echo "$as_me:5040: \$? = $ac_status" >&5
5041 (exit $ac_status); } >/dev
/null
; then
5042 if test -s conftest.err
; then
5043 ac_cpp_err
=$ac_c_preproc_warn_flag
5050 if test -z "$ac_cpp_err"; then
5051 eval "$as_ac_Header=yes"
5053 echo "$as_me: failed program was:" >&5
5054 cat conftest.
$ac_ext >&5
5055 eval "$as_ac_Header=no"
5057 rm -f conftest.err conftest.
$ac_ext
5059 echo "$as_me:5059: result: `eval echo '${'$as_ac_Header'}'`" >&5
5060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5062 cat >>confdefs.h
<<EOF
5063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5071 for ac_func
in strerror strerror_r vprintf doprnt
5073 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5074 echo "$as_me:5074: checking for $ac_func" >&5
5075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5076 if eval "test \"\${$as_ac_var+set}\" = set"; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 cat >conftest.
$ac_ext <<_ACEOF
5080 #line 5080 "configure"
5081 #include "confdefs.h"
5082 /* System header to define __stub macros and hopefully few prototypes,
5083 which can conflict with char $ac_func (); below. */
5085 /* Override any gcc2 internal prototype to avoid an error. */
5089 /* We use char because int might match the return type of a gcc2
5090 builtin and then its argument prototype would still apply. */
5097 /* The GNU C library defines this for functions which it implements
5098 to always fail with ENOSYS. Some functions are actually named
5099 something starting with __ and the normal name is an alias. */
5100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5110 rm -f conftest.
$ac_objext conftest
$ac_exeext
5111 if { (eval echo "$as_me:5111: \"$ac_link\"") >&5
5112 (eval $ac_link) 2>&5
5114 echo "$as_me:5114: \$? = $ac_status" >&5
5115 (exit $ac_status); } &&
5116 { ac_try
='test -s conftest$ac_exeext'
5117 { (eval echo "$as_me:5117: \"$ac_try\"") >&5
5120 echo "$as_me:5120: \$? = $ac_status" >&5
5121 (exit $ac_status); }; }; then
5122 eval "$as_ac_var=yes"
5124 echo "$as_me: failed program was:" >&5
5125 cat conftest.
$ac_ext >&5
5126 eval "$as_ac_var=no"
5128 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5130 echo "$as_me:5130: result: `eval echo '${'$as_ac_var'}'`" >&5
5131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5132 if test `eval echo '${'$as_ac_var'}'` = yes; then
5133 cat >>confdefs.h
<<EOF
5134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5140 echo "$as_me:5140: checking for ANSI C header files" >&5
5141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5142 if test "${ac_cv_header_stdc+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 cat >conftest.
$ac_ext <<_ACEOF
5146 #line 5146 "configure"
5147 #include "confdefs.h"
5154 if { (eval echo "$as_me:5154: \"$ac_cpp conftest.$ac_ext\"") >&5
5155 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5157 egrep -v '^ *\+' conftest.er1
>conftest.err
5159 cat conftest.err
>&5
5160 echo "$as_me:5160: \$? = $ac_status" >&5
5161 (exit $ac_status); } >/dev
/null
; then
5162 if test -s conftest.err
; then
5163 ac_cpp_err
=$ac_c_preproc_warn_flag
5170 if test -z "$ac_cpp_err"; then
5171 ac_cv_header_stdc
=yes
5173 echo "$as_me: failed program was:" >&5
5174 cat conftest.
$ac_ext >&5
5175 ac_cv_header_stdc
=no
5177 rm -f conftest.err conftest.
$ac_ext
5179 if test $ac_cv_header_stdc = yes; then
5180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5181 cat >conftest.
$ac_ext <<_ACEOF
5182 #line 5182 "configure"
5183 #include "confdefs.h"
5187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5188 egrep "memchr" >/dev
/null
2>&1; then
5191 ac_cv_header_stdc
=no
5197 if test $ac_cv_header_stdc = yes; then
5198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5199 cat >conftest.
$ac_ext <<_ACEOF
5200 #line 5200 "configure"
5201 #include "confdefs.h"
5205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5206 egrep "free" >/dev
/null
2>&1; then
5209 ac_cv_header_stdc
=no
5215 if test $ac_cv_header_stdc = yes; then
5216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5217 if test "$cross_compiling" = yes; then
5220 cat >conftest.
$ac_ext <<_ACEOF
5221 #line 5221 "configure"
5222 #include "confdefs.h"
5224 #if ((' ' & 0x0FF) == 0x020)
5225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5228 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5229 || ('j' <= (c) && (c) <= 'r') \
5230 || ('s' <= (c) && (c) <= 'z'))
5231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5239 for (i = 0; i < 256; i++)
5240 if (XOR (islower (i), ISLOWER (i))
5241 || toupper (i) != TOUPPER (i))
5246 rm -f conftest
$ac_exeext
5247 if { (eval echo "$as_me:5247: \"$ac_link\"") >&5
5248 (eval $ac_link) 2>&5
5250 echo "$as_me:5250: \$? = $ac_status" >&5
5251 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5252 { (eval echo "$as_me:5252: \"$ac_try\"") >&5
5255 echo "$as_me:5255: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5259 echo "$as_me: program exited with status $ac_status" >&5
5260 echo "$as_me: failed program was:" >&5
5261 cat conftest.
$ac_ext >&5
5262 ac_cv_header_stdc
=no
5264 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5268 echo "$as_me:5268: result: $ac_cv_header_stdc" >&5
5269 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5270 if test $ac_cv_header_stdc = yes; then
5272 cat >>confdefs.h
<<\EOF
5273 #define STDC_HEADERS 1
5278 echo "$as_me:5278: checking whether strerror_r is declared" >&5
5279 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
5280 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 cat >conftest.
$ac_ext <<_ACEOF
5284 #line 5284 "configure"
5285 #include "confdefs.h"
5286 $ac_includes_default
5291 char *p = (char *) strerror_r;
5298 rm -f conftest.
$ac_objext
5299 if { (eval echo "$as_me:5299: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>&5
5302 echo "$as_me:5302: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try
='test -s conftest.$ac_objext'
5305 { (eval echo "$as_me:5305: \"$ac_try\"") >&5
5308 echo "$as_me:5308: \$? = $ac_status" >&5
5309 (exit $ac_status); }; }; then
5310 ac_cv_have_decl_strerror_r
=yes
5312 echo "$as_me: failed program was:" >&5
5313 cat conftest.
$ac_ext >&5
5314 ac_cv_have_decl_strerror_r
=no
5316 rm -f conftest.
$ac_objext conftest.
$ac_ext
5318 echo "$as_me:5318: result: $ac_cv_have_decl_strerror_r" >&5
5319 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
5320 if test $ac_cv_have_decl_strerror_r = yes; then
5322 cat >>confdefs.h
<<EOF
5323 #define HAVE_DECL_STRERROR_R 1
5327 cat >>confdefs.h
<<EOF
5328 #define HAVE_DECL_STRERROR_R 0
5333 for ac_func
in strerror_r
5335 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5336 echo "$as_me:5336: checking for $ac_func" >&5
5337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5338 if eval "test \"\${$as_ac_var+set}\" = set"; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 cat >conftest.
$ac_ext <<_ACEOF
5342 #line 5342 "configure"
5343 #include "confdefs.h"
5344 /* System header to define __stub macros and hopefully few prototypes,
5345 which can conflict with char $ac_func (); below. */
5347 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5359 /* The GNU C library defines this for functions which it implements
5360 to always fail with ENOSYS. Some functions are actually named
5361 something starting with __ and the normal name is an alias. */
5362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5372 rm -f conftest.
$ac_objext conftest
$ac_exeext
5373 if { (eval echo "$as_me:5373: \"$ac_link\"") >&5
5374 (eval $ac_link) 2>&5
5376 echo "$as_me:5376: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try
='test -s conftest$ac_exeext'
5379 { (eval echo "$as_me:5379: \"$ac_try\"") >&5
5382 echo "$as_me:5382: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 eval "$as_ac_var=yes"
5386 echo "$as_me: failed program was:" >&5
5387 cat conftest.
$ac_ext >&5
5388 eval "$as_ac_var=no"
5390 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5392 echo "$as_me:5392: result: `eval echo '${'$as_ac_var'}'`" >&5
5393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5394 if test `eval echo '${'$as_ac_var'}'` = yes; then
5395 cat >>confdefs.h
<<EOF
5396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5402 if test $ac_cv_func_strerror_r = yes; then
5404 for ac_header
in string.h
5406 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5407 echo "$as_me:5407: checking for $ac_header" >&5
5408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 cat >conftest.
$ac_ext <<_ACEOF
5413 #line 5413 "configure"
5414 #include "confdefs.h"
5415 #include <$ac_header>
5417 if { (eval echo "$as_me:5417: \"$ac_cpp conftest.$ac_ext\"") >&5
5418 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5420 egrep -v '^ *\+' conftest.er1
>conftest.err
5422 cat conftest.err
>&5
5423 echo "$as_me:5423: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev
/null
; then
5425 if test -s conftest.err
; then
5426 ac_cpp_err
=$ac_c_preproc_warn_flag
5433 if test -z "$ac_cpp_err"; then
5434 eval "$as_ac_Header=yes"
5436 echo "$as_me: failed program was:" >&5
5437 cat conftest.
$ac_ext >&5
5438 eval "$as_ac_Header=no"
5440 rm -f conftest.err conftest.
$ac_ext
5442 echo "$as_me:5442: result: `eval echo '${'$as_ac_Header'}'`" >&5
5443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445 cat >>confdefs.h
<<EOF
5446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5452 echo "$as_me:5452: checking for working strerror_r" >&5
5453 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
5454 if test "${ac_cv_func_strerror_r_works+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 cat >conftest.
$ac_ext <<_ACEOF
5459 #line 5459 "configure"
5460 #include "confdefs.h"
5464 # include <string.h>
5472 char x = *strerror_r (0, buf, sizeof buf);
5478 rm -f conftest.
$ac_objext
5479 if { (eval echo "$as_me:5479: \"$ac_compile\"") >&5
5480 (eval $ac_compile) 2>&5
5482 echo "$as_me:5482: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try
='test -s conftest.$ac_objext'
5485 { (eval echo "$as_me:5485: \"$ac_try\"") >&5
5488 echo "$as_me:5488: \$? = $ac_status" >&5
5489 (exit $ac_status); }; }; then
5490 ac_cv_func_strerror_r_works
=yes
5492 echo "$as_me: failed program was:" >&5
5493 cat conftest.
$ac_ext >&5
5494 ac_cv_func_strerror_r_works
=no
5497 rm -f conftest.
$ac_objext conftest.
$ac_ext
5498 if test $ac_cv_func_strerror_r_works = no
; then
5499 # strerror_r seems not to work, but now we have to choose between
5500 # systems that have relatively inaccessible declarations for the
5501 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5502 # former has a strerror_r that returns char*, while the latter
5503 # has a strerror_r that returns `int'.
5504 # This test should segfault on the DEC system.
5505 if test "$cross_compiling" = yes; then
5506 ac_cv_func_strerror_r_works
=no
5508 cat >conftest.
$ac_ext <<_ACEOF
5509 #line 5509 "configure"
5510 #include "confdefs.h"
5513 # include <string.h>
5516 extern char *strerror_r ();
5522 char x = *strerror_r (0, buf, sizeof buf);
5523 exit (!isalpha (x));
5527 rm -f conftest
$ac_exeext
5528 if { (eval echo "$as_me:5528: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5531 echo "$as_me:5531: \$? = $ac_status" >&5
5532 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5533 { (eval echo "$as_me:5533: \"$ac_try\"") >&5
5536 echo "$as_me:5536: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_func_strerror_r_works
=yes
5540 echo "$as_me: program exited with status $ac_status" >&5
5541 echo "$as_me: failed program was:" >&5
5542 cat conftest.
$ac_ext >&5
5543 ac_cv_func_strerror_r_works
=no
5545 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5550 echo "$as_me:5550: result: $ac_cv_func_strerror_r_works" >&5
5551 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
5552 if test $ac_cv_func_strerror_r_works = yes; then
5554 cat >>confdefs.h
<<EOF
5555 #define HAVE_WORKING_STRERROR_R 1
5561 ALL_LINGUAS
="de es et fr ja nl ru"
5562 # Make sure we can run config.sub.
5563 $ac_config_sub sun4
>/dev
/null
2>&1 ||
5564 { { echo "$as_me:5564: error: cannot run $ac_config_sub" >&5
5565 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5566 { (exit 1); exit 1; }; }
5568 echo "$as_me:5568: checking build system type" >&5
5569 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5570 if test "${ac_cv_build+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 ac_cv_build_alias
=$build_alias
5574 test -z "$ac_cv_build_alias" &&
5575 ac_cv_build_alias
=`$ac_config_guess`
5576 test -z "$ac_cv_build_alias" &&
5577 { { echo "$as_me:5577: error: cannot guess build type; you must specify one" >&5
5578 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5579 { (exit 1); exit 1; }; }
5580 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
5581 { { echo "$as_me:5581: error: $ac_config_sub $ac_cv_build_alias failed." >&5
5582 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
5583 { (exit 1); exit 1; }; }
5586 echo "$as_me:5586: result: $ac_cv_build" >&5
5587 echo "${ECHO_T}$ac_cv_build" >&6
5589 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5590 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5591 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5593 echo "$as_me:5593: checking host system type" >&5
5594 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5595 if test "${ac_cv_host+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 ac_cv_host_alias
=$host_alias
5599 test -z "$ac_cv_host_alias" &&
5600 ac_cv_host_alias
=$ac_cv_build_alias
5601 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
5602 { { echo "$as_me:5602: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5603 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5604 { (exit 1); exit 1; }; }
5607 echo "$as_me:5607: result: $ac_cv_host" >&5
5608 echo "${ECHO_T}$ac_cv_host" >&6
5610 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5611 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5612 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5614 echo "$as_me:5614: checking for off_t" >&5
5615 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5616 if test "${ac_cv_type_off_t+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 cat >conftest.
$ac_ext <<_ACEOF
5620 #line 5620 "configure"
5621 #include "confdefs.h"
5622 $ac_includes_default
5634 rm -f conftest.
$ac_objext
5635 if { (eval echo "$as_me:5635: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>&5
5638 echo "$as_me:5638: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try
='test -s conftest.$ac_objext'
5641 { (eval echo "$as_me:5641: \"$ac_try\"") >&5
5644 echo "$as_me:5644: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 ac_cv_type_off_t
=yes
5648 echo "$as_me: failed program was:" >&5
5649 cat conftest.
$ac_ext >&5
5652 rm -f conftest.
$ac_objext conftest.
$ac_ext
5654 echo "$as_me:5654: result: $ac_cv_type_off_t" >&5
5655 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5656 if test $ac_cv_type_off_t = yes; then
5660 cat >>confdefs.h
<<EOF
5666 echo "$as_me:5666: checking for size_t" >&5
5667 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5668 if test "${ac_cv_type_size_t+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 cat >conftest.
$ac_ext <<_ACEOF
5672 #line 5672 "configure"
5673 #include "confdefs.h"
5674 $ac_includes_default
5680 if (sizeof (size_t))
5686 rm -f conftest.
$ac_objext
5687 if { (eval echo "$as_me:5687: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>&5
5690 echo "$as_me:5690: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try
='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:5693: \"$ac_try\"") >&5
5696 echo "$as_me:5696: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_type_size_t
=yes
5700 echo "$as_me: failed program was:" >&5
5701 cat conftest.
$ac_ext >&5
5702 ac_cv_type_size_t
=no
5704 rm -f conftest.
$ac_objext conftest.
$ac_ext
5706 echo "$as_me:5706: result: $ac_cv_type_size_t" >&5
5707 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5708 if test $ac_cv_type_size_t = yes; then
5712 cat >>confdefs.h
<<EOF
5713 #define size_t unsigned
5718 for ac_header
in stdlib.h unistd.h
5720 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5721 echo "$as_me:5721: checking for $ac_header" >&5
5722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 cat >conftest.
$ac_ext <<_ACEOF
5727 #line 5727 "configure"
5728 #include "confdefs.h"
5729 #include <$ac_header>
5731 if { (eval echo "$as_me:5731: \"$ac_cpp conftest.$ac_ext\"") >&5
5732 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5734 egrep -v '^ *\+' conftest.er1
>conftest.err
5736 cat conftest.err
>&5
5737 echo "$as_me:5737: \$? = $ac_status" >&5
5738 (exit $ac_status); } >/dev
/null
; then
5739 if test -s conftest.err
; then
5740 ac_cpp_err
=$ac_c_preproc_warn_flag
5747 if test -z "$ac_cpp_err"; then
5748 eval "$as_ac_Header=yes"
5750 echo "$as_me: failed program was:" >&5
5751 cat conftest.
$ac_ext >&5
5752 eval "$as_ac_Header=no"
5754 rm -f conftest.err conftest.
$ac_ext
5756 echo "$as_me:5756: result: `eval echo '${'$as_ac_Header'}'`" >&5
5757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5759 cat >>confdefs.h
<<EOF
5760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5766 for ac_func
in getpagesize
5768 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5769 echo "$as_me:5769: checking for $ac_func" >&5
5770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5771 if eval "test \"\${$as_ac_var+set}\" = set"; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 cat >conftest.
$ac_ext <<_ACEOF
5775 #line 5775 "configure"
5776 #include "confdefs.h"
5777 /* System header to define __stub macros and hopefully few prototypes,
5778 which can conflict with char $ac_func (); below. */
5780 /* Override any gcc2 internal prototype to avoid an error. */
5784 /* We use char because int might match the return type of a gcc2
5785 builtin and then its argument prototype would still apply. */
5792 /* The GNU C library defines this for functions which it implements
5793 to always fail with ENOSYS. Some functions are actually named
5794 something starting with __ and the normal name is an alias. */
5795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5805 rm -f conftest.
$ac_objext conftest
$ac_exeext
5806 if { (eval echo "$as_me:5806: \"$ac_link\"") >&5
5807 (eval $ac_link) 2>&5
5809 echo "$as_me:5809: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try
='test -s conftest$ac_exeext'
5812 { (eval echo "$as_me:5812: \"$ac_try\"") >&5
5815 echo "$as_me:5815: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 eval "$as_ac_var=yes"
5819 echo "$as_me: failed program was:" >&5
5820 cat conftest.
$ac_ext >&5
5821 eval "$as_ac_var=no"
5823 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5825 echo "$as_me:5825: result: `eval echo '${'$as_ac_var'}'`" >&5
5826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5827 if test `eval echo '${'$as_ac_var'}'` = yes; then
5828 cat >>confdefs.h
<<EOF
5829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5835 echo "$as_me:5835: checking for working mmap" >&5
5836 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5837 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 if test "$cross_compiling" = yes; then
5841 ac_cv_func_mmap_fixed_mapped
=no
5843 cat >conftest.
$ac_ext <<_ACEOF
5844 #line 5844 "configure"
5845 #include "confdefs.h"
5846 $ac_includes_default
5847 /* Thanks to Mike Haertel and Jim Avera for this test.
5848 Here is a matrix of mmap possibilities:
5849 mmap private not fixed
5850 mmap private fixed at somewhere currently unmapped
5851 mmap private fixed at somewhere already mapped
5852 mmap shared not fixed
5853 mmap shared fixed at somewhere currently unmapped
5854 mmap shared fixed at somewhere already mapped
5855 For private mappings, we should verify that changes cannot be read()
5856 back from the file, nor mmap's back from the file at a different
5857 address. (There have been systems where private was not correctly
5858 implemented like the infamous i386 svr4.0, and systems where the
5859 VM page cache was not coherent with the file system buffer cache
5860 like early versions of FreeBSD and possibly contemporary NetBSD.)
5861 For shared mappings, we should conversely verify that changes get
5862 propogated back to all the places they're supposed to be.
5864 Grep wants private fixed already mapped.
5865 The main things grep needs to know about mmap are:
5866 * does it exist and is it safe to write into the mmap'd area
5867 * how to use it (BSD variants) */
5870 #include <sys/mman.h>
5872 #if !STDC_HEADERS && !HAVE_STDLIB_H
5876 /* This mess was copied from the GNU getpagesize.h. */
5877 #if !HAVE_GETPAGESIZE
5878 /* Assume that all systems that can run configure have sys/param.h. */
5879 # if !HAVE_SYS_PARAM_H
5880 # define HAVE_SYS_PARAM_H 1
5883 # ifdef _SC_PAGESIZE
5884 # define getpagesize() sysconf(_SC_PAGESIZE)
5885 # else /* no _SC_PAGESIZE */
5886 # if HAVE_SYS_PARAM_H
5887 # include <sys/param.h>
5888 # ifdef EXEC_PAGESIZE
5889 # define getpagesize() EXEC_PAGESIZE
5890 # else /* no EXEC_PAGESIZE */
5892 # define getpagesize() NBPG * CLSIZE
5895 # endif /* no CLSIZE */
5896 # else /* no NBPG */
5898 # define getpagesize() NBPC
5899 # else /* no NBPC */
5901 # define getpagesize() PAGESIZE
5902 # endif /* PAGESIZE */
5903 # endif /* no NBPC */
5904 # endif /* no NBPG */
5905 # endif /* no EXEC_PAGESIZE */
5906 # else /* no HAVE_SYS_PARAM_H */
5907 # define getpagesize() 8192 /* punt totally */
5908 # endif /* no HAVE_SYS_PARAM_H */
5909 # endif /* no _SC_PAGESIZE */
5911 #endif /* no HAVE_GETPAGESIZE */
5916 char *data, *data2, *data3;
5920 pagesize = getpagesize ();
5922 /* First, make a file with some known garbage in it. */
5923 data = (char *) malloc (pagesize);
5926 for (i = 0; i < pagesize; ++i)
5927 *(data + i) = rand ();
5929 fd = creat ("conftest.mmap", 0600);
5932 if (write (fd, data, pagesize) != pagesize)
5936 /* Next, try to mmap the file at a fixed address which already has
5937 something else allocated at it. If we can, also make sure that
5938 we see the same garbage. */
5939 fd = open ("conftest.mmap", O_RDWR);
5942 data2 = (char *) malloc (2 * pagesize);
5945 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5946 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5947 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5949 for (i = 0; i < pagesize; ++i)
5950 if (*(data + i) != *(data2 + i))
5953 /* Finally, make sure that changes to the mapped area do not
5954 percolate back to the file as seen by read(). (This is a bug on
5955 some variants of i386 svr4.0.) */
5956 for (i = 0; i < pagesize; ++i)
5957 *(data2 + i) = *(data2 + i) + 1;
5958 data3 = (char *) malloc (pagesize);
5961 if (read (fd, data3, pagesize) != pagesize)
5963 for (i = 0; i < pagesize; ++i)
5964 if (*(data + i) != *(data3 + i))
5970 rm -f conftest
$ac_exeext
5971 if { (eval echo "$as_me:5971: \"$ac_link\"") >&5
5972 (eval $ac_link) 2>&5
5974 echo "$as_me:5974: \$? = $ac_status" >&5
5975 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5976 { (eval echo "$as_me:5976: \"$ac_try\"") >&5
5979 echo "$as_me:5979: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5981 ac_cv_func_mmap_fixed_mapped
=yes
5983 echo "$as_me: program exited with status $ac_status" >&5
5984 echo "$as_me: failed program was:" >&5
5985 cat conftest.
$ac_ext >&5
5986 ac_cv_func_mmap_fixed_mapped
=no
5988 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5991 echo "$as_me:5991: result: $ac_cv_func_mmap_fixed_mapped" >&5
5992 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5993 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5995 cat >>confdefs.h
<<\EOF
6002 echo "$as_me:6002: checking whether we are using the GNU C Library 2.1 or newer" >&5
6003 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6004 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 cat >conftest.
$ac_ext <<_ACEOF
6008 #line 6008 "configure"
6009 #include "confdefs.h"
6011 #include <features.h>
6012 #ifdef __GNU_LIBRARY__
6013 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6020 egrep "Lucky GNU user" >/dev
/null
2>&1; then
6021 ac_cv_gnu_library_2_1
=yes
6023 ac_cv_gnu_library_2_1
=no
6028 echo "$as_me:6028: result: $ac_cv_gnu_library_2_1" >&5
6029 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6031 GLIBC21
="$ac_cv_gnu_library_2_1"
6033 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6034 stdlib.h string.h unistd.h sys
/param.h
6036 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6037 echo "$as_me:6037: checking for $ac_header" >&5
6038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 cat >conftest.
$ac_ext <<_ACEOF
6043 #line 6043 "configure"
6044 #include "confdefs.h"
6045 #include <$ac_header>
6047 if { (eval echo "$as_me:6047: \"$ac_cpp conftest.$ac_ext\"") >&5
6048 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6050 egrep -v '^ *\+' conftest.er1
>conftest.err
6052 cat conftest.err
>&5
6053 echo "$as_me:6053: \$? = $ac_status" >&5
6054 (exit $ac_status); } >/dev
/null
; then
6055 if test -s conftest.err
; then
6056 ac_cpp_err
=$ac_c_preproc_warn_flag
6063 if test -z "$ac_cpp_err"; then
6064 eval "$as_ac_Header=yes"
6066 echo "$as_me: failed program was:" >&5
6067 cat conftest.
$ac_ext >&5
6068 eval "$as_ac_Header=no"
6070 rm -f conftest.err conftest.
$ac_ext
6072 echo "$as_me:6072: result: `eval echo '${'$as_ac_Header'}'`" >&5
6073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6075 cat >>confdefs.h
<<EOF
6076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6082 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
6083 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
6084 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6086 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6087 echo "$as_me:6087: checking for $ac_func" >&5
6088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6089 if eval "test \"\${$as_ac_var+set}\" = set"; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 cat >conftest.
$ac_ext <<_ACEOF
6093 #line 6093 "configure"
6094 #include "confdefs.h"
6095 /* System header to define __stub macros and hopefully few prototypes,
6096 which can conflict with char $ac_func (); below. */
6098 /* Override any gcc2 internal prototype to avoid an error. */
6102 /* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */
6110 /* The GNU C library defines this for functions which it implements
6111 to always fail with ENOSYS. Some functions are actually named
6112 something starting with __ and the normal name is an alias. */
6113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6123 rm -f conftest.
$ac_objext conftest
$ac_exeext
6124 if { (eval echo "$as_me:6124: \"$ac_link\"") >&5
6125 (eval $ac_link) 2>&5
6127 echo "$as_me:6127: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try
='test -s conftest$ac_exeext'
6130 { (eval echo "$as_me:6130: \"$ac_try\"") >&5
6133 echo "$as_me:6133: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 eval "$as_ac_var=yes"
6137 echo "$as_me: failed program was:" >&5
6138 cat conftest.
$ac_ext >&5
6139 eval "$as_ac_var=no"
6141 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6143 echo "$as_me:6143: result: `eval echo '${'$as_ac_var'}'`" >&5
6144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6145 if test `eval echo '${'$as_ac_var'}'` = yes; then
6146 cat >>confdefs.h
<<EOF
6147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6153 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6154 if test "${with_libiconv_prefix+set}" = set; then
6155 withval
="$with_libiconv_prefix"
6157 for dir
in `echo "$withval" | tr : ' '`; do
6158 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
6159 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
6164 echo "$as_me:6164: checking for iconv" >&5
6165 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6166 if test "${am_cv_func_iconv+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 am_cv_func_iconv
="no, consider installing GNU libiconv"
6172 cat >conftest.
$ac_ext <<_ACEOF
6173 #line 6173 "configure"
6174 #include "confdefs.h"
6180 iconv_t cd = iconv_open("","");
6181 iconv(cd,NULL,NULL,NULL,NULL);
6187 rm -f conftest.
$ac_objext conftest
$ac_exeext
6188 if { (eval echo "$as_me:6188: \"$ac_link\"") >&5
6189 (eval $ac_link) 2>&5
6191 echo "$as_me:6191: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try
='test -s conftest$ac_exeext'
6194 { (eval echo "$as_me:6194: \"$ac_try\"") >&5
6197 echo "$as_me:6197: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 am_cv_func_iconv
=yes
6201 echo "$as_me: failed program was:" >&5
6202 cat conftest.
$ac_ext >&5
6204 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6205 if test "$am_cv_func_iconv" != yes; then
6206 am_save_LIBS
="$LIBS"
6207 LIBS
="$LIBS -liconv"
6208 cat >conftest.
$ac_ext <<_ACEOF
6209 #line 6209 "configure"
6210 #include "confdefs.h"
6216 iconv_t cd = iconv_open("","");
6217 iconv(cd,NULL,NULL,NULL,NULL);
6223 rm -f conftest.
$ac_objext conftest
$ac_exeext
6224 if { (eval echo "$as_me:6224: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>&5
6227 echo "$as_me:6227: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try
='test -s conftest$ac_exeext'
6230 { (eval echo "$as_me:6230: \"$ac_try\"") >&5
6233 echo "$as_me:6233: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6236 am_cv_func_iconv
=yes
6238 echo "$as_me: failed program was:" >&5
6239 cat conftest.
$ac_ext >&5
6241 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6242 LIBS
="$am_save_LIBS"
6246 echo "$as_me:6246: result: $am_cv_func_iconv" >&5
6247 echo "${ECHO_T}$am_cv_func_iconv" >&6
6248 if test "$am_cv_func_iconv" = yes; then
6250 cat >>confdefs.h
<<\EOF
6251 #define HAVE_ICONV 1
6254 echo "$as_me:6254: checking for iconv declaration" >&5
6255 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6256 if test "${am_cv_proto_iconv+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 cat >conftest.
$ac_ext <<_ACEOF
6261 #line 6261 "configure"
6262 #include "confdefs.h"
6270 #if defined(__STDC__) || defined(__cplusplus)
6271 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6284 rm -f conftest.
$ac_objext
6285 if { (eval echo "$as_me:6285: \"$ac_compile\"") >&5
6286 (eval $ac_compile) 2>&5
6288 echo "$as_me:6288: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try
='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:6291: \"$ac_try\"") >&5
6294 echo "$as_me:6294: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 am_cv_proto_iconv_arg1
=""
6298 echo "$as_me: failed program was:" >&5
6299 cat conftest.
$ac_ext >&5
6300 am_cv_proto_iconv_arg1
="const"
6302 rm -f conftest.
$ac_objext conftest.
$ac_ext
6303 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);"
6306 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6307 echo "$as_me:6307: result: ${ac_t:-
6308 }$am_cv_proto_iconv" >&5
6309 echo "${ECHO_T}${ac_t:-
6310 }$am_cv_proto_iconv" >&6
6312 cat >>confdefs.h
<<EOF
6313 #define ICONV_CONST $am_cv_proto_iconv_arg1
6318 if test "$am_cv_lib_iconv" = yes; then
6322 echo "$as_me:6322: checking for nl_langinfo and CODESET" >&5
6323 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6324 if test "${am_cv_langinfo_codeset+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 cat >conftest.
$ac_ext <<_ACEOF
6328 #line 6328 "configure"
6329 #include "confdefs.h"
6330 #include <langinfo.h>
6334 char* cs = nl_langinfo(CODESET);
6339 rm -f conftest.
$ac_objext conftest
$ac_exeext
6340 if { (eval echo "$as_me:6340: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>&5
6343 echo "$as_me:6343: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try
='test -s conftest$ac_exeext'
6346 { (eval echo "$as_me:6346: \"$ac_try\"") >&5
6349 echo "$as_me:6349: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351 am_cv_langinfo_codeset
=yes
6353 echo "$as_me: failed program was:" >&5
6354 cat conftest.
$ac_ext >&5
6355 am_cv_langinfo_codeset
=no
6357 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6360 echo "$as_me:6360: result: $am_cv_langinfo_codeset" >&5
6361 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6362 if test $am_cv_langinfo_codeset = yes; then
6364 cat >>confdefs.h
<<\EOF
6365 #define HAVE_LANGINFO_CODESET 1
6370 if test $ac_cv_header_locale_h = yes; then
6371 echo "$as_me:6371: checking for LC_MESSAGES" >&5
6372 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6373 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 cat >conftest.
$ac_ext <<_ACEOF
6377 #line 6377 "configure"
6378 #include "confdefs.h"
6388 rm -f conftest.
$ac_objext conftest
$ac_exeext
6389 if { (eval echo "$as_me:6389: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>&5
6392 echo "$as_me:6392: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try
='test -s conftest$ac_exeext'
6395 { (eval echo "$as_me:6395: \"$ac_try\"") >&5
6398 echo "$as_me:6398: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 am_cv_val_LC_MESSAGES
=yes
6402 echo "$as_me: failed program was:" >&5
6403 cat conftest.
$ac_ext >&5
6404 am_cv_val_LC_MESSAGES
=no
6406 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6408 echo "$as_me:6408: result: $am_cv_val_LC_MESSAGES" >&5
6409 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6410 if test $am_cv_val_LC_MESSAGES = yes; then
6412 cat >>confdefs.h
<<\EOF
6413 #define HAVE_LC_MESSAGES 1
6418 echo "$as_me:6418: checking whether NLS is requested" >&5
6419 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6420 # Check whether --enable-nls or --disable-nls was given.
6421 if test "${enable_nls+set}" = set; then
6422 enableval
="$enable_nls"
6427 echo "$as_me:6427: result: $USE_NLS" >&5
6428 echo "${ECHO_T}$USE_NLS" >&6
6430 BUILD_INCLUDED_LIBINTL
=no
6431 USE_INCLUDED_LIBINTL
=no
6434 if test "$USE_NLS" = "yes"; then
6436 cat >>confdefs.h
<<\EOF
6437 #define ENABLE_NLS 1
6440 echo "$as_me:6440: checking whether included gettext is requested" >&5
6441 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6443 # Check whether --with-included-gettext or --without-included-gettext was given.
6444 if test "${with_included_gettext+set}" = set; then
6445 withval
="$with_included_gettext"
6446 nls_cv_force_use_gnu_gettext
=$withval
6448 nls_cv_force_use_gnu_gettext
=no
6450 echo "$as_me:6450: result: $nls_cv_force_use_gnu_gettext" >&5
6451 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6453 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6454 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6457 echo "$as_me:6457: checking for libintl.h" >&5
6458 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6459 if test "${ac_cv_header_libintl_h+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 cat >conftest.
$ac_ext <<_ACEOF
6463 #line 6463 "configure"
6464 #include "confdefs.h"
6465 #include <libintl.h>
6467 if { (eval echo "$as_me:6467: \"$ac_cpp conftest.$ac_ext\"") >&5
6468 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6470 egrep -v '^ *\+' conftest.er1
>conftest.err
6472 cat conftest.err
>&5
6473 echo "$as_me:6473: \$? = $ac_status" >&5
6474 (exit $ac_status); } >/dev
/null
; then
6475 if test -s conftest.err
; then
6476 ac_cpp_err
=$ac_c_preproc_warn_flag
6483 if test -z "$ac_cpp_err"; then
6484 ac_cv_header_libintl_h
=yes
6486 echo "$as_me: failed program was:" >&5
6487 cat conftest.
$ac_ext >&5
6488 ac_cv_header_libintl_h
=no
6490 rm -f conftest.err conftest.
$ac_ext
6492 echo "$as_me:6492: result: $ac_cv_header_libintl_h" >&5
6493 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6494 if test $ac_cv_header_libintl_h = yes; then
6495 echo "$as_me:6495: checking for GNU gettext in libc" >&5
6496 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6497 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 cat >conftest.
$ac_ext <<_ACEOF
6501 #line 6501 "configure"
6502 #include "confdefs.h"
6503 #include <libintl.h>
6504 extern int _nl_msg_cat_cntr;
6508 bindtextdomain ("", "");
6509 return (int) gettext ("") + _nl_msg_cat_cntr
6514 rm -f conftest.
$ac_objext conftest
$ac_exeext
6515 if { (eval echo "$as_me:6515: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>&5
6518 echo "$as_me:6518: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try
='test -s conftest$ac_exeext'
6521 { (eval echo "$as_me:6521: \"$ac_try\"") >&5
6524 echo "$as_me:6524: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 gt_cv_func_gnugettext1_libc
=yes
6528 echo "$as_me: failed program was:" >&5
6529 cat conftest.
$ac_ext >&5
6530 gt_cv_func_gnugettext1_libc
=no
6532 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6534 echo "$as_me:6534: result: $gt_cv_func_gnugettext1_libc" >&5
6535 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6537 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6538 echo "$as_me:6538: checking for GNU gettext in libintl" >&5
6539 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6540 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 gt_save_LIBS
="$LIBS"
6544 LIBS
="$LIBS -lintl $LIBICONV"
6545 cat >conftest.
$ac_ext <<_ACEOF
6546 #line 6546 "configure"
6547 #include "confdefs.h"
6548 #include <libintl.h>
6549 extern int _nl_msg_cat_cntr;
6553 bindtextdomain ("", "");
6554 return (int) gettext ("") + _nl_msg_cat_cntr
6559 rm -f conftest.
$ac_objext conftest
$ac_exeext
6560 if { (eval echo "$as_me:6560: \"$ac_link\"") >&5
6561 (eval $ac_link) 2>&5
6563 echo "$as_me:6563: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try
='test -s conftest$ac_exeext'
6566 { (eval echo "$as_me:6566: \"$ac_try\"") >&5
6569 echo "$as_me:6569: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6571 gt_cv_func_gnugettext1_libintl
=yes
6573 echo "$as_me: failed program was:" >&5
6574 cat conftest.
$ac_ext >&5
6575 gt_cv_func_gnugettext1_libintl
=no
6577 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6578 LIBS
="$gt_save_LIBS"
6580 echo "$as_me:6580: result: $gt_cv_func_gnugettext1_libintl" >&5
6581 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6584 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6585 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6586 && test "$PACKAGE" != gettext; }; then
6588 cat >>confdefs.h
<<\EOF
6589 #define HAVE_GETTEXT 1
6592 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6593 INTLLIBS
="-lintl $LIBICONV"
6596 gt_save_LIBS
="$LIBS"
6597 LIBS
="$LIBS $INTLLIBS"
6599 for ac_func
in dcgettext
6601 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6602 echo "$as_me:6602: checking for $ac_func" >&5
6603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6604 if eval "test \"\${$as_ac_var+set}\" = set"; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 cat >conftest.
$ac_ext <<_ACEOF
6608 #line 6608 "configure"
6609 #include "confdefs.h"
6610 /* System header to define __stub macros and hopefully few prototypes,
6611 which can conflict with char $ac_func (); below. */
6613 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6625 /* The GNU C library defines this for functions which it implements
6626 to always fail with ENOSYS. Some functions are actually named
6627 something starting with __ and the normal name is an alias. */
6628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6638 rm -f conftest.
$ac_objext conftest
$ac_exeext
6639 if { (eval echo "$as_me:6639: \"$ac_link\"") >&5
6640 (eval $ac_link) 2>&5
6642 echo "$as_me:6642: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 { ac_try
='test -s conftest$ac_exeext'
6645 { (eval echo "$as_me:6645: \"$ac_try\"") >&5
6648 echo "$as_me:6648: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6650 eval "$as_ac_var=yes"
6652 echo "$as_me: failed program was:" >&5
6653 cat conftest.
$ac_ext >&5
6654 eval "$as_ac_var=no"
6656 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6658 echo "$as_me:6658: result: `eval echo '${'$as_ac_var'}'`" >&5
6659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6660 if test `eval echo '${'$as_ac_var'}'` = yes; then
6661 cat >>confdefs.h
<<EOF
6662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6668 LIBS
="$gt_save_LIBS"
6670 # Extract the first word of "msgfmt", so it can be a program name with args.
6671 set dummy msgfmt
; ac_word
=$2
6672 echo "$as_me:6672: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6674 if test "${ac_cv_path_MSGFMT+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6682 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6683 for ac_dir
in $PATH; do
6684 test -z "$ac_dir" && ac_dir
=.
6685 if test -f $ac_dir/$ac_word; then
6686 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6687 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6693 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6697 MSGFMT
="$ac_cv_path_MSGFMT"
6698 if test "$MSGFMT" != ":"; then
6699 echo "$as_me:6699: result: $MSGFMT" >&5
6700 echo "${ECHO_T}$MSGFMT" >&6
6702 echo "$as_me:6702: result: no" >&5
6703 echo "${ECHO_T}no" >&6
6706 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6707 set dummy gmsgfmt
; ac_word
=$2
6708 echo "$as_me:6708: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6710 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6718 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
6720 for ac_dir
in $ac_dummy; do
6722 test -z "$ac_dir" && ac_dir
=.
6723 if $as_executable_p "$ac_dir/$ac_word"; then
6724 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6725 echo "$as_me:6725: found $ac_dir/$ac_word" >&5
6730 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6734 GMSGFMT
=$ac_cv_path_GMSGFMT
6736 if test -n "$GMSGFMT"; then
6737 echo "$as_me:6737: result: $GMSGFMT" >&5
6738 echo "${ECHO_T}$GMSGFMT" >&6
6740 echo "$as_me:6740: result: no" >&5
6741 echo "${ECHO_T}no" >&6
6744 # Extract the first word of "xgettext", so it can be a program name with args.
6745 set dummy xgettext
; ac_word
=$2
6746 echo "$as_me:6746: checking for $ac_word" >&5
6747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6748 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6756 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6757 for ac_dir
in $PATH; do
6758 test -z "$ac_dir" && ac_dir
=.
6759 if test -f $ac_dir/$ac_word; then
6760 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6761 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6767 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6771 XGETTEXT
="$ac_cv_path_XGETTEXT"
6772 if test "$XGETTEXT" != ":"; then
6773 echo "$as_me:6773: result: $XGETTEXT" >&5
6774 echo "${ECHO_T}$XGETTEXT" >&6
6776 echo "$as_me:6776: result: no" >&5
6777 echo "${ECHO_T}no" >&6
6785 if test "$CATOBJEXT" = "NONE"; then
6786 nls_cv_use_gnu_gettext
=yes
6790 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6791 INTLOBJS
="\$(GETTOBJS)"
6792 # Extract the first word of "msgfmt", so it can be a program name with args.
6793 set dummy msgfmt
; ac_word
=$2
6794 echo "$as_me:6794: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6796 if test "${ac_cv_path_MSGFMT+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6804 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6805 for ac_dir
in $PATH; do
6806 test -z "$ac_dir" && ac_dir
=.
6807 if test -f $ac_dir/$ac_word; then
6808 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6809 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6815 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6819 MSGFMT
="$ac_cv_path_MSGFMT"
6820 if test "$MSGFMT" != ":"; then
6821 echo "$as_me:6821: result: $MSGFMT" >&5
6822 echo "${ECHO_T}$MSGFMT" >&6
6824 echo "$as_me:6824: result: no" >&5
6825 echo "${ECHO_T}no" >&6
6828 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6829 set dummy gmsgfmt
; ac_word
=$2
6830 echo "$as_me:6830: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6832 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6840 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
6842 for ac_dir
in $ac_dummy; do
6844 test -z "$ac_dir" && ac_dir
=.
6845 if $as_executable_p "$ac_dir/$ac_word"; then
6846 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6847 echo "$as_me:6847: found $ac_dir/$ac_word" >&5
6852 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6856 GMSGFMT
=$ac_cv_path_GMSGFMT
6858 if test -n "$GMSGFMT"; then
6859 echo "$as_me:6859: result: $GMSGFMT" >&5
6860 echo "${ECHO_T}$GMSGFMT" >&6
6862 echo "$as_me:6862: result: no" >&5
6863 echo "${ECHO_T}no" >&6
6866 # Extract the first word of "xgettext", so it can be a program name with args.
6867 set dummy xgettext
; ac_word
=$2
6868 echo "$as_me:6868: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6870 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6878 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6879 for ac_dir
in $PATH; do
6880 test -z "$ac_dir" && ac_dir
=.
6881 if test -f $ac_dir/$ac_word; then
6882 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6883 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6889 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6893 XGETTEXT
="$ac_cv_path_XGETTEXT"
6894 if test "$XGETTEXT" != ":"; then
6895 echo "$as_me:6895: result: $XGETTEXT" >&5
6896 echo "${ECHO_T}$XGETTEXT" >&6
6898 echo "$as_me:6898: result: no" >&5
6899 echo "${ECHO_T}no" >&6
6902 BUILD_INCLUDED_LIBINTL
=yes
6903 USE_INCLUDED_LIBINTL
=yes
6905 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6906 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6909 if test "$GMSGFMT" != ":"; then
6910 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6913 echo "$as_me:6913: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
6914 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
6919 if test "$XGETTEXT" != ":"; then
6920 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6923 echo "$as_me:6923: result: found xgettext program is not GNU xgettext; ignore it" >&5
6924 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6931 ac_config_commands
="$ac_config_commands default-2"
6933 if test "$PACKAGE" = gettext; then
6934 BUILD_INCLUDED_LIBINTL
=yes
6937 for ac_prog
in bison
6939 # Extract the first word of "$ac_prog", so it can be a program name with args.
6940 set dummy
$ac_prog; ac_word
=$2
6941 echo "$as_me:6941: checking for $ac_word" >&5
6942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6943 if test "${ac_cv_prog_INTLBISON+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 if test -n "$INTLBISON"; then
6947 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6949 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
6951 for ac_dir
in $ac_dummy; do
6953 test -z "$ac_dir" && ac_dir
=.
6954 $as_executable_p "$ac_dir/$ac_word" || continue
6955 ac_cv_prog_INTLBISON
="$ac_prog"
6956 echo "$as_me:6956: found $ac_dir/$ac_word" >&5
6962 INTLBISON
=$ac_cv_prog_INTLBISON
6963 if test -n "$INTLBISON"; then
6964 echo "$as_me:6964: result: $INTLBISON" >&5
6965 echo "${ECHO_T}$INTLBISON" >&6
6967 echo "$as_me:6967: result: no" >&5
6968 echo "${ECHO_T}no" >&6
6971 test -n "$INTLBISON" && break
6974 if test -z "$INTLBISON"; then
6977 echo "$as_me:6977: checking version of bison" >&5
6978 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6979 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6980 case $ac_prog_version in
6981 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6982 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
6983 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6984 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6986 echo "$as_me:6986: result: $ac_prog_version" >&5
6987 echo "${ECHO_T}$ac_prog_version" >&6
6989 if test $ac_verc_fail = yes; then
6993 for lang
in $ALL_LINGUAS; do
6994 GMOFILES
="$GMOFILES $lang.gmo"
6995 POFILES
="$POFILES $lang.po"
6999 nls_cv_header_libgt
=
7007 if test "x$CATOBJEXT" != "x"; then
7008 if test "x$ALL_LINGUAS" = "x"; then
7011 echo "$as_me:7011: checking for catalogs to be installed" >&5
7012 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7014 for presentlang
in $ALL_LINGUAS; do
7016 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
7017 # Use the presentlang catalog if desiredlang is
7018 # a. equal to presentlang, or
7019 # b. a variant of presentlang (because in this case,
7020 # presentlang can be used as a fallback for messages
7021 # which are not translated in the desiredlang catalog).
7022 case "$desiredlang" in
7023 "$presentlang"*) useit
=yes;;
7026 if test $useit = yes; then
7027 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
7030 LINGUAS
=$NEW_LINGUAS
7031 echo "$as_me:7031: result: $LINGUAS" >&5
7032 echo "${ECHO_T}$LINGUAS" >&6
7035 if test -n "$LINGUAS"; then
7036 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
7041 if test -n "$ac_aux_dir"; then
7042 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
7044 if test -z "$MKINSTALLDIRS"; then
7045 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
7048 INTL_LIBTOOL_SUFFIX_PREFIX
=
7050 # This is necessary so that .o files in LIBOBJS are also built via
7051 # the ANSI2KNR-filtering rules.
7052 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
7054 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"
7055 cat >confcache
<<\_ACEOF
7056 # This file is a shell script that caches the results of configure
7057 # tests run on this system so they can be shared between configure
7058 # scripts and configure runs, see configure's option --config-cache.
7059 # It is not useful on other systems. If it contains results you don't
7060 # want to keep, you may remove or edit it.
7062 # config.status only pays attention to the cache file if you give it
7063 # the --recheck option to rerun configure.
7065 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7071 # The following way of writing the cache mishandles newlines in values,
7072 # but we know of no workaround that is simple, portable, and efficient.
7073 # So, don't put newlines in cache variables' values.
7074 # Ultrix sh set writes to stderr and can't be redirected directly,
7075 # and sets the high bit in the cache file unless we assign to the vars.
7078 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7080 # `set' does not quote correctly, so add quotes (double-quote
7081 # substitution turns \\\\ into \\, and sed turns \\ into \).
7084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7087 # `set' quotes correctly as required by POSIX, so do not add quotes.
7089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7098 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7100 if cmp -s $cache_file confcache
; then :; else
7101 if test -w $cache_file; then
7102 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7103 cat confcache
>$cache_file
7105 echo "not updating unwritable cache $cache_file"
7110 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7111 # Let make expand exec_prefix.
7112 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7114 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7115 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7116 # trailing colons and then remove the whole line if VPATH becomes empty
7117 # (actually we leave an empty line to preserve line numbers).
7118 if test "x$srcdir" = x.
; then
7119 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7120 s/:*\$(srcdir):*/:/;
7121 s/:*\${srcdir}:*/:/;
7123 s/^\([^=]*=[ ]*\):*/\1/;
7129 DEFS
=-DHAVE_CONFIG_H
7131 : ${CONFIG_STATUS=./config.status}
7132 ac_clean_files_save
=$ac_clean_files
7133 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7134 { echo "$as_me:7134: creating $CONFIG_STATUS" >&5
7135 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7136 cat >$CONFIG_STATUS <<_ACEOF
7138 # Generated automatically by configure.
7139 # Run this file to recreate the current configuration.
7140 # Compiler output produced by configure, useful for debugging
7141 # configure, is in config.log if it exists.
7144 SHELL=\${CONFIG_SHELL-$SHELL}
7145 ac_cs_invocation="\$0 \$@"
7149 cat >>$CONFIG_STATUS <<\_ACEOF
7150 # Be Bourne compatible
7151 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7154 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7158 # Name of the executable.
7159 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
7161 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7167 rm -f conf$$ conf$$.exe conf$$.
file
7169 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7170 # We could just check for DJGPP; but this test a) works b) is more generic
7171 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7172 if test -f conf$$.exe
; then
7173 # Don't use ln at all; we don't have any links
7178 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7183 rm -f conf$$ conf$$.exe conf$$.
file
7185 as_executable_p
="test -f"
7187 # Support unset when possible.
7188 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
7195 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
7196 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
7197 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
7198 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
7199 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
7200 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
7201 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
7202 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
7205 # We need space, tab and new line, in precisely that order.
7211 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=:; export CDPATH
; }
7217 # Files that config.status was made for.
7218 if test -n "$ac_config_files"; then
7219 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7222 if test -n "$ac_config_headers"; then
7223 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7226 if test -n "$ac_config_links"; then
7227 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7230 if test -n "$ac_config_commands"; then
7231 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7234 cat >>$CONFIG_STATUS <<\EOF
7237 \`$as_me' instantiates files from templates according to the
7238 current configuration.
7240 Usage: $0 [OPTIONS] [FILE]...
7242 -h, --help print this help, then exit
7243 -V, --version print version number, then exit
7244 -d, --debug don't remove temporary files
7245 --recheck update $as_me by reconfiguring in the same conditions
7246 --file=FILE[:TEMPLATE]
7247 instantiate the configuration file FILE
7248 --header=FILE[:TEMPLATE]
7249 instantiate the configuration header FILE
7251 Configuration files:
7254 Configuration headers:
7257 Configuration commands:
7260 Report bugs to <bug-autoconf@gnu.org>."
7263 cat >>$CONFIG_STATUS <<EOF
7265 bison config.status 1.28c
7266 configured by $0, generated by GNU Autoconf 2.52,
7267 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7269 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7270 Free Software Foundation, Inc.
7271 This config.status script is free software; the Free Software Foundation
7272 gives unlimited permission to copy, distribute and modify it."
7277 cat >>$CONFIG_STATUS <<\EOF
7278 # If no file are specified by the user, then we need to provide default
7279 # value. By we need to know if files were specified by the user.
7285 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7286 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7288 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
7292 *) # This is not an option, so the user has probably given explicit
7294 ac_need_defaults
=false
;;
7298 # Handling of the options.
7300 cat >>$CONFIG_STATUS <<EOF
7301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7302 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7303 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7305 cat >>$CONFIG_STATUS <<\EOF
7306 --version | --vers* | -V )
7307 echo "$ac_cs_version"; exit 0 ;;
7309 # Conflict between --help and --header
7310 { { echo "$as_me:7310: error: ambiguous option: $1
7311 Try \`$0 --help' for more information." >&5
7312 echo "$as_me: error: ambiguous option: $1
7313 Try \`$0 --help' for more information." >&2;}
7314 { (exit 1); exit 1; }; };;
7315 --help | --hel | -h )
7316 echo "$ac_cs_usage"; exit 0 ;;
7317 --debug | --d* | -d )
7319 --file | --fil | --fi | --f )
7321 CONFIG_FILES
="$CONFIG_FILES $1"
7322 ac_need_defaults
=false
;;
7323 --header | --heade | --head | --hea )
7325 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
7326 ac_need_defaults
=false
;;
7329 -*) { { echo "$as_me:7329: error: unrecognized option: $1
7330 Try \`$0 --help' for more information." >&5
7331 echo "$as_me: error: unrecognized option: $1
7332 Try \`$0 --help' for more information." >&2;}
7333 { (exit 1); exit 1; }; } ;;
7335 *) ac_config_targets
="$ac_config_targets $1" ;;
7344 ## ----------------------- ##
7345 ## Running config.status. ##
7346 ## ----------------------- ##
7348 This file was extended by $as_me (bison 1.28c) 2.52, executed with
7349 CONFIG_FILES = $CONFIG_FILES
7350 CONFIG_HEADERS = $CONFIG_HEADERS
7351 CONFIG_LINKS = $CONFIG_LINKS
7352 CONFIG_COMMANDS = $CONFIG_COMMANDS
7354 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7359 cat >>$CONFIG_STATUS <<EOF
7361 # INIT-COMMANDS section.
7366 cat >>$CONFIG_STATUS <<\EOF
7367 for ac_config_target
in $ac_config_targets
7369 case "$ac_config_target" in
7370 # Handling of arguments.
7371 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7372 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
7373 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
7374 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
7375 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
7376 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
7377 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
7378 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
7379 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
7380 "tests/atconfig" ) CONFIG_FILES
="$CONFIG_FILES tests/atconfig" ;;
7381 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
7382 "default-2" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
7383 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
7384 *) { { echo "$as_me:7384: error: invalid argument: $ac_config_target" >&5
7385 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7386 { (exit 1); exit 1; }; };;
7390 # If the user did not use the arguments to specify the items to instantiate,
7391 # then the envvar interface is used. Set only those that are not.
7392 # We use the long form for the default assignment because of an extremely
7393 # bizarre bug on SunOS 4.1.3.
7394 if $ac_need_defaults; then
7395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7397 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7400 # Create a temporary directory, and hook for its removal unless debugging.
7403 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7404 trap '{ (exit 1); exit 1; }' 1 2 13 15
7407 # Create a (secure) tmp directory for tmp files.
7410 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7411 test -n "$tmp" && test -d "$tmp"
7414 tmp
=$TMPDIR/cs$$
-$RANDOM
7415 (umask 077 && mkdir $tmp)
7418 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7419 { (exit 1); exit 1; }
7424 cat >>$CONFIG_STATUS <<EOF
7427 # CONFIG_FILES section.
7430 # No need to generate the scripts if there are no CONFIG_FILES.
7431 # This happens for instance when ./config.status config.h
7432 if test -n "\$CONFIG_FILES"; then
7433 # Protect against being on the right side of a sed subst in config.status.
7434 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7435 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7436 s,@SHELL@,$SHELL,;t t
7437 s,@exec_prefix@,$exec_prefix,;t t
7438 s,@prefix@,$prefix,;t t
7439 s,@program_transform_name@,$program_transform_name,;t t
7440 s,@bindir@,$bindir,;t t
7441 s,@sbindir@,$sbindir,;t t
7442 s,@libexecdir@,$libexecdir,;t t
7443 s,@datadir@,$datadir,;t t
7444 s,@sysconfdir@,$sysconfdir,;t t
7445 s,@sharedstatedir@,$sharedstatedir,;t t
7446 s,@localstatedir@,$localstatedir,;t t
7447 s,@libdir@,$libdir,;t t
7448 s,@includedir@,$includedir,;t t
7449 s,@oldincludedir@,$oldincludedir,;t t
7450 s,@infodir@,$infodir,;t t
7451 s,@mandir@,$mandir,;t t
7452 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7453 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7454 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7455 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7456 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7457 s,@build_alias@,$build_alias,;t t
7458 s,@host_alias@,$host_alias,;t t
7459 s,@target_alias@,$target_alias,;t t
7460 s,@ECHO_C@,$ECHO_C,;t t
7461 s,@ECHO_N@,$ECHO_N,;t t
7462 s,@ECHO_T@,$ECHO_T,;t t
7463 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7466 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7467 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7468 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7469 s,@PACKAGE@,$PACKAGE,;t t
7470 s,@VERSION@,$VERSION,;t t
7471 s,@ACLOCAL@,$ACLOCAL,;t t
7472 s,@AUTOCONF@,$AUTOCONF,;t t
7473 s,@AUTOMAKE@,$AUTOMAKE,;t t
7474 s,@AUTOHEADER@,$AUTOHEADER,;t t
7475 s,@MAKEINFO@,$MAKEINFO,;t t
7476 s,@SET_MAKE@,$SET_MAKE,;t t
7477 s,@AT_TESTPATH@,$AT_TESTPATH,;t t
7479 s,@CFLAGS@,$CFLAGS,;t t
7480 s,@LDFLAGS@,$LDFLAGS,;t t
7481 s,@CPPFLAGS@,$CPPFLAGS,;t t
7482 s,@ac_ct_CC@,$ac_ct_CC,;t t
7483 s,@EXEEXT@,$EXEEXT,;t t
7484 s,@OBJEXT@,$OBJEXT,;t t
7486 s,@RANLIB@,$RANLIB,;t t
7487 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7489 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
7491 s,@ANSI2KNR@,$ANSI2KNR,;t t
7492 s,@ALLOCA@,$ALLOCA,;t t
7493 s,@LIBOBJS@,$LIBOBJS,;t t
7494 s,@build@,$build,;t t
7495 s,@build_cpu@,$build_cpu,;t t
7496 s,@build_vendor@,$build_vendor,;t t
7497 s,@build_os@,$build_os,;t t
7499 s,@host_cpu@,$host_cpu,;t t
7500 s,@host_vendor@,$host_vendor,;t t
7501 s,@host_os@,$host_os,;t t
7502 s,@GLIBC21@,$GLIBC21,;t t
7503 s,@LIBICONV@,$LIBICONV,;t t
7504 s,@USE_NLS@,$USE_NLS,;t t
7505 s,@MSGFMT@,$MSGFMT,;t t
7506 s,@GMSGFMT@,$GMSGFMT,;t t
7507 s,@XGETTEXT@,$XGETTEXT,;t t
7508 s,@INTLBISON@,$INTLBISON,;t t
7509 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7510 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7511 s,@CATALOGS@,$CATALOGS,;t t
7512 s,@CATOBJEXT@,$CATOBJEXT,;t t
7513 s,@GMOFILES@,$GMOFILES,;t t
7514 s,@INTLLIBS@,$INTLLIBS,;t t
7515 s,@INTLOBJS@,$INTLOBJS,;t t
7516 s,@POFILES@,$POFILES,;t t
7517 s,@POSUB@,$POSUB,;t t
7518 s,@DATADIRNAME@,$DATADIRNAME,;t t
7519 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7520 s,@GENCAT@,$GENCAT,;t t
7521 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7522 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7527 cat >>$CONFIG_STATUS <<\EOF
7528 # Split the substitutions into bite-sized pieces for seds with
7529 # small command number limits, like on Digital OSF/1 and HP-UX.
7531 ac_sed_frag
=1 # Number of current file.
7532 ac_beg
=1 # First line for current file.
7533 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7536 while $ac_more_lines; do
7537 if test $ac_beg -gt 1; then
7538 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7540 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7542 if test ! -s $tmp/subs.frag
; then
7545 # The purpose of the label and of the branching condition is to
7546 # speed up the sed processing (if there are no `@' at all, there
7547 # is no need to browse any of the substitutions).
7548 # These are the two extra sed commands mentioned above.
7550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
7551 if test -z "$ac_sed_cmds"; then
7552 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7554 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7556 ac_sed_frag
=`expr $ac_sed_frag + 1`
7558 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7561 if test -z "$ac_sed_cmds"; then
7564 fi # test -n "$CONFIG_FILES"
7567 cat >>$CONFIG_STATUS <<\EOF
7568 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7569 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7571 - | *:- | *:-:* ) # input from stdin
7573 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7574 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7575 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7576 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7577 * ) ac_file_in
=$ac_file.
in ;;
7580 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7581 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7582 X"$ac_file" : 'X\(//\)[^/]' \| \
7583 X"$ac_file" : 'X\(//\)$' \| \
7584 X"$ac_file" : 'X\(/\)' \| \
7585 . : '\(.\)' 2>/dev/null ||
7587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7589 /^X\(\/\/\)$/{ s//\1/; q; }
7590 /^X\(\/\).*/{ s//\1/; q; }
7592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7594 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7598 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7599 case $as_mkdir_dir in
7600 # Skip DOS drivespec
7601 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7603 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7604 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7609 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
7610 # A "../" for each directory in $ac_dir_suffix.
7611 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7613 ac_dir_suffix
= ac_dots
=
7618 if test -z "$ac_dots"; then
7621 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
7624 ac_srcdir
=$srcdir$ac_dir_suffix;
7625 ac_top_srcdir
=$srcdir ;;
7627 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
7628 ac_top_srcdir
=$ac_dots$srcdir ;;
7632 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7633 *) ac_INSTALL
=$ac_dots$INSTALL ;;
7636 if test x
"$ac_file" != x
-; then
7637 { echo "$as_me:7637: creating $ac_file" >&5
7638 echo "$as_me: creating $ac_file" >&6;}
7641 # Let's still pretend it is `configure' which instantiates (i.e., don't
7642 # use $as_me), people would be surprised to read:
7643 # /* config.h. Generated automatically by config.status. */
7644 configure_input
="Generated automatically from `echo $ac_file_in |
7645 sed 's,.*/,,'` by configure."
7647 # First look for the input files in the build tree, otherwise in the
7649 ac_file_inputs
=`IFS=:
7650 for f in $ac_file_in; do
7652 -) echo $tmp/stdin ;;
7654 # Absolute (can't be DOS-style, as IFS=:)
7655 test -f "$f" || { { echo "$as_me:7655: error: cannot find input file: $f" >&5
7656 echo "$as_me: error: cannot find input file: $f" >&2;}
7657 { (exit 1); exit 1; }; }
7660 if test -f "$f"; then
7663 elif test -f "$srcdir/$f"; then
7668 { { echo "$as_me:7668: error: cannot find input file: $f" >&5
7669 echo "$as_me: error: cannot find input file: $f" >&2;}
7670 { (exit 1); exit 1; }; }
7673 done` || { (exit 1); exit 1; }
7675 cat >>$CONFIG_STATUS <<EOF
7679 cat >>$CONFIG_STATUS <<\EOF
7681 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
7682 s
,@configure_input@
,$configure_input,;t t
7683 s
,@srcdir@
,$ac_srcdir,;t t
7684 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7685 s
,@INSTALL@
,$ac_INSTALL,;t t
7686 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7688 if test x"$ac_file" != x-; then
7689 mv $tmp/out $ac_file
7697 cat >>$CONFIG_STATUS <<\EOF
7700 # CONFIG_HEADER section.
7703 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7704 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7706 # ac_d sets the value in "#define NAME VALUE" lines.
7707 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7708 ac_dB
='[ ].*$,\1#\2'
7711 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7712 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7713 ac_uB
='$,\1#\2define\3'
7717 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7720 - | *:- | *:-:* ) # input from stdin
7722 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7723 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7724 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7725 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7726 * ) ac_file_in
=$ac_file.
in ;;
7729 test x
"$ac_file" != x
- && { echo "$as_me:7729: creating $ac_file" >&5
7730 echo "$as_me: creating $ac_file" >&6;}
7732 # First look for the input files in the build tree, otherwise in the
7734 ac_file_inputs
=`IFS=:
7735 for f in $ac_file_in; do
7737 -) echo $tmp/stdin ;;
7739 # Absolute (can't be DOS-style, as IFS=:)
7740 test -f "$f" || { { echo "$as_me:7740: error: cannot find input file: $f" >&5
7741 echo "$as_me: error: cannot find input file: $f" >&2;}
7742 { (exit 1); exit 1; }; }
7745 if test -f "$f"; then
7748 elif test -f "$srcdir/$f"; then
7753 { { echo "$as_me:7753: error: cannot find input file: $f" >&5
7754 echo "$as_me: error: cannot find input file: $f" >&2;}
7755 { (exit 1); exit 1; }; }
7758 done` || { (exit 1); exit 1; }
7759 # Remove the trailing spaces.
7760 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7764 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7765 # `conftest.undefs', that substitutes the proper values into
7766 # config.h.in to produce config.h. The first handles `#define'
7767 # templates, and the second `#undef' templates.
7768 # And first: Protect against being on the right side of a sed subst in
7769 # config.status. Protect against being in an unquoted here document
7771 rm -f conftest.defines conftest.undefs
7772 # Using a here document instead of a string reduces the quoting nightmare.
7773 # Putting comments in sed scripts is not portable.
7775 # `end' is used to avoid that the second main sed command (meant for
7776 # 0-ary CPP macros) applies to n-ary macro definitions.
7777 # See the Autoconf documentation for `clear'.
7778 cat >confdef2sed.
sed <<\EOF
7783 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7785 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7788 # If some macros were called several times there might be several times
7789 # the same #defines, which is useless. Nevertheless, we may not want to
7790 # sort them, since we want the *last* AC-DEFINE to be honored.
7791 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7792 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7793 rm -f confdef2sed.sed
7795 # This sed command replaces #undef with comments. This is necessary, for
7796 # example, in the case of _POSIX_SOURCE, which is predefined and required
7797 # on some systems where configure will not decide to define it.
7798 cat >>conftest.undefs <<\EOF
7799 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7802 # Break up conftest.defines because some shells have a limit on the size
7803 # of here documents, and old seds have small limits too (100 cmds).
7804 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7805 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7806 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7807 echo ' :' >>$CONFIG_STATUS
7809 while grep . conftest.defines >/dev/null
7811 # Write a limited-size here document to $tmp/defines.sed.
7812 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7813 # Speed up: don't consider the non `#define' lines.
7814 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7815 # Work around the forget-to-reset-the-flag bug.
7816 echo 't clr' >>$CONFIG_STATUS
7817 echo ': clr' >>$CONFIG_STATUS
7818 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7820 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7824 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7825 rm -f conftest.defines
7826 mv conftest.
tail conftest.defines
7828 rm -f conftest.defines
7829 echo ' fi # egrep' >>$CONFIG_STATUS
7830 echo >>$CONFIG_STATUS
7832 # Break up conftest.undefs because some shells have a limit on the size
7833 # of here documents, and old seds have small limits too (100 cmds).
7834 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7836 while grep . conftest.undefs
>/dev
/null
7838 # Write a limited-size here document to $tmp/undefs.sed.
7839 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7840 # Speed up: don't consider the non
`#undef'
7841 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7842 # Work around the forget-to-reset-the-flag bug.
7843 echo 't clr' >>$CONFIG_STATUS
7844 echo ': clr' >>$CONFIG_STATUS
7845 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7847 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7851 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7852 rm -f conftest.undefs
7853 mv conftest.tail conftest.undefs
7855 rm -f conftest.undefs
7857 cat >>$CONFIG_STATUS <<\EOF
7858 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7859 # use $as_me), people would be surprised to read:
7860 # /* config.h. Generated automatically by config.status. */
7861 if test x
"$ac_file" = x
-; then
7862 echo "/* Generated automatically by configure. */" >$tmp/config.h
7864 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7866 cat $tmp/in >>$tmp/config.h
7868 if test x
"$ac_file" != x
-; then
7869 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
7870 { echo "$as_me:7870: $ac_file is unchanged" >&5
7871 echo "$as_me: $ac_file is unchanged" >&6;}
7873 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7874 X"$ac_file" : 'X\(//\)[^/]' \| \
7875 X"$ac_file" : 'X\(//\)$' \| \
7876 X"$ac_file" : 'X\(/\)' \| \
7877 . : '\(.\)' 2>/dev/null ||
7879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7881 /^X\(\/\/\)$/{ s//\1/; q; }
7882 /^X\(\/\).*/{ s//\1/; q; }
7884 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7886 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7890 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7891 case $as_mkdir_dir in
7892 # Skip DOS drivespec
7893 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7895 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7896 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7903 mv $tmp/config.h
$ac_file
7911 cat >>$CONFIG_STATUS <<\EOF
7914 # CONFIG_COMMANDS section.
7916 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
7917 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
7918 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7921 default
-1 ) test -z "$CONFIG_HEADERS" || echo timestamp
> stamp
-h ;;
7922 default
-2 ) for ac_file
in $CONFIG_FILES; do
7923 # Support "outfile[:infile[:infile...]]"
7925 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7927 # PO directories have a Makefile.in generated from Makefile.in.in.
7928 case "$ac_file" in */Makefile.
in)
7929 # Adjust a relative srcdir.
7930 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7931 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
7932 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7933 # In autoconf-2.13 it is called $ac_given_srcdir.
7934 # In autoconf-2.50 it is called $srcdir.
7935 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
7936 case "$ac_given_srcdir" in
7937 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
7938 /*) top_srcdir
="$ac_given_srcdir" ;;
7939 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7941 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7942 rm -f "$ac_dir/POTFILES"
7943 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7944 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
7945 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7946 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7955 cat >>$CONFIG_STATUS <<\EOF
7957 { (exit 0); exit 0; }
7959 chmod +x
$CONFIG_STATUS
7960 ac_clean_files
=$ac_clean_files_save
7962 # configure is writing to config.log, and then calls config.status.
7963 # config.status does its own redirection, appending to config.log.
7964 # Unfortunately, on DOS this fails, as config.log is still kept open
7965 # by configure, so config.status won't be able to write to it; its
7966 # output is simply discarded. So we exec the FD to /dev/null,
7967 # effectively closing config.log, so it can be properly (re)opened and
7968 # appended to by config.status. When coming back to configure, we
7969 # need to make the FD available again.
7970 if test "$no_create" != yes; then
7973 $SHELL $CONFIG_STATUS || ac_cs_success
=false
7975 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7976 # would make configure fail if this is the last instruction.
7977 $ac_cs_success || { (exit 1); exit 1; }