2 # From configure.in Revision: 1.1.1.1 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for enscript 1.6.4.
6 # Report bugs to <mtr@iki.fi>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='enscript'
271 PACKAGE_TARNAME='enscript'
272 PACKAGE_VERSION='1.6.4'
273 PACKAGE_STRING='enscript 1.6.4'
274 PACKAGE_BUGREPORT='mtr@iki.fi'
276 ac_unique_file="src/gsint.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR ALLOCA LIBOBJS RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT MEDIA SPOOLER PSLEVEL MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB PERL LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures enscript 1.6.4 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of enscript 1.6.4:";;
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --disable-dependency-tracking Speeds up one-time builds
857 --enable-dependency-tracking Do not reject slow dependency extractors
858 --enable-debug enable debugging
859 --disable-rpath do not hardcode runtime library paths
860 --disable-nls do not use Native Language Support
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --with-cc(=CC) use system's native compiler (or compiler CC)
866 --with-media(=MEDIA) use output media Letter (MEDIA), default is A4
867 --with-spooler=SPOOLER set the printer spooler command
868 --with-ps-level=LEVEL set the PostScript language level to LEVEL
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
871 --without-libiconv-prefix don't search for libiconv in includedir and libdir
872 --with-included-gettext use the GNU gettext library included here
873 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
874 --without-libintl-prefix don't search for libintl in includedir and libdir
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
888 Report bugs to <mtr@iki.fi>.
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 ac_dir_suffix= ac_top_builddir=
908 .) # No --srcdir option. We are building in place.
910 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
925 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
926 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
927 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930 # Check for guested configure; otherwise get Cygnus style configure.
931 if test -f $ac_srcdir/configure.gnu; then
933 $SHELL $ac_srcdir/configure.gnu --help=recursive
934 elif test -f $ac_srcdir/configure; then
936 $SHELL $ac_srcdir/configure --help=recursive
937 elif test -f $ac_srcdir/configure.ac ||
938 test -f $ac_srcdir/configure.in; then
942 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948 test -n "$ac_init_help" && exit 0
949 if $ac_init_version; then
951 enscript configure 1.6.4
952 generated by GNU Autoconf 2.57
954 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
955 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
963 This file contains any messages produced by compilers while
964 running configure, to aid debugging if configure makes a mistake.
966 It was created by enscript $as_me 1.6.4, which was
967 generated by GNU Autoconf 2.57. Invocation command line was
978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
987 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
988 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
991 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
992 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
993 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 test -z "$as_dir" && as_dir=.
1002 echo "PATH: $as_dir"
1017 # Keep a trace of the command line.
1018 # Strip out --no-create and --no-recursion so they do not pile up.
1019 # Strip out --silent because we don't want to record it for future runs.
1020 # Also quote any args containing shell meta-characters.
1021 # Make two passes to allow for proper duplicate-argument suppression.
1026 ac_must_keep_next=false
1032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1036 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1042 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043 if test $ac_must_keep_next = true; then
1044 ac_must_keep_next=false # Got value, back to normal.
1047 *=* | --config-cache | -C | -disable-* | --disable-* \
1048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050 | -with-* | --with-* | -without-* | --without-* | --x)
1051 case "$ac_configure_args0 " in
1052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055 -* ) ac_must_keep_next=true ;;
1058 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059 # Get rid of the leading space.
1065 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1068 # When interrupted or exit'd, cleanup temporary files, and complete
1069 # config.log. We remove comments because anyway the quotes in there
1070 # would cause problems or look ugly.
1071 # WARNING: Be sure not to use single quotes in there, as some shells,
1072 # such as our DU 5.0 friend, will then `close' the trap.
1073 trap 'exit_status=$?
1074 # Save into config.log some information that might help in debugging.
1079 ## ---------------- ##
1080 ## Cache variables. ##
1081 ## ---------------- ##
1084 # The following way of writing the cache mishandles newlines in values,
1087 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1095 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 ## ----------------- ##
1103 ## Output variables. ##
1104 ## ----------------- ##
1107 for ac_var in $ac_subst_vars
1109 eval ac_val=$`echo $ac_var`
1110 echo "$ac_var='"'"'$ac_val'"'"'"
1114 if test -n "$ac_subst_files"; then
1121 for ac_var in $ac_subst_files
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -s confdefs.h; then
1136 sed "/^$/d" confdefs.h | sort
1139 test "$ac_signal" != 0 &&
1140 echo "$as_me: caught signal $ac_signal"
1141 echo "$as_me: exit $exit_status"
1143 rm -f core core.* *.core &&
1144 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1147 for ac_signal in 1 2 13 15; do
1148 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1153 rm -rf conftest* confdefs.h
1154 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157 # Predefined preprocessor variables.
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_NAME "$PACKAGE_NAME"
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_STRING "$PACKAGE_STRING"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184 # Let the site file select an alternate cache file if it wants to.
1185 # Prefer explicitly selected file to automatically selected ones.
1186 if test -z "$CONFIG_SITE"; then
1187 if test "x$prefix" != xNONE; then
1188 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1190 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1193 for ac_site_file in $CONFIG_SITE; do
1194 if test -r "$ac_site_file"; then
1195 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196 echo "$as_me: loading site script $ac_site_file" >&6;}
1197 sed 's/^/| /' "$ac_site_file" >&5
1202 if test -r "$cache_file"; then
1203 # Some versions of bash will fail to source /dev/null (special
1204 # files actually), so we avoid doing that.
1205 if test -f "$cache_file"; then
1206 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207 echo "$as_me: loading cache $cache_file" >&6;}
1209 [\\/]* | ?:[\\/]* ) . $cache_file;;
1210 *) . ./$cache_file;;
1214 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215 echo "$as_me: creating cache $cache_file" >&6;}
1219 # Check that the precious variables saved in the cache have kept the same
1221 ac_cache_corrupted=false
1222 for ac_var in `(set) 2>&1 |
1223 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225 eval ac_new_set=\$ac_env_${ac_var}_set
1226 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227 eval ac_new_val="\$ac_env_${ac_var}_value"
1228 case $ac_old_set,$ac_new_set in
1230 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232 ac_cache_corrupted=: ;;
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1239 if test "x$ac_old_val" != "x$ac_new_val"; then
1240 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1243 echo "$as_me: former value: $ac_old_val" >&2;}
1244 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1245 echo "$as_me: current value: $ac_new_val" >&2;}
1246 ac_cache_corrupted=:
1249 # Pass precious variables to config.status.
1250 if test "$ac_new_set" = set; then
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 *) ac_arg=$ac_var=$ac_new_val ;;
1256 case " $ac_configure_args " in
1257 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1258 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262 if $ac_cache_corrupted; then
1263 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267 { (exit 1); exit 1; }; }
1271 ac_cpp='$CPP $CPPFLAGS'
1272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306 am__api_version="1.7"
1308 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1309 if test -f $ac_dir/install-sh; then
1311 ac_install_sh="$ac_aux_dir/install-sh -c"
1313 elif test -f $ac_dir/install.sh; then
1315 ac_install_sh="$ac_aux_dir/install.sh -c"
1317 elif test -f $ac_dir/shtool; then
1319 ac_install_sh="$ac_aux_dir/shtool install -c"
1323 if test -z "$ac_aux_dir"; then
1324 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1325 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1326 { (exit 1); exit 1; }; }
1328 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1329 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1330 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1332 # Find a good install program. We prefer a C program (faster),
1333 # so one script is as good as another. But avoid the broken or
1334 # incompatible versions:
1335 # SysV /etc/install, /usr/sbin/install
1336 # SunOS /usr/etc/install
1337 # IRIX /sbin/install
1339 # AmigaOS /C/install, which installs bootblocks on floppy discs
1340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1343 # ./install, which can be erroneously created by make from ./install.sh.
1344 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1346 if test -z "$INSTALL"; then
1347 if test "${ac_cv_path_install+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354 test -z "$as_dir" && as_dir=.
1355 # Account for people who put trailing slashes in PATH elements.
1357 ./ | .// | /cC/* | \
1358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1361 # OSF1 and SCO ODT 3.0 have their own names for install.
1362 # Don't use installbsd from OSF since it installs stuff as root
1364 for ac_prog in ginstall scoinst install; do
1365 for ac_exec_ext in '' $ac_executable_extensions; do
1366 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1367 if test $ac_prog = install &&
1368 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1369 # AIX install. It has an incompatible calling convention.
1371 elif test $ac_prog = install &&
1372 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1373 # program-specific install script used by HP pwplus--don't use.
1376 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1388 if test "${ac_cv_path_install+set}" = set; then
1389 INSTALL=$ac_cv_path_install
1391 # As a last resort, use the slow shell script. We don't cache a
1392 # path for INSTALL within a source directory, because that will
1393 # break other packages using the cache if that directory is
1394 # removed, or if the path is relative.
1395 INSTALL=$ac_install_sh
1398 echo "$as_me:$LINENO: result: $INSTALL" >&5
1399 echo "${ECHO_T}$INSTALL" >&6
1401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1402 # It thinks the first close brace ends the variable substitution.
1403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1409 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1410 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1413 echo timestamp > conftest.file
1414 # Do `set' in a subshell so we don't clobber the current shell's
1415 # arguments. Must try -L first in case configure is actually a
1416 # symlink; some systems play weird games with the mod time of symlinks
1417 # (eg FreeBSD returns the mod time of the symlink's containing
1420 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1421 if test "$*" = "X"; then
1423 set X `ls -t $srcdir/configure conftest.file`
1426 if test "$*" != "X $srcdir/configure conftest.file" \
1427 && test "$*" != "X conftest.file $srcdir/configure"; then
1429 # If neither matched, then we have a broken ls. This can happen
1430 # if, for instance, CONFIG_SHELL is bash and it inherits a
1431 # broken ls alias from the environment. This has actually
1432 # happened. Such a system could not be considered "sane".
1433 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1434 alias in your environment" >&5
1435 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1436 alias in your environment" >&2;}
1437 { (exit 1); exit 1; }; }
1440 test "$2" = conftest.file
1446 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1447 Check your system clock" >&5
1448 echo "$as_me: error: newly created file is older than distributed files!
1449 Check your system clock" >&2;}
1450 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: yes" >&5
1453 echo "${ECHO_T}yes" >&6
1454 test "$program_prefix" != NONE &&
1455 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1456 # Use a double $ so make ignores it.
1457 test "$program_suffix" != NONE &&
1458 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1459 # Double any \ or $. echo might interpret backslashes.
1460 # By default was `s,x,x', remove it if useless.
1461 cat <<\_ACEOF >conftest.sed
1462 s/[\\$]/&&/g;s/;s,x,x,$//
1464 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1468 # expand $ac_aux_dir to an absolute path
1469 am_aux_dir=`cd $ac_aux_dir && pwd`
1471 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1472 # Use eval to expand $SHELL
1473 if eval "$MISSING --run true"; then
1474 am_missing_run="$MISSING --run "
1477 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1478 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1481 for ac_prog in gawk mawk nawk awk
1483 # Extract the first word of "$ac_prog", so it can be a program name with args.
1484 set dummy $ac_prog; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_AWK+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 if test -n "$AWK"; then
1491 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_prog_AWK="$ac_prog"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 if test -n "$AWK"; then
1511 echo "$as_me:$LINENO: result: $AWK" >&5
1512 echo "${ECHO_T}$AWK" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1518 test -n "$AWK" && break
1521 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1522 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1523 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1524 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 cat >conftest.make <<\_ACEOF
1529 @echo 'ac_maketemp="$(MAKE)"'
1531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1532 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1533 if test -n "$ac_maketemp"; then
1534 eval ac_cv_prog_make_${ac_make}_set=yes
1536 eval ac_cv_prog_make_${ac_make}_set=no
1540 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1541 echo "$as_me:$LINENO: result: yes" >&5
1542 echo "${ECHO_T}yes" >&6
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1547 SET_MAKE="MAKE=${MAKE-make}"
1550 # test to see if srcdir already configured
1551 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1552 test -f $srcdir/config.status; then
1553 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1554 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1555 { (exit 1); exit 1; }; }
1558 # test whether we have cygpath
1559 if test -z "$CYGPATH_W"; then
1560 if (cygpath --version) >/dev/null 2>/dev/null; then
1561 CYGPATH_W='cygpath -w'
1568 # Define the identity of the package.
1573 cat >>confdefs.h <<_ACEOF
1574 #define PACKAGE "$PACKAGE"
1578 cat >>confdefs.h <<_ACEOF
1579 #define VERSION "$VERSION"
1582 # Some tools Automake needs.
1584 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1587 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1590 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1593 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1596 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1599 AMTAR=${AMTAR-"${am_missing_run}tar"}
1601 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1603 # Installed binaries are usually stripped using `strip' when the user
1604 # run `make install-strip'. However `strip' might not be the right
1605 # tool to use in cross-compilation environments, therefore Automake
1606 # will honor the `STRIP' environment variable to overrule this program.
1607 if test "$cross_compiling" != no; then
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}strip; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_STRIP+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$STRIP"; then
1617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 STRIP=$ac_cv_prog_STRIP
1636 if test -n "$STRIP"; then
1637 echo "$as_me:$LINENO: result: $STRIP" >&5
1638 echo "${ECHO_T}$STRIP" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$ac_cv_prog_STRIP"; then
1647 # Extract the first word of "strip", so it can be a program name with args.
1648 set dummy strip; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$ac_ct_STRIP"; then
1655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_STRIP="strip"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1675 if test -n "$ac_ct_STRIP"; then
1676 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1677 echo "${ECHO_T}$ac_ct_STRIP" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1685 STRIP="$ac_cv_prog_STRIP"
1689 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1691 # We need awk for the "check" target. The system "awk" is bad on
1696 ac_config_headers="$ac_config_headers config.h"
1701 # Find a good install program. We prefer a C program (faster),
1702 # so one script is as good as another. But avoid the broken or
1703 # incompatible versions:
1704 # SysV /etc/install, /usr/sbin/install
1705 # SunOS /usr/etc/install
1706 # IRIX /sbin/install
1708 # AmigaOS /C/install, which installs bootblocks on floppy discs
1709 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1710 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1711 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 # Account for people who put trailing slashes in PATH elements.
1726 ./ | .// | /cC/* | \
1727 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1730 # OSF1 and SCO ODT 3.0 have their own names for install.
1731 # Don't use installbsd from OSF since it installs stuff as root
1733 for ac_prog in ginstall scoinst install; do
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1736 if test $ac_prog = install &&
1737 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738 # AIX install. It has an incompatible calling convention.
1740 elif test $ac_prog = install &&
1741 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1742 # program-specific install script used by HP pwplus--don't use.
1745 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1757 if test "${ac_cv_path_install+set}" = set; then
1758 INSTALL=$ac_cv_path_install
1760 # As a last resort, use the slow shell script. We don't cache a
1761 # path for INSTALL within a source directory, because that will
1762 # break other packages using the cache if that directory is
1763 # removed, or if the path is relative.
1764 INSTALL=$ac_install_sh
1767 echo "$as_me:$LINENO: result: $INSTALL" >&5
1768 echo "${ECHO_T}$INSTALL" >&6
1770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1771 # It thinks the first close brace ends the variable substitution.
1772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1780 # Check whether --with-cc or --without-cc was given.
1781 if test "${with_cc+set}" = set; then
1783 if test "X$withval" != "Xno"; then
1784 if test "X$withval" = "Xyes"; then
1789 CFLAGS="$CFLAGS -I/usr/local/include"
1790 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1791 echo "using compiler CC=$CC"
1796 if test "X$CC" = "X"; then
1798 ac_cpp='$CPP $CPPFLAGS'
1799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802 if test -n "$ac_tool_prefix"; then
1803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 if test -n "$CC"; then
1811 ac_cv_prog_CC="$CC" # Let the user override the test.
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 if test -n "$CC"; then
1831 echo "$as_me:$LINENO: result: $CC" >&5
1832 echo "${ECHO_T}$CC" >&6
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1839 if test -z "$ac_cv_prog_CC"; then
1841 # Extract the first word of "gcc", so it can be a program name with args.
1842 set dummy gcc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_ac_ct_CC="gcc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1868 if test -n "$ac_ct_CC"; then
1869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1870 echo "${ECHO_T}$ac_ct_CC" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1881 if test -z "$CC"; then
1882 if test -n "$ac_tool_prefix"; then
1883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}cc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 if test -n "$CC"; then
1891 ac_cv_prog_CC="$CC" # Let the user override the test.
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_CC="${ac_tool_prefix}cc"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 if test -n "$CC"; then
1911 echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1919 if test -z "$ac_cv_prog_CC"; then
1921 # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 if test -n "$ac_ct_CC"; then
1929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_ac_ct_CC="cc"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1962 if test -z "$CC"; then
1963 # Extract the first word of "cc", so it can be a program name with args.
1964 set dummy cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982 ac_prog_rejected=yes
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 if test $ac_prog_rejected = yes; then
1993 # We found a bogon in the path, so make sure we never use it.
1994 set dummy $ac_cv_prog_CC
1996 if test $# != 0; then
1997 # We chose a different compiler from the bogus one.
1998 # However, it has the same basename, so the bogon will be chosen
1999 # first if we set CC to just the basename; use the full file name.
2001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2007 if test -n "$CC"; then
2008 echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2016 if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 if test -n "$CC"; then
2048 echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$CC" && break
2058 if test -z "$CC"; then
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_ac_ct_CC="$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2097 test -n "$ac_ct_CC" && break
2106 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&2;}
2110 { (exit 1); exit 1; }; }
2112 # Provide some information about the compiler.
2113 echo "$as_me:$LINENO:" \
2114 "checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2117 (eval $ac_compiler --version </dev/null >&5) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2122 (eval $ac_compiler -v </dev/null >&5) 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2127 (eval $ac_compiler -V </dev/null >&5) 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2132 cat >conftest.$ac_ext <<_ACEOF
2133 #line $LINENO "configure"
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2153 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2154 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157 (eval $ac_link_default) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Find the output, starting from the most likely. This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2171 test -f "$ac_file" || continue
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2176 # This is the source file.
2179 # We found the default executable, but exeext='' is most
2183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184 # FIXME: I believe we export ac_cv_exeext for Libtool,
2185 # but it would be cool to find out if it's true. Does anybody
2186 # maintain Libtool? --akim.
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2223 if test "$cross_compiling" = maybe; then
2226 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232 { (exit 1); exit 1; }; }
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251 (eval $ac_link) 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 rm -f conftest.o conftest.obj
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2331 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 echo "${ECHO_T}$ac_cv_objext" >&6
2333 OBJEXT=$ac_cv_objext
2335 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2382 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2384 GCC=`test $ac_compiler_gnu = yes && echo yes`
2385 ac_test_CFLAGS=${CFLAGS+set}
2386 ac_save_CFLAGS=$CFLAGS
2388 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2389 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_g+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #line $LINENO "configure"
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f conftest.$ac_objext conftest.$ac_ext
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2432 if test "$ac_test_CFLAGS" = set; then
2433 CFLAGS=$ac_save_CFLAGS
2434 elif test $ac_cv_prog_cc_g = yes; then
2435 if test "$GCC" = yes; then
2441 if test "$GCC" = yes; then
2447 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2448 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 ac_cv_prog_cc_stdc=no
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2463 #include <sys/types.h>
2464 #include <sys/stat.h>
2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2466 struct buf { int x; };
2467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2468 static char *e (p, i)
2474 static char *f (char * (*g) (char **, int), char **p, ...)
2479 s = g (p, va_arg (v,int));
2483 int test (int i, double x);
2484 struct s1 {int (*f) (int a);};
2485 struct s2 {int (*f) (double a);};
2486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2497 # Don't try gcc -ansi; that turns off useful extensions and
2498 # breaks some systems' header files.
2499 # AIX -qlanglvl=ansi
2500 # Ultrix and OSF/1 -std1
2501 # HP-UX 10.20 and later -Ae
2502 # HP-UX older versions -Aa -D_HPUX_SOURCE
2503 # SVR4 -Xc -D__EXTENSIONS__
2504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2506 CC="$ac_save_CC $ac_arg"
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc=$ac_arg
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.$ac_objext
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2533 case "x$ac_cv_prog_cc_stdc" in
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC="$CC $ac_cv_prog_cc_stdc" ;;
2543 # Some people use a C++ compiler to compile C. Since we use `exit',
2544 # in C++ we need to declare it. In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 for ac_declaration in \
2566 '#include <stdlib.h>' \
2567 'extern "C" void std::exit (int) throw (); using std::exit;' \
2568 'extern "C" void std::exit (int); using std::exit;' \
2569 'extern "C" void exit (int) throw ();' \
2570 'extern "C" void exit (int);' \
2573 cat >conftest.$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f conftest.$ac_objext conftest.$ac_ext
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2647 if test -n "$ac_declaration"; then
2648 echo '#ifdef __cplusplus' >>confdefs.h
2649 echo $ac_declaration >>confdefs.h
2650 echo '#endif' >>confdefs.h
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 rm -f .deps 2>/dev/null
2665 mkdir .deps 2>/dev/null
2666 if test -d .deps; then
2669 # MS-DOS does not allow filenames that begin with a dot.
2672 rmdir .deps 2>/dev/null
2675 ac_config_commands="$ac_config_commands depfiles"
2678 am_make=${MAKE-make}
2679 cat > confinc << 'END'
2683 # If we don't find an include directive, just comment out the code.
2684 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2685 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2689 # First try GNU make style include.
2690 echo "include confinc" > confmf
2691 # We grep out `Entering directory' and `Leaving directory'
2692 # messages which can occur if `w' ends up in MAKEFLAGS.
2693 # In particular we don't look at `^make:' because GNU make might
2694 # be invoked under some other name (usually "gmake"), in which
2695 # case it prints its new name instead of `make'.
2696 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2701 # Now try BSD make style include.
2702 if test "$am__include" = "#"; then
2703 echo '.include "confinc"' > confmf
2704 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2705 am__include=.include
2712 echo "$as_me:$LINENO: result: $_am_result" >&5
2713 echo "${ECHO_T}$_am_result" >&6
2714 rm -f confinc confmf
2716 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2717 if test "${enable_dependency_tracking+set}" = set; then
2718 enableval="$enable_dependency_tracking"
2721 if test "x$enable_dependency_tracking" != xno; then
2722 am_depcomp="$ac_aux_dir/depcomp"
2727 if test "x$enable_dependency_tracking" != xno; then
2738 depcc="$CC" am_compiler_list=
2740 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2741 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2742 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2746 # We make a subdir and do the tests there. Otherwise we can end up
2747 # making bogus files that we don't know about and never remove. For
2748 # instance it was reported that on HP-UX the gcc test will end up
2749 # making a dummy file named `D' -- because `-MD' means `put the output
2752 # Copy depcomp to subdir because otherwise we won't find it if we're
2753 # using a relative directory.
2754 cp "$am_depcomp" conftest.dir
2757 am_cv_CC_dependencies_compiler_type=none
2758 if test "$am_compiler_list" = ""; then
2759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2761 for depmode in $am_compiler_list; do
2762 # We need to recreate these files for each test, as the compiler may
2763 # overwrite some of them when testing with obscure command lines.
2764 # This happens at least with the AIX C compiler.
2765 echo '#include "conftest.h"' > conftest.c
2766 echo 'int i;' > conftest.h
2767 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2771 # after this tag, mechanisms are not by side-effect, so they'll
2772 # only be used when explicitly requested
2773 if test "x$enable_dependency_tracking" = xyes; then
2781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2782 # mode. It turns out that the SunPro C++ compiler does not properly
2783 # handle `-M -o', and we need to detect this.
2784 if depmode=$depmode \
2785 source=conftest.c object=conftest.o \
2786 depfile=conftest.Po tmpdepfile=conftest.TPo \
2787 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2788 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790 am_cv_CC_dependencies_compiler_type=$depmode
2798 am_cv_CC_dependencies_compiler_type=none
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2809 test "x$enable_dependency_tracking" != xno \
2810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2812 am__fastdepCC_FALSE='#'
2814 am__fastdepCC_TRUE='#'
2815 am__fastdepCC_FALSE=
2823 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2824 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2825 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 ac_check_lib_save_LIBS=$LIBS
2829 LIBS="-lcposix $LIBS"
2830 cat >conftest.$ac_ext <<_ACEOF
2831 #line $LINENO "configure"
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2838 /* Override any gcc2 internal prototype to avoid an error. */
2842 /* We use char because int might match the return type of a gcc2
2843 builtin and then its argument prototype would still apply. */
2853 rm -f conftest.$ac_objext conftest$ac_exeext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2855 (eval $ac_link) 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -s conftest$ac_exeext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 ac_cv_lib_cposix_strerror=yes
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 ac_cv_lib_cposix_strerror=no
2872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2873 LIBS=$ac_check_lib_save_LIBS
2875 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2876 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2877 if test $ac_cv_lib_cposix_strerror = yes; then
2878 LIBS="$LIBS -lcposix"
2886 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2887 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2888 if test "${am_cv_prog_cc_stdc+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 am_cv_prog_cc_stdc=no
2893 # Don't try gcc -ansi; that turns off useful extensions and
2894 # breaks some systems' header files.
2895 # AIX -qlanglvl=ansi
2896 # Ultrix and OSF/1 -std1
2897 # HP-UX 10.20 and later -Ae
2898 # HP-UX older versions -Aa -D_HPUX_SOURCE
2899 # SVR4 -Xc -D__EXTENSIONS__
2900 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2902 CC="$ac_save_CC $ac_arg"
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2912 #include <sys/types.h>
2913 #include <sys/stat.h>
2914 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2915 struct buf { int x; };
2916 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2917 static char *e (p, i)
2923 static char *f (char * (*g) (char **, int), char **p, ...)
2928 s = g (p, va_arg (v,int));
2932 int test (int i, double x);
2933 struct s1 {int (*f) (int a);};
2934 struct s2 {int (*f) (double a);};
2935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } &&
2955 { ac_try='test -s conftest.$ac_objext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 am_cv_prog_cc_stdc="$ac_arg"; break
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f conftest.$ac_objext conftest.$ac_ext
2973 if test -z "$am_cv_prog_cc_stdc"; then
2974 echo "$as_me:$LINENO: result: none needed" >&5
2975 echo "${ECHO_T}none needed" >&6
2977 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2978 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2980 case "x$am_cv_prog_cc_stdc" in
2982 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2991 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2992 # On Suns, sometimes $CPP names a directory.
2993 if test -n "$CPP" && test -d "$CPP"; then
2996 if test -z "$CPP"; then
2997 if test "${ac_cv_prog_CPP+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 # Double quotes because CPP needs to be expanded
3001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3004 for ac_c_preproc_warn_flag in '' yes
3006 # Use a header file that comes with gcc, so configuring glibc
3007 # with a fresh cross-compiler works.
3008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009 # <limits.h> exists even on freestanding compilers.
3010 # On the NeXT, cc -E runs the code through the compiler's parser,
3011 # not just through cpp. "Syntax error" is here to catch this case.
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line $LINENO "configure"
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3020 # include <limits.h>
3022 # include <assert.h>
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3042 if test -z "$ac_cpp_err"; then
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 # Broken: fails on valid input.
3051 rm -f conftest.err conftest.$ac_ext
3053 # OK, works on sane cases. Now check whether non-existent headers
3054 # can be detected and how.
3055 cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <ac_nonexistent.h>
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3080 if test -z "$ac_cpp_err"; then
3081 # Broken: success on invalid input.
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 # Passes both tests.
3091 rm -f conftest.err conftest.$ac_ext
3094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095 rm -f conftest.err conftest.$ac_ext
3096 if $ac_preproc_ok; then
3108 echo "$as_me:$LINENO: result: $CPP" >&5
3109 echo "${ECHO_T}$CPP" >&6
3111 for ac_c_preproc_warn_flag in '' yes
3113 # Use a header file that comes with gcc, so configuring glibc
3114 # with a fresh cross-compiler works.
3115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116 # <limits.h> exists even on freestanding compilers.
3117 # On the NeXT, cc -E runs the code through the compiler's parser,
3118 # not just through cpp. "Syntax error" is here to catch this case.
3119 cat >conftest.$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3127 # include <limits.h>
3129 # include <assert.h>
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3149 if test -z "$ac_cpp_err"; then
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 # Broken: fails on valid input.
3158 rm -f conftest.err conftest.$ac_ext
3160 # OK, works on sane cases. Now check whether non-existent headers
3161 # can be detected and how.
3162 cat >conftest.$ac_ext <<_ACEOF
3163 #line $LINENO "configure"
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <ac_nonexistent.h>
3171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $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 # Broken: success on invalid input.
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 # Passes both tests.
3198 rm -f conftest.err conftest.$ac_ext
3201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3202 rm -f conftest.err conftest.$ac_ext
3203 if $ac_preproc_ok; then
3206 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3207 See \`config.log' for more details." >&5
3208 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3209 See \`config.log' for more details." >&2;}
3210 { (exit 1); exit 1; }; }
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 echo "$as_me:$LINENO: checking for egrep" >&5
3221 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3222 if test "${ac_cv_prog_egrep+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3226 then ac_cv_prog_egrep='grep -E'
3227 else ac_cv_prog_egrep='egrep'
3230 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3231 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3232 EGREP=$ac_cv_prog_egrep
3235 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3245 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3246 inttypes.h stdint.h unistd.h
3248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3249 echo "$as_me:$LINENO: checking for $ac_header" >&5
3250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.$ac_ext <<_ACEOF
3255 #line $LINENO "configure"
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261 $ac_includes_default
3263 #include <$ac_header>
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 eval "$as_ac_Header=yes"
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 eval "$as_ac_Header=no"
3284 rm -f conftest.$ac_objext conftest.$ac_ext
3286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3289 cat >>confdefs.h <<_ACEOF
3290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3300 echo "$as_me:$LINENO: checking for function prototypes" >&5
3301 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3302 if test "$am_cv_prog_cc_stdc" != no; then
3303 echo "$as_me:$LINENO: result: yes" >&5
3304 echo "${ECHO_T}yes" >&6
3306 cat >>confdefs.h <<\_ACEOF
3307 #define PROTOTYPES 1
3312 echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314 U=_ ANSI2KNR=./ansi2knr
3316 # Ensure some checks needed by ansi2knr itself.
3317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3319 if test "${ac_cv_header_stdc+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_cv_header_stdc=yes
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ac_cv_header_stdc=no
3361 rm -f conftest.$ac_objext conftest.$ac_ext
3363 if test $ac_cv_header_stdc = yes; then
3364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3365 cat >conftest.$ac_ext <<_ACEOF
3366 #line $LINENO "configure"
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376 $EGREP "memchr" >/dev/null 2>&1; then
3379 ac_cv_header_stdc=no
3385 if test $ac_cv_header_stdc = yes; then
3386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3387 cat >conftest.$ac_ext <<_ACEOF
3388 #line $LINENO "configure"
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 $EGREP "free" >/dev/null 2>&1; then
3401 ac_cv_header_stdc=no
3407 if test $ac_cv_header_stdc = yes; then
3408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3409 if test "$cross_compiling" = yes; then
3412 cat >conftest.$ac_ext <<_ACEOF
3413 #line $LINENO "configure"
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3420 #if ((' ' & 0x0FF) == 0x020)
3421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3424 # define ISLOWER(c) \
3425 (('a' <= (c) && (c) <= 'i') \
3426 || ('j' <= (c) && (c) <= 'r') \
3427 || ('s' <= (c) && (c) <= 'z'))
3428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3436 for (i = 0; i < 256; i++)
3437 if (XOR (islower (i), ISLOWER (i))
3438 || toupper (i) != TOUPPER (i))
3443 rm -f conftest$ac_exeext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3445 (eval $ac_link) 2>&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3456 echo "$as_me: program exited with status $ac_status" >&5
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3461 ac_cv_header_stdc=no
3463 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3467 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3468 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3469 if test $ac_cv_header_stdc = yes; then
3471 cat >>confdefs.h <<\_ACEOF
3472 #define STDC_HEADERS 1
3478 for ac_header in string.h
3480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3482 echo "$as_me:$LINENO: checking for $ac_header" >&5
3483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3490 # Is the header compilable?
3491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 $ac_includes_default
3501 #include <$ac_header>
3503 rm -f conftest.$ac_objext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505 (eval $ac_compile) 2>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -s conftest.$ac_objext'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; }; then
3515 ac_header_compiler=yes
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 ac_header_compiler=no
3522 rm -f conftest.$ac_objext conftest.$ac_ext
3523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3524 echo "${ECHO_T}$ac_header_compiler" >&6
3526 # Is the header present?
3527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3529 cat >conftest.$ac_ext <<_ACEOF
3530 #line $LINENO "configure"
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536 #include <$ac_header>
3538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } >/dev/null; then
3546 if test -s conftest.err; then
3547 ac_cpp_err=$ac_c_preproc_warn_flag
3554 if test -z "$ac_cpp_err"; then
3555 ac_header_preproc=yes
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 ac_header_preproc=no
3562 rm -f conftest.err conftest.$ac_ext
3563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3564 echo "${ECHO_T}$ac_header_preproc" >&6
3566 # So? What about this header?
3567 case $ac_header_compiler:$ac_header_preproc in
3569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3575 ## ------------------------------------ ##
3576 ## Report this to bug-autoconf@gnu.org. ##
3577 ## ------------------------------------ ##
3580 sed "s/^/$as_me: WARNING: /" >&2
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3591 ## ------------------------------------ ##
3592 ## Report this to bug-autoconf@gnu.org. ##
3593 ## ------------------------------------ ##
3596 sed "s/^/$as_me: WARNING: /" >&2
3599 echo "$as_me:$LINENO: checking for $ac_header" >&5
3600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 eval "$as_ac_Header=$ac_header_preproc"
3606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3611 cat >>confdefs.h <<_ACEOF
3612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3621 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3622 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3623 if test "${ac_cv_c_const+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 cat >conftest.$ac_ext <<_ACEOF
3627 #line $LINENO "configure"
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3637 /* FIXME: Include the comments suggested by Paul. */
3639 /* Ultrix mips cc rejects this. */
3640 typedef int charset[2];
3642 /* SunOS 4.1.1 cc rejects this. */
3643 char const *const *ccp;
3645 /* NEC SVR4.0.2 mips cc rejects this. */
3646 struct point {int x, y;};
3647 static struct point const zero = {0,0};
3648 /* AIX XL C 1.02.0.0 rejects this.
3649 It does not let you subtract one const X* pointer from another in
3650 an arm of an if-expression whose if-part is not a constant
3652 const char *g = "string";
3653 ccp = &g + (g ? g-g : 0);
3654 /* HPUX 7.0 cc rejects these. */
3657 ccp = (char const *const *) p;
3658 { /* SCO 3.2v4 cc rejects this. */
3660 char const *s = 0 ? (char *) 0 : (char const *) 0;
3664 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3666 const int *foo = &x[0];
3669 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3670 typedef const int *iptr;
3674 { /* AIX XL C 1.02.0.0 rejects this saying
3675 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3676 struct s { int j; const int *ap[3]; };
3677 struct s *b; b->j = 5;
3679 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3688 rm -f conftest.$ac_objext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3707 rm -f conftest.$ac_objext conftest.$ac_ext
3709 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3710 echo "${ECHO_T}$ac_cv_c_const" >&6
3711 if test $ac_cv_c_const = no; then
3713 cat >>confdefs.h <<\_ACEOF
3719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3720 # for constant arguments. Useless!
3721 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3722 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3723 if test "${ac_cv_working_alloca_h+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 cat >conftest.$ac_ext <<_ACEOF
3727 #line $LINENO "configure"
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3737 char *p = (char *) alloca (2 * sizeof (int));
3742 rm -f conftest.$ac_objext conftest$ac_exeext
3743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744 (eval $ac_link) 2>&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -s conftest$ac_exeext'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; }; then
3754 ac_cv_working_alloca_h=yes
3756 echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3759 ac_cv_working_alloca_h=no
3761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3763 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3764 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3765 if test $ac_cv_working_alloca_h = yes; then
3767 cat >>confdefs.h <<\_ACEOF
3768 #define HAVE_ALLOCA_H 1
3773 echo "$as_me:$LINENO: checking for alloca" >&5
3774 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3775 if test "${ac_cv_func_alloca_works+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 cat >conftest.$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3786 # define alloca __builtin_alloca
3789 # include <malloc.h>
3790 # define alloca _alloca
3793 # include <alloca.h>
3798 # ifndef alloca /* predefined by HP cc +Olibcalls */
3809 char *p = (char *) alloca (1);
3814 rm -f conftest.$ac_objext conftest$ac_exeext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3816 (eval $ac_link) 2>&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } &&
3820 { ac_try='test -s conftest$ac_exeext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_cv_func_alloca_works=yes
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 ac_cv_func_alloca_works=no
3833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3836 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3838 if test $ac_cv_func_alloca_works = yes; then
3840 cat >>confdefs.h <<\_ACEOF
3841 #define HAVE_ALLOCA 1
3845 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3846 # that cause trouble. Some versions do not even contain alloca or
3847 # contain a buggy version. If you still want to use their alloca,
3848 # use ar to extract alloca.o from them instead of compiling alloca.c.
3850 ALLOCA=alloca.$ac_objext
3852 cat >>confdefs.h <<\_ACEOF
3857 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3858 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3859 if test "${ac_cv_os_cray+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3863 #line $LINENO "configure"
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #if defined(CRAY) && ! defined(CRAY2)
3876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3877 $EGREP "webecray" >/dev/null 2>&1; then
3885 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3886 echo "${ECHO_T}$ac_cv_os_cray" >&6
3887 if test $ac_cv_os_cray = yes; then
3888 for ac_func in _getb67 GETB67 getb67; do
3889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3890 echo "$as_me:$LINENO: checking for $ac_func" >&5
3891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3892 if eval "test \"\${$as_ac_var+set}\" = set"; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 cat >conftest.$ac_ext <<_ACEOF
3896 #line $LINENO "configure"
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3902 /* System header to define __stub macros and hopefully few prototypes,
3903 which can conflict with char $ac_func (); below.
3904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3905 <limits.h> exists even on freestanding compilers. */
3907 # include <limits.h>
3909 # include <assert.h>
3911 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3919 /* The GNU C library defines this for functions which it implements
3920 to always fail with ENOSYS. Some functions are actually named
3921 something starting with __ and the normal name is an alias. */
3922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3925 char (*f) () = $ac_func;
3934 return f != $ac_func;
3939 rm -f conftest.$ac_objext conftest$ac_exeext
3940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3941 (eval $ac_link) 2>&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } &&
3945 { ac_try='test -s conftest$ac_exeext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 eval "$as_ac_var=yes"
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 eval "$as_ac_var=no"
3958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3962 if test `eval echo '${'$as_ac_var'}'` = yes; then
3964 cat >>confdefs.h <<_ACEOF
3965 #define CRAY_STACKSEG_END $ac_func
3974 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3975 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3976 if test "${ac_cv_c_stack_direction+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 if test "$cross_compiling" = yes; then
3980 ac_cv_c_stack_direction=0
3982 cat >conftest.$ac_ext <<_ACEOF
3983 #line $LINENO "configure"
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3990 find_stack_direction ()
3992 static char *addr = 0;
3997 return find_stack_direction ();
4000 return (&dummy > addr) ? 1 : -1;
4006 exit (find_stack_direction () < 0);
4009 rm -f conftest$ac_exeext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011 (eval $ac_link) 2>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 ac_cv_c_stack_direction=1
4022 echo "$as_me: program exited with status $ac_status" >&5
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4027 ac_cv_c_stack_direction=-1
4029 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4032 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4033 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4035 cat >>confdefs.h <<_ACEOF
4036 #define STACK_DIRECTION $ac_cv_c_stack_direction
4043 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4044 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4045 if test "${ac_cv_header_stdc+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 cat >conftest.$ac_ext <<_ACEOF
4049 #line $LINENO "configure"
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4068 rm -f conftest.$ac_objext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070 (eval $ac_compile) 2>&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_cv_header_stdc=yes
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_cv_header_stdc=no
4087 rm -f conftest.$ac_objext conftest.$ac_ext
4089 if test $ac_cv_header_stdc = yes; then
4090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4102 $EGREP "memchr" >/dev/null 2>&1; then
4105 ac_cv_header_stdc=no
4111 if test $ac_cv_header_stdc = yes; then
4112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4113 cat >conftest.$ac_ext <<_ACEOF
4114 #line $LINENO "configure"
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 $EGREP "free" >/dev/null 2>&1; then
4127 ac_cv_header_stdc=no
4133 if test $ac_cv_header_stdc = yes; then
4134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4135 if test "$cross_compiling" = yes; then
4138 cat >conftest.$ac_ext <<_ACEOF
4139 #line $LINENO "configure"
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4146 #if ((' ' & 0x0FF) == 0x020)
4147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4150 # define ISLOWER(c) \
4151 (('a' <= (c) && (c) <= 'i') \
4152 || ('j' <= (c) && (c) <= 'r') \
4153 || ('s' <= (c) && (c) <= 'z'))
4154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4162 for (i = 0; i < 256; i++)
4163 if (XOR (islower (i), ISLOWER (i))
4164 || toupper (i) != TOUPPER (i))
4169 rm -f conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4182 echo "$as_me: program exited with status $ac_status" >&5
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4187 ac_cv_header_stdc=no
4189 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4193 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4194 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4195 if test $ac_cv_header_stdc = yes; then
4197 cat >>confdefs.h <<\_ACEOF
4198 #define STDC_HEADERS 1
4209 for ac_header in string.h stdlib.h unistd.h stdarg.h math.h pwd.h
4211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4213 echo "$as_me:$LINENO: checking for $ac_header" >&5
4214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4221 # Is the header compilable?
4222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 $ac_includes_default
4232 #include <$ac_header>
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236 (eval $ac_compile) 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_header_compiler=yes
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 ac_header_compiler=no
4253 rm -f conftest.$ac_objext conftest.$ac_ext
4254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4255 echo "${ECHO_T}$ac_header_compiler" >&6
4257 # Is the header present?
4258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4260 cat >conftest.$ac_ext <<_ACEOF
4261 #line $LINENO "configure"
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #include <$ac_header>
4269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } >/dev/null; then
4277 if test -s conftest.err; then
4278 ac_cpp_err=$ac_c_preproc_warn_flag
4285 if test -z "$ac_cpp_err"; then
4286 ac_header_preproc=yes
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 ac_header_preproc=no
4293 rm -f conftest.err conftest.$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4295 echo "${ECHO_T}$ac_header_preproc" >&6
4297 # So? What about this header?
4298 case $ac_header_compiler:$ac_header_preproc in
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4306 ## ------------------------------------ ##
4307 ## Report this to bug-autoconf@gnu.org. ##
4308 ## ------------------------------------ ##
4311 sed "s/^/$as_me: WARNING: /" >&2
4314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4322 ## ------------------------------------ ##
4323 ## Report this to bug-autoconf@gnu.org. ##
4324 ## ------------------------------------ ##
4327 sed "s/^/$as_me: WARNING: /" >&2
4330 echo "$as_me:$LINENO: checking for $ac_header" >&5
4331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 eval "$as_ac_Header=$ac_header_preproc"
4337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4342 cat >>confdefs.h <<_ACEOF
4343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4352 for ac_header in sys/types.h sys/stat.h
4354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356 echo "$as_me:$LINENO: checking for $ac_header" >&5
4357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4364 # Is the header compilable?
4365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4367 cat >conftest.$ac_ext <<_ACEOF
4368 #line $LINENO "configure"
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 $ac_includes_default
4375 #include <$ac_header>
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -s conftest.$ac_objext'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4389 ac_header_compiler=yes
4391 echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4394 ac_header_compiler=no
4396 rm -f conftest.$ac_objext conftest.$ac_ext
4397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4398 echo "${ECHO_T}$ac_header_compiler" >&6
4400 # Is the header present?
4401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4403 cat >conftest.$ac_ext <<_ACEOF
4404 #line $LINENO "configure"
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #include <$ac_header>
4412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4415 grep -v '^ *+' conftest.er1 >conftest.err
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } >/dev/null; then
4420 if test -s conftest.err; then
4421 ac_cpp_err=$ac_c_preproc_warn_flag
4428 if test -z "$ac_cpp_err"; then
4429 ac_header_preproc=yes
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 ac_header_preproc=no
4436 rm -f conftest.err conftest.$ac_ext
4437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4438 echo "${ECHO_T}$ac_header_preproc" >&6
4440 # So? What about this header?
4441 case $ac_header_compiler:$ac_header_preproc in
4443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4449 ## ------------------------------------ ##
4450 ## Report this to bug-autoconf@gnu.org. ##
4451 ## ------------------------------------ ##
4454 sed "s/^/$as_me: WARNING: /" >&2
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4465 ## ------------------------------------ ##
4466 ## Report this to bug-autoconf@gnu.org. ##
4467 ## ------------------------------------ ##
4470 sed "s/^/$as_me: WARNING: /" >&2
4473 echo "$as_me:$LINENO: checking for $ac_header" >&5
4474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 eval "$as_ac_Header=$ac_header_preproc"
4480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4485 cat >>confdefs.h <<_ACEOF
4486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4496 for ac_func in strchr getcwd
4498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4499 echo "$as_me:$LINENO: checking for $ac_func" >&5
4500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4501 if eval "test \"\${$as_ac_var+set}\" = set"; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 cat >conftest.$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 /* System header to define __stub macros and hopefully few prototypes,
4512 which can conflict with char $ac_func (); below.
4513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4514 <limits.h> exists even on freestanding compilers. */
4516 # include <limits.h>
4518 # include <assert.h>
4520 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4528 /* The GNU C library defines this for functions which it implements
4529 to always fail with ENOSYS. Some functions are actually named
4530 something starting with __ and the normal name is an alias. */
4531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4534 char (*f) () = $ac_func;
4543 return f != $ac_func;
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550 (eval $ac_link) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -s conftest$ac_exeext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 eval "$as_ac_var=yes"
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 eval "$as_ac_var=no"
4567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4571 if test `eval echo '${'$as_ac_var'}'` = yes; then
4572 cat >>confdefs.h <<_ACEOF
4573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4583 for ac_func in strerror memmove memcpy strtoul
4585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4586 echo "$as_me:$LINENO: checking for $ac_func" >&5
4587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4588 if eval "test \"\${$as_ac_var+set}\" = set"; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 cat >conftest.$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 /* System header to define __stub macros and hopefully few prototypes,
4599 which can conflict with char $ac_func (); below.
4600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4601 <limits.h> exists even on freestanding compilers. */
4603 # include <limits.h>
4605 # include <assert.h>
4607 /* Override any gcc2 internal prototype to avoid an error. */
4612 /* We use char because int might match the return type of a gcc2
4613 builtin and then its argument prototype would still apply. */
4615 /* The GNU C library defines this for functions which it implements
4616 to always fail with ENOSYS. Some functions are actually named
4617 something starting with __ and the normal name is an alias. */
4618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4621 char (*f) () = $ac_func;
4630 return f != $ac_func;
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637 (eval $ac_link) 2>&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
4641 { ac_try='test -s conftest$ac_exeext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 eval "$as_ac_var=yes"
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4652 eval "$as_ac_var=no"
4654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4658 if test `eval echo '${'$as_ac_var'}'` = yes; then
4659 cat >>confdefs.h <<_ACEOF
4660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4664 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4670 for ac_func in vprintf
4672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4673 echo "$as_me:$LINENO: checking for $ac_func" >&5
4674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4675 if eval "test \"\${$as_ac_var+set}\" = set"; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 cat >conftest.$ac_ext <<_ACEOF
4679 #line $LINENO "configure"
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 /* System header to define __stub macros and hopefully few prototypes,
4686 which can conflict with char $ac_func (); below.
4687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4688 <limits.h> exists even on freestanding compilers. */
4690 # include <limits.h>
4692 # include <assert.h>
4694 /* Override any gcc2 internal prototype to avoid an error. */
4699 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */
4702 /* The GNU C library defines this for functions which it implements
4703 to always fail with ENOSYS. Some functions are actually named
4704 something starting with __ and the normal name is an alias. */
4705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4708 char (*f) () = $ac_func;
4717 return f != $ac_func;
4722 rm -f conftest.$ac_objext conftest$ac_exeext
4723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724 (eval $ac_link) 2>&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } &&
4728 { ac_try='test -s conftest$ac_exeext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 eval "$as_ac_var=yes"
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 eval "$as_ac_var=no"
4741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4745 if test `eval echo '${'$as_ac_var'}'` = yes; then
4746 cat >>confdefs.h <<_ACEOF
4747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4750 echo "$as_me:$LINENO: checking for _doprnt" >&5
4751 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4752 if test "${ac_cv_func__doprnt+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 cat >conftest.$ac_ext <<_ACEOF
4756 #line $LINENO "configure"
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 /* System header to define __stub macros and hopefully few prototypes,
4763 which can conflict with char _doprnt (); below.
4764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4765 <limits.h> exists even on freestanding compilers. */
4767 # include <limits.h>
4769 # include <assert.h>
4771 /* Override any gcc2 internal prototype to avoid an error. */
4776 /* We use char because int might match the return type of a gcc2
4777 builtin and then its argument prototype would still apply. */
4779 /* The GNU C library defines this for functions which it implements
4780 to always fail with ENOSYS. Some functions are actually named
4781 something starting with __ and the normal name is an alias. */
4782 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4785 char (*f) () = _doprnt;
4794 return f != _doprnt;
4799 rm -f conftest.$ac_objext conftest$ac_exeext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801 (eval $ac_link) 2>&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -s conftest$ac_exeext'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; }; then
4811 ac_cv_func__doprnt=yes
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 ac_cv_func__doprnt=no
4818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4821 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4822 if test $ac_cv_func__doprnt = yes; then
4824 cat >>confdefs.h <<\_ACEOF
4825 #define HAVE_DOPRNT 1
4836 echo "$as_me:$LINENO: checking for main in -lsun" >&5
4837 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
4838 if test "${ac_cv_lib_sun_main+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 ac_check_lib_save_LIBS=$LIBS
4843 cat >conftest.$ac_ext <<_ACEOF
4844 #line $LINENO "configure"
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862 (eval $ac_link) 2>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_lib_sun_main=yes
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_lib_sun_main=no
4879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4880 LIBS=$ac_check_lib_save_LIBS
4882 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
4883 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
4884 if test $ac_cv_lib_sun_main = yes; then
4885 cat >>confdefs.h <<_ACEOF
4886 #define HAVE_LIBSUN 1
4894 echo "$as_me:$LINENO: checking for gethostname" >&5
4895 echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
4896 if test "${ac_cv_func_gethostname+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 cat >conftest.$ac_ext <<_ACEOF
4900 #line $LINENO "configure"
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 /* System header to define __stub macros and hopefully few prototypes,
4907 which can conflict with char gethostname (); below.
4908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4909 <limits.h> exists even on freestanding compilers. */
4911 # include <limits.h>
4913 # include <assert.h>
4915 /* Override any gcc2 internal prototype to avoid an error. */
4920 /* We use char because int might match the return type of a gcc2
4921 builtin and then its argument prototype would still apply. */
4922 char gethostname ();
4923 /* The GNU C library defines this for functions which it implements
4924 to always fail with ENOSYS. Some functions are actually named
4925 something starting with __ and the normal name is an alias. */
4926 #if defined (__stub_gethostname) || defined (__stub___gethostname)
4929 char (*f) () = gethostname;
4938 return f != gethostname;
4943 rm -f conftest.$ac_objext conftest$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945 (eval $ac_link) 2>&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -s conftest$ac_exeext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_cv_func_gethostname=yes
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 ac_cv_func_gethostname=no
4962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4964 echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
4965 echo "${ECHO_T}$ac_cv_func_gethostname" >&6
4966 if test $ac_cv_func_gethostname = yes; then
4970 echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
4971 echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6
4972 if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 ac_check_lib_save_LIBS=$LIBS
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4985 /* Override any gcc2 internal prototype to avoid an error. */
4989 /* We use char because int might match the return type of a gcc2
4990 builtin and then its argument prototype would still apply. */
4991 char gethostname ();
5000 rm -f conftest.$ac_objext conftest$ac_exeext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5002 (eval $ac_link) 2>&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -s conftest$ac_exeext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_cv_lib_nsl_gethostname=yes
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 ac_cv_lib_nsl_gethostname=no
5019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5020 LIBS=$ac_check_lib_save_LIBS
5022 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
5023 echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6
5024 if test $ac_cv_lib_nsl_gethostname = yes; then
5029 echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5
5030 echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6
5031 if test "${ac_cv_lib_socket_gethostname+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 ac_check_lib_save_LIBS=$LIBS
5035 LIBS="-lsocket $LIBS"
5036 cat >conftest.$ac_ext <<_ACEOF
5037 #line $LINENO "configure"
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5044 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5050 char gethostname ();
5059 rm -f conftest.$ac_objext conftest$ac_exeext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5061 (eval $ac_link) 2>&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -s conftest$ac_exeext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_cv_lib_socket_gethostname=yes
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 ac_cv_lib_socket_gethostname=no
5078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5081 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5
5082 echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6
5083 if test $ac_cv_lib_socket_gethostname = yes; then
5084 cat >>confdefs.h <<_ACEOF
5085 #define HAVE_LIBSOCKET 1
5088 LIBS="-lsocket $LIBS"
5099 if test -n "$ac_tool_prefix"; then
5100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5102 echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5104 if test "${ac_cv_prog_RANLIB+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 if test -n "$RANLIB"; then
5108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 RANLIB=$ac_cv_prog_RANLIB
5127 if test -n "$RANLIB"; then
5128 echo "$as_me:$LINENO: result: $RANLIB" >&5
5129 echo "${ECHO_T}$RANLIB" >&6
5131 echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6
5136 if test -z "$ac_cv_prog_RANLIB"; then
5137 ac_ct_RANLIB=$RANLIB
5138 # Extract the first word of "ranlib", so it can be a program name with args.
5139 set dummy ranlib; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 if test -n "$ac_ct_RANLIB"; then
5146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_ac_ct_RANLIB="ranlib"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5166 if test -n "$ac_ct_RANLIB"; then
5167 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5168 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5170 echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6
5174 RANLIB=$ac_ct_RANLIB
5176 RANLIB="$ac_cv_prog_RANLIB"
5179 for ac_prog in 'bison -y' byacc
5181 # Extract the first word of "$ac_prog", so it can be a program name with args.
5182 set dummy $ac_prog; ac_word=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_prog_YACC+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 if test -n "$YACC"; then
5189 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_YACC="$ac_prog"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 YACC=$ac_cv_prog_YACC
5208 if test -n "$YACC"; then
5209 echo "$as_me:$LINENO: result: $YACC" >&5
5210 echo "${ECHO_T}$YACC" >&6
5212 echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6
5216 test -n "$YACC" && break
5218 test -n "$YACC" || YACC="yacc"
5220 for ac_prog in flex lex
5222 # Extract the first word of "$ac_prog", so it can be a program name with args.
5223 set dummy $ac_prog; ac_word=$2
5224 echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5226 if test "${ac_cv_prog_LEX+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 if test -n "$LEX"; then
5230 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239 ac_cv_prog_LEX="$ac_prog"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 if test -n "$LEX"; then
5250 echo "$as_me:$LINENO: result: $LEX" >&5
5251 echo "${ECHO_T}$LEX" >&6
5253 echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6
5257 test -n "$LEX" && break
5259 test -n "$LEX" || LEX=":"
5261 if test -z "$LEXLIB"
5263 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5264 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5265 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 ac_check_lib_save_LIBS=$LIBS
5270 cat >conftest.$ac_ext <<_ACEOF
5271 #line $LINENO "configure"
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5278 /* Override any gcc2 internal prototype to avoid an error. */
5282 /* We use char because int might match the return type of a gcc2
5283 builtin and then its argument prototype would still apply. */
5293 rm -f conftest.$ac_objext conftest$ac_exeext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5295 (eval $ac_link) 2>&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -s conftest$ac_exeext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_cv_lib_fl_yywrap=yes
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 ac_cv_lib_fl_yywrap=no
5312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5313 LIBS=$ac_check_lib_save_LIBS
5315 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5316 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5317 if test $ac_cv_lib_fl_yywrap = yes; then
5320 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5321 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5322 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 ac_check_lib_save_LIBS=$LIBS
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line $LINENO "configure"
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5335 /* Override any gcc2 internal prototype to avoid an error. */
5339 /* We use char because int might match the return type of a gcc2
5340 builtin and then its argument prototype would still apply. */
5350 rm -f conftest.$ac_objext conftest$ac_exeext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5352 (eval $ac_link) 2>&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try='test -s conftest$ac_exeext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_cv_lib_l_yywrap=yes
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5367 ac_cv_lib_l_yywrap=no
5369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5370 LIBS=$ac_check_lib_save_LIBS
5372 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5373 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5374 if test $ac_cv_lib_l_yywrap = yes; then
5382 if test "x$LEX" != "x:"; then
5383 echo "$as_me:$LINENO: checking lex output file root" >&5
5384 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5385 if test "${ac_cv_prog_lex_root+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 # The minimal lex program is just a single line: %%. But some broken lexes
5389 # (Solaris, I think it was) want two %% lines, so accommodate them.
5390 cat >conftest.l <<_ACEOF
5394 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5395 (eval $LEX conftest.l) 2>&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }
5399 if test -f lex.yy.c; then
5400 ac_cv_prog_lex_root=lex.yy
5401 elif test -f lexyy.c; then
5402 ac_cv_prog_lex_root=lexyy
5404 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5405 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5406 { (exit 1); exit 1; }; }
5409 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5410 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5412 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5414 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5415 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5416 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 # POSIX says lex can declare yytext either as a pointer or an array; the
5420 # default is implementation-dependent. Figure out which it is, since
5421 # not all implementations provide the %pointer and %array declarations.
5422 ac_cv_prog_lex_yytext_pointer=no
5423 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5425 LIBS="$LIBS $LEXLIB"
5426 cat >conftest.$ac_ext <<_ACEOF
5427 `cat $LEX_OUTPUT_ROOT.c`
5429 rm -f conftest.$ac_objext conftest$ac_exeext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5431 (eval $ac_link) 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -s conftest$ac_exeext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_cv_prog_lex_yytext_pointer=yes
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5449 rm -f "${LEX_OUTPUT_ROOT}.c"
5452 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5453 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5454 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5456 cat >>confdefs.h <<\_ACEOF
5457 #define YYTEXT_POINTER 1
5463 if test "$LEX" = :; then
5464 LEX=${am_missing_run}flex
5467 # Check whether --enable-debug or --disable-debug was given.
5468 if test "${enable_debug+set}" = set; then
5469 enableval="$enable_debug"
5471 echo enabling debugging
5472 if test -n "$GCC"; then
5473 CFLAGS="$CFLAGS -Wall"
5480 # Check whether --with-media or --without-media was given.
5481 if test "${with_media+set}" = set; then
5482 withval="$with_media"
5483 if test "X$withval" != "Xno"; then
5484 if test "X$withval" = "Xyes"; then
5485 ac_cv_value_media='Letter'
5487 ac_cv_value_media=$withval
5490 ac_cv_value_media=${MEDIA-A4}
5493 ac_cv_value_media=${MEDIA-A4}
5496 MEDIA=$ac_cv_value_media
5500 # Extract the first word of "lpr", so it can be a program name with args.
5501 set dummy lpr; ac_word=$2
5502 echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5504 if test "${ac_cv_prog_SPOOLER+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 if test -n "$SPOOLER"; then
5508 ac_cv_prog_SPOOLER="$SPOOLER" # Let the user override the test.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_SPOOLER="lpr"
5518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 SPOOLER=$ac_cv_prog_SPOOLER
5527 if test -n "$SPOOLER"; then
5528 echo "$as_me:$LINENO: result: $SPOOLER" >&5
5529 echo "${ECHO_T}$SPOOLER" >&6
5531 echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5535 # Extract the first word of "lp", so it can be a program name with args.
5536 set dummy lp; ac_word=$2
5537 echo "$as_me:$LINENO: checking for $ac_word" >&5
5538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5539 if test "${ac_cv_prog_SPOOLER+set}" = set; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 if test -n "$SPOOLER"; then
5543 ac_cv_prog_SPOOLER="$SPOOLER" # Let the user override the test.
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_SPOOLER="lp"
5553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 SPOOLER=$ac_cv_prog_SPOOLER
5562 if test -n "$SPOOLER"; then
5563 echo "$as_me:$LINENO: result: $SPOOLER" >&5
5564 echo "${ECHO_T}$SPOOLER" >&6
5566 echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5572 # Check whether --with-spooler or --without-spooler was given.
5573 if test "${with_spooler+set}" = set; then
5574 withval="$with_spooler"
5575 if test "X$withval" != "Xno"; then
5581 if test "X$SPOOLER" = "X"; then
5587 # Check whether --with-ps-level or --without-ps-level was given.
5588 if test "${with_ps_level+set}" = set; then
5589 withval="$with_ps_level"
5590 if test "X$withval" != "Xno"; then
5597 ALL_LINGUAS="de es fi fr nl ru sl"
5600 if test -n "$ac_aux_dir"; then
5601 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5603 if test -z "$MKINSTALLDIRS"; then
5604 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5611 # Extract the first word of "msgfmt", so it can be a program name with args.
5612 set dummy msgfmt; ac_word=$2
5613 echo "$as_me:$LINENO: checking for $ac_word" >&5
5614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5615 if test "${ac_cv_path_MSGFMT+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5624 for ac_dir in $PATH; do
5625 test -z "$ac_dir" && ac_dir=.
5626 if test -f $ac_dir/$ac_word; then
5627 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5628 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5629 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5635 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5639 MSGFMT="$ac_cv_path_MSGFMT"
5640 if test "$MSGFMT" != ":"; then
5641 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5642 echo "${ECHO_T}$MSGFMT" >&6
5644 echo "$as_me:$LINENO: result: no" >&5
5645 echo "${ECHO_T}no" >&6
5648 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5649 set dummy gmsgfmt; ac_word=$2
5650 echo "$as_me:$LINENO: checking for $ac_word" >&5
5651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5652 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5678 GMSGFMT=$ac_cv_path_GMSGFMT
5680 if test -n "$GMSGFMT"; then
5681 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5682 echo "${ECHO_T}$GMSGFMT" >&6
5684 echo "$as_me:$LINENO: result: no" >&5
5685 echo "${ECHO_T}no" >&6
5689 # Extract the first word of "xgettext", so it can be a program name with args.
5690 set dummy xgettext; ac_word=$2
5691 echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5693 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5702 for ac_dir in $PATH; do
5703 test -z "$ac_dir" && ac_dir=.
5704 if test -f $ac_dir/$ac_word; then
5705 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
5706 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5707 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5713 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5717 XGETTEXT="$ac_cv_path_XGETTEXT"
5718 if test "$XGETTEXT" != ":"; then
5719 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5720 echo "${ECHO_T}$XGETTEXT" >&6
5722 echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6
5728 # Extract the first word of "msgmerge", so it can be a program name with args.
5729 set dummy msgmerge; ac_word=$2
5730 echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5741 for ac_dir in $PATH; do
5742 test -z "$ac_dir" && ac_dir=.
5743 if test -f $ac_dir/$ac_word; then
5744 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5745 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
5751 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5755 MSGMERGE="$ac_cv_path_MSGMERGE"
5756 if test "$MSGMERGE" != ":"; then
5757 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5758 echo "${ECHO_T}$MSGMERGE" >&6
5760 echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6
5765 if test "$GMSGFMT" != ":"; then
5766 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5767 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5770 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5771 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5772 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5777 if test "$XGETTEXT" != ":"; then
5778 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
5779 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5782 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5783 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5789 ac_config_commands="$ac_config_commands default-1"
5792 # Make sure we can run config.sub.
5793 $ac_config_sub sun4 >/dev/null 2>&1 ||
5794 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5795 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5796 { (exit 1); exit 1; }; }
5798 echo "$as_me:$LINENO: checking build system type" >&5
5799 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5800 if test "${ac_cv_build+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 ac_cv_build_alias=$build_alias
5804 test -z "$ac_cv_build_alias" &&
5805 ac_cv_build_alias=`$ac_config_guess`
5806 test -z "$ac_cv_build_alias" &&
5807 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5808 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5809 { (exit 1); exit 1; }; }
5810 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5811 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5812 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5813 { (exit 1); exit 1; }; }
5816 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5817 echo "${ECHO_T}$ac_cv_build" >&6
5819 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5820 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5821 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5824 echo "$as_me:$LINENO: checking host system type" >&5
5825 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5826 if test "${ac_cv_host+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 ac_cv_host_alias=$host_alias
5830 test -z "$ac_cv_host_alias" &&
5831 ac_cv_host_alias=$ac_cv_build_alias
5832 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5833 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5834 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5835 { (exit 1); exit 1; }; }
5838 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5839 echo "${ECHO_T}$ac_cv_host" >&6
5841 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5842 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5843 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5846 echo "$as_me:$LINENO: checking for inline" >&5
5847 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5848 if test "${ac_cv_c_inline+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 for ac_kw in inline __inline__ __inline; do
5853 cat >conftest.$ac_ext <<_ACEOF
5854 #line $LINENO "configure"
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5862 static $ac_kw foo_t static_foo () {return 0; }
5863 $ac_kw foo_t foo () {return 0; }
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_c_inline=$ac_kw; break
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5885 rm -f conftest.$ac_objext conftest.$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5890 echo "${ECHO_T}$ac_cv_c_inline" >&6
5891 case $ac_cv_c_inline in
5894 cat >>confdefs.h <<\_ACEOF
5898 *) cat >>confdefs.h <<_ACEOF
5899 #define inline $ac_cv_c_inline
5904 echo "$as_me:$LINENO: checking for off_t" >&5
5905 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5906 if test "${ac_cv_type_off_t+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 cat >conftest.$ac_ext <<_ACEOF
5910 #line $LINENO "configure"
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 ac_cv_type_off_t=yes
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5947 rm -f conftest.$ac_objext conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951 if test $ac_cv_type_off_t = yes; then
5955 cat >>confdefs.h <<_ACEOF
5961 echo "$as_me:$LINENO: checking for size_t" >&5
5962 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5963 if test "${ac_cv_type_size_t+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.$ac_ext <<_ACEOF
5967 #line $LINENO "configure"
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 $ac_includes_default
5979 if (sizeof (size_t))
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -s conftest.$ac_objext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_cv_type_size_t=yes
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ac_cv_type_size_t=no
6004 rm -f conftest.$ac_objext conftest.$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6007 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6008 if test $ac_cv_type_size_t = yes; then
6012 cat >>confdefs.h <<_ACEOF
6013 #define size_t unsigned
6020 for ac_header in stdlib.h unistd.h
6022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6024 echo "$as_me:$LINENO: checking for $ac_header" >&5
6025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6032 # Is the header compilable?
6033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6035 cat >conftest.$ac_ext <<_ACEOF
6036 #line $LINENO "configure"
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 $ac_includes_default
6043 #include <$ac_header>
6045 rm -f conftest.$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -s conftest.$ac_objext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_header_compiler=yes
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 ac_header_compiler=no
6064 rm -f conftest.$ac_objext conftest.$ac_ext
6065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6066 echo "${ECHO_T}$ac_header_compiler" >&6
6068 # Is the header present?
6069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6072 #line $LINENO "configure"
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6078 #include <$ac_header>
6080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6083 grep -v '^ *+' conftest.er1 >conftest.err
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } >/dev/null; then
6088 if test -s conftest.err; then
6089 ac_cpp_err=$ac_c_preproc_warn_flag
6096 if test -z "$ac_cpp_err"; then
6097 ac_header_preproc=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 ac_header_preproc=no
6104 rm -f conftest.err conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6106 echo "${ECHO_T}$ac_header_preproc" >&6
6108 # So? What about this header?
6109 case $ac_header_compiler:$ac_header_preproc in
6111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6117 ## ------------------------------------ ##
6118 ## Report this to bug-autoconf@gnu.org. ##
6119 ## ------------------------------------ ##
6122 sed "s/^/$as_me: WARNING: /" >&2
6125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6133 ## ------------------------------------ ##
6134 ## Report this to bug-autoconf@gnu.org. ##
6135 ## ------------------------------------ ##
6138 sed "s/^/$as_me: WARNING: /" >&2
6141 echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 eval "$as_ac_Header=$ac_header_preproc"
6148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6153 cat >>confdefs.h <<_ACEOF
6154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6162 for ac_func in getpagesize
6164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6165 echo "$as_me:$LINENO: checking for $ac_func" >&5
6166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6167 if eval "test \"\${$as_ac_var+set}\" = set"; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 cat >conftest.$ac_ext <<_ACEOF
6171 #line $LINENO "configure"
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 /* System header to define __stub macros and hopefully few prototypes,
6178 which can conflict with char $ac_func (); below.
6179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6180 <limits.h> exists even on freestanding compilers. */
6182 # include <limits.h>
6184 # include <assert.h>
6186 /* Override any gcc2 internal prototype to avoid an error. */
6191 /* We use char because int might match the return type of a gcc2
6192 builtin and then its argument prototype would still apply. */
6194 /* The GNU C library defines this for functions which it implements
6195 to always fail with ENOSYS. Some functions are actually named
6196 something starting with __ and the normal name is an alias. */
6197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6200 char (*f) () = $ac_func;
6209 return f != $ac_func;
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216 (eval $ac_link) 2>&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 eval "$as_ac_var=yes"
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 eval "$as_ac_var=no"
6233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6237 if test `eval echo '${'$as_ac_var'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6245 echo "$as_me:$LINENO: checking for working mmap" >&5
6246 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6247 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 if test "$cross_compiling" = yes; then
6251 ac_cv_func_mmap_fixed_mapped=no
6253 cat >conftest.$ac_ext <<_ACEOF
6254 #line $LINENO "configure"
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 $ac_includes_default
6261 /* malloc might have been renamed as rpl_malloc. */
6264 /* Thanks to Mike Haertel and Jim Avera for this test.
6265 Here is a matrix of mmap possibilities:
6266 mmap private not fixed
6267 mmap private fixed at somewhere currently unmapped
6268 mmap private fixed at somewhere already mapped
6269 mmap shared not fixed
6270 mmap shared fixed at somewhere currently unmapped
6271 mmap shared fixed at somewhere already mapped
6272 For private mappings, we should verify that changes cannot be read()
6273 back from the file, nor mmap's back from the file at a different
6274 address. (There have been systems where private was not correctly
6275 implemented like the infamous i386 svr4.0, and systems where the
6276 VM page cache was not coherent with the file system buffer cache
6277 like early versions of FreeBSD and possibly contemporary NetBSD.)
6278 For shared mappings, we should conversely verify that changes get
6279 propagated back to all the places they're supposed to be.
6281 Grep wants private fixed already mapped.
6282 The main things grep needs to know about mmap are:
6283 * does it exist and is it safe to write into the mmap'd area
6284 * how to use it (BSD variants) */
6287 #include <sys/mman.h>
6289 #if !STDC_HEADERS && !HAVE_STDLIB_H
6293 /* This mess was copied from the GNU getpagesize.h. */
6294 #if !HAVE_GETPAGESIZE
6295 /* Assume that all systems that can run configure have sys/param.h. */
6296 # if !HAVE_SYS_PARAM_H
6297 # define HAVE_SYS_PARAM_H 1
6300 # ifdef _SC_PAGESIZE
6301 # define getpagesize() sysconf(_SC_PAGESIZE)
6302 # else /* no _SC_PAGESIZE */
6303 # if HAVE_SYS_PARAM_H
6304 # include <sys/param.h>
6305 # ifdef EXEC_PAGESIZE
6306 # define getpagesize() EXEC_PAGESIZE
6307 # else /* no EXEC_PAGESIZE */
6309 # define getpagesize() NBPG * CLSIZE
6312 # endif /* no CLSIZE */
6313 # else /* no NBPG */
6315 # define getpagesize() NBPC
6316 # else /* no NBPC */
6318 # define getpagesize() PAGESIZE
6319 # endif /* PAGESIZE */
6320 # endif /* no NBPC */
6321 # endif /* no NBPG */
6322 # endif /* no EXEC_PAGESIZE */
6323 # else /* no HAVE_SYS_PARAM_H */
6324 # define getpagesize() 8192 /* punt totally */
6325 # endif /* no HAVE_SYS_PARAM_H */
6326 # endif /* no _SC_PAGESIZE */
6328 #endif /* no HAVE_GETPAGESIZE */
6333 char *data, *data2, *data3;
6337 pagesize = getpagesize ();
6339 /* First, make a file with some known garbage in it. */
6340 data = (char *) malloc (pagesize);
6343 for (i = 0; i < pagesize; ++i)
6344 *(data + i) = rand ();
6346 fd = creat ("conftest.mmap", 0600);
6349 if (write (fd, data, pagesize) != pagesize)
6353 /* Next, try to mmap the file at a fixed address which already has
6354 something else allocated at it. If we can, also make sure that
6355 we see the same garbage. */
6356 fd = open ("conftest.mmap", O_RDWR);
6359 data2 = (char *) malloc (2 * pagesize);
6362 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6363 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6364 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6366 for (i = 0; i < pagesize; ++i)
6367 if (*(data + i) != *(data2 + i))
6370 /* Finally, make sure that changes to the mapped area do not
6371 percolate back to the file as seen by read(). (This is a bug on
6372 some variants of i386 svr4.0.) */
6373 for (i = 0; i < pagesize; ++i)
6374 *(data2 + i) = *(data2 + i) + 1;
6375 data3 = (char *) malloc (pagesize);
6378 if (read (fd, data3, pagesize) != pagesize)
6380 for (i = 0; i < pagesize; ++i)
6381 if (*(data + i) != *(data3 + i))
6387 rm -f conftest$ac_exeext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389 (eval $ac_link) 2>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_cv_func_mmap_fixed_mapped=yes
6400 echo "$as_me: program exited with status $ac_status" >&5
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_cv_func_mmap_fixed_mapped=no
6407 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6410 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6411 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6412 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6414 cat >>confdefs.h <<\_ACEOF
6422 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6423 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6424 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 cat >conftest.$ac_ext <<_ACEOF
6428 #line $LINENO "configure"
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6435 #include <features.h>
6436 #ifdef __GNU_LIBRARY__
6437 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6445 ac_cv_gnu_library_2_1=yes
6447 ac_cv_gnu_library_2_1=no
6454 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6455 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6457 GLIBC21="$ac_cv_gnu_library_2_1"
6462 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6463 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6464 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 if test "$cross_compiling" = yes; then
6470 # Guess based on the CPU.
6472 alpha* | i3456786 | m68k | s390*)
6473 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6475 gt_cv_int_divbyzero_sigfpe="guessing no";;
6479 cat >conftest.$ac_ext <<_ACEOF
6480 #line $LINENO "configure"
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6492 sigfpe_handler (int sig)
6494 sigfpe_handler (sig) int sig;
6497 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6498 exit (sig != SIGFPE);
6508 signal (SIGFPE, sigfpe_handler);
6509 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6510 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6511 signal (SIGTRAP, sigfpe_handler);
6513 /* Linux/SPARC yields signal SIGILL. */
6514 #if defined (__sparc__) && defined (__linux__)
6515 signal (SIGILL, sigfpe_handler);
6524 rm -f conftest$ac_exeext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6526 (eval $ac_link) 2>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 gt_cv_int_divbyzero_sigfpe=yes
6537 echo "$as_me: program exited with status $ac_status" >&5
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6542 gt_cv_int_divbyzero_sigfpe=no
6544 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6548 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6549 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6550 case "$gt_cv_int_divbyzero_sigfpe" in
6555 cat >>confdefs.h <<_ACEOF
6556 #define INTDIV0_RAISES_SIGFPE $value
6561 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6562 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6563 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 #include <sys/types.h>
6574 #include <inttypes.h>
6578 uintmax_t i = (uintmax_t) -1;
6583 rm -f conftest.$ac_objext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585 (eval $ac_compile) 2>&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -s conftest.$ac_objext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6595 jm_ac_cv_header_inttypes_h=yes
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 jm_ac_cv_header_inttypes_h=no
6602 rm -f conftest.$ac_objext conftest.$ac_ext
6604 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6605 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6606 if test $jm_ac_cv_header_inttypes_h = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6615 echo "$as_me:$LINENO: checking for stdint.h" >&5
6616 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6617 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 cat >conftest.$ac_ext <<_ACEOF
6621 #line $LINENO "configure"
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/types.h>
6632 uintmax_t i = (uintmax_t) -1;
6637 rm -f conftest.$ac_objext
6638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6639 (eval $ac_compile) 2>&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -s conftest.$ac_objext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 jm_ac_cv_header_stdint_h=yes
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 jm_ac_cv_header_stdint_h=no
6656 rm -f conftest.$ac_objext conftest.$ac_ext
6658 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6659 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6660 if test $jm_ac_cv_header_stdint_h = yes; then
6662 cat >>confdefs.h <<_ACEOF
6663 #define HAVE_STDINT_H_WITH_UINTMAX 1
6669 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6670 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6671 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 unsigned long long ull = 1; int i = 63;
6685 unsigned long long ullmax = (unsigned long long) -1;
6686 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6691 rm -f conftest.$ac_objext conftest$ac_exeext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6693 (eval $ac_link) 2>&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -s conftest$ac_exeext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_type_unsigned_long_long=yes
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 ac_cv_type_unsigned_long_long=no
6710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6712 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6713 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6714 if test $ac_cv_type_unsigned_long_long = yes; then
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_UNSIGNED_LONG_LONG 1
6725 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6727 test $ac_cv_type_unsigned_long_long = yes \
6728 && ac_type='unsigned long long' \
6729 || ac_type='unsigned long'
6731 cat >>confdefs.h <<_ACEOF
6732 #define uintmax_t $ac_type
6738 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6739 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6740 if test "${gt_cv_header_inttypes_h+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 cat >conftest.$ac_ext <<_ACEOF
6745 #line $LINENO "configure"
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 #include <sys/types.h>
6752 #include <inttypes.h>
6761 rm -f conftest.$ac_objext
6762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6763 (eval $ac_compile) 2>&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } &&
6767 { ac_try='test -s conftest.$ac_objext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 gt_cv_header_inttypes_h=yes
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 gt_cv_header_inttypes_h=no
6780 rm -f conftest.$ac_objext conftest.$ac_ext
6783 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6784 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6785 if test $gt_cv_header_inttypes_h = yes; then
6787 cat >>confdefs.h <<_ACEOF
6788 #define HAVE_INTTYPES_H 1
6795 if test $gt_cv_header_inttypes_h = yes; then
6796 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6797 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6798 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 cat >conftest.$ac_ext <<_ACEOF
6803 #line $LINENO "configure"
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 #include <inttypes.h>
6822 rm -f conftest.$ac_objext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -s conftest.$ac_objext'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834 gt_cv_inttypes_pri_broken=no
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 gt_cv_inttypes_pri_broken=yes
6841 rm -f conftest.$ac_objext conftest.$ac_ext
6844 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6845 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6847 if test "$gt_cv_inttypes_pri_broken" = yes; then
6849 cat >>confdefs.h <<_ACEOF
6850 #define PRI_MACROS_BROKEN 1
6856 if test "X$prefix" = "XNONE"; then
6857 acl_final_prefix="$ac_default_prefix"
6859 acl_final_prefix="$prefix"
6861 if test "X$exec_prefix" = "XNONE"; then
6862 acl_final_exec_prefix='${prefix}'
6864 acl_final_exec_prefix="$exec_prefix"
6866 acl_save_prefix="$prefix"
6867 prefix="$acl_final_prefix"
6868 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6869 prefix="$acl_save_prefix"
6872 # Check whether --with-gnu-ld or --without-gnu-ld was given.
6873 if test "${with_gnu_ld+set}" = set; then
6874 withval="$with_gnu_ld"
6875 test "$withval" = no || with_gnu_ld=yes
6880 if test "$GCC" = yes; then
6881 # Check if gcc -print-prog-name=ld gives a path.
6882 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6883 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6886 # gcc leaves a trailing carriage return which upsets mingw
6887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6892 # Accept absolute paths.
6893 [\\/]* | [A-Za-z]:[\\/]*)
6894 re_direlt='/[^/][^/]*/\.\./'
6895 # Canonicalize the path of ld
6896 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6897 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6898 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6900 test -z "$LD" && LD="$ac_prog"
6903 # If it fails, then pretend we aren't using GCC.
6907 # If it is relative, then search for the first ld in PATH.
6911 elif test "$with_gnu_ld" = yes; then
6912 echo "$as_me:$LINENO: checking for GNU ld" >&5
6913 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6915 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6916 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6918 if test "${acl_cv_path_LD+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 if test -z "$LD"; then
6922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6923 for ac_dir in $PATH; do
6924 test -z "$ac_dir" && ac_dir=.
6925 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6926 acl_cv_path_LD="$ac_dir/$ac_prog"
6927 # Check to see if the program is GNU ld. I'd rather use --version,
6928 # but apparently some GNU ld's only accept -v.
6929 # Break only if it was the GNU/non-GNU ld that we prefer.
6930 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6931 test "$with_gnu_ld" != no && break
6933 test "$with_gnu_ld" != yes && break
6939 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6943 LD="$acl_cv_path_LD"
6944 if test -n "$LD"; then
6945 echo "$as_me:$LINENO: result: $LD" >&5
6946 echo "${ECHO_T}$LD" >&6
6948 echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6951 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6952 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6953 { (exit 1); exit 1; }; }
6954 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6955 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6956 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6960 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6961 acl_cv_prog_gnu_ld=yes
6963 acl_cv_prog_gnu_ld=no
6966 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6967 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6968 with_gnu_ld=$acl_cv_prog_gnu_ld
6972 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6973 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6974 if test "${acl_cv_rpath+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6979 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6985 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6986 echo "${ECHO_T}$acl_cv_rpath" >&6
6988 libext="$acl_cv_libext"
6989 shlibext="$acl_cv_shlibext"
6990 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6991 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6992 hardcode_direct="$acl_cv_hardcode_direct"
6993 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6994 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
6995 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
6996 # Check whether --enable-rpath or --disable-rpath was given.
6997 if test "${enable_rpath+set}" = set; then
6998 enableval="$enable_rpath"
7012 acl_save_prefix="$prefix"
7013 prefix="$acl_final_prefix"
7014 acl_save_exec_prefix="$exec_prefix"
7015 exec_prefix="$acl_final_exec_prefix"
7017 eval additional_includedir=\"$includedir\"
7018 eval additional_libdir=\"$libdir\"
7020 exec_prefix="$acl_save_exec_prefix"
7021 prefix="$acl_save_prefix"
7024 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7025 if test "${with_libiconv_prefix+set}" = set; then
7026 withval="$with_libiconv_prefix"
7028 if test "X$withval" = "Xno"; then
7031 if test "X$withval" = "X"; then
7033 acl_save_prefix="$prefix"
7034 prefix="$acl_final_prefix"
7035 acl_save_exec_prefix="$exec_prefix"
7036 exec_prefix="$acl_final_exec_prefix"
7038 eval additional_includedir=\"$includedir\"
7039 eval additional_libdir=\"$libdir\"
7041 exec_prefix="$acl_save_exec_prefix"
7042 prefix="$acl_save_prefix"
7045 additional_includedir="$withval/include"
7046 additional_libdir="$withval/lib"
7056 names_already_handled=
7057 names_next_round='iconv '
7058 while test -n "$names_next_round"; do
7059 names_this_round="$names_next_round"
7061 for name in $names_this_round; do
7063 for n in $names_already_handled; do
7064 if test "$n" = "$name"; then
7069 if test -z "$already_handled"; then
7070 names_already_handled="$names_already_handled $name"
7071 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7072 eval value=\"\$HAVE_LIB$uppername\"
7073 if test -n "$value"; then
7074 if test "$value" = yes; then
7075 eval value=\"\$LIB$uppername\"
7076 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7077 eval value=\"\$LTLIB$uppername\"
7078 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7087 if test $use_additional = yes; then
7088 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7089 found_dir="$additional_libdir"
7090 found_so="$additional_libdir/lib$name.$shlibext"
7091 if test -f "$additional_libdir/lib$name.la"; then
7092 found_la="$additional_libdir/lib$name.la"
7095 if test -f "$additional_libdir/lib$name.$libext"; then
7096 found_dir="$additional_libdir"
7097 found_a="$additional_libdir/lib$name.$libext"
7098 if test -f "$additional_libdir/lib$name.la"; then
7099 found_la="$additional_libdir/lib$name.la"
7104 if test "X$found_dir" = "X"; then
7105 for x in $LDFLAGS $LTLIBICONV; do
7107 acl_save_prefix="$prefix"
7108 prefix="$acl_final_prefix"
7109 acl_save_exec_prefix="$exec_prefix"
7110 exec_prefix="$acl_final_exec_prefix"
7112 exec_prefix="$acl_save_exec_prefix"
7113 prefix="$acl_save_prefix"
7117 dir=`echo "X$x" | sed -e 's/^X-L//'`
7118 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7120 found_so="$dir/lib$name.$shlibext"
7121 if test -f "$dir/lib$name.la"; then
7122 found_la="$dir/lib$name.la"
7125 if test -f "$dir/lib$name.$libext"; then
7127 found_a="$dir/lib$name.$libext"
7128 if test -f "$dir/lib$name.la"; then
7129 found_la="$dir/lib$name.la"
7135 if test "X$found_dir" != "X"; then
7140 if test "X$found_dir" != "X"; then
7141 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7142 if test "X$found_so" != "X"; then
7143 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7144 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7147 for x in $ltrpathdirs; do
7148 if test "X$x" = "X$found_dir"; then
7153 if test -z "$haveit"; then
7154 ltrpathdirs="$ltrpathdirs $found_dir"
7156 if test "$hardcode_direct" = yes; then
7157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7159 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7160 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7162 for x in $rpathdirs; do
7163 if test "X$x" = "X$found_dir"; then
7168 if test -z "$haveit"; then
7169 rpathdirs="$rpathdirs $found_dir"
7173 for x in $LDFLAGS $LIBICONV; do
7175 acl_save_prefix="$prefix"
7176 prefix="$acl_final_prefix"
7177 acl_save_exec_prefix="$exec_prefix"
7178 exec_prefix="$acl_final_exec_prefix"
7180 exec_prefix="$acl_save_exec_prefix"
7181 prefix="$acl_save_prefix"
7183 if test "X$x" = "X-L$found_dir"; then
7188 if test -z "$haveit"; then
7189 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7191 if test "$hardcode_minus_L" != no; then
7192 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7194 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7200 if test "X$found_a" != "X"; then
7201 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7203 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7206 additional_includedir=
7207 case "$found_dir" in
7209 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7210 additional_includedir="$basedir/include"
7213 if test "X$additional_includedir" != "X"; then
7214 if test "X$additional_includedir" != "X/usr/include"; then
7216 if test "X$additional_includedir" = "X/usr/local/include"; then
7217 if test -n "$GCC"; then
7219 linux*) haveit=yes;;
7223 if test -z "$haveit"; then
7224 for x in $CPPFLAGS $INCICONV; do
7226 acl_save_prefix="$prefix"
7227 prefix="$acl_final_prefix"
7228 acl_save_exec_prefix="$exec_prefix"
7229 exec_prefix="$acl_final_exec_prefix"
7231 exec_prefix="$acl_save_exec_prefix"
7232 prefix="$acl_save_prefix"
7234 if test "X$x" = "X-I$additional_includedir"; then
7239 if test -z "$haveit"; then
7240 if test -d "$additional_includedir"; then
7241 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7247 if test -n "$found_la"; then
7248 save_libdir="$libdir"
7250 */* | *\\*) . "$found_la" ;;
7251 *) . "./$found_la" ;;
7253 libdir="$save_libdir"
7254 for dep in $dependency_libs; do
7257 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7258 if test "X$additional_libdir" != "X/usr/lib"; then
7260 if test "X$additional_libdir" = "X/usr/local/lib"; then
7261 if test -n "$GCC"; then
7263 linux*) haveit=yes;;
7267 if test -z "$haveit"; then
7269 for x in $LDFLAGS $LIBICONV; do
7271 acl_save_prefix="$prefix"
7272 prefix="$acl_final_prefix"
7273 acl_save_exec_prefix="$exec_prefix"
7274 exec_prefix="$acl_final_exec_prefix"
7276 exec_prefix="$acl_save_exec_prefix"
7277 prefix="$acl_save_prefix"
7279 if test "X$x" = "X-L$additional_libdir"; then
7284 if test -z "$haveit"; then
7285 if test -d "$additional_libdir"; then
7286 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7290 for x in $LDFLAGS $LTLIBICONV; do
7292 acl_save_prefix="$prefix"
7293 prefix="$acl_final_prefix"
7294 acl_save_exec_prefix="$exec_prefix"
7295 exec_prefix="$acl_final_exec_prefix"
7297 exec_prefix="$acl_save_exec_prefix"
7298 prefix="$acl_save_prefix"
7300 if test "X$x" = "X-L$additional_libdir"; then
7305 if test -z "$haveit"; then
7306 if test -d "$additional_libdir"; then
7307 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7314 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7315 if test "$enable_rpath" != no; then
7317 for x in $rpathdirs; do
7318 if test "X$x" = "X$dir"; then
7323 if test -z "$haveit"; then
7324 rpathdirs="$rpathdirs $dir"
7327 for x in $ltrpathdirs; do
7328 if test "X$x" = "X$dir"; then
7333 if test -z "$haveit"; then
7334 ltrpathdirs="$ltrpathdirs $dir"
7339 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7342 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7345 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7346 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7352 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7353 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7359 if test "X$rpathdirs" != "X"; then
7360 if test -n "$hardcode_libdir_separator"; then
7362 for found_dir in $rpathdirs; do
7363 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7365 acl_save_libdir="$libdir"
7367 eval flag=\"$hardcode_libdir_flag_spec\"
7368 libdir="$acl_save_libdir"
7369 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7371 for found_dir in $rpathdirs; do
7372 acl_save_libdir="$libdir"
7374 eval flag=\"$hardcode_libdir_flag_spec\"
7375 libdir="$acl_save_libdir"
7376 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7380 if test "X$ltrpathdirs" != "X"; then
7381 for found_dir in $ltrpathdirs; do
7382 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7399 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7400 stdlib.h string.h unistd.h sys/param.h
7402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404 echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7412 # Is the header compilable?
7413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7415 cat >conftest.$ac_ext <<_ACEOF
7416 #line $LINENO "configure"
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 $ac_includes_default
7423 #include <$ac_header>
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -s conftest.$ac_objext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 ac_header_compiler=yes
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 ac_header_compiler=no
7444 rm -f conftest.$ac_objext conftest.$ac_ext
7445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7446 echo "${ECHO_T}$ac_header_compiler" >&6
7448 # Is the header present?
7449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7451 cat >conftest.$ac_ext <<_ACEOF
7452 #line $LINENO "configure"
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 #include <$ac_header>
7460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7463 grep -v '^ *+' conftest.er1 >conftest.err
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } >/dev/null; then
7468 if test -s conftest.err; then
7469 ac_cpp_err=$ac_c_preproc_warn_flag
7476 if test -z "$ac_cpp_err"; then
7477 ac_header_preproc=yes
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7482 ac_header_preproc=no
7484 rm -f conftest.err conftest.$ac_ext
7485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7486 echo "${ECHO_T}$ac_header_preproc" >&6
7488 # So? What about this header?
7489 case $ac_header_compiler:$ac_header_preproc in
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7497 ## ------------------------------------ ##
7498 ## Report this to bug-autoconf@gnu.org. ##
7499 ## ------------------------------------ ##
7502 sed "s/^/$as_me: WARNING: /" >&2
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7513 ## ------------------------------------ ##
7514 ## Report this to bug-autoconf@gnu.org. ##
7515 ## ------------------------------------ ##
7518 sed "s/^/$as_me: WARNING: /" >&2
7521 echo "$as_me:$LINENO: checking for $ac_header" >&5
7522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 eval "$as_ac_Header=$ac_header_preproc"
7528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7533 cat >>confdefs.h <<_ACEOF
7534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7562 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
7563 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
7564 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7567 echo "$as_me:$LINENO: checking for $ac_func" >&5
7568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7569 if eval "test \"\${$as_ac_var+set}\" = set"; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 cat >conftest.$ac_ext <<_ACEOF
7573 #line $LINENO "configure"
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 /* System header to define __stub macros and hopefully few prototypes,
7580 which can conflict with char $ac_func (); below.
7581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7582 <limits.h> exists even on freestanding compilers. */
7584 # include <limits.h>
7586 # include <assert.h>
7588 /* Override any gcc2 internal prototype to avoid an error. */
7593 /* We use char because int might match the return type of a gcc2
7594 builtin and then its argument prototype would still apply. */
7596 /* The GNU C library defines this for functions which it implements
7597 to always fail with ENOSYS. Some functions are actually named
7598 something starting with __ and the normal name is an alias. */
7599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7602 char (*f) () = $ac_func;
7611 return f != $ac_func;
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 eval "$as_ac_var=yes"
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 eval "$as_ac_var=no"
7635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7639 if test `eval echo '${'$as_ac_var'}'` = yes; then
7640 cat >>confdefs.h <<_ACEOF
7641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7653 am_save_CPPFLAGS="$CPPFLAGS"
7655 for element in $INCICONV; do
7657 for x in $CPPFLAGS; do
7659 acl_save_prefix="$prefix"
7660 prefix="$acl_final_prefix"
7661 acl_save_exec_prefix="$exec_prefix"
7662 exec_prefix="$acl_final_exec_prefix"
7664 exec_prefix="$acl_save_exec_prefix"
7665 prefix="$acl_save_prefix"
7667 if test "X$x" = "X$element"; then
7672 if test -z "$haveit"; then
7673 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7678 echo "$as_me:$LINENO: checking for iconv" >&5
7679 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7680 if test "${am_cv_func_iconv+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 am_cv_func_iconv="no, consider installing GNU libiconv"
7686 cat >conftest.$ac_ext <<_ACEOF
7687 #line $LINENO "configure"
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7698 iconv_t cd = iconv_open("","");
7699 iconv(cd,NULL,NULL,NULL,NULL);
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 am_cv_func_iconv=yes
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7724 if test "$am_cv_func_iconv" != yes; then
7725 am_save_LIBS="$LIBS"
7726 LIBS="$LIBS $LIBICONV"
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7739 iconv_t cd = iconv_open("","");
7740 iconv(cd,NULL,NULL,NULL,NULL);
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -s conftest$ac_exeext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7759 am_cv_func_iconv=yes
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766 LIBS="$am_save_LIBS"
7770 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7771 echo "${ECHO_T}$am_cv_func_iconv" >&6
7772 if test "$am_cv_func_iconv" = yes; then
7774 cat >>confdefs.h <<\_ACEOF
7775 #define HAVE_ICONV 1
7779 if test "$am_cv_lib_iconv" = yes; then
7780 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7781 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7782 echo "$as_me:$LINENO: result: $LIBICONV" >&5
7783 echo "${ECHO_T}$LIBICONV" >&6
7785 CPPFLAGS="$am_save_CPPFLAGS"
7792 if test "$am_cv_func_iconv" = yes; then
7793 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7794 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7795 if test "${am_cv_proto_iconv+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 cat >conftest.$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7813 #if defined(__STDC__) || defined(__cplusplus)
7814 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -s conftest.$ac_objext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 am_cv_proto_iconv_arg1=""
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 am_cv_proto_iconv_arg1="const"
7846 rm -f conftest.$ac_objext conftest.$ac_ext
7847 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);"
7850 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7851 echo "$as_me:$LINENO: result: ${ac_t:-
7852 }$am_cv_proto_iconv" >&5
7853 echo "${ECHO_T}${ac_t:-
7854 }$am_cv_proto_iconv" >&6
7856 cat >>confdefs.h <<_ACEOF
7857 #define ICONV_CONST $am_cv_proto_iconv_arg1
7863 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7864 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7865 if test "${am_cv_langinfo_codeset+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 cat >conftest.$ac_ext <<_ACEOF
7869 #line $LINENO "configure"
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 #include <langinfo.h>
7879 char* cs = nl_langinfo(CODESET);
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 am_cv_langinfo_codeset=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 am_cv_langinfo_codeset=no
7903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7906 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7907 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7908 if test $am_cv_langinfo_codeset = yes; then
7910 cat >>confdefs.h <<\_ACEOF
7911 #define HAVE_LANGINFO_CODESET 1
7916 if test $ac_cv_header_locale_h = yes; then
7918 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7919 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7920 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 cat >conftest.$ac_ext <<_ACEOF
7924 #line $LINENO "configure"
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -s conftest$ac_exeext'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 am_cv_val_LC_MESSAGES=yes
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 am_cv_val_LC_MESSAGES=no
7958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7960 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7961 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7962 if test $am_cv_val_LC_MESSAGES = yes; then
7964 cat >>confdefs.h <<\_ACEOF
7965 #define HAVE_LC_MESSAGES 1
7972 for ac_prog in bison
7974 # Extract the first word of "$ac_prog", so it can be a program name with args.
7975 set dummy $ac_prog; ac_word=$2
7976 echo "$as_me:$LINENO: checking for $ac_word" >&5
7977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7978 if test "${ac_cv_prog_INTLBISON+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 if test -n "$INTLBISON"; then
7982 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_INTLBISON="$ac_prog"
7992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 INTLBISON=$ac_cv_prog_INTLBISON
8001 if test -n "$INTLBISON"; then
8002 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8003 echo "${ECHO_T}$INTLBISON" >&6
8005 echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8009 test -n "$INTLBISON" && break
8012 if test -z "$INTLBISON"; then
8015 echo "$as_me:$LINENO: checking version of bison" >&5
8016 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8017 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8018 case $ac_prog_version in
8019 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8020 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8021 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8022 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8024 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8025 echo "${ECHO_T}$ac_prog_version" >&6
8027 if test $ac_verc_fail = yes; then
8045 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8046 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8047 # Check whether --enable-nls or --disable-nls was given.
8048 if test "${enable_nls+set}" = set; then
8049 enableval="$enable_nls"
8054 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8055 echo "${ECHO_T}$USE_NLS" >&6
8059 BUILD_INCLUDED_LIBINTL=no
8060 USE_INCLUDED_LIBINTL=no
8066 if test "$USE_NLS" = "yes"; then
8067 gt_use_preinstalled_gnugettext=no
8069 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8070 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8072 # Check whether --with-included-gettext or --without-included-gettext was given.
8073 if test "${with_included_gettext+set}" = set; then
8074 withval="$with_included_gettext"
8075 nls_cv_force_use_gnu_gettext=$withval
8077 nls_cv_force_use_gnu_gettext=no
8079 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8080 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8082 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8083 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8090 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8091 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8092 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 cat >conftest.$ac_ext <<_ACEOF
8096 #line $LINENO "configure"
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8102 #include <libintl.h>
8103 extern int _nl_msg_cat_cntr;
8104 extern int *_nl_domain_bindings;
8108 bindtextdomain ("", "");
8109 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116 (eval $ac_link) 2>&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -s conftest$ac_exeext'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8126 gt_cv_func_gnugettext1_libc=yes
8128 echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8131 gt_cv_func_gnugettext1_libc=no
8133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8135 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
8136 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
8138 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8144 acl_save_prefix="$prefix"
8145 prefix="$acl_final_prefix"
8146 acl_save_exec_prefix="$exec_prefix"
8147 exec_prefix="$acl_final_exec_prefix"
8149 eval additional_includedir=\"$includedir\"
8150 eval additional_libdir=\"$libdir\"
8152 exec_prefix="$acl_save_exec_prefix"
8153 prefix="$acl_save_prefix"
8156 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8157 if test "${with_libintl_prefix+set}" = set; then
8158 withval="$with_libintl_prefix"
8160 if test "X$withval" = "Xno"; then
8163 if test "X$withval" = "X"; then
8165 acl_save_prefix="$prefix"
8166 prefix="$acl_final_prefix"
8167 acl_save_exec_prefix="$exec_prefix"
8168 exec_prefix="$acl_final_exec_prefix"
8170 eval additional_includedir=\"$includedir\"
8171 eval additional_libdir=\"$libdir\"
8173 exec_prefix="$acl_save_exec_prefix"
8174 prefix="$acl_save_prefix"
8177 additional_includedir="$withval/include"
8178 additional_libdir="$withval/lib"
8188 names_already_handled=
8189 names_next_round='intl '
8190 while test -n "$names_next_round"; do
8191 names_this_round="$names_next_round"
8193 for name in $names_this_round; do
8195 for n in $names_already_handled; do
8196 if test "$n" = "$name"; then
8201 if test -z "$already_handled"; then
8202 names_already_handled="$names_already_handled $name"
8203 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8204 eval value=\"\$HAVE_LIB$uppername\"
8205 if test -n "$value"; then
8206 if test "$value" = yes; then
8207 eval value=\"\$LIB$uppername\"
8208 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8209 eval value=\"\$LTLIB$uppername\"
8210 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8219 if test $use_additional = yes; then
8220 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8221 found_dir="$additional_libdir"
8222 found_so="$additional_libdir/lib$name.$shlibext"
8223 if test -f "$additional_libdir/lib$name.la"; then
8224 found_la="$additional_libdir/lib$name.la"
8227 if test -f "$additional_libdir/lib$name.$libext"; then
8228 found_dir="$additional_libdir"
8229 found_a="$additional_libdir/lib$name.$libext"
8230 if test -f "$additional_libdir/lib$name.la"; then
8231 found_la="$additional_libdir/lib$name.la"
8236 if test "X$found_dir" = "X"; then
8237 for x in $LDFLAGS $LTLIBINTL; do
8239 acl_save_prefix="$prefix"
8240 prefix="$acl_final_prefix"
8241 acl_save_exec_prefix="$exec_prefix"
8242 exec_prefix="$acl_final_exec_prefix"
8244 exec_prefix="$acl_save_exec_prefix"
8245 prefix="$acl_save_prefix"
8249 dir=`echo "X$x" | sed -e 's/^X-L//'`
8250 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8252 found_so="$dir/lib$name.$shlibext"
8253 if test -f "$dir/lib$name.la"; then
8254 found_la="$dir/lib$name.la"
8257 if test -f "$dir/lib$name.$libext"; then
8259 found_a="$dir/lib$name.$libext"
8260 if test -f "$dir/lib$name.la"; then
8261 found_la="$dir/lib$name.la"
8267 if test "X$found_dir" != "X"; then
8272 if test "X$found_dir" != "X"; then
8273 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8274 if test "X$found_so" != "X"; then
8275 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8276 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8279 for x in $ltrpathdirs; do
8280 if test "X$x" = "X$found_dir"; then
8285 if test -z "$haveit"; then
8286 ltrpathdirs="$ltrpathdirs $found_dir"
8288 if test "$hardcode_direct" = yes; then
8289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8291 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8294 for x in $rpathdirs; do
8295 if test "X$x" = "X$found_dir"; then
8300 if test -z "$haveit"; then
8301 rpathdirs="$rpathdirs $found_dir"
8305 for x in $LDFLAGS $LIBINTL; do
8307 acl_save_prefix="$prefix"
8308 prefix="$acl_final_prefix"
8309 acl_save_exec_prefix="$exec_prefix"
8310 exec_prefix="$acl_final_exec_prefix"
8312 exec_prefix="$acl_save_exec_prefix"
8313 prefix="$acl_save_prefix"
8315 if test "X$x" = "X-L$found_dir"; then
8320 if test -z "$haveit"; then
8321 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8323 if test "$hardcode_minus_L" != no; then
8324 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8326 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8332 if test "X$found_a" != "X"; then
8333 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8335 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8338 additional_includedir=
8339 case "$found_dir" in
8341 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8342 additional_includedir="$basedir/include"
8345 if test "X$additional_includedir" != "X"; then
8346 if test "X$additional_includedir" != "X/usr/include"; then
8348 if test "X$additional_includedir" = "X/usr/local/include"; then
8349 if test -n "$GCC"; then
8351 linux*) haveit=yes;;
8355 if test -z "$haveit"; then
8356 for x in $CPPFLAGS $INCINTL; do
8358 acl_save_prefix="$prefix"
8359 prefix="$acl_final_prefix"
8360 acl_save_exec_prefix="$exec_prefix"
8361 exec_prefix="$acl_final_exec_prefix"
8363 exec_prefix="$acl_save_exec_prefix"
8364 prefix="$acl_save_prefix"
8366 if test "X$x" = "X-I$additional_includedir"; then
8371 if test -z "$haveit"; then
8372 if test -d "$additional_includedir"; then
8373 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8379 if test -n "$found_la"; then
8380 save_libdir="$libdir"
8382 */* | *\\*) . "$found_la" ;;
8383 *) . "./$found_la" ;;
8385 libdir="$save_libdir"
8386 for dep in $dependency_libs; do
8389 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8390 if test "X$additional_libdir" != "X/usr/lib"; then
8392 if test "X$additional_libdir" = "X/usr/local/lib"; then
8393 if test -n "$GCC"; then
8395 linux*) haveit=yes;;
8399 if test -z "$haveit"; then
8401 for x in $LDFLAGS $LIBINTL; do
8403 acl_save_prefix="$prefix"
8404 prefix="$acl_final_prefix"
8405 acl_save_exec_prefix="$exec_prefix"
8406 exec_prefix="$acl_final_exec_prefix"
8408 exec_prefix="$acl_save_exec_prefix"
8409 prefix="$acl_save_prefix"
8411 if test "X$x" = "X-L$additional_libdir"; then
8416 if test -z "$haveit"; then
8417 if test -d "$additional_libdir"; then
8418 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8422 for x in $LDFLAGS $LTLIBINTL; do
8424 acl_save_prefix="$prefix"
8425 prefix="$acl_final_prefix"
8426 acl_save_exec_prefix="$exec_prefix"
8427 exec_prefix="$acl_final_exec_prefix"
8429 exec_prefix="$acl_save_exec_prefix"
8430 prefix="$acl_save_prefix"
8432 if test "X$x" = "X-L$additional_libdir"; then
8437 if test -z "$haveit"; then
8438 if test -d "$additional_libdir"; then
8439 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8446 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8447 if test "$enable_rpath" != no; then
8449 for x in $rpathdirs; do
8450 if test "X$x" = "X$dir"; then
8455 if test -z "$haveit"; then
8456 rpathdirs="$rpathdirs $dir"
8459 for x in $ltrpathdirs; do
8460 if test "X$x" = "X$dir"; then
8465 if test -z "$haveit"; then
8466 ltrpathdirs="$ltrpathdirs $dir"
8471 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8477 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8478 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8484 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8485 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8491 if test "X$rpathdirs" != "X"; then
8492 if test -n "$hardcode_libdir_separator"; then
8494 for found_dir in $rpathdirs; do
8495 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8497 acl_save_libdir="$libdir"
8499 eval flag=\"$hardcode_libdir_flag_spec\"
8500 libdir="$acl_save_libdir"
8501 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8503 for found_dir in $rpathdirs; do
8504 acl_save_libdir="$libdir"
8506 eval flag=\"$hardcode_libdir_flag_spec\"
8507 libdir="$acl_save_libdir"
8508 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8512 if test "X$ltrpathdirs" != "X"; then
8513 for found_dir in $ltrpathdirs; do
8514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8518 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8519 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8520 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 gt_save_CPPFLAGS="$CPPFLAGS"
8524 CPPFLAGS="$CPPFLAGS $INCINTL"
8525 gt_save_LIBS="$LIBS"
8526 LIBS="$LIBS $LIBINTL"
8527 cat >conftest.$ac_ext <<_ACEOF
8528 #line $LINENO "configure"
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 #include <libintl.h>
8535 extern int _nl_msg_cat_cntr;
8540 const char *_nl_expand_alias ();
8544 bindtextdomain ("", "");
8545 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552 (eval $ac_link) 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -s conftest$ac_exeext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 gt_cv_func_gnugettext1_libintl=yes
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 gt_cv_func_gnugettext1_libintl=no
8569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8570 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8571 LIBS="$LIBS $LIBICONV"
8572 cat >conftest.$ac_ext <<_ACEOF
8573 #line $LINENO "configure"
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579 #include <libintl.h>
8580 extern int _nl_msg_cat_cntr;
8585 const char *_nl_expand_alias ();
8589 bindtextdomain ("", "");
8590 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -s conftest$ac_exeext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 LIBINTL="$LIBINTL $LIBICONV"
8608 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8609 gt_cv_func_gnugettext1_libintl=yes
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8618 CPPFLAGS="$gt_save_CPPFLAGS"
8619 LIBS="$gt_save_LIBS"
8621 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8622 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8625 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8626 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8627 && test "$PACKAGE" != gettext; }; then
8628 gt_use_preinstalled_gnugettext=yes
8636 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8637 nls_cv_use_gnu_gettext=yes
8641 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8642 INTLOBJS="\$(GETTOBJS)"
8643 BUILD_INCLUDED_LIBINTL=yes
8644 USE_INCLUDED_LIBINTL=yes
8645 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
8646 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
8647 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8650 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8651 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8656 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8657 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8659 cat >>confdefs.h <<\_ACEOF
8660 #define ENABLE_NLS 1
8668 if test "$USE_NLS" = "yes"; then
8670 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8671 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8672 echo "$as_me:$LINENO: checking how to link with libintl" >&5
8673 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
8674 echo "$as_me:$LINENO: result: $LIBINTL" >&5
8675 echo "${ECHO_T}$LIBINTL" >&6
8677 for element in $INCINTL; do
8679 for x in $CPPFLAGS; do
8681 acl_save_prefix="$prefix"
8682 prefix="$acl_final_prefix"
8683 acl_save_exec_prefix="$exec_prefix"
8684 exec_prefix="$acl_final_exec_prefix"
8686 exec_prefix="$acl_save_exec_prefix"
8687 prefix="$acl_save_prefix"
8689 if test "X$x" = "X$element"; then
8694 if test -z "$haveit"; then
8695 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8702 cat >>confdefs.h <<\_ACEOF
8703 #define HAVE_GETTEXT 1
8707 cat >>confdefs.h <<\_ACEOF
8708 #define HAVE_DCGETTEXT 1
8717 if test "$PACKAGE" = gettext; then
8718 BUILD_INCLUDED_LIBINTL=yes
8727 nls_cv_header_libgt=
8738 INTL_LIBTOOL_SUFFIX_PREFIX=
8750 cat >>confdefs.h <<_ACEOF
8751 #define PATH_SEPARATOR ':'
8754 cat >>confdefs.h <<_ACEOF
8755 #define PATH_SEPARATOR_STR ":"
8761 # Extract the first word of "perl", so it can be a program name with args.
8762 set dummy perl; ac_word=$2
8763 echo "$as_me:$LINENO: checking for $ac_word" >&5
8764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8765 if test "${ac_cv_path_PERL+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8790 PERL=$ac_cv_path_PERL
8792 if test -n "$PERL"; then
8793 echo "$as_me:$LINENO: result: $PERL" >&5
8794 echo "${ECHO_T}$PERL" >&6
8796 echo "$as_me:$LINENO: result: no" >&5
8797 echo "${ECHO_T}no" >&6
8805 ac_config_files="$ac_config_files Makefile po/Makefile.in m4/Makefile intl/Makefile po/Makefile compat/Makefile afm/Makefile afmlib/Makefile src/Makefile src/tests/Makefile lib/Makefile scripts/Makefile states/Makefile states/hl/Makefile states/tests/Makefile docs/Makefile w32/Makefile"
8807 ac_config_commands="$ac_config_commands default"
8809 cat >confcache <<\_ACEOF
8810 # This file is a shell script that caches the results of configure
8811 # tests run on this system so they can be shared between configure
8812 # scripts and configure runs, see configure's option --config-cache.
8813 # It is not useful on other systems. If it contains results you don't
8814 # want to keep, you may remove or edit it.
8816 # config.status only pays attention to the cache file if you give it
8817 # the --recheck option to rerun configure.
8819 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8820 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8825 # The following way of writing the cache mishandles newlines in values,
8826 # but we know of no workaround that is simple, portable, and efficient.
8827 # So, don't put newlines in cache variables' values.
8828 # Ultrix sh set writes to stderr and can't be redirected directly,
8829 # and sets the high bit in the cache file unless we assign to the vars.
8832 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8834 # `set' does not quote correctly, so add quotes (double-quote
8835 # substitution turns \\\\ into \\, and sed turns \\ into \).
8838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8841 # `set' quotes correctly as required by POSIX, so do not add quotes.
8843 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8850 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8852 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8854 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8855 if test -w $cache_file; then
8856 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8857 cat confcache >$cache_file
8859 echo "not updating unwritable cache $cache_file"
8864 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8865 # Let make expand exec_prefix.
8866 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8868 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8869 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8870 # trailing colons and then remove the whole line if VPATH becomes empty
8871 # (actually we leave an empty line to preserve line numbers).
8872 if test "x$srcdir" = x.; then
8873 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8874 s/:*\$(srcdir):*/:/;
8875 s/:*\${srcdir}:*/:/;
8877 s/^\([^=]*=[ ]*\):*/\1/;
8883 DEFS=-DHAVE_CONFIG_H
8887 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8888 # 1. Remove the extension, and $U if already installed.
8889 ac_i=`echo "$ac_i" |
8890 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8892 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8893 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8897 LTLIBOBJS=$ac_ltlibobjs
8900 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8901 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8902 Usually this means the macro was only invoked conditionally." >&5
8903 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8904 Usually this means the macro was only invoked conditionally." >&2;}
8905 { (exit 1); exit 1; }; }
8907 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8908 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8909 Usually this means the macro was only invoked conditionally." >&5
8910 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8911 Usually this means the macro was only invoked conditionally." >&2;}
8912 { (exit 1); exit 1; }; }
8915 : ${CONFIG_STATUS=./config.status}
8916 ac_clean_files_save=$ac_clean_files
8917 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8918 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8919 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8920 cat >$CONFIG_STATUS <<_ACEOF
8922 # Generated by $as_me.
8923 # Run this file to recreate the current configuration.
8924 # Compiler output produced by configure, useful for debugging
8925 # configure, is in config.log if it exists.
8930 SHELL=\${CONFIG_SHELL-$SHELL}
8933 cat >>$CONFIG_STATUS <<\_ACEOF
8934 ## --------------------- ##
8935 ## M4sh Initialization. ##
8936 ## --------------------- ##
8938 # Be Bourne compatible
8939 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8942 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8943 # is contrary to our usage. Disable this feature.
8944 alias -g '${1+"$@"}'='"$@"'
8945 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8949 # Support unset when possible.
8950 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8957 # Work around bugs in pre-3.0 UWIN ksh.
8958 $as_unset ENV MAIL MAILPATH
8965 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8966 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8967 LC_TELEPHONE LC_TIME
8969 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8970 eval $as_var=C; export $as_var
8976 # Required to use basename.
8977 if expr a : '\(a\)' >/dev/null 2>&1; then
8983 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8984 as_basename=basename
8990 # Name of the executable.
8991 as_me=`$as_basename "$0" ||
8992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8993 X"$0" : 'X\(//\)$' \| \
8994 X"$0" : 'X\(/\)$' \| \
8995 . : '\(.\)' 2>/dev/null ||
8997 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8998 /^X\/\(\/\/\)$/{ s//\1/; q; }
8999 /^X\/\(\/\).*/{ s//\1/; q; }
9003 # PATH needs CR, and LINENO needs CR and PATH.
9004 # Avoid depending upon Character Ranges.
9005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9008 as_cr_digits='0123456789'
9009 as_cr_alnum=$as_cr_Letters$as_cr_digits
9011 # The user is always right.
9012 if test "${PATH_SEPARATOR+set}" != set; then
9013 echo "#! /bin/sh" >conf$$.sh
9014 echo "exit 0" >>conf$$.sh
9016 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9027 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9028 test "x$as_lineno_1" != "x$as_lineno_2" &&
9029 test "x$as_lineno_3" = "x$as_lineno_2" || {
9030 # Find who we are. Look in the path if we contain no path at all
9033 *[\\/]* ) as_myself=$0 ;;
9034 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 test -z "$as_dir" && as_dir=.
9039 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9044 # We did not find ourselves, most probably we were run as `sh COMMAND'
9045 # in which case we are not to be found in the path.
9046 if test "x$as_myself" = x; then
9049 if test ! -f "$as_myself"; then
9050 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9051 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9052 { (exit 1); exit 1; }; }
9054 case $CONFIG_SHELL in
9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9060 test -z "$as_dir" && as_dir=.
9061 for as_base in sh bash ksh sh5; do
9064 if ("$as_dir/$as_base" -c '
9067 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9068 test "x$as_lineno_1" != "x$as_lineno_2" &&
9069 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9070 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9071 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9072 CONFIG_SHELL=$as_dir/$as_base
9074 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9082 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9083 # uniformly replaced by the line number. The first 'sed' inserts a
9084 # line-number line before each line; the second 'sed' does the real
9085 # work. The second script uses 'N' to pair each line-number line
9086 # with the numbered line, and appends trailing '-' during
9087 # substitution so that $LINENO is not a special case at line end.
9088 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9089 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9090 sed '=' <$as_myself |
9095 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9098 s,^['$as_cr_digits']*\n,,
9100 chmod +x $as_me.lineno ||
9101 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9102 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9103 { (exit 1); exit 1; }; }
9105 # Don't try to exec as it changes $[0], causing all sort of problems
9106 # (the dirname of $[0] is not the place where we might find the
9107 # original and so on. Autoconf is especially sensible to this).
9109 # Exit status is that of the last command.
9114 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9115 *c*,-n*) ECHO_N= ECHO_C='
9117 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9118 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9121 if expr a : '\(a\)' >/dev/null 2>&1; then
9127 rm -f conf$$ conf$$.exe conf$$.file
9129 if ln -s conf$$.file conf$$ 2>/dev/null; then
9130 # We could just check for DJGPP; but this test a) works b) is more generic
9131 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9132 if test -f conf$$.exe; then
9133 # Don't use ln at all; we don't have any links
9138 elif ln conf$$.file conf$$ 2>/dev/null; then
9143 rm -f conf$$ conf$$.exe conf$$.file
9145 if mkdir -p . 2>/dev/null; then
9151 as_executable_p="test -f"
9153 # Sed expression to map a string onto a valid CPP name.
9154 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9156 # Sed expression to map a string onto a valid variable name.
9157 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9161 # We need space, tab and new line, in precisely that order.
9171 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9172 # report actual input values of CONFIG_FILES etc. instead of their
9173 # values after options handling. Logging --version etc. is OK.
9177 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9178 ## Running $as_me. ##
9183 This file was extended by enscript $as_me 1.6.4, which was
9184 generated by GNU Autoconf 2.57. Invocation command line was
9186 CONFIG_FILES = $CONFIG_FILES
9187 CONFIG_HEADERS = $CONFIG_HEADERS
9188 CONFIG_LINKS = $CONFIG_LINKS
9189 CONFIG_COMMANDS = $CONFIG_COMMANDS
9193 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9197 # Files that config.status was made for.
9198 if test -n "$ac_config_files"; then
9199 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9202 if test -n "$ac_config_headers"; then
9203 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9206 if test -n "$ac_config_links"; then
9207 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9210 if test -n "$ac_config_commands"; then
9211 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9214 cat >>$CONFIG_STATUS <<\_ACEOF
9217 \`$as_me' instantiates files from templates according to the
9218 current configuration.
9220 Usage: $0 [OPTIONS] [FILE]...
9222 -h, --help print this help, then exit
9223 -V, --version print version number, then exit
9224 -q, --quiet do not print progress messages
9225 -d, --debug don't remove temporary files
9226 --recheck update $as_me by reconfiguring in the same conditions
9227 --file=FILE[:TEMPLATE]
9228 instantiate the configuration file FILE
9229 --header=FILE[:TEMPLATE]
9230 instantiate the configuration header FILE
9232 Configuration files:
9235 Configuration headers:
9238 Configuration commands:
9241 Report bugs to <bug-autoconf@gnu.org>."
9244 cat >>$CONFIG_STATUS <<_ACEOF
9246 enscript config.status 1.6.4
9247 configured by $0, generated by GNU Autoconf 2.57,
9248 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9250 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9251 Free Software Foundation, Inc.
9252 This config.status script is free software; the Free Software Foundation
9253 gives unlimited permission to copy, distribute and modify it."
9258 cat >>$CONFIG_STATUS <<\_ACEOF
9259 # If no file are specified by the user, then we need to provide default
9260 # value. By we need to know if files were specified by the user.
9266 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9267 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9275 *) # This is not an option, so the user has probably given explicit
9278 ac_need_defaults=false;;
9282 # Handling of the options.
9284 cat >>$CONFIG_STATUS <<\_ACEOF
9285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9287 --version | --vers* | -V )
9288 echo "$ac_cs_version"; exit 0 ;;
9290 # Conflict between --help and --header
9291 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9292 Try \`$0 --help' for more information." >&5
9293 echo "$as_me: error: ambiguous option: $1
9294 Try \`$0 --help' for more information." >&2;}
9295 { (exit 1); exit 1; }; };;
9296 --help | --hel | -h )
9297 echo "$ac_cs_usage"; exit 0 ;;
9298 --debug | --d* | -d )
9300 --file | --fil | --fi | --f )
9302 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9303 ac_need_defaults=false;;
9304 --header | --heade | --head | --hea )
9306 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9307 ac_need_defaults=false;;
9308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9309 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9313 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9314 Try \`$0 --help' for more information." >&5
9315 echo "$as_me: error: unrecognized option: $1
9316 Try \`$0 --help' for more information." >&2;}
9317 { (exit 1); exit 1; }; } ;;
9319 *) ac_config_targets="$ac_config_targets $1" ;;
9325 ac_configure_extra_args=
9327 if $ac_cs_silent; then
9329 ac_configure_extra_args="$ac_configure_extra_args --silent"
9333 cat >>$CONFIG_STATUS <<_ACEOF
9334 if \$ac_cs_recheck; then
9335 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9336 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9341 cat >>$CONFIG_STATUS <<_ACEOF
9343 # INIT-COMMANDS section.
9346 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9347 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9348 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9350 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9351 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9352 LINGUAS="${LINGUAS-%UNSET%}"
9360 cat >>$CONFIG_STATUS <<\_ACEOF
9361 for ac_config_target in $ac_config_targets
9363 case "$ac_config_target" in
9364 # Handling of arguments.
9365 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9366 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9367 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9368 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
9369 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
9370 "compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
9371 "afm/Makefile" ) CONFIG_FILES="$CONFIG_FILES afm/Makefile" ;;
9372 "afmlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES afmlib/Makefile" ;;
9373 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9374 "src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
9375 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9376 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9377 "states/Makefile" ) CONFIG_FILES="$CONFIG_FILES states/Makefile" ;;
9378 "states/hl/Makefile" ) CONFIG_FILES="$CONFIG_FILES states/hl/Makefile" ;;
9379 "states/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES states/tests/Makefile" ;;
9380 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9381 "w32/Makefile" ) CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
9382 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9383 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9384 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9385 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9386 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9387 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9388 { (exit 1); exit 1; }; };;
9392 # If the user did not use the arguments to specify the items to instantiate,
9393 # then the envvar interface is used. Set only those that are not.
9394 # We use the long form for the default assignment because of an extremely
9395 # bizarre bug on SunOS 4.1.3.
9396 if $ac_need_defaults; then
9397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9402 # Have a temporary directory for convenience. Make it in the build tree
9403 # simply because there is no reason to put it here, and in addition,
9404 # creating and moving files from /tmp can sometimes cause problems.
9405 # Create a temporary directory, and hook for its removal unless debugging.
9408 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9409 trap '{ (exit 1); exit 1; }' 1 2 13 15
9412 # Create a (secure) tmp directory for tmp files.
9415 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9416 test -n "$tmp" && test -d "$tmp"
9419 tmp=./confstat$$-$RANDOM
9420 (umask 077 && mkdir $tmp)
9423 echo "$me: cannot create a temporary directory in ." >&2
9424 { (exit 1); exit 1; }
9429 cat >>$CONFIG_STATUS <<_ACEOF
9432 # CONFIG_FILES section.
9435 # No need to generate the scripts if there are no CONFIG_FILES.
9436 # This happens for instance when ./config.status config.h
9437 if test -n "\$CONFIG_FILES"; then
9438 # Protect against being on the right side of a sed subst in config.status.
9439 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9440 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9441 s,@SHELL@,$SHELL,;t t
9442 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9443 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9444 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9445 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9446 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9447 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9448 s,@exec_prefix@,$exec_prefix,;t t
9449 s,@prefix@,$prefix,;t t
9450 s,@program_transform_name@,$program_transform_name,;t t
9451 s,@bindir@,$bindir,;t t
9452 s,@sbindir@,$sbindir,;t t
9453 s,@libexecdir@,$libexecdir,;t t
9454 s,@datadir@,$datadir,;t t
9455 s,@sysconfdir@,$sysconfdir,;t t
9456 s,@sharedstatedir@,$sharedstatedir,;t t
9457 s,@localstatedir@,$localstatedir,;t t
9458 s,@libdir@,$libdir,;t t
9459 s,@includedir@,$includedir,;t t
9460 s,@oldincludedir@,$oldincludedir,;t t
9461 s,@infodir@,$infodir,;t t
9462 s,@mandir@,$mandir,;t t
9463 s,@build_alias@,$build_alias,;t t
9464 s,@host_alias@,$host_alias,;t t
9465 s,@target_alias@,$target_alias,;t t
9467 s,@ECHO_C@,$ECHO_C,;t t
9468 s,@ECHO_N@,$ECHO_N,;t t
9469 s,@ECHO_T@,$ECHO_T,;t t
9471 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9472 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9473 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9474 s,@CYGPATH_W@,$CYGPATH_W,;t t
9475 s,@PACKAGE@,$PACKAGE,;t t
9476 s,@VERSION@,$VERSION,;t t
9477 s,@ACLOCAL@,$ACLOCAL,;t t
9478 s,@AUTOCONF@,$AUTOCONF,;t t
9479 s,@AUTOMAKE@,$AUTOMAKE,;t t
9480 s,@AUTOHEADER@,$AUTOHEADER,;t t
9481 s,@MAKEINFO@,$MAKEINFO,;t t
9482 s,@AMTAR@,$AMTAR,;t t
9483 s,@install_sh@,$install_sh,;t t
9484 s,@STRIP@,$STRIP,;t t
9485 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9486 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9488 s,@SET_MAKE@,$SET_MAKE,;t t
9490 s,@CFLAGS@,$CFLAGS,;t t
9491 s,@LDFLAGS@,$LDFLAGS,;t t
9492 s,@CPPFLAGS@,$CPPFLAGS,;t t
9493 s,@ac_ct_CC@,$ac_ct_CC,;t t
9494 s,@EXEEXT@,$EXEEXT,;t t
9495 s,@OBJEXT@,$OBJEXT,;t t
9496 s,@DEPDIR@,$DEPDIR,;t t
9497 s,@am__include@,$am__include,;t t
9498 s,@am__quote@,$am__quote,;t t
9499 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9500 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9501 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9502 s,@CCDEPMODE@,$CCDEPMODE,;t t
9503 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9504 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9506 s,@EGREP@,$EGREP,;t t
9508 s,@ANSI2KNR@,$ANSI2KNR,;t t
9509 s,@ALLOCA@,$ALLOCA,;t t
9510 s,@LIBOBJS@,$LIBOBJS,;t t
9511 s,@RANLIB@,$RANLIB,;t t
9512 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9515 s,@LEXLIB@,$LEXLIB,;t t
9516 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9517 s,@MEDIA@,$MEDIA,;t t
9518 s,@SPOOLER@,$SPOOLER,;t t
9519 s,@PSLEVEL@,$PSLEVEL,;t t
9520 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9521 s,@MSGFMT@,$MSGFMT,;t t
9522 s,@GMSGFMT@,$GMSGFMT,;t t
9523 s,@XGETTEXT@,$XGETTEXT,;t t
9524 s,@MSGMERGE@,$MSGMERGE,;t t
9525 s,@build@,$build,;t t
9526 s,@build_cpu@,$build_cpu,;t t
9527 s,@build_vendor@,$build_vendor,;t t
9528 s,@build_os@,$build_os,;t t
9530 s,@host_cpu@,$host_cpu,;t t
9531 s,@host_vendor@,$host_vendor,;t t
9532 s,@host_os@,$host_os,;t t
9533 s,@GLIBC21@,$GLIBC21,;t t
9534 s,@LIBICONV@,$LIBICONV,;t t
9535 s,@LTLIBICONV@,$LTLIBICONV,;t t
9536 s,@INTLBISON@,$INTLBISON,;t t
9537 s,@USE_NLS@,$USE_NLS,;t t
9538 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9539 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9540 s,@CATOBJEXT@,$CATOBJEXT,;t t
9541 s,@INTLOBJS@,$INTLOBJS,;t t
9542 s,@DATADIRNAME@,$DATADIRNAME,;t t
9543 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9544 s,@GENCAT@,$GENCAT,;t t
9545 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9546 s,@INTLLIBS@,$INTLLIBS,;t t
9547 s,@LIBINTL@,$LIBINTL,;t t
9548 s,@LTLIBINTL@,$LTLIBINTL,;t t
9549 s,@POSUB@,$POSUB,;t t
9551 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9556 cat >>$CONFIG_STATUS <<\_ACEOF
9557 # Split the substitutions into bite-sized pieces for seds with
9558 # small command number limits, like on Digital OSF/1 and HP-UX.
9560 ac_sed_frag=1 # Number of current file.
9561 ac_beg=1 # First line for current file.
9562 ac_end=$ac_max_sed_lines # Line after last line for current file.
9565 while $ac_more_lines; do
9566 if test $ac_beg -gt 1; then
9567 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9569 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9571 if test ! -s $tmp/subs.frag; then
9574 # The purpose of the label and of the branching condition is to
9575 # speed up the sed processing (if there are no `@' at all, there
9576 # is no need to browse any of the substitutions).
9577 # These are the two extra sed commands mentioned above.
9579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9580 if test -z "$ac_sed_cmds"; then
9581 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9583 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9585 ac_sed_frag=`expr $ac_sed_frag + 1`
9587 ac_end=`expr $ac_end + $ac_max_sed_lines`
9590 if test -z "$ac_sed_cmds"; then
9593 fi # test -n "$CONFIG_FILES"
9596 cat >>$CONFIG_STATUS <<\_ACEOF
9597 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9600 - | *:- | *:-:* ) # input from stdin
9602 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9604 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9605 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9606 * ) ac_file_in=$ac_file.in ;;
9609 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9610 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9612 X"$ac_file" : 'X\(//\)[^/]' \| \
9613 X"$ac_file" : 'X\(//\)$' \| \
9614 X"$ac_file" : 'X\(/\)' \| \
9615 . : '\(.\)' 2>/dev/null ||
9617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9619 /^X\(\/\/\)$/{ s//\1/; q; }
9620 /^X\(\/\).*/{ s//\1/; q; }
9622 { if $as_mkdir_p; then
9627 while test ! -d "$as_dir"; do
9628 as_dirs="$as_dir $as_dirs"
9629 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9631 X"$as_dir" : 'X\(//\)[^/]' \| \
9632 X"$as_dir" : 'X\(//\)$' \| \
9633 X"$as_dir" : 'X\(/\)' \| \
9634 . : '\(.\)' 2>/dev/null ||
9636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9638 /^X\(\/\/\)$/{ s//\1/; q; }
9639 /^X\(\/\).*/{ s//\1/; q; }
9642 test ! -n "$as_dirs" || mkdir $as_dirs
9643 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9644 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9645 { (exit 1); exit 1; }; }; }
9649 if test "$ac_dir" != .; then
9650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9651 # A "../" for each directory in $ac_dir_suffix.
9652 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9654 ac_dir_suffix= ac_top_builddir=
9658 .) # No --srcdir option. We are building in place.
9660 if test -z "$ac_top_builddir"; then
9663 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9665 [\\/]* | ?:[\\/]* ) # Absolute path.
9666 ac_srcdir=$srcdir$ac_dir_suffix;
9667 ac_top_srcdir=$srcdir ;;
9669 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9670 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9672 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9674 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9675 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9676 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9677 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9681 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9682 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9685 if test x"$ac_file" != x-; then
9686 { echo "$as_me:$LINENO: creating $ac_file" >&5
9687 echo "$as_me: creating $ac_file" >&6;}
9690 # Let's still pretend it is `configure' which instantiates (i.e., don't
9691 # use $as_me), people would be surprised to read:
9692 # /* config.h. Generated by config.status. */
9693 if test x"$ac_file" = x-; then
9696 configure_input="$ac_file. "
9698 configure_input=$configure_input"Generated from `echo $ac_file_in |
9699 sed 's,.*/,,'` by configure."
9701 # First look for the input files in the build tree, otherwise in the
9703 ac_file_inputs=`IFS=:
9704 for f in $ac_file_in; do
9706 -) echo $tmp/stdin ;;
9708 # Absolute (can't be DOS-style, as IFS=:)
9709 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9710 echo "$as_me: error: cannot find input file: $f" >&2;}
9711 { (exit 1); exit 1; }; }
9714 if test -f "$f"; then
9717 elif test -f "$srcdir/$f"; then
9722 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9723 echo "$as_me: error: cannot find input file: $f" >&2;}
9724 { (exit 1); exit 1; }; }
9727 done` || { (exit 1); exit 1; }
9729 cat >>$CONFIG_STATUS <<_ACEOF
9733 cat >>$CONFIG_STATUS <<\_ACEOF
9735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9736 s,@configure_input@,$configure_input,;t t
9737 s,@srcdir@,$ac_srcdir,;t t
9738 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9739 s,@top_srcdir@,$ac_top_srcdir,;t t
9740 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9741 s,@builddir@,$ac_builddir,;t t
9742 s,@abs_builddir@,$ac_abs_builddir,;t t
9743 s,@top_builddir@,$ac_top_builddir,;t t
9744 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9745 s,@INSTALL@,$ac_INSTALL,;t t
9746 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9748 if test x"$ac_file" != x-; then
9749 mv $tmp/out $ac_file
9757 cat >>$CONFIG_STATUS <<\_ACEOF
9760 # CONFIG_HEADER section.
9763 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9764 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9766 # ac_d sets the value in "#define NAME VALUE" lines.
9767 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9768 ac_dB='[ ].*$,\1#\2'
9771 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9772 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9773 ac_uB='$,\1#\2define\3'
9777 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9778 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9780 - | *:- | *:-:* ) # input from stdin
9782 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9783 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9784 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9785 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9786 * ) ac_file_in=$ac_file.in ;;
9789 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9790 echo "$as_me: creating $ac_file" >&6;}
9792 # First look for the input files in the build tree, otherwise in the
9794 ac_file_inputs=`IFS=:
9795 for f in $ac_file_in; do
9797 -) echo $tmp/stdin ;;
9799 # Absolute (can't be DOS-style, as IFS=:)
9800 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9801 echo "$as_me: error: cannot find input file: $f" >&2;}
9802 { (exit 1); exit 1; }; }
9805 if test -f "$f"; then
9808 elif test -f "$srcdir/$f"; then
9813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9814 echo "$as_me: error: cannot find input file: $f" >&2;}
9815 { (exit 1); exit 1; }; }
9818 done` || { (exit 1); exit 1; }
9819 # Remove the trailing spaces.
9820 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9824 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9825 # `conftest.undefs', that substitutes the proper values into
9826 # config.h.in to produce config.h. The first handles `#define'
9827 # templates, and the second `#undef' templates.
9828 # And first: Protect against being on the right side of a sed subst in
9829 # config.status. Protect against being in an unquoted here document
9831 rm -f conftest.defines conftest.undefs
9832 # Using a here document instead of a string reduces the quoting nightmare.
9833 # Putting comments in sed scripts is not portable.
9835 # `end' is used to avoid that the second main sed command (meant for
9836 # 0-ary CPP macros) applies to n-ary macro definitions.
9837 # See the Autoconf documentation for `clear'.
9838 cat >confdef2sed.sed <<\_ACEOF
9843 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9845 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9848 # If some macros were called several times there might be several times
9849 # the same #defines, which is useless. Nevertheless, we may not want to
9850 # sort them, since we want the *last* AC-DEFINE to be honored.
9851 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9852 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9853 rm -f confdef2sed.sed
9855 # This sed command replaces #undef with comments. This is necessary, for
9856 # example, in the case of _POSIX_SOURCE, which is predefined and required
9857 # on some systems where configure will not decide to define it.
9858 cat >>conftest.undefs <<\_ACEOF
9859 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9862 # Break up conftest.defines because some shells have a limit on the size
9863 # of here documents, and old seds have small limits too (100 cmds).
9864 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9865 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9866 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9867 echo ' :' >>$CONFIG_STATUS
9869 while grep . conftest.defines >/dev/null
9871 # Write a limited-size here document to $tmp/defines.sed.
9872 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9873 # Speed up: don't consider the non `#define' lines.
9874 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9875 # Work around the forget-to-reset-the-flag bug.
9876 echo 't clr' >>$CONFIG_STATUS
9877 echo ': clr' >>$CONFIG_STATUS
9878 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9880 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9884 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9885 rm -f conftest.defines
9886 mv conftest.tail conftest.defines
9888 rm -f conftest.defines
9889 echo ' fi # grep' >>$CONFIG_STATUS
9890 echo >>$CONFIG_STATUS
9892 # Break up conftest.undefs because some shells have a limit on the size
9893 # of here documents, and old seds have small limits too (100 cmds).
9894 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9896 while grep . conftest.undefs >/dev/null
9898 # Write a limited-size here document to $tmp/undefs.sed.
9899 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9900 # Speed up: don't consider the non `#undef'
9901 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9902 # Work around the forget-to-reset-the-flag bug.
9903 echo 't clr' >>$CONFIG_STATUS
9904 echo ': clr' >>$CONFIG_STATUS
9905 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9907 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9911 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9912 rm -f conftest.undefs
9913 mv conftest.tail conftest.undefs
9915 rm -f conftest.undefs
9917 cat >>$CONFIG_STATUS <<\_ACEOF
9918 # Let's still pretend it is `configure' which instantiates (i.e., don't
9919 # use $as_me), people would be surprised to read:
9920 # /* config.h. Generated by config.status. */
9921 if test x"$ac_file" = x-; then
9922 echo "/* Generated by configure. */" >$tmp/config.h
9924 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9926 cat $tmp/in >>$tmp/config.h
9928 if test x"$ac_file" != x-; then
9929 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9930 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9931 echo "$as_me: $ac_file is unchanged" >&6;}
9933 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9935 X"$ac_file" : 'X\(//\)[^/]' \| \
9936 X"$ac_file" : 'X\(//\)$' \| \
9937 X"$ac_file" : 'X\(/\)' \| \
9938 . : '\(.\)' 2>/dev/null ||
9940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9942 /^X\(\/\/\)$/{ s//\1/; q; }
9943 /^X\(\/\).*/{ s//\1/; q; }
9945 { if $as_mkdir_p; then
9950 while test ! -d "$as_dir"; do
9951 as_dirs="$as_dir $as_dirs"
9952 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9954 X"$as_dir" : 'X\(//\)[^/]' \| \
9955 X"$as_dir" : 'X\(//\)$' \| \
9956 X"$as_dir" : 'X\(/\)' \| \
9957 . : '\(.\)' 2>/dev/null ||
9959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9961 /^X\(\/\/\)$/{ s//\1/; q; }
9962 /^X\(\/\).*/{ s//\1/; q; }
9965 test ! -n "$as_dirs" || mkdir $as_dirs
9966 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9967 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9968 { (exit 1); exit 1; }; }; }
9971 mv $tmp/config.h $ac_file
9977 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
9978 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9979 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9980 X$ac_file : 'X\(//\)[^/]' \| \
9981 X$ac_file : 'X\(//\)$' \| \
9982 X$ac_file : 'X\(/\)' \| \
9983 . : '\(.\)' 2>/dev/null ||
9985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9987 /^X\(\/\/\)$/{ s//\1/; q; }
9988 /^X\(\/\).*/{ s//\1/; q; }
9989 s/.*/./; q'`/stamp-h$_am_stamp_count
9992 cat >>$CONFIG_STATUS <<\_ACEOF
9995 # CONFIG_COMMANDS section.
9997 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9998 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9999 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10000 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10001 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10002 X"$ac_dest" : 'X\(//\)[^/]' \| \
10003 X"$ac_dest" : 'X\(//\)$' \| \
10004 X"$ac_dest" : 'X\(/\)' \| \
10005 . : '\(.\)' 2>/dev/null ||
10007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10009 /^X\(\/\/\)$/{ s//\1/; q; }
10010 /^X\(\/\).*/{ s//\1/; q; }
10014 if test "$ac_dir" != .; then
10015 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10016 # A "../" for each directory in $ac_dir_suffix.
10017 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10019 ac_dir_suffix= ac_top_builddir=
10023 .) # No --srcdir option. We are building in place.
10025 if test -z "$ac_top_builddir"; then
10028 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10030 [\\/]* | ?:[\\/]* ) # Absolute path.
10031 ac_srcdir=$srcdir$ac_dir_suffix;
10032 ac_top_srcdir=$srcdir ;;
10033 *) # Relative path.
10034 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10035 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10037 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10039 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10040 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10041 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10042 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10045 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10046 echo "$as_me: executing $ac_dest commands" >&6;}
10048 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10049 # Strip MF so we end up with the name of the file.
10050 mf=`echo "$mf" | sed -e 's/:.*$//'`
10051 # Check whether this is an Automake generated Makefile or not.
10052 # We used to match only the files named `Makefile.in', but
10053 # some people rename them; so instead we look at the file content.
10054 # Grep'ing the first line is not enough: some people post-process
10055 # each Makefile.in and add a new line on top of each file to say so.
10056 # So let's grep whole file.
10057 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10058 dirpart=`(dirname "$mf") 2>/dev/null ||
10059 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10060 X"$mf" : 'X\(//\)[^/]' \| \
10061 X"$mf" : 'X\(//\)$' \| \
10062 X"$mf" : 'X\(/\)' \| \
10063 . : '\(.\)' 2>/dev/null ||
10065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10066 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10067 /^X\(\/\/\)$/{ s//\1/; q; }
10068 /^X\(\/\).*/{ s//\1/; q; }
10073 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10074 # Extract the definition of DEP_FILES from the Makefile without
10076 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10077 test -z "$DEPDIR" && continue
10078 # When using ansi2knr, U may be empty or an underscore; expand it
10079 U=`sed -n -e '/^U = / s///p' < "$mf"`
10080 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10081 # We invoke sed twice because it is the simplest approach to
10082 # changing $(DEPDIR) to its actual value in the expansion.
10083 for file in `sed -n -e '
10084 /^DEP_FILES = .*\\\\$/ {
10093 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10094 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10095 # Make sure the directory exists.
10096 test -f "$dirpart/$file" && continue
10097 fdir=`(dirname "$file") 2>/dev/null ||
10098 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10099 X"$file" : 'X\(//\)[^/]' \| \
10100 X"$file" : 'X\(//\)$' \| \
10101 X"$file" : 'X\(/\)' \| \
10102 . : '\(.\)' 2>/dev/null ||
10104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10106 /^X\(\/\/\)$/{ s//\1/; q; }
10107 /^X\(\/\).*/{ s//\1/; q; }
10109 { if $as_mkdir_p; then
10110 mkdir -p $dirpart/$fdir
10112 as_dir=$dirpart/$fdir
10114 while test ! -d "$as_dir"; do
10115 as_dirs="$as_dir $as_dirs"
10116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10118 X"$as_dir" : 'X\(//\)[^/]' \| \
10119 X"$as_dir" : 'X\(//\)$' \| \
10120 X"$as_dir" : 'X\(/\)' \| \
10121 . : '\(.\)' 2>/dev/null ||
10123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10125 /^X\(\/\/\)$/{ s//\1/; q; }
10126 /^X\(\/\).*/{ s//\1/; q; }
10129 test ! -n "$as_dirs" || mkdir $as_dirs
10130 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10131 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10132 { (exit 1); exit 1; }; }; }
10134 # echo "creating $dirpart/$file"
10135 echo '# dummy' > "$dirpart/$file"
10140 for ac_file in $CONFIG_FILES; do
10141 # Support "outfile[:infile[:infile...]]"
10143 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10145 # PO directories have a Makefile.in generated from Makefile.in.in.
10146 case "$ac_file" in */Makefile.in)
10147 # Adjust a relative srcdir.
10148 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10149 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10150 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10151 # In autoconf-2.13 it is called $ac_given_srcdir.
10152 # In autoconf-2.50 it is called $srcdir.
10153 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10154 case "$ac_given_srcdir" in
10155 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10156 /*) top_srcdir="$ac_given_srcdir" ;;
10157 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10159 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10160 rm -f "$ac_dir/POTFILES"
10161 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10162 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10163 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10164 # on $ac_dir but don't depend on user-specified configuration
10166 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10167 # The LINGUAS file contains the set of available languages.
10168 if test -n "$ALL_LINGUAS"; then
10169 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10171 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10172 # Hide the ALL_LINGUAS assigment from automake.
10173 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10175 case "$ac_given_srcdir" in
10177 *) srcdirpre='$(srcdir)/' ;;
10183 for lang in $ALL_LINGUAS; do
10184 POFILES="$POFILES $srcdirpre$lang.po"
10185 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10186 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10187 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10189 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10190 # environment variable.
10192 if test -n "$ALL_LINGUAS"; then
10193 for presentlang in $ALL_LINGUAS; do
10195 if test "%UNSET%" != "$LINGUAS"; then
10196 desiredlanguages="$LINGUAS"
10198 desiredlanguages="$ALL_LINGUAS"
10200 for desiredlang in $desiredlanguages; do
10201 # Use the presentlang catalog if desiredlang is
10202 # a. equal to presentlang, or
10203 # b. a variant of presentlang (because in this case,
10204 # presentlang can be used as a fallback for messages
10205 # which are not translated in the desiredlang catalog).
10206 case "$desiredlang" in
10207 "$presentlang"*) useit=yes;;
10210 if test $useit = yes; then
10211 INST_LINGUAS="$INST_LINGUAS $presentlang"
10216 if test -n "$INST_LINGUAS"; then
10217 for lang in $INST_LINGUAS; do
10218 CATALOGS="$CATALOGS $lang.gmo"
10221 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10222 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10223 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10224 if test -f "$f"; then
10226 *.orig | *.bak | *~) ;;
10227 *) cat "$f" >> "$ac_dir/Makefile" ;;
10235 default ) echo timestamp > stamp-h ;;
10240 cat >>$CONFIG_STATUS <<\_ACEOF
10242 { (exit 0); exit 0; }
10244 chmod +x $CONFIG_STATUS
10245 ac_clean_files=$ac_clean_files_save
10248 # configure is writing to config.log, and then calls config.status.
10249 # config.status does its own redirection, appending to config.log.
10250 # Unfortunately, on DOS this fails, as config.log is still kept open
10251 # by configure, so config.status won't be able to write to it; its
10252 # output is simply discarded. So we exec the FD to /dev/null,
10253 # effectively closing config.log, so it can be properly (re)opened and
10254 # appended to by config.status. When coming back to configure, we
10255 # need to make the FD available again.
10256 if test "$no_create" != yes; then
10258 ac_config_status_args=
10259 test "$silent" = yes &&
10260 ac_config_status_args="$ac_config_status_args --quiet"
10262 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10264 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10265 # would make configure fail if this is the last instruction.
10266 $ac_cs_success || { (exit 1); exit 1; }
10272 echo "Enscript is now configured to your system with the following"
10273 echo "user-definable options. Please, check that they are correct and"
10274 echo "match to your system's properties."
10276 echo "Option Change with configure's option Current value"
10277 echo "---------------------------------------------------------"
10278 echo "Media --with-media=MEDIA $MEDIA"
10279 echo "Spooler --with-spooler=SPOOLER $SPOOLER"
10280 echo "PS level --with-ps-level=LEVEL $PSLEVEL"