2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="lib/snmp.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 am__leading_dot 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 RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os ALLOCA 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 CURSESLIBS LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 if test -n "$ac_init_help"; then
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-dependency-tracking Speeds up one-time builds
852 --enable-dependency-tracking Do not reject slow dependency extractors
853 --disable-nls do not use Native Language Support
854 --disable-regdomain disable regulation domain channel restrictions
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-gnu-ld assume the C compiler uses GNU ld default=no
860 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
861 --without-libiconv-prefix don't search for libiconv in includedir and libdir
862 --with-included-gettext use the GNU gettext library included here
863 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
864 --without-libintl-prefix don't search for libintl in includedir and libdir
866 Some influential environment variables:
867 CC C compiler command
868 CFLAGS C compiler flags
869 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
870 nonstandard directory <lib dir>
871 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
872 headers in a nonstandard directory <include dir>
875 Use these variables to override the choices made by `configure' or to help
876 it to find libraries and programs with nonstandard names/locations.
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885 test -d $ac_dir || continue
888 if test "$ac_dir" != .; then
889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
893 ac_dir_suffix= ac_top_builddir=
897 .) # No --srcdir option. We are building in place.
899 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_srcdir=$srcdir$ac_dir_suffix;
906 ac_top_srcdir=$srcdir ;;
908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
913 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
914 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
915 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
916 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
919 # Check for guested configure; otherwise get Cygnus style configure.
920 if test -f $ac_srcdir/configure.gnu; then
922 $SHELL $ac_srcdir/configure.gnu --help=recursive
923 elif test -f $ac_srcdir/configure; then
925 $SHELL $ac_srcdir/configure --help=recursive
926 elif test -f $ac_srcdir/configure.ac ||
927 test -f $ac_srcdir/configure.in; then
931 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
937 test -n "$ac_init_help" && exit 0
938 if $ac_init_version; then
941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
942 Free Software Foundation, Inc.
943 This configure script is free software; the Free Software Foundation
944 gives unlimited permission to copy, distribute and modify it.
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
953 It was created by $as_me, which was
954 generated by GNU Autoconf 2.57. Invocation command line was
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
974 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
975 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
978 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
979 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
980 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
988 test -z "$as_dir" && as_dir=.
1004 # Keep a trace of the command line.
1005 # Strip out --no-create and --no-recursion so they do not pile up.
1006 # Strip out --silent because we don't want to record it for future runs.
1007 # Also quote any args containing shell meta-characters.
1008 # Make two passes to allow for proper duplicate-argument suppression.
1013 ac_must_keep_next=false
1019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1023 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1027 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030 if test $ac_must_keep_next = true; then
1031 ac_must_keep_next=false # Got value, back to normal.
1034 *=* | --config-cache | -C | -disable-* | --disable-* \
1035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037 | -with-* | --with-* | -without-* | --without-* | --x)
1038 case "$ac_configure_args0 " in
1039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1042 -* ) ac_must_keep_next=true ;;
1045 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046 # Get rid of the leading space.
1052 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log. We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061 # Save into config.log some information that might help in debugging.
1066 ## ---------------- ##
1067 ## Cache variables. ##
1068 ## ---------------- ##
1071 # The following way of writing the cache mishandles newlines in values,
1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089 ## ----------------- ##
1090 ## Output variables. ##
1091 ## ----------------- ##
1094 for ac_var in $ac_subst_vars
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1101 if test -n "$ac_subst_files"; then
1108 for ac_var in $ac_subst_files
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1116 if test -s confdefs.h; then
1123 sed "/^$/d" confdefs.h | sort
1126 test "$ac_signal" != 0 &&
1127 echo "$as_me: caught signal $ac_signal"
1128 echo "$as_me: exit $exit_status"
1130 rm -f core core.* *.core &&
1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1134 for ac_signal in 1 2 13 15; do
1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1144 # Predefined preprocessor variables.
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_NAME "$PACKAGE_NAME"
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_STRING "$PACKAGE_STRING"
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174 if test "x$prefix" != xNONE; then
1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1180 for ac_site_file in $CONFIG_SITE; do
1181 if test -r "$ac_site_file"; then
1182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184 sed 's/^/| /' "$ac_site_file" >&5
1189 if test -r "$cache_file"; then
1190 # Some versions of bash will fail to source /dev/null (special
1191 # files actually), so we avoid doing that.
1192 if test -f "$cache_file"; then
1193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1196 [\\/]* | ?:[\\/]* ) . $cache_file;;
1197 *) . ./$cache_file;;
1201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1206 # Check that the precious variables saved in the cache have kept the same
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212 eval ac_new_set=\$ac_env_${ac_var}_set
1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214 eval ac_new_val="\$ac_env_${ac_var}_value"
1215 case $ac_old_set,$ac_new_set in
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223 ac_cache_corrupted=: ;;
1226 if test "x$ac_old_val" != "x$ac_new_val"; then
1227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1230 echo "$as_me: former value: $ac_old_val" >&2;}
1231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1232 echo "$as_me: current value: $ac_new_val" >&2;}
1233 ac_cache_corrupted=:
1236 # Pass precious variables to config.status.
1237 if test "$ac_new_set" = set; then
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 *) ac_arg=$ac_var=$ac_new_val ;;
1243 case " $ac_configure_args " in
1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1249 if $ac_cache_corrupted; then
1250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254 { (exit 1); exit 1; }; }
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282 for ac_dir in config $srcdir/config; do
1283 if test -f $ac_dir/install-sh; then
1285 ac_install_sh="$ac_aux_dir/install-sh -c"
1287 elif test -f $ac_dir/install.sh; then
1289 ac_install_sh="$ac_aux_dir/install.sh -c"
1291 elif test -f $ac_dir/shtool; then
1293 ac_install_sh="$ac_aux_dir/shtool install -c"
1297 if test -z "$ac_aux_dir"; then
1298 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1299 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1300 { (exit 1); exit 1; }; }
1302 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1303 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1304 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1306 am__api_version="1.7"
1307 # Find a good install program. We prefer a C program (faster),
1308 # so one script is as good as another. But avoid the broken or
1309 # incompatible versions:
1310 # SysV /etc/install, /usr/sbin/install
1311 # SunOS /usr/etc/install
1312 # IRIX /sbin/install
1314 # AmigaOS /C/install, which installs bootblocks on floppy discs
1315 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1316 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1317 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1318 # ./install, which can be erroneously created by make from ./install.sh.
1319 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1320 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1321 if test -z "$INSTALL"; then
1322 if test "${ac_cv_path_install+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1329 test -z "$as_dir" && as_dir=.
1330 # Account for people who put trailing slashes in PATH elements.
1332 ./ | .// | /cC/* | \
1333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1336 # OSF1 and SCO ODT 3.0 have their own names for install.
1337 # Don't use installbsd from OSF since it installs stuff as root
1339 for ac_prog in ginstall scoinst install; do
1340 for ac_exec_ext in '' $ac_executable_extensions; do
1341 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1342 if test $ac_prog = install &&
1343 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1344 # AIX install. It has an incompatible calling convention.
1346 elif test $ac_prog = install &&
1347 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1348 # program-specific install script used by HP pwplus--don't use.
1351 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1363 if test "${ac_cv_path_install+set}" = set; then
1364 INSTALL=$ac_cv_path_install
1366 # As a last resort, use the slow shell script. We don't cache a
1367 # path for INSTALL within a source directory, because that will
1368 # break other packages using the cache if that directory is
1369 # removed, or if the path is relative.
1370 INSTALL=$ac_install_sh
1373 echo "$as_me:$LINENO: result: $INSTALL" >&5
1374 echo "${ECHO_T}$INSTALL" >&6
1376 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1377 # It thinks the first close brace ends the variable substitution.
1378 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1380 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1382 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1384 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1385 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1388 echo timestamp > conftest.file
1389 # Do `set' in a subshell so we don't clobber the current shell's
1390 # arguments. Must try -L first in case configure is actually a
1391 # symlink; some systems play weird games with the mod time of symlinks
1392 # (eg FreeBSD returns the mod time of the symlink's containing
1395 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1396 if test "$*" = "X"; then
1398 set X `ls -t $srcdir/configure conftest.file`
1401 if test "$*" != "X $srcdir/configure conftest.file" \
1402 && test "$*" != "X conftest.file $srcdir/configure"; then
1404 # If neither matched, then we have a broken ls. This can happen
1405 # if, for instance, CONFIG_SHELL is bash and it inherits a
1406 # broken ls alias from the environment. This has actually
1407 # happened. Such a system could not be considered "sane".
1408 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1409 alias in your environment" >&5
1410 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1411 alias in your environment" >&2;}
1412 { (exit 1); exit 1; }; }
1415 test "$2" = conftest.file
1421 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1422 Check your system clock" >&5
1423 echo "$as_me: error: newly created file is older than distributed files!
1424 Check your system clock" >&2;}
1425 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: yes" >&5
1428 echo "${ECHO_T}yes" >&6
1429 test "$program_prefix" != NONE &&
1430 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1431 # Use a double $ so make ignores it.
1432 test "$program_suffix" != NONE &&
1433 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1434 # Double any \ or $. echo might interpret backslashes.
1435 # By default was `s,x,x', remove it if useless.
1436 cat <<\_ACEOF >conftest.sed
1437 s/[\\$]/&&/g;s/;s,x,x,$//
1439 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1443 # expand $ac_aux_dir to an absolute path
1444 am_aux_dir=`cd $ac_aux_dir && pwd`
1446 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1447 # Use eval to expand $SHELL
1448 if eval "$MISSING --run true"; then
1449 am_missing_run="$MISSING --run "
1452 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1453 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1456 for ac_prog in gawk mawk nawk awk
1458 # Extract the first word of "$ac_prog", so it can be a program name with args.
1459 set dummy $ac_prog; ac_word=$2
1460 echo "$as_me:$LINENO: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_prog_AWK+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 if test -n "$AWK"; then
1466 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 test -z "$as_dir" && as_dir=.
1473 for ac_exec_ext in '' $ac_executable_extensions; do
1474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475 ac_cv_prog_AWK="$ac_prog"
1476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 if test -n "$AWK"; then
1486 echo "$as_me:$LINENO: result: $AWK" >&5
1487 echo "${ECHO_T}$AWK" >&6
1489 echo "$as_me:$LINENO: result: no" >&5
1490 echo "${ECHO_T}no" >&6
1493 test -n "$AWK" && break
1496 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1497 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1498 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1499 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1500 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 cat >conftest.make <<\_ACEOF
1504 @echo 'ac_maketemp="$(MAKE)"'
1506 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1507 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1508 if test -n "$ac_maketemp"; then
1509 eval ac_cv_prog_make_${ac_make}_set=yes
1511 eval ac_cv_prog_make_${ac_make}_set=no
1515 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1516 echo "$as_me:$LINENO: result: yes" >&5
1517 echo "${ECHO_T}yes" >&6
1520 echo "$as_me:$LINENO: result: no" >&5
1521 echo "${ECHO_T}no" >&6
1522 SET_MAKE="MAKE=${MAKE-make}"
1525 rm -rf .tst 2>/dev/null
1526 mkdir .tst 2>/dev/null
1527 if test -d .tst; then
1532 rmdir .tst 2>/dev/null
1534 # test to see if srcdir already configured
1535 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1536 test -f $srcdir/config.status; then
1537 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1538 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1539 { (exit 1); exit 1; }; }
1542 # test whether we have cygpath
1543 if test -z "$CYGPATH_W"; then
1544 if (cygpath --version) >/dev/null 2>/dev/null; then
1545 CYGPATH_W='cygpath -w'
1552 # Define the identity of the package.
1557 cat >>confdefs.h <<_ACEOF
1558 #define PACKAGE "$PACKAGE"
1562 cat >>confdefs.h <<_ACEOF
1563 #define VERSION "$VERSION"
1566 # Some tools Automake needs.
1568 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1571 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1574 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1577 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1580 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1583 AMTAR=${AMTAR-"${am_missing_run}tar"}
1585 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1587 # Installed binaries are usually stripped using `strip' when the user
1588 # run `make install-strip'. However `strip' might not be the right
1589 # tool to use in cross-compilation environments, therefore Automake
1590 # will honor the `STRIP' environment variable to overrule this program.
1591 if test "$cross_compiling" != no; then
1592 if test -n "$ac_tool_prefix"; then
1593 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1594 set dummy ${ac_tool_prefix}strip; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_STRIP+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$STRIP"; then
1601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 STRIP=$ac_cv_prog_STRIP
1620 if test -n "$STRIP"; then
1621 echo "$as_me:$LINENO: result: $STRIP" >&5
1622 echo "${ECHO_T}$STRIP" >&6
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1629 if test -z "$ac_cv_prog_STRIP"; then
1631 # Extract the first word of "strip", so it can be a program name with args.
1632 set dummy strip; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$ac_ct_STRIP"; then
1639 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_ac_ct_STRIP="strip"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1658 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1659 if test -n "$ac_ct_STRIP"; then
1660 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1661 echo "${ECHO_T}$ac_ct_STRIP" >&6
1663 echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1669 STRIP="$ac_cv_prog_STRIP"
1673 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1675 # We need awk for the "check" target. The system "awk" is bad on
1680 ac_config_headers="$ac_config_headers config.h"
1684 ac_config_guess=config/config.guess
1685 ac_config_sub=config/config.sub
1687 # Checks for programs.
1689 ac_cpp='$CPP $CPPFLAGS'
1690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1695 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1730 if test -z "$ac_cv_prog_CC"; then
1732 # Extract the first word of "gcc", so it can be a program name with args.
1733 set dummy gcc; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="gcc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1772 if test -z "$CC"; then
1773 if test -n "$ac_tool_prefix"; then
1774 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1775 set dummy ${ac_tool_prefix}cc; ac_word=$2
1776 echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778 if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 test -z "$as_dir" && as_dir=.
1789 for ac_exec_ext in '' $ac_executable_extensions; do
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791 ac_cv_prog_CC="${ac_tool_prefix}cc"
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 if test -n "$CC"; then
1802 echo "$as_me:$LINENO: result: $CC" >&5
1803 echo "${ECHO_T}$CC" >&6
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1810 if test -z "$ac_cv_prog_CC"; then
1812 # Extract the first word of "cc", so it can be a program name with args.
1813 set dummy cc; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 if test -n "$ac_ct_CC"; then
1820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_ac_ct_CC="cc"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1839 if test -n "$ac_ct_CC"; then
1840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1841 echo "${ECHO_T}$ac_ct_CC" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1853 if test -z "$CC"; then
1854 # Extract the first word of "cc", so it can be a program name with args.
1855 set dummy cc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 if test -n "$CC"; then
1862 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1873 ac_prog_rejected=yes
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 if test $ac_prog_rejected = yes; then
1884 # We found a bogon in the path, so make sure we never use it.
1885 set dummy $ac_cv_prog_CC
1887 if test $# != 0; then
1888 # We chose a different compiler from the bogus one.
1889 # However, it has the same basename, so the bogon will be chosen
1890 # first if we set CC to just the basename; use the full file name.
1892 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1898 if test -n "$CC"; then
1899 echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1907 if test -z "$CC"; then
1908 if test -n "$ac_tool_prefix"; then
1911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 if test -n "$CC"; then
1939 echo "$as_me:$LINENO: result: $CC" >&5
1940 echo "${ECHO_T}$CC" >&6
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1946 test -n "$CC" && break
1949 if test -z "$CC"; then
1953 # Extract the first word of "$ac_prog", so it can be a program name with args.
1954 set dummy $ac_prog; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$ac_ct_CC"; then
1961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_ac_ct_CC="$ac_prog"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1980 if test -n "$ac_ct_CC"; then
1981 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1982 echo "${ECHO_T}$ac_ct_CC" >&6
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1988 test -n "$ac_ct_CC" && break
1997 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1998 See \`config.log' for more details." >&5
1999 echo "$as_me: error: no acceptable C compiler found in \$PATH
2000 See \`config.log' for more details." >&2;}
2001 { (exit 1); exit 1; }; }
2003 # Provide some information about the compiler.
2004 echo "$as_me:$LINENO:" \
2005 "checking for C compiler version" >&5
2006 ac_compiler=`set X $ac_compile; echo $2`
2007 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2008 (eval $ac_compiler --version </dev/null >&5) 2>&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }
2012 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2013 (eval $ac_compiler -v </dev/null >&5) 2>&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }
2017 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2018 (eval $ac_compiler -V </dev/null >&5) 2>&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }
2023 cat >conftest.$ac_ext <<_ACEOF
2024 #line $LINENO "configure"
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h. */
2039 ac_clean_files_save=$ac_clean_files
2040 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2041 # Try to create an executable without -o first, disregard a.out.
2042 # It will help us diagnose broken compilers, and finding out an intuition
2044 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2045 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2046 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2047 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2048 (eval $ac_link_default) 2>&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; then
2052 # Find the output, starting from the most likely. This scheme is
2053 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2056 # Be careful to initialize this variable, since it used to be cached.
2057 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2059 # b.out is created by i960 compilers.
2060 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2062 test -f "$ac_file" || continue
2064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2067 # This is the source file.
2070 # We found the default executable, but exeext='' is most
2074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075 # FIXME: I believe we export ac_cv_exeext for Libtool,
2076 # but it would be cool to find out if it's true. Does anybody
2077 # maintain Libtool? --akim.
2085 echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2088 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2089 See \`config.log' for more details." >&5
2090 echo "$as_me: error: C compiler cannot create executables
2091 See \`config.log' for more details." >&2;}
2092 { (exit 77); exit 77; }; }
2095 ac_exeext=$ac_cv_exeext
2096 echo "$as_me:$LINENO: result: $ac_file" >&5
2097 echo "${ECHO_T}$ac_file" >&6
2099 # Check the compiler produces executables we can run. If not, either
2100 # the compiler is broken, or we cross compile.
2101 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2102 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2103 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2104 # If not cross compiling, check that we can run a simple program.
2105 if test "$cross_compiling" != yes; then
2106 if { ac_try='./$ac_file'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2114 if test "$cross_compiling" = maybe; then
2117 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2118 If you meant to cross compile, use \`--host'.
2119 See \`config.log' for more details." >&5
2120 echo "$as_me: error: cannot run C compiled programs.
2121 If you meant to cross compile, use \`--host'.
2122 See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2127 echo "$as_me:$LINENO: result: yes" >&5
2128 echo "${ECHO_T}yes" >&6
2130 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2131 ac_clean_files=$ac_clean_files_save
2132 # Check the compiler produces executables we can run. If not, either
2133 # the compiler is broken, or we cross compile.
2134 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2135 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2136 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2137 echo "${ECHO_T}$cross_compiling" >&6
2139 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2140 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2142 (eval $ac_link) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2147 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2148 # work properly (i.e., refer to `conftest.exe'), while it won't with
2150 for ac_file in conftest.exe conftest conftest.*; do
2151 test -f "$ac_file" || continue
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2161 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2164 See \`config.log' for more details." >&2;}
2165 { (exit 1); exit 1; }; }
2168 rm -f conftest$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2170 echo "${ECHO_T}$ac_cv_exeext" >&6
2172 rm -f conftest.$ac_ext
2173 EXEEXT=$ac_cv_exeext
2175 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2176 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2177 if test "${ac_cv_objext+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 cat >conftest.$ac_ext <<_ACEOF
2181 #line $LINENO "configure"
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2196 rm -f conftest.o conftest.obj
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; then
2202 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2205 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2216 See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2220 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2222 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2223 echo "${ECHO_T}$ac_cv_objext" >&6
2224 OBJEXT=$ac_cv_objext
2226 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2227 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2228 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #line $LINENO "configure"
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h. */
2250 rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2269 rm -f conftest.$ac_objext conftest.$ac_ext
2270 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2273 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2274 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2275 GCC=`test $ac_compiler_gnu = yes && echo yes`
2276 ac_test_CFLAGS=${CFLAGS+set}
2277 ac_save_CFLAGS=$CFLAGS
2279 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2280 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2281 if test "${ac_cv_prog_cc_g+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line $LINENO "configure"
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2300 rm -f conftest.$ac_objext
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302 (eval $ac_compile) 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); } &&
2306 { ac_try='test -s conftest.$ac_objext'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; }; then
2314 echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2321 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2322 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2323 if test "$ac_test_CFLAGS" = set; then
2324 CFLAGS=$ac_save_CFLAGS
2325 elif test $ac_cv_prog_cc_g = yes; then
2326 if test "$GCC" = yes; then
2332 if test "$GCC" = yes; then
2338 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2339 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2340 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 ac_cv_prog_cc_stdc=no
2345 cat >conftest.$ac_ext <<_ACEOF
2346 #line $LINENO "configure"
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h. */
2354 #include <sys/types.h>
2355 #include <sys/stat.h>
2356 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2357 struct buf { int x; };
2358 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2359 static char *e (p, i)
2365 static char *f (char * (*g) (char **, int), char **p, ...)
2370 s = g (p, va_arg (v,int));
2374 int test (int i, double x);
2375 struct s1 {int (*f) (int a);};
2376 struct s2 {int (*f) (double a);};
2377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2388 # Don't try gcc -ansi; that turns off useful extensions and
2389 # breaks some systems' header files.
2390 # AIX -qlanglvl=ansi
2391 # Ultrix and OSF/1 -std1
2392 # HP-UX 10.20 and later -Ae
2393 # HP-UX older versions -Aa -D_HPUX_SOURCE
2394 # SVR4 -Xc -D__EXTENSIONS__
2395 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2397 CC="$ac_save_CC $ac_arg"
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 ac_cv_prog_cc_stdc=$ac_arg
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2417 rm -f conftest.$ac_objext
2419 rm -f conftest.$ac_ext conftest.$ac_objext
2424 case "x$ac_cv_prog_cc_stdc" in
2426 echo "$as_me:$LINENO: result: none needed" >&5
2427 echo "${ECHO_T}none needed" >&6 ;;
2429 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2430 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2431 CC="$CC $ac_cv_prog_cc_stdc" ;;
2434 # Some people use a C++ compiler to compile C. Since we use `exit',
2435 # in C++ we need to declare it. In case someone uses the same compiler
2436 # for both compiling C and C++ we need to have the C++ compiler decide
2437 # the declaration of exit, since it's the most demanding environment.
2438 cat >conftest.$ac_ext <<_ACEOF
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -s conftest.$ac_objext'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2455 for ac_declaration in \
2457 '#include <stdlib.h>' \
2458 'extern "C" void std::exit (int) throw (); using std::exit;' \
2459 'extern "C" void std::exit (int); using std::exit;' \
2460 'extern "C" void exit (int) throw ();' \
2461 'extern "C" void exit (int);' \
2464 cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2481 rm -f conftest.$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } &&
2487 { ac_try='test -s conftest.$ac_objext'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2500 rm -f conftest.$ac_objext conftest.$ac_ext
2501 cat >conftest.$ac_ext <<_ACEOF
2502 #line $LINENO "configure"
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2535 rm -f conftest.$ac_objext conftest.$ac_ext
2538 if test -n "$ac_declaration"; then
2539 echo '#ifdef __cplusplus' >>confdefs.h
2540 echo $ac_declaration >>confdefs.h
2541 echo '#endif' >>confdefs.h
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2549 rm -f conftest.$ac_objext conftest.$ac_ext
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555 DEPDIR="${am__leading_dot}deps"
2557 ac_config_commands="$ac_config_commands depfiles"
2560 am_make=${MAKE-make}
2561 cat > confinc << 'END'
2566 # If we don't find an include directive, just comment out the code.
2567 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2568 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2572 # First try GNU make style include.
2573 echo "include confinc" > confmf
2574 # We grep out `Entering directory' and `Leaving directory'
2575 # messages which can occur if `w' ends up in MAKEFLAGS.
2576 # In particular we don't look at `^make:' because GNU make might
2577 # be invoked under some other name (usually "gmake"), in which
2578 # case it prints its new name instead of `make'.
2579 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2584 # Now try BSD make style include.
2585 if test "$am__include" = "#"; then
2586 echo '.include "confinc"' > confmf
2587 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2588 am__include=.include
2595 echo "$as_me:$LINENO: result: $_am_result" >&5
2596 echo "${ECHO_T}$_am_result" >&6
2597 rm -f confinc confmf
2599 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2600 if test "${enable_dependency_tracking+set}" = set; then
2601 enableval="$enable_dependency_tracking"
2604 if test "x$enable_dependency_tracking" != xno; then
2605 am_depcomp="$ac_aux_dir/depcomp"
2610 if test "x$enable_dependency_tracking" != xno; then
2621 depcc="$CC" am_compiler_list=
2623 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2624 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2625 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2629 # We make a subdir and do the tests there. Otherwise we can end up
2630 # making bogus files that we don't know about and never remove. For
2631 # instance it was reported that on HP-UX the gcc test will end up
2632 # making a dummy file named `D' -- because `-MD' means `put the output
2635 # Copy depcomp to subdir because otherwise we won't find it if we're
2636 # using a relative directory.
2637 cp "$am_depcomp" conftest.dir
2639 # We will build objects and dependencies in a subdirectory because
2640 # it helps to detect inapplicable dependency modes. For instance
2641 # both Tru64's cc and ICC support -MD to output dependencies as a
2642 # side effect of compilation, but ICC will put the dependencies in
2643 # the current directory while Tru64 will put them in the object
2647 am_cv_CC_dependencies_compiler_type=none
2648 if test "$am_compiler_list" = ""; then
2649 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2651 for depmode in $am_compiler_list; do
2652 # Setup a source with many dependencies, because some compilers
2653 # like to wrap large dependency lists on column 80 (with \), and
2654 # we should not choose a depcomp mode which is confused by this.
2656 # We need to recreate these files for each test, as the compiler may
2657 # overwrite some of them when testing with obscure command lines.
2658 # This happens at least with the AIX C compiler.
2660 for i in 1 2 3 4 5 6; do
2661 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2668 # after this tag, mechanisms are not by side-effect, so they'll
2669 # only be used when explicitly requested
2670 if test "x$enable_dependency_tracking" = xyes; then
2678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2679 # mode. It turns out that the SunPro C++ compiler does not properly
2680 # handle `-M -o', and we need to detect this.
2681 if depmode=$depmode \
2682 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2684 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2685 >/dev/null 2>conftest.err &&
2686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2687 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2689 # icc doesn't choke on unknown options, it will just issue warnings
2690 # (even with -Werror). So we grep stderr for any message
2691 # that says an option was ignored.
2692 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2693 am_cv_CC_dependencies_compiler_type=$depmode
2702 am_cv_CC_dependencies_compiler_type=none
2706 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2707 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2708 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2713 test "x$enable_dependency_tracking" != xno \
2714 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2716 am__fastdepCC_FALSE='#'
2718 am__fastdepCC_TRUE='#'
2719 am__fastdepCC_FALSE=
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2726 echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728 if test "${ac_cv_prog_RANLIB+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$RANLIB"; then
2732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 RANLIB=$ac_cv_prog_RANLIB
2751 if test -n "$RANLIB"; then
2752 echo "$as_me:$LINENO: result: $RANLIB" >&5
2753 echo "${ECHO_T}$RANLIB" >&6
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2760 if test -z "$ac_cv_prog_RANLIB"; then
2761 ac_ct_RANLIB=$RANLIB
2762 # Extract the first word of "ranlib", so it can be a program name with args.
2763 set dummy ranlib; ac_word=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 if test -n "$ac_ct_RANLIB"; then
2770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_RANLIB="ranlib"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2790 if test -n "$ac_ct_RANLIB"; then
2791 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2792 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2794 echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2798 RANLIB=$ac_ct_RANLIB
2800 RANLIB="$ac_cv_prog_RANLIB"
2804 # Checks for header files.
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2812 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2813 # On Suns, sometimes $CPP names a directory.
2814 if test -n "$CPP" && test -d "$CPP"; then
2817 if test -z "$CPP"; then
2818 if test "${ac_cv_prog_CPP+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 # Double quotes because CPP needs to be expanded
2822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2825 for ac_c_preproc_warn_flag in '' yes
2827 # Use a header file that comes with gcc, so configuring glibc
2828 # with a fresh cross-compiler works.
2829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2830 # <limits.h> exists even on freestanding compilers.
2831 # On the NeXT, cc -E runs the code through the compiler's parser,
2832 # not just through cpp. "Syntax error" is here to catch this case.
2833 cat >conftest.$ac_ext <<_ACEOF
2834 #line $LINENO "configure"
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2841 # include <limits.h>
2843 # include <assert.h>
2847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2850 grep -v '^ *+' conftest.er1 >conftest.err
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } >/dev/null; then
2855 if test -s conftest.err; then
2856 ac_cpp_err=$ac_c_preproc_warn_flag
2863 if test -z "$ac_cpp_err"; then
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 # Broken: fails on valid input.
2872 rm -f conftest.err conftest.$ac_ext
2874 # OK, works on sane cases. Now check whether non-existent headers
2875 # can be detected and how.
2876 cat >conftest.$ac_ext <<_ACEOF
2877 #line $LINENO "configure"
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 #include <ac_nonexistent.h>
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_c_preproc_warn_flag
2901 if test -z "$ac_cpp_err"; then
2902 # Broken: success on invalid input.
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 # Passes both tests.
2912 rm -f conftest.err conftest.$ac_ext
2915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2916 rm -f conftest.err conftest.$ac_ext
2917 if $ac_preproc_ok; then
2929 echo "$as_me:$LINENO: result: $CPP" >&5
2930 echo "${ECHO_T}$CPP" >&6
2932 for ac_c_preproc_warn_flag in '' yes
2934 # Use a header file that comes with gcc, so configuring glibc
2935 # with a fresh cross-compiler works.
2936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 # <limits.h> exists even on freestanding compilers.
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp. "Syntax error" is here to catch this case.
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2948 # include <limits.h>
2950 # include <assert.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
2970 if test -z "$ac_cpp_err"; then
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 # Broken: fails on valid input.
2979 rm -f conftest.err conftest.$ac_ext
2981 # OK, works on sane cases. Now check whether non-existent headers
2982 # can be detected and how.
2983 cat >conftest.$ac_ext <<_ACEOF
2984 #line $LINENO "configure"
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 #include <ac_nonexistent.h>
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null; then
3000 if test -s conftest.err; then
3001 ac_cpp_err=$ac_c_preproc_warn_flag
3008 if test -z "$ac_cpp_err"; then
3009 # Broken: success on invalid input.
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 # Passes both tests.
3019 rm -f conftest.err conftest.$ac_ext
3022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3023 rm -f conftest.err conftest.$ac_ext
3024 if $ac_preproc_ok; then
3027 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 echo "$as_me:$LINENO: checking for egrep" >&5
3042 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3043 if test "${ac_cv_prog_egrep+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3047 then ac_cv_prog_egrep='grep -E'
3048 else ac_cv_prog_egrep='egrep'
3051 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3052 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3053 EGREP=$ac_cv_prog_egrep
3056 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3058 if test "${ac_cv_header_stdc+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 cat >conftest.$ac_ext <<_ACEOF
3062 #line $LINENO "configure"
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3081 rm -f conftest.$ac_objext
3082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3083 (eval $ac_compile) 2>&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try='test -s conftest.$ac_objext'
3088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; }; then
3093 ac_cv_header_stdc=yes
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3098 ac_cv_header_stdc=no
3100 rm -f conftest.$ac_objext conftest.$ac_ext
3102 if test $ac_cv_header_stdc = yes; then
3103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3104 cat >conftest.$ac_ext <<_ACEOF
3105 #line $LINENO "configure"
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3115 $EGREP "memchr" >/dev/null 2>&1; then
3118 ac_cv_header_stdc=no
3124 if test $ac_cv_header_stdc = yes; then
3125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3126 cat >conftest.$ac_ext <<_ACEOF
3127 #line $LINENO "configure"
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3137 $EGREP "free" >/dev/null 2>&1; then
3140 ac_cv_header_stdc=no
3146 if test $ac_cv_header_stdc = yes; then
3147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3148 if test "$cross_compiling" = yes; then
3151 cat >conftest.$ac_ext <<_ACEOF
3152 #line $LINENO "configure"
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3159 #if ((' ' & 0x0FF) == 0x020)
3160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3163 # define ISLOWER(c) \
3164 (('a' <= (c) && (c) <= 'i') \
3165 || ('j' <= (c) && (c) <= 'r') \
3166 || ('s' <= (c) && (c) <= 'z'))
3167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3175 for (i = 0; i < 256; i++)
3176 if (XOR (islower (i), ISLOWER (i))
3177 || toupper (i) != TOUPPER (i))
3182 rm -f conftest$ac_exeext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184 (eval $ac_link) 2>&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3195 echo "$as_me: program exited with status $ac_status" >&5
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3200 ac_cv_header_stdc=no
3202 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3206 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3207 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3208 if test $ac_cv_header_stdc = yes; then
3210 cat >>confdefs.h <<\_ACEOF
3211 #define STDC_HEADERS 1
3216 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3217 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3218 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include <sys/types.h>
3229 #include <sys/wait.h>
3231 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3234 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3242 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3247 rm -f conftest.$ac_objext
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_header_sys_wait_h=yes
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 ac_cv_header_sys_wait_h=no
3266 rm -f conftest.$ac_objext conftest.$ac_ext
3268 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3269 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3270 if test $ac_cv_header_sys_wait_h = yes; then
3272 cat >>confdefs.h <<\_ACEOF
3273 #define HAVE_SYS_WAIT_H 1
3278 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3288 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3289 inttypes.h stdint.h unistd.h
3291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3292 echo "$as_me:$LINENO: checking for $ac_header" >&5
3293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 cat >conftest.$ac_ext <<_ACEOF
3298 #line $LINENO "configure"
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 $ac_includes_default
3306 #include <$ac_header>
3308 rm -f conftest.$ac_objext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310 (eval $ac_compile) 2>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 eval "$as_ac_Header=yes"
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 eval "$as_ac_Header=no"
3327 rm -f conftest.$ac_objext conftest.$ac_ext
3329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3332 cat >>confdefs.h <<_ACEOF
3333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3351 for ac_header in arpa/inet.h fcntl.h malloc.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h syslog.h unistd.h
3353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3355 echo "$as_me:$LINENO: checking for $ac_header" >&5
3356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3363 # Is the header compilable?
3364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3366 cat >conftest.$ac_ext <<_ACEOF
3367 #line $LINENO "configure"
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 $ac_includes_default
3374 #include <$ac_header>
3376 rm -f conftest.$ac_objext
3377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378 (eval $ac_compile) 2>&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -s conftest.$ac_objext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 ac_header_compiler=yes
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 ac_header_compiler=no
3395 rm -f conftest.$ac_objext conftest.$ac_ext
3396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3397 echo "${ECHO_T}$ac_header_compiler" >&6
3399 # Is the header present?
3400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include <$ac_header>
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3427 if test -z "$ac_cpp_err"; then
3428 ac_header_preproc=yes
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 ac_header_preproc=no
3435 rm -f conftest.err conftest.$ac_ext
3436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3437 echo "${ECHO_T}$ac_header_preproc" >&6
3439 # So? What about this header?
3440 case $ac_header_compiler:$ac_header_preproc in
3442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3448 ## ------------------------------------ ##
3449 ## Report this to bug-autoconf@gnu.org. ##
3450 ## ------------------------------------ ##
3453 sed "s/^/$as_me: WARNING: /" >&2
3456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3464 ## ------------------------------------ ##
3465 ## Report this to bug-autoconf@gnu.org. ##
3466 ## ------------------------------------ ##
3469 sed "s/^/$as_me: WARNING: /" >&2
3472 echo "$as_me:$LINENO: checking for $ac_header" >&5
3473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 eval "$as_ac_Header=$ac_header_preproc"
3479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3484 cat >>confdefs.h <<_ACEOF
3485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3493 # Checks for typedefs, structures, and compiler characteristics.
3494 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3495 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3496 if test "${ac_cv_c_const+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 cat >conftest.$ac_ext <<_ACEOF
3500 #line $LINENO "configure"
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3510 /* FIXME: Include the comments suggested by Paul. */
3512 /* Ultrix mips cc rejects this. */
3513 typedef int charset[2];
3515 /* SunOS 4.1.1 cc rejects this. */
3516 char const *const *ccp;
3518 /* NEC SVR4.0.2 mips cc rejects this. */
3519 struct point {int x, y;};
3520 static struct point const zero = {0,0};
3521 /* AIX XL C 1.02.0.0 rejects this.
3522 It does not let you subtract one const X* pointer from another in
3523 an arm of an if-expression whose if-part is not a constant
3525 const char *g = "string";
3526 ccp = &g + (g ? g-g : 0);
3527 /* HPUX 7.0 cc rejects these. */
3530 ccp = (char const *const *) p;
3531 { /* SCO 3.2v4 cc rejects this. */
3533 char const *s = 0 ? (char *) 0 : (char const *) 0;
3537 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3539 const int *foo = &x[0];
3542 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3543 typedef const int *iptr;
3547 { /* AIX XL C 1.02.0.0 rejects this saying
3548 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3549 struct s { int j; const int *ap[3]; };
3550 struct s *b; b->j = 5;
3552 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -s conftest.$ac_objext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f conftest.$ac_objext conftest.$ac_ext
3582 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3583 echo "${ECHO_T}$ac_cv_c_const" >&6
3584 if test $ac_cv_c_const = no; then
3586 cat >>confdefs.h <<\_ACEOF
3592 echo "$as_me:$LINENO: checking for pid_t" >&5
3593 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3594 if test "${ac_cv_type_pid_t+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 cat >conftest.$ac_ext <<_ACEOF
3598 #line $LINENO "configure"
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 $ac_includes_default
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618 (eval $ac_compile) 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -s conftest.$ac_objext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_type_pid_t=yes
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3635 rm -f conftest.$ac_objext conftest.$ac_ext
3637 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3638 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3639 if test $ac_cv_type_pid_t = yes; then
3643 cat >>confdefs.h <<_ACEOF
3649 echo "$as_me:$LINENO: checking for size_t" >&5
3650 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3651 if test "${ac_cv_type_size_t+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 cat >conftest.$ac_ext <<_ACEOF
3655 #line $LINENO "configure"
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 $ac_includes_default
3667 if (sizeof (size_t))
3673 rm -f conftest.$ac_objext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_type_size_t=yes
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_cv_type_size_t=no
3692 rm -f conftest.$ac_objext conftest.$ac_ext
3694 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3695 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3696 if test $ac_cv_type_size_t = yes; then
3700 cat >>confdefs.h <<_ACEOF
3701 #define size_t unsigned
3706 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
3707 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
3708 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 cat >conftest.$ac_ext <<_ACEOF
3712 #line $LINENO "configure"
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3719 #include <sys/types.h>
3720 #include <sys/socket.h>
3726 static struct sockaddr ac_aggr;
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -s conftest.$ac_objext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 ac_cv_member_struct_sockaddr_sa_len=yes
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 cat >conftest.$ac_ext <<_ACEOF
3751 #line $LINENO "configure"
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3758 #include <sys/types.h>
3759 #include <sys/socket.h>
3765 static struct sockaddr ac_aggr;
3766 if (sizeof ac_aggr.sa_len)
3772 rm -f conftest.$ac_objext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } &&
3778 { ac_try='test -s conftest.$ac_objext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_member_struct_sockaddr_sa_len=yes
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 ac_cv_member_struct_sockaddr_sa_len=no
3791 rm -f conftest.$ac_objext conftest.$ac_ext
3793 rm -f conftest.$ac_objext conftest.$ac_ext
3795 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
3796 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
3797 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
3799 cat >>confdefs.h <<\_ACEOF
3800 #define HAVE_SA_LEN 1
3806 # Checks for library functions.
3807 echo "$as_me:$LINENO: checking for working memcmp" >&5
3808 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3809 if test "${ac_cv_func_memcmp_working+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 if test "$cross_compiling" = yes; then
3813 ac_cv_func_memcmp_working=no
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3827 /* Some versions of memcmp are not 8-bit clean. */
3828 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3829 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3832 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3833 or more and with at least one buffer not starting on a 4-byte boundary.
3834 William Lewis provided this test program. */
3839 for (i = 0; i < 4; i++)
3843 strcpy (a, "--------01111111");
3844 strcpy (b, "--------10000000");
3845 if (memcmp (a, b, 16) >= 0)
3855 rm -f conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857 (eval $ac_link) 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_func_memcmp_working=yes
3868 echo "$as_me: program exited with status $ac_status" >&5
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3873 ac_cv_func_memcmp_working=no
3875 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3878 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
3879 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3880 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
3882 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3883 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3884 if test "${ac_cv_type_signal+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 cat >conftest.$ac_ext <<_ACEOF
3888 #line $LINENO "configure"
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894 #include <sys/types.h>
3900 extern "C" void (*signal (int, void (*)(int)))(int);
3902 void (*signal ()) ();
3913 rm -f conftest.$ac_objext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3915 (eval $ac_compile) 2>&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } &&
3919 { ac_try='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 ac_cv_type_signal=void
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 ac_cv_type_signal=int
3932 rm -f conftest.$ac_objext conftest.$ac_ext
3934 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3935 echo "${ECHO_T}$ac_cv_type_signal" >&6
3937 cat >>confdefs.h <<_ACEOF
3938 #define RETSIGTYPE $ac_cv_type_signal
3950 for ac_func in alarm inet_ntoa socket strtol sysinfo fork malloc free
3952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3953 echo "$as_me:$LINENO: checking for $ac_func" >&5
3954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3955 if eval "test \"\${$as_ac_var+set}\" = set"; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 cat >conftest.$ac_ext <<_ACEOF
3959 #line $LINENO "configure"
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3965 /* System header to define __stub macros and hopefully few prototypes,
3966 which can conflict with char $ac_func (); below.
3967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 <limits.h> exists even on freestanding compilers. */
3970 # include <limits.h>
3972 # include <assert.h>
3974 /* Override any gcc2 internal prototype to avoid an error. */
3979 /* We use char because int might match the return type of a gcc2
3980 builtin and then its argument prototype would still apply. */
3982 /* The GNU C library defines this for functions which it implements
3983 to always fail with ENOSYS. Some functions are actually named
3984 something starting with __ and the normal name is an alias. */
3985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3988 char (*f) () = $ac_func;
3997 return f != $ac_func;
4002 rm -f conftest.$ac_objext conftest$ac_exeext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4004 (eval $ac_link) 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -s conftest$ac_exeext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 eval "$as_ac_var=yes"
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 eval "$as_ac_var=no"
4021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4025 if test `eval echo '${'$as_ac_var'}'` = yes; then
4026 cat >>confdefs.h <<_ACEOF
4027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4034 ALL_LINGUAS="uk fr pl ro nl tr"
4038 if test -n "$ac_aux_dir"; then
4039 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4041 if test -z "$MKINSTALLDIRS"; then
4042 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4049 # Extract the first word of "msgfmt", so it can be a program name with args.
4050 set dummy msgfmt; ac_word=$2
4051 echo "$as_me:$LINENO: checking for $ac_word" >&5
4052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4053 if test "${ac_cv_path_MSGFMT+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4062 for ac_dir in $PATH; do
4063 test -z "$ac_dir" && ac_dir=.
4064 if test -f $ac_dir/$ac_word; then
4065 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4066 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4067 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4073 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4077 MSGFMT="$ac_cv_path_MSGFMT"
4078 if test "$MSGFMT" != ":"; then
4079 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4080 echo "${ECHO_T}$MSGFMT" >&6
4082 echo "$as_me:$LINENO: result: no" >&5
4083 echo "${ECHO_T}no" >&6
4086 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4087 set dummy gmsgfmt; ac_word=$2
4088 echo "$as_me:$LINENO: checking for $ac_word" >&5
4089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4090 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4116 GMSGFMT=$ac_cv_path_GMSGFMT
4118 if test -n "$GMSGFMT"; then
4119 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4120 echo "${ECHO_T}$GMSGFMT" >&6
4122 echo "$as_me:$LINENO: result: no" >&5
4123 echo "${ECHO_T}no" >&6
4127 # Extract the first word of "xgettext", so it can be a program name with args.
4128 set dummy xgettext; ac_word=$2
4129 echo "$as_me:$LINENO: checking for $ac_word" >&5
4130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4131 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4140 for ac_dir in $PATH; do
4141 test -z "$ac_dir" && ac_dir=.
4142 if test -f $ac_dir/$ac_word; then
4143 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
4144 (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
4145 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4151 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4155 XGETTEXT="$ac_cv_path_XGETTEXT"
4156 if test "$XGETTEXT" != ":"; then
4157 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4158 echo "${ECHO_T}$XGETTEXT" >&6
4160 echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4166 # Extract the first word of "msgmerge", so it can be a program name with args.
4167 set dummy msgmerge; ac_word=$2
4168 echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4170 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4179 for ac_dir in $PATH; do
4180 test -z "$ac_dir" && ac_dir=.
4181 if test -f $ac_dir/$ac_word; then
4182 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4183 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
4189 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4193 MSGMERGE="$ac_cv_path_MSGMERGE"
4194 if test "$MSGMERGE" != ":"; then
4195 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4196 echo "${ECHO_T}$MSGMERGE" >&6
4198 echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6
4203 if test "$GMSGFMT" != ":"; then
4204 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4205 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4208 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4209 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4210 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4215 if test "$XGETTEXT" != ":"; then
4216 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
4217 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4220 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4221 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4227 ac_config_commands="$ac_config_commands default-1"
4230 # Make sure we can run config.sub.
4231 $ac_config_sub sun4 >/dev/null 2>&1 ||
4232 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4233 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4234 { (exit 1); exit 1; }; }
4236 echo "$as_me:$LINENO: checking build system type" >&5
4237 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4238 if test "${ac_cv_build+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 ac_cv_build_alias=$build_alias
4242 test -z "$ac_cv_build_alias" &&
4243 ac_cv_build_alias=`$ac_config_guess`
4244 test -z "$ac_cv_build_alias" &&
4245 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4246 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4247 { (exit 1); exit 1; }; }
4248 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4249 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4250 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4251 { (exit 1); exit 1; }; }
4254 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4255 echo "${ECHO_T}$ac_cv_build" >&6
4257 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4258 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4259 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4262 echo "$as_me:$LINENO: checking host system type" >&5
4263 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4264 if test "${ac_cv_host+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 ac_cv_host_alias=$host_alias
4268 test -z "$ac_cv_host_alias" &&
4269 ac_cv_host_alias=$ac_cv_build_alias
4270 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4271 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4272 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4273 { (exit 1); exit 1; }; }
4276 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4277 echo "${ECHO_T}$ac_cv_host" >&6
4279 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4280 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4281 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4285 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4286 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4287 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 ac_check_lib_save_LIBS=$LIBS
4291 LIBS="-lcposix $LIBS"
4292 cat >conftest.$ac_ext <<_ACEOF
4293 #line $LINENO "configure"
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4300 /* Override any gcc2 internal prototype to avoid an error. */
4304 /* We use char because int might match the return type of a gcc2
4305 builtin and then its argument prototype would still apply. */
4315 rm -f conftest.$ac_objext conftest$ac_exeext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4317 (eval $ac_link) 2>&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } &&
4321 { ac_try='test -s conftest$ac_exeext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 ac_cv_lib_cposix_strerror=yes
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 ac_cv_lib_cposix_strerror=no
4334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4335 LIBS=$ac_check_lib_save_LIBS
4337 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4338 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4339 if test $ac_cv_lib_cposix_strerror = yes; then
4340 LIBS="$LIBS -lcposix"
4345 echo "$as_me:$LINENO: checking for inline" >&5
4346 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4347 if test "${ac_cv_c_inline+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 for ac_kw in inline __inline__ __inline; do
4352 cat >conftest.$ac_ext <<_ACEOF
4353 #line $LINENO "configure"
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4361 static $ac_kw foo_t static_foo () {return 0; }
4362 $ac_kw foo_t foo () {return 0; }
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_cv_c_inline=$ac_kw; break
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4384 rm -f conftest.$ac_objext conftest.$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4389 echo "${ECHO_T}$ac_cv_c_inline" >&6
4390 case $ac_cv_c_inline in
4393 cat >>confdefs.h <<\_ACEOF
4397 *) cat >>confdefs.h <<_ACEOF
4398 #define inline $ac_cv_c_inline
4403 echo "$as_me:$LINENO: checking for off_t" >&5
4404 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4405 if test "${ac_cv_type_off_t+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 cat >conftest.$ac_ext <<_ACEOF
4409 #line $LINENO "configure"
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 $ac_includes_default
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -s conftest.$ac_objext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_cv_type_off_t=yes
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4446 rm -f conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4449 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4450 if test $ac_cv_type_off_t = yes; then
4454 cat >>confdefs.h <<_ACEOF
4460 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4461 # for constant arguments. Useless!
4462 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4463 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4464 if test "${ac_cv_working_alloca_h+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4478 char *p = (char *) alloca (2 * sizeof (int));
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4485 (eval $ac_link) 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -s conftest$ac_exeext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 ac_cv_working_alloca_h=yes
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 ac_cv_working_alloca_h=no
4502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4505 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4506 if test $ac_cv_working_alloca_h = yes; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define HAVE_ALLOCA_H 1
4514 echo "$as_me:$LINENO: checking for alloca" >&5
4515 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4516 if test "${ac_cv_func_alloca_works+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 cat >conftest.$ac_ext <<_ACEOF
4520 #line $LINENO "configure"
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4527 # define alloca __builtin_alloca
4530 # include <malloc.h>
4531 # define alloca _alloca
4534 # include <alloca.h>
4539 # ifndef alloca /* predefined by HP cc +Olibcalls */
4550 char *p = (char *) alloca (1);
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557 (eval $ac_link) 2>&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } &&
4561 { ac_try='test -s conftest$ac_exeext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 ac_cv_func_alloca_works=yes
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4572 ac_cv_func_alloca_works=no
4574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4576 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4577 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4579 if test $ac_cv_func_alloca_works = yes; then
4581 cat >>confdefs.h <<\_ACEOF
4582 #define HAVE_ALLOCA 1
4586 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4587 # that cause trouble. Some versions do not even contain alloca or
4588 # contain a buggy version. If you still want to use their alloca,
4589 # use ar to extract alloca.o from them instead of compiling alloca.c.
4591 ALLOCA=alloca.$ac_objext
4593 cat >>confdefs.h <<\_ACEOF
4598 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4599 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4600 if test "${ac_cv_os_cray+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 #if defined(CRAY) && ! defined(CRAY2)
4617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 $EGREP "webecray" >/dev/null 2>&1; then
4626 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4627 echo "${ECHO_T}$ac_cv_os_cray" >&6
4628 if test $ac_cv_os_cray = yes; then
4629 for ac_func in _getb67 GETB67 getb67; do
4630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4631 echo "$as_me:$LINENO: checking for $ac_func" >&5
4632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4633 if eval "test \"\${$as_ac_var+set}\" = set"; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 cat >conftest.$ac_ext <<_ACEOF
4637 #line $LINENO "configure"
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 /* System header to define __stub macros and hopefully few prototypes,
4644 which can conflict with char $ac_func (); below.
4645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4646 <limits.h> exists even on freestanding compilers. */
4648 # include <limits.h>
4650 # include <assert.h>
4652 /* Override any gcc2 internal prototype to avoid an error. */
4657 /* We use char because int might match the return type of a gcc2
4658 builtin and then its argument prototype would still apply. */
4660 /* The GNU C library defines this for functions which it implements
4661 to always fail with ENOSYS. Some functions are actually named
4662 something starting with __ and the normal name is an alias. */
4663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4666 char (*f) () = $ac_func;
4675 return f != $ac_func;
4680 rm -f conftest.$ac_objext conftest$ac_exeext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -s conftest$ac_exeext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 eval "$as_ac_var=yes"
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 eval "$as_ac_var=no"
4699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4703 if test `eval echo '${'$as_ac_var'}'` = yes; then
4705 cat >>confdefs.h <<_ACEOF
4706 #define CRAY_STACKSEG_END $ac_func
4715 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4716 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4717 if test "${ac_cv_c_stack_direction+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 if test "$cross_compiling" = yes; then
4721 ac_cv_c_stack_direction=0
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line $LINENO "configure"
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4731 find_stack_direction ()
4733 static char *addr = 0;
4738 return find_stack_direction ();
4741 return (&dummy > addr) ? 1 : -1;
4747 exit (find_stack_direction () < 0);
4750 rm -f conftest$ac_exeext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4752 (eval $ac_link) 2>&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_cv_c_stack_direction=1
4763 echo "$as_me: program exited with status $ac_status" >&5
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4768 ac_cv_c_stack_direction=-1
4770 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4773 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4774 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4776 cat >>confdefs.h <<_ACEOF
4777 #define STACK_DIRECTION $ac_cv_c_stack_direction
4785 for ac_header in stdlib.h unistd.h
4787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4789 echo "$as_me:$LINENO: checking for $ac_header" >&5
4790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4797 # Is the header compilable?
4798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4800 cat >conftest.$ac_ext <<_ACEOF
4801 #line $LINENO "configure"
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 $ac_includes_default
4808 #include <$ac_header>
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_header_compiler=yes
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 ac_header_compiler=no
4829 rm -f conftest.$ac_objext conftest.$ac_ext
4830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831 echo "${ECHO_T}$ac_header_compiler" >&6
4833 # Is the header present?
4834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4836 cat >conftest.$ac_ext <<_ACEOF
4837 #line $LINENO "configure"
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 #include <$ac_header>
4845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev/null; then
4853 if test -s conftest.err; then
4854 ac_cpp_err=$ac_c_preproc_warn_flag
4861 if test -z "$ac_cpp_err"; then
4862 ac_header_preproc=yes
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4867 ac_header_preproc=no
4869 rm -f conftest.err conftest.$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871 echo "${ECHO_T}$ac_header_preproc" >&6
4873 # So? What about this header?
4874 case $ac_header_compiler:$ac_header_preproc in
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882 ## ------------------------------------ ##
4883 ## Report this to bug-autoconf@gnu.org. ##
4884 ## ------------------------------------ ##
4887 sed "s/^/$as_me: WARNING: /" >&2
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898 ## ------------------------------------ ##
4899 ## Report this to bug-autoconf@gnu.org. ##
4900 ## ------------------------------------ ##
4903 sed "s/^/$as_me: WARNING: /" >&2
4906 echo "$as_me:$LINENO: checking for $ac_header" >&5
4907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 eval "$as_ac_Header=$ac_header_preproc"
4913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4918 cat >>confdefs.h <<_ACEOF
4919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4927 for ac_func in getpagesize
4929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4930 echo "$as_me:$LINENO: checking for $ac_func" >&5
4931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4932 if eval "test \"\${$as_ac_var+set}\" = set"; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 /* System header to define __stub macros and hopefully few prototypes,
4943 which can conflict with char $ac_func (); below.
4944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945 <limits.h> exists even on freestanding compilers. */
4947 # include <limits.h>
4949 # include <assert.h>
4951 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4959 /* The GNU C library defines this for functions which it implements
4960 to always fail with ENOSYS. Some functions are actually named
4961 something starting with __ and the normal name is an alias. */
4962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4965 char (*f) () = $ac_func;
4974 return f != $ac_func;
4979 rm -f conftest.$ac_objext conftest$ac_exeext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4981 (eval $ac_link) 2>&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } &&
4985 { ac_try='test -s conftest$ac_exeext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 eval "$as_ac_var=yes"
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 eval "$as_ac_var=no"
4998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5002 if test `eval echo '${'$as_ac_var'}'` = yes; then
5003 cat >>confdefs.h <<_ACEOF
5004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5010 echo "$as_me:$LINENO: checking for working mmap" >&5
5011 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5012 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 if test "$cross_compiling" = yes; then
5016 ac_cv_func_mmap_fixed_mapped=no
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 /* malloc might have been renamed as rpl_malloc. */
5029 /* Thanks to Mike Haertel and Jim Avera for this test.
5030 Here is a matrix of mmap possibilities:
5031 mmap private not fixed
5032 mmap private fixed at somewhere currently unmapped
5033 mmap private fixed at somewhere already mapped
5034 mmap shared not fixed
5035 mmap shared fixed at somewhere currently unmapped
5036 mmap shared fixed at somewhere already mapped
5037 For private mappings, we should verify that changes cannot be read()
5038 back from the file, nor mmap's back from the file at a different
5039 address. (There have been systems where private was not correctly
5040 implemented like the infamous i386 svr4.0, and systems where the
5041 VM page cache was not coherent with the file system buffer cache
5042 like early versions of FreeBSD and possibly contemporary NetBSD.)
5043 For shared mappings, we should conversely verify that changes get
5044 propagated back to all the places they're supposed to be.
5046 Grep wants private fixed already mapped.
5047 The main things grep needs to know about mmap are:
5048 * does it exist and is it safe to write into the mmap'd area
5049 * how to use it (BSD variants) */
5052 #include <sys/mman.h>
5054 #if !STDC_HEADERS && !HAVE_STDLIB_H
5058 /* This mess was copied from the GNU getpagesize.h. */
5059 #if !HAVE_GETPAGESIZE
5060 /* Assume that all systems that can run configure have sys/param.h. */
5061 # if !HAVE_SYS_PARAM_H
5062 # define HAVE_SYS_PARAM_H 1
5065 # ifdef _SC_PAGESIZE
5066 # define getpagesize() sysconf(_SC_PAGESIZE)
5067 # else /* no _SC_PAGESIZE */
5068 # if HAVE_SYS_PARAM_H
5069 # include <sys/param.h>
5070 # ifdef EXEC_PAGESIZE
5071 # define getpagesize() EXEC_PAGESIZE
5072 # else /* no EXEC_PAGESIZE */
5074 # define getpagesize() NBPG * CLSIZE
5077 # endif /* no CLSIZE */
5078 # else /* no NBPG */
5080 # define getpagesize() NBPC
5081 # else /* no NBPC */
5083 # define getpagesize() PAGESIZE
5084 # endif /* PAGESIZE */
5085 # endif /* no NBPC */
5086 # endif /* no NBPG */
5087 # endif /* no EXEC_PAGESIZE */
5088 # else /* no HAVE_SYS_PARAM_H */
5089 # define getpagesize() 8192 /* punt totally */
5090 # endif /* no HAVE_SYS_PARAM_H */
5091 # endif /* no _SC_PAGESIZE */
5093 #endif /* no HAVE_GETPAGESIZE */
5098 char *data, *data2, *data3;
5102 pagesize = getpagesize ();
5104 /* First, make a file with some known garbage in it. */
5105 data = (char *) malloc (pagesize);
5108 for (i = 0; i < pagesize; ++i)
5109 *(data + i) = rand ();
5111 fd = creat ("conftest.mmap", 0600);
5114 if (write (fd, data, pagesize) != pagesize)
5118 /* Next, try to mmap the file at a fixed address which already has
5119 something else allocated at it. If we can, also make sure that
5120 we see the same garbage. */
5121 fd = open ("conftest.mmap", O_RDWR);
5124 data2 = (char *) malloc (2 * pagesize);
5127 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5128 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5129 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5131 for (i = 0; i < pagesize; ++i)
5132 if (*(data + i) != *(data2 + i))
5135 /* Finally, make sure that changes to the mapped area do not
5136 percolate back to the file as seen by read(). (This is a bug on
5137 some variants of i386 svr4.0.) */
5138 for (i = 0; i < pagesize; ++i)
5139 *(data2 + i) = *(data2 + i) + 1;
5140 data3 = (char *) malloc (pagesize);
5143 if (read (fd, data3, pagesize) != pagesize)
5145 for (i = 0; i < pagesize; ++i)
5146 if (*(data + i) != *(data3 + i))
5152 rm -f conftest$ac_exeext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5154 (eval $ac_link) 2>&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_cv_func_mmap_fixed_mapped=yes
5165 echo "$as_me: program exited with status $ac_status" >&5
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5170 ac_cv_func_mmap_fixed_mapped=no
5172 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5175 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5176 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5177 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5179 cat >>confdefs.h <<\_ACEOF
5187 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5188 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5189 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5200 #include <features.h>
5201 #ifdef __GNU_LIBRARY__
5202 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5210 ac_cv_gnu_library_2_1=yes
5212 ac_cv_gnu_library_2_1=no
5219 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5220 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5222 GLIBC21="$ac_cv_gnu_library_2_1"
5226 if test "X$prefix" = "XNONE"; then
5227 acl_final_prefix="$ac_default_prefix"
5229 acl_final_prefix="$prefix"
5231 if test "X$exec_prefix" = "XNONE"; then
5232 acl_final_exec_prefix='${prefix}'
5234 acl_final_exec_prefix="$exec_prefix"
5236 acl_save_prefix="$prefix"
5237 prefix="$acl_final_prefix"
5238 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5239 prefix="$acl_save_prefix"
5242 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5243 if test "${with_gnu_ld+set}" = set; then
5244 withval="$with_gnu_ld"
5245 test "$withval" = no || with_gnu_ld=yes
5250 if test "$GCC" = yes; then
5251 # Check if gcc -print-prog-name=ld gives a path.
5252 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5253 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5256 # gcc leaves a trailing carriage return which upsets mingw
5257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5262 # Accept absolute paths.
5263 [\\/]* | [A-Za-z]:[\\/]*)
5264 re_direlt='/[^/][^/]*/\.\./'
5265 # Canonicalize the path of ld
5266 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5267 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5268 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5270 test -z "$LD" && LD="$ac_prog"
5273 # If it fails, then pretend we aren't using GCC.
5277 # If it is relative, then search for the first ld in PATH.
5281 elif test "$with_gnu_ld" = yes; then
5282 echo "$as_me:$LINENO: checking for GNU ld" >&5
5283 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5285 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5286 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5288 if test "${acl_cv_path_LD+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 if test -z "$LD"; then
5292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5293 for ac_dir in $PATH; do
5294 test -z "$ac_dir" && ac_dir=.
5295 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5296 acl_cv_path_LD="$ac_dir/$ac_prog"
5297 # Check to see if the program is GNU ld. I'd rather use --version,
5298 # but apparently some GNU ld's only accept -v.
5299 # Break only if it was the GNU/non-GNU ld that we prefer.
5300 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5301 test "$with_gnu_ld" != no && break
5303 test "$with_gnu_ld" != yes && break
5309 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5313 LD="$acl_cv_path_LD"
5314 if test -n "$LD"; then
5315 echo "$as_me:$LINENO: result: $LD" >&5
5316 echo "${ECHO_T}$LD" >&6
5318 echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5321 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5322 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5323 { (exit 1); exit 1; }; }
5324 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5325 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5326 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5330 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5331 acl_cv_prog_gnu_ld=yes
5333 acl_cv_prog_gnu_ld=no
5336 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5337 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5338 with_gnu_ld=$acl_cv_prog_gnu_ld
5342 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5343 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5344 if test "${acl_cv_rpath+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5349 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5355 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5356 echo "${ECHO_T}$acl_cv_rpath" >&6
5358 libext="$acl_cv_libext"
5359 shlibext="$acl_cv_shlibext"
5360 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5361 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5362 hardcode_direct="$acl_cv_hardcode_direct"
5363 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5364 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
5365 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
5376 acl_save_prefix="$prefix"
5377 prefix="$acl_final_prefix"
5378 acl_save_exec_prefix="$exec_prefix"
5379 exec_prefix="$acl_final_exec_prefix"
5381 eval additional_includedir=\"$includedir\"
5382 eval additional_libdir=\"$libdir\"
5384 exec_prefix="$acl_save_exec_prefix"
5385 prefix="$acl_save_prefix"
5388 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5389 if test "${with_libiconv_prefix+set}" = set; then
5390 withval="$with_libiconv_prefix"
5392 if test "X$withval" = "Xno"; then
5395 if test "X$withval" = "X"; then
5397 acl_save_prefix="$prefix"
5398 prefix="$acl_final_prefix"
5399 acl_save_exec_prefix="$exec_prefix"
5400 exec_prefix="$acl_final_exec_prefix"
5402 eval additional_includedir=\"$includedir\"
5403 eval additional_libdir=\"$libdir\"
5405 exec_prefix="$acl_save_exec_prefix"
5406 prefix="$acl_save_prefix"
5409 additional_includedir="$withval/include"
5410 additional_libdir="$withval/lib"
5420 names_already_handled=
5421 names_next_round='iconv '
5422 while test -n "$names_next_round"; do
5423 names_this_round="$names_next_round"
5425 for name in $names_this_round; do
5427 for n in $names_already_handled; do
5428 if test "$n" = "$name"; then
5433 if test -z "$already_handled"; then
5434 names_already_handled="$names_already_handled $name"
5435 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5436 eval value=\"\$HAVE_LIB$uppername\"
5437 if test -n "$value"; then
5438 if test "$value" = yes; then
5439 eval value=\"\$LIB$uppername\"
5440 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5441 eval value=\"\$LTLIB$uppername\"
5442 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5451 if test $use_additional = yes; then
5452 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5453 found_dir="$additional_libdir"
5454 found_so="$additional_libdir/lib$name.$shlibext"
5455 if test -f "$additional_libdir/lib$name.la"; then
5456 found_la="$additional_libdir/lib$name.la"
5459 if test -f "$additional_libdir/lib$name.$libext"; then
5460 found_dir="$additional_libdir"
5461 found_a="$additional_libdir/lib$name.$libext"
5462 if test -f "$additional_libdir/lib$name.la"; then
5463 found_la="$additional_libdir/lib$name.la"
5468 if test "X$found_dir" = "X"; then
5469 for x in $LDFLAGS $LTLIBICONV; do
5471 acl_save_prefix="$prefix"
5472 prefix="$acl_final_prefix"
5473 acl_save_exec_prefix="$exec_prefix"
5474 exec_prefix="$acl_final_exec_prefix"
5476 exec_prefix="$acl_save_exec_prefix"
5477 prefix="$acl_save_prefix"
5481 dir=`echo "X$x" | sed -e 's/^X-L//'`
5482 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5484 found_so="$dir/lib$name.$shlibext"
5485 if test -f "$dir/lib$name.la"; then
5486 found_la="$dir/lib$name.la"
5489 if test -f "$dir/lib$name.$libext"; then
5491 found_a="$dir/lib$name.$libext"
5492 if test -f "$dir/lib$name.la"; then
5493 found_la="$dir/lib$name.la"
5499 if test "X$found_dir" != "X"; then
5504 if test "X$found_dir" != "X"; then
5505 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5506 if test "X$found_so" != "X"; then
5507 if test "X$found_dir" = "X/usr/lib"; then
5508 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5511 for x in $ltrpathdirs; do
5512 if test "X$x" = "X$found_dir"; then
5517 if test -z "$haveit"; then
5518 ltrpathdirs="$ltrpathdirs $found_dir"
5520 if test "$hardcode_direct" = yes; then
5521 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5523 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5524 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5526 for x in $rpathdirs; do
5527 if test "X$x" = "X$found_dir"; then
5532 if test -z "$haveit"; then
5533 rpathdirs="$rpathdirs $found_dir"
5537 for x in $LDFLAGS $LIBICONV; do
5539 acl_save_prefix="$prefix"
5540 prefix="$acl_final_prefix"
5541 acl_save_exec_prefix="$exec_prefix"
5542 exec_prefix="$acl_final_exec_prefix"
5544 exec_prefix="$acl_save_exec_prefix"
5545 prefix="$acl_save_prefix"
5547 if test "X$x" = "X-L$found_dir"; then
5552 if test -z "$haveit"; then
5553 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5555 if test "$hardcode_minus_L" != no; then
5556 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5558 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5564 if test "X$found_a" != "X"; then
5565 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5567 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5570 additional_includedir=
5571 case "$found_dir" in
5573 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5574 additional_includedir="$basedir/include"
5577 if test "X$additional_includedir" != "X"; then
5578 if test "X$additional_includedir" != "X/usr/include"; then
5580 if test "X$additional_includedir" = "X/usr/local/include"; then
5581 if test -n "$GCC"; then
5583 linux*) haveit=yes;;
5587 if test -z "$haveit"; then
5588 for x in $CPPFLAGS $INCICONV; do
5590 acl_save_prefix="$prefix"
5591 prefix="$acl_final_prefix"
5592 acl_save_exec_prefix="$exec_prefix"
5593 exec_prefix="$acl_final_exec_prefix"
5595 exec_prefix="$acl_save_exec_prefix"
5596 prefix="$acl_save_prefix"
5598 if test "X$x" = "X-I$additional_includedir"; then
5603 if test -z "$haveit"; then
5604 if test -d "$additional_includedir"; then
5605 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5611 if test -n "$found_la"; then
5612 save_libdir="$libdir"
5614 */* | *\\*) . "$found_la" ;;
5615 *) . "./$found_la" ;;
5617 libdir="$save_libdir"
5618 for dep in $dependency_libs; do
5621 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5622 if test "X$additional_libdir" != "X/usr/lib"; then
5624 if test "X$additional_libdir" = "X/usr/local/lib"; then
5625 if test -n "$GCC"; then
5627 linux*) haveit=yes;;
5631 if test -z "$haveit"; then
5633 for x in $LDFLAGS $LIBICONV; do
5635 acl_save_prefix="$prefix"
5636 prefix="$acl_final_prefix"
5637 acl_save_exec_prefix="$exec_prefix"
5638 exec_prefix="$acl_final_exec_prefix"
5640 exec_prefix="$acl_save_exec_prefix"
5641 prefix="$acl_save_prefix"
5643 if test "X$x" = "X-L$additional_libdir"; then
5648 if test -z "$haveit"; then
5649 if test -d "$additional_libdir"; then
5650 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5654 for x in $LDFLAGS $LTLIBICONV; do
5656 acl_save_prefix="$prefix"
5657 prefix="$acl_final_prefix"
5658 acl_save_exec_prefix="$exec_prefix"
5659 exec_prefix="$acl_final_exec_prefix"
5661 exec_prefix="$acl_save_exec_prefix"
5662 prefix="$acl_save_prefix"
5664 if test "X$x" = "X-L$additional_libdir"; then
5669 if test -z "$haveit"; then
5670 if test -d "$additional_libdir"; then
5671 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5678 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5681 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5684 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5685 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5691 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5692 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5698 if test "X$rpathdirs" != "X"; then
5699 if test -n "$hardcode_libdir_separator"; then
5701 for found_dir in $rpathdirs; do
5702 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5704 acl_save_libdir="$libdir"
5706 eval flag=\"$hardcode_libdir_flag_spec\"
5707 libdir="$acl_save_libdir"
5708 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5710 for found_dir in $rpathdirs; do
5711 acl_save_libdir="$libdir"
5713 eval flag=\"$hardcode_libdir_flag_spec\"
5714 libdir="$acl_save_libdir"
5715 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5719 if test "X$ltrpathdirs" != "X"; then
5720 for found_dir in $ltrpathdirs; do
5721 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5726 am_save_CPPFLAGS="$CPPFLAGS"
5728 for element in $INCICONV; do
5730 for x in $CPPFLAGS; do
5732 acl_save_prefix="$prefix"
5733 prefix="$acl_final_prefix"
5734 acl_save_exec_prefix="$exec_prefix"
5735 exec_prefix="$acl_final_exec_prefix"
5737 exec_prefix="$acl_save_exec_prefix"
5738 prefix="$acl_save_prefix"
5740 if test "X$x" = "X$element"; then
5745 if test -z "$haveit"; then
5746 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5751 echo "$as_me:$LINENO: checking for iconv" >&5
5752 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5753 if test "${am_cv_func_iconv+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 am_cv_func_iconv="no, consider installing GNU libiconv"
5759 cat >conftest.$ac_ext <<_ACEOF
5760 #line $LINENO "configure"
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5771 iconv_t cd = iconv_open("","");
5772 iconv(cd,NULL,NULL,NULL,NULL);
5778 rm -f conftest.$ac_objext conftest$ac_exeext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5780 (eval $ac_link) 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -s conftest$ac_exeext'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5790 am_cv_func_iconv=yes
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5797 if test "$am_cv_func_iconv" != yes; then
5798 am_save_LIBS="$LIBS"
5799 LIBS="$LIBS $LIBICONV"
5800 cat >conftest.$ac_ext <<_ACEOF
5801 #line $LINENO "configure"
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5812 iconv_t cd = iconv_open("","");
5813 iconv(cd,NULL,NULL,NULL,NULL);
5819 rm -f conftest.$ac_objext conftest$ac_exeext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5821 (eval $ac_link) 2>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -s conftest$ac_exeext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5832 am_cv_func_iconv=yes
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5839 LIBS="$am_save_LIBS"
5843 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5844 echo "${ECHO_T}$am_cv_func_iconv" >&6
5845 if test "$am_cv_func_iconv" = yes; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_ICONV 1
5852 if test "$am_cv_lib_iconv" = yes; then
5853 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5854 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5855 echo "$as_me:$LINENO: result: $LIBICONV" >&5
5856 echo "${ECHO_T}$LIBICONV" >&6
5858 CPPFLAGS="$am_save_CPPFLAGS"
5877 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5878 stdlib.h string.h unistd.h sys/param.h
5880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5882 echo "$as_me:$LINENO: checking for $ac_header" >&5
5883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5890 # Is the header compilable?
5891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5893 cat >conftest.$ac_ext <<_ACEOF
5894 #line $LINENO "configure"
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 $ac_includes_default
5901 #include <$ac_header>
5903 rm -f conftest.$ac_objext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5905 (eval $ac_compile) 2>&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -s conftest.$ac_objext'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; }; then
5915 ac_header_compiler=yes
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5920 ac_header_compiler=no
5922 rm -f conftest.$ac_objext conftest.$ac_ext
5923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5924 echo "${ECHO_T}$ac_header_compiler" >&6
5926 # Is the header present?
5927 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5929 cat >conftest.$ac_ext <<_ACEOF
5930 #line $LINENO "configure"
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <$ac_header>
5938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5941 grep -v '^ *+' conftest.er1 >conftest.err
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } >/dev/null; then
5946 if test -s conftest.err; then
5947 ac_cpp_err=$ac_c_preproc_warn_flag
5954 if test -z "$ac_cpp_err"; then
5955 ac_header_preproc=yes
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 ac_header_preproc=no
5962 rm -f conftest.err conftest.$ac_ext
5963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5964 echo "${ECHO_T}$ac_header_preproc" >&6
5966 # So? What about this header?
5967 case $ac_header_compiler:$ac_header_preproc in
5969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5975 ## ------------------------------------ ##
5976 ## Report this to bug-autoconf@gnu.org. ##
5977 ## ------------------------------------ ##
5980 sed "s/^/$as_me: WARNING: /" >&2
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5991 ## ------------------------------------ ##
5992 ## Report this to bug-autoconf@gnu.org. ##
5993 ## ------------------------------------ ##
5996 sed "s/^/$as_me: WARNING: /" >&2
5999 echo "$as_me:$LINENO: checking for $ac_header" >&5
6000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 eval "$as_ac_Header=$ac_header_preproc"
6006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6011 cat >>confdefs.h <<_ACEOF
6012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6040 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
6041 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
6042 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6045 echo "$as_me:$LINENO: checking for $ac_func" >&5
6046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6047 if eval "test \"\${$as_ac_var+set}\" = set"; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 cat >conftest.$ac_ext <<_ACEOF
6051 #line $LINENO "configure"
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 /* System header to define __stub macros and hopefully few prototypes,
6058 which can conflict with char $ac_func (); below.
6059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6060 <limits.h> exists even on freestanding compilers. */
6062 # include <limits.h>
6064 # include <assert.h>
6066 /* Override any gcc2 internal prototype to avoid an error. */
6071 /* We use char because int might match the return type of a gcc2
6072 builtin and then its argument prototype would still apply. */
6074 /* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6080 char (*f) () = $ac_func;
6089 return f != $ac_func;
6094 rm -f conftest.$ac_objext conftest$ac_exeext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -s conftest$ac_exeext'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 eval "$as_ac_var=yes"
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 eval "$as_ac_var=no"
6113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6117 if test `eval echo '${'$as_ac_var'}'` = yes; then
6118 cat >>confdefs.h <<_ACEOF
6119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6128 if test "$am_cv_func_iconv" = yes; then
6129 echo "$as_me:$LINENO: checking for iconv declaration" >&5
6130 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6131 if test "${am_cv_proto_iconv+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6149 #if defined(__STDC__) || defined(__cplusplus)
6150 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6163 rm -f conftest.$ac_objext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165 (eval $ac_compile) 2>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 am_cv_proto_iconv_arg1=""
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 am_cv_proto_iconv_arg1="const"
6182 rm -f conftest.$ac_objext conftest.$ac_ext
6183 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);"
6186 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6187 echo "$as_me:$LINENO: result: ${ac_t:-
6188 }$am_cv_proto_iconv" >&5
6189 echo "${ECHO_T}${ac_t:-
6190 }$am_cv_proto_iconv" >&6
6192 cat >>confdefs.h <<_ACEOF
6193 #define ICONV_CONST $am_cv_proto_iconv_arg1
6199 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6200 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6201 if test "${am_cv_langinfo_codeset+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 cat >conftest.$ac_ext <<_ACEOF
6205 #line $LINENO "configure"
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <langinfo.h>
6215 char* cs = nl_langinfo(CODESET);
6220 rm -f conftest.$ac_objext conftest$ac_exeext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6222 (eval $ac_link) 2>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -s conftest$ac_exeext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 am_cv_langinfo_codeset=yes
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 am_cv_langinfo_codeset=no
6239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6243 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6244 if test $am_cv_langinfo_codeset = yes; then
6246 cat >>confdefs.h <<\_ACEOF
6247 #define HAVE_LANGINFO_CODESET 1
6252 if test $ac_cv_header_locale_h = yes; then
6253 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6254 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6255 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 cat >conftest.$ac_ext <<_ACEOF
6259 #line $LINENO "configure"
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6274 rm -f conftest.$ac_objext conftest$ac_exeext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276 (eval $ac_link) 2>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -s conftest$ac_exeext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 am_cv_val_LC_MESSAGES=yes
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 am_cv_val_LC_MESSAGES=no
6293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6295 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6296 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6297 if test $am_cv_val_LC_MESSAGES = yes; then
6299 cat >>confdefs.h <<\_ACEOF
6300 #define HAVE_LC_MESSAGES 1
6306 for ac_prog in bison
6308 # Extract the first word of "$ac_prog", so it can be a program name with args.
6309 set dummy $ac_prog; ac_word=$2
6310 echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6312 if test "${ac_cv_prog_INTLBISON+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 if test -n "$INTLBISON"; then
6316 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_INTLBISON="$ac_prog"
6326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 INTLBISON=$ac_cv_prog_INTLBISON
6335 if test -n "$INTLBISON"; then
6336 echo "$as_me:$LINENO: result: $INTLBISON" >&5
6337 echo "${ECHO_T}$INTLBISON" >&6
6339 echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6
6343 test -n "$INTLBISON" && break
6346 if test -z "$INTLBISON"; then
6349 echo "$as_me:$LINENO: checking version of bison" >&5
6350 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6351 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6352 case $ac_prog_version in
6353 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6354 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6355 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6356 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6358 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
6359 echo "${ECHO_T}$ac_prog_version" >&6
6361 if test $ac_verc_fail = yes; then
6377 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6378 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6379 # Check whether --enable-nls or --disable-nls was given.
6380 if test "${enable_nls+set}" = set; then
6381 enableval="$enable_nls"
6386 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6387 echo "${ECHO_T}$USE_NLS" >&6
6391 BUILD_INCLUDED_LIBINTL=no
6392 USE_INCLUDED_LIBINTL=no
6398 if test "$USE_NLS" = "yes"; then
6399 gt_use_preinstalled_gnugettext=no
6401 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6402 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6404 # Check whether --with-included-gettext or --without-included-gettext was given.
6405 if test "${with_included_gettext+set}" = set; then
6406 withval="$with_included_gettext"
6407 nls_cv_force_use_gnu_gettext=$withval
6409 nls_cv_force_use_gnu_gettext=no
6411 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6412 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6414 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6415 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6422 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6423 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6424 if test "${gt_cv_func_gnugettext1_libc+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. */
6434 #include <libintl.h>
6435 extern int _nl_msg_cat_cntr;
6436 extern int *_nl_domain_bindings;
6440 bindtextdomain ("", "");
6441 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6446 rm -f conftest.$ac_objext conftest$ac_exeext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6448 (eval $ac_link) 2>&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -s conftest$ac_exeext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6458 gt_cv_func_gnugettext1_libc=yes
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6463 gt_cv_func_gnugettext1_libc=no
6465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6467 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6468 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6470 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6476 acl_save_prefix="$prefix"
6477 prefix="$acl_final_prefix"
6478 acl_save_exec_prefix="$exec_prefix"
6479 exec_prefix="$acl_final_exec_prefix"
6481 eval additional_includedir=\"$includedir\"
6482 eval additional_libdir=\"$libdir\"
6484 exec_prefix="$acl_save_exec_prefix"
6485 prefix="$acl_save_prefix"
6488 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6489 if test "${with_libintl_prefix+set}" = set; then
6490 withval="$with_libintl_prefix"
6492 if test "X$withval" = "Xno"; then
6495 if test "X$withval" = "X"; then
6497 acl_save_prefix="$prefix"
6498 prefix="$acl_final_prefix"
6499 acl_save_exec_prefix="$exec_prefix"
6500 exec_prefix="$acl_final_exec_prefix"
6502 eval additional_includedir=\"$includedir\"
6503 eval additional_libdir=\"$libdir\"
6505 exec_prefix="$acl_save_exec_prefix"
6506 prefix="$acl_save_prefix"
6509 additional_includedir="$withval/include"
6510 additional_libdir="$withval/lib"
6520 names_already_handled=
6521 names_next_round='intl '
6522 while test -n "$names_next_round"; do
6523 names_this_round="$names_next_round"
6525 for name in $names_this_round; do
6527 for n in $names_already_handled; do
6528 if test "$n" = "$name"; then
6533 if test -z "$already_handled"; then
6534 names_already_handled="$names_already_handled $name"
6535 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6536 eval value=\"\$HAVE_LIB$uppername\"
6537 if test -n "$value"; then
6538 if test "$value" = yes; then
6539 eval value=\"\$LIB$uppername\"
6540 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6541 eval value=\"\$LTLIB$uppername\"
6542 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6551 if test $use_additional = yes; then
6552 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6553 found_dir="$additional_libdir"
6554 found_so="$additional_libdir/lib$name.$shlibext"
6555 if test -f "$additional_libdir/lib$name.la"; then
6556 found_la="$additional_libdir/lib$name.la"
6559 if test -f "$additional_libdir/lib$name.$libext"; then
6560 found_dir="$additional_libdir"
6561 found_a="$additional_libdir/lib$name.$libext"
6562 if test -f "$additional_libdir/lib$name.la"; then
6563 found_la="$additional_libdir/lib$name.la"
6568 if test "X$found_dir" = "X"; then
6569 for x in $LDFLAGS $LTLIBINTL; do
6571 acl_save_prefix="$prefix"
6572 prefix="$acl_final_prefix"
6573 acl_save_exec_prefix="$exec_prefix"
6574 exec_prefix="$acl_final_exec_prefix"
6576 exec_prefix="$acl_save_exec_prefix"
6577 prefix="$acl_save_prefix"
6581 dir=`echo "X$x" | sed -e 's/^X-L//'`
6582 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6584 found_so="$dir/lib$name.$shlibext"
6585 if test -f "$dir/lib$name.la"; then
6586 found_la="$dir/lib$name.la"
6589 if test -f "$dir/lib$name.$libext"; then
6591 found_a="$dir/lib$name.$libext"
6592 if test -f "$dir/lib$name.la"; then
6593 found_la="$dir/lib$name.la"
6599 if test "X$found_dir" != "X"; then
6604 if test "X$found_dir" != "X"; then
6605 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6606 if test "X$found_so" != "X"; then
6607 if test "X$found_dir" = "X/usr/lib"; then
6608 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6611 for x in $ltrpathdirs; do
6612 if test "X$x" = "X$found_dir"; then
6617 if test -z "$haveit"; then
6618 ltrpathdirs="$ltrpathdirs $found_dir"
6620 if test "$hardcode_direct" = yes; then
6621 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6623 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6624 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6626 for x in $rpathdirs; do
6627 if test "X$x" = "X$found_dir"; then
6632 if test -z "$haveit"; then
6633 rpathdirs="$rpathdirs $found_dir"
6637 for x in $LDFLAGS $LIBINTL; do
6639 acl_save_prefix="$prefix"
6640 prefix="$acl_final_prefix"
6641 acl_save_exec_prefix="$exec_prefix"
6642 exec_prefix="$acl_final_exec_prefix"
6644 exec_prefix="$acl_save_exec_prefix"
6645 prefix="$acl_save_prefix"
6647 if test "X$x" = "X-L$found_dir"; then
6652 if test -z "$haveit"; then
6653 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6655 if test "$hardcode_minus_L" != no; then
6656 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6658 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6664 if test "X$found_a" != "X"; then
6665 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6667 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6670 additional_includedir=
6671 case "$found_dir" in
6673 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6674 additional_includedir="$basedir/include"
6677 if test "X$additional_includedir" != "X"; then
6678 if test "X$additional_includedir" != "X/usr/include"; then
6680 if test "X$additional_includedir" = "X/usr/local/include"; then
6681 if test -n "$GCC"; then
6683 linux*) haveit=yes;;
6687 if test -z "$haveit"; then
6688 for x in $CPPFLAGS $INCINTL; do
6690 acl_save_prefix="$prefix"
6691 prefix="$acl_final_prefix"
6692 acl_save_exec_prefix="$exec_prefix"
6693 exec_prefix="$acl_final_exec_prefix"
6695 exec_prefix="$acl_save_exec_prefix"
6696 prefix="$acl_save_prefix"
6698 if test "X$x" = "X-I$additional_includedir"; then
6703 if test -z "$haveit"; then
6704 if test -d "$additional_includedir"; then
6705 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6711 if test -n "$found_la"; then
6712 save_libdir="$libdir"
6714 */* | *\\*) . "$found_la" ;;
6715 *) . "./$found_la" ;;
6717 libdir="$save_libdir"
6718 for dep in $dependency_libs; do
6721 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6722 if test "X$additional_libdir" != "X/usr/lib"; then
6724 if test "X$additional_libdir" = "X/usr/local/lib"; then
6725 if test -n "$GCC"; then
6727 linux*) haveit=yes;;
6731 if test -z "$haveit"; then
6733 for x in $LDFLAGS $LIBINTL; do
6735 acl_save_prefix="$prefix"
6736 prefix="$acl_final_prefix"
6737 acl_save_exec_prefix="$exec_prefix"
6738 exec_prefix="$acl_final_exec_prefix"
6740 exec_prefix="$acl_save_exec_prefix"
6741 prefix="$acl_save_prefix"
6743 if test "X$x" = "X-L$additional_libdir"; then
6748 if test -z "$haveit"; then
6749 if test -d "$additional_libdir"; then
6750 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6754 for x in $LDFLAGS $LTLIBINTL; do
6756 acl_save_prefix="$prefix"
6757 prefix="$acl_final_prefix"
6758 acl_save_exec_prefix="$exec_prefix"
6759 exec_prefix="$acl_final_exec_prefix"
6761 exec_prefix="$acl_save_exec_prefix"
6762 prefix="$acl_save_prefix"
6764 if test "X$x" = "X-L$additional_libdir"; then
6769 if test -z "$haveit"; then
6770 if test -d "$additional_libdir"; then
6771 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6778 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6781 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6784 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6785 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6791 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6792 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6798 if test "X$rpathdirs" != "X"; then
6799 if test -n "$hardcode_libdir_separator"; then
6801 for found_dir in $rpathdirs; do
6802 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6804 acl_save_libdir="$libdir"
6806 eval flag=\"$hardcode_libdir_flag_spec\"
6807 libdir="$acl_save_libdir"
6808 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6810 for found_dir in $rpathdirs; do
6811 acl_save_libdir="$libdir"
6813 eval flag=\"$hardcode_libdir_flag_spec\"
6814 libdir="$acl_save_libdir"
6815 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6819 if test "X$ltrpathdirs" != "X"; then
6820 for found_dir in $ltrpathdirs; do
6821 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6825 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6826 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6827 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 gt_save_CPPFLAGS="$CPPFLAGS"
6831 CPPFLAGS="$CPPFLAGS $INCINTL"
6832 gt_save_LIBS="$LIBS"
6833 LIBS="$LIBS $LIBINTL"
6834 cat >conftest.$ac_ext <<_ACEOF
6835 #line $LINENO "configure"
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 #include <libintl.h>
6842 extern int _nl_msg_cat_cntr;
6843 extern int *_nl_domain_bindings;
6848 const char *_nl_expand_alias ();
6852 bindtextdomain ("", "");
6853 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
6858 rm -f conftest.$ac_objext conftest$ac_exeext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860 (eval $ac_link) 2>&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -s conftest$ac_exeext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6870 gt_cv_func_gnugettext1_libintl=yes
6872 echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.$ac_ext >&5
6875 gt_cv_func_gnugettext1_libintl=no
6877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6878 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6879 LIBS="$LIBS $LIBICONV"
6880 cat >conftest.$ac_ext <<_ACEOF
6881 #line $LINENO "configure"
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <libintl.h>
6888 extern int _nl_msg_cat_cntr;
6889 extern int *_nl_domain_bindings;
6894 const char *_nl_expand_alias ();
6898 bindtextdomain ("", "");
6899 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
6904 rm -f conftest.$ac_objext conftest$ac_exeext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6906 (eval $ac_link) 2>&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
6910 { ac_try='test -s conftest$ac_exeext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 LIBINTL="$LIBINTL $LIBICONV"
6917 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6918 gt_cv_func_gnugettext1_libintl=yes
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6927 CPPFLAGS="$gt_save_CPPFLAGS"
6928 LIBS="$gt_save_LIBS"
6930 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6931 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6934 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6935 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6936 && test "$PACKAGE" != gettext; }; then
6937 gt_use_preinstalled_gnugettext=yes
6945 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6946 nls_cv_use_gnu_gettext=yes
6950 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6951 INTLOBJS="\$(GETTOBJS)"
6952 BUILD_INCLUDED_LIBINTL=yes
6953 USE_INCLUDED_LIBINTL=yes
6954 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6955 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6956 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6959 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6960 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6965 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6966 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6968 cat >>confdefs.h <<\_ACEOF
6969 #define ENABLE_NLS 1
6977 if test "$USE_NLS" = "yes"; then
6979 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6980 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6981 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6982 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6983 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6984 echo "${ECHO_T}$LIBINTL" >&6
6986 for element in $INCINTL; do
6988 for x in $CPPFLAGS; do
6990 acl_save_prefix="$prefix"
6991 prefix="$acl_final_prefix"
6992 acl_save_exec_prefix="$exec_prefix"
6993 exec_prefix="$acl_final_exec_prefix"
6995 exec_prefix="$acl_save_exec_prefix"
6996 prefix="$acl_save_prefix"
6998 if test "X$x" = "X$element"; then
7003 if test -z "$haveit"; then
7004 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7011 cat >>confdefs.h <<\_ACEOF
7012 #define HAVE_GETTEXT 1
7016 cat >>confdefs.h <<\_ACEOF
7017 #define HAVE_DCGETTEXT 1
7026 if test "$PACKAGE" = gettext; then
7027 BUILD_INCLUDED_LIBINTL=yes
7036 nls_cv_header_libgt=
7047 INTL_LIBTOOL_SUFFIX_PREFIX=
7059 aputils_save_LIBS="$LIBS"
7060 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
7061 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
7062 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 ac_check_lib_save_LIBS=$LIBS
7066 LIBS="-lncurses $LIBS"
7067 cat >conftest.$ac_ext <<_ACEOF
7068 #line $LINENO "configure"
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7075 /* Override any gcc2 internal prototype to avoid an error. */
7079 /* We use char because int might match the return type of a gcc2
7080 builtin and then its argument prototype would still apply. */
7090 rm -f conftest.$ac_objext conftest$ac_exeext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7092 (eval $ac_link) 2>&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
7096 { ac_try='test -s conftest$ac_exeext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_cv_lib_ncurses_initscr=yes
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7107 ac_cv_lib_ncurses_initscr=no
7109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7110 LIBS=$ac_check_lib_save_LIBS
7112 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
7113 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
7114 if test $ac_cv_lib_ncurses_initscr = yes; then
7115 CURSESLIBS="-lncurses"
7120 if test "$NOCURSES" = yes; then
7121 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
7122 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
7123 if test "${ac_cv_lib_curses_initscr+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 ac_check_lib_save_LIBS=$LIBS
7127 LIBS="-lcurses $LIBS"
7128 cat >conftest.$ac_ext <<_ACEOF
7129 #line $LINENO "configure"
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7136 /* Override any gcc2 internal prototype to avoid an error. */
7140 /* We use char because int might match the return type of a gcc2
7141 builtin and then its argument prototype would still apply. */
7151 rm -f conftest.$ac_objext conftest$ac_exeext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7153 (eval $ac_link) 2>&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } &&
7157 { ac_try='test -s conftest$ac_exeext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_lib_curses_initscr=yes
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_cv_lib_curses_initscr=no
7170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7171 LIBS=$ac_check_lib_save_LIBS
7173 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
7174 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
7175 if test $ac_cv_lib_curses_initscr = yes; then
7176 CURSESLIBS="-lcurses"
7178 { { echo "$as_me:$LINENO: error: ap-utils requires installed ncurses or Sys V curses to build" >&5
7179 echo "$as_me: error: ap-utils requires installed ncurses or Sys V curses to build" >&2;}
7180 { (exit 1); exit 1; }; }
7184 LIBS="$aputils_save_LIBS"
7186 # Check for OS and make OS define OS specific variables
7190 cat >>confdefs.h <<\_ACEOF
7196 ap_config_LDADD="-lncurses"
7197 CC="$CC -R/usr/pkg/lib -L/usr/pkg/lib -I/usr/pkg/include"
7203 cat >>confdefs.h <<\_ACEOF
7211 LIBS="$LIBS -lsocket"
7212 INSTALL="config/install-sh"
7217 CC="$CC -qcpluscmt -qmaxmem=16384"
7222 cat >>confdefs.h <<\_ACEOF
7223 #define OS_SOLARIS 1
7226 LIBS="$LIBS -lresolv -lnls"
7230 cat >>confdefs.h <<\_ACEOF
7234 CFLAGS="$CFLAGS -Wall -W"
7238 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7239 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7240 if test "${ac_cv_c_bigendian+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 # See if sys/param.h defines the BYTE_ORDER macro.
7244 cat >conftest.$ac_ext <<_ACEOF
7245 #line $LINENO "configure"
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 #include <sys/types.h>
7252 #include <sys/param.h>
7257 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7265 rm -f conftest.$ac_objext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7267 (eval $ac_compile) 2>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 # It does; now see whether it defined to BIG_ENDIAN or not.
7278 cat >conftest.$ac_ext <<_ACEOF
7279 #line $LINENO "configure"
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7285 #include <sys/types.h>
7286 #include <sys/param.h>
7291 #if BYTE_ORDER != BIG_ENDIAN
7299 rm -f conftest.$ac_objext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7301 (eval $ac_compile) 2>&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_c_bigendian=yes
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 ac_cv_c_bigendian=no
7318 rm -f conftest.$ac_objext conftest.$ac_ext
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 # It does not; compile a test program.
7324 if test "$cross_compiling" = yes; then
7325 # try to guess the endianness by grepping values into an object file
7326 ac_cv_c_bigendian=unknown
7327 cat >conftest.$ac_ext <<_ACEOF
7328 #line $LINENO "configure"
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7335 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7336 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7337 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7338 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7339 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7343 _ascii (); _ebcdic ();
7348 rm -f conftest.$ac_objext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7350 (eval $ac_compile) 2>&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7361 ac_cv_c_bigendian=yes
7363 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7364 if test "$ac_cv_c_bigendian" = unknown; then
7365 ac_cv_c_bigendian=no
7367 # finding both strings is unlikely to happen, but who knows?
7368 ac_cv_c_bigendian=unknown
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7376 rm -f conftest.$ac_objext conftest.$ac_ext
7378 cat >conftest.$ac_ext <<_ACEOF
7379 #line $LINENO "configure"
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7388 /* Are we little or big endian? From Harbison&Steele. */
7392 char c[sizeof (long)];
7395 exit (u.c[sizeof (long) - 1] == 1);
7398 rm -f conftest$ac_exeext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7400 (eval $ac_link) 2>&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 ac_cv_c_bigendian=no
7411 echo "$as_me: program exited with status $ac_status" >&5
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7416 ac_cv_c_bigendian=yes
7418 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7421 rm -f conftest.$ac_objext conftest.$ac_ext
7423 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7424 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7425 case $ac_cv_c_bigendian in
7428 cat >>confdefs.h <<\_ACEOF
7429 #define WORDS_BIGENDIAN 1
7435 { { echo "$as_me:$LINENO: error: unknown endianness
7436 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7437 echo "$as_me: error: unknown endianness
7438 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7439 { (exit 1); exit 1; }; } ;;
7443 # Check whether --enable-regdomain or --disable-regdomain was given.
7444 if test "${enable_regdomain+set}" = set; then
7445 enableval="$enable_regdomain"
7446 case "$enableval" in
7449 cat >>confdefs.h <<\_ACEOF
7450 #define NO_REG_DOMAIN 1
7460 ac_config_files="$ac_config_files Makefile src/Makefile ap-gl/Makefile lib/Makefile po/Makefile.in intl/Makefile Documentation/Makefile"
7461 cat >confcache <<\_ACEOF
7462 # This file is a shell script that caches the results of configure
7463 # tests run on this system so they can be shared between configure
7464 # scripts and configure runs, see configure's option --config-cache.
7465 # It is not useful on other systems. If it contains results you don't
7466 # want to keep, you may remove or edit it.
7468 # config.status only pays attention to the cache file if you give it
7469 # the --recheck option to rerun configure.
7471 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7472 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7477 # The following way of writing the cache mishandles newlines in values,
7478 # but we know of no workaround that is simple, portable, and efficient.
7479 # So, don't put newlines in cache variables' values.
7480 # Ultrix sh set writes to stderr and can't be redirected directly,
7481 # and sets the high bit in the cache file unless we assign to the vars.
7484 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7486 # `set' does not quote correctly, so add quotes (double-quote
7487 # substitution turns \\\\ into \\, and sed turns \\ into \).
7490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7493 # `set' quotes correctly as required by POSIX, so do not add quotes.
7495 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7502 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7504 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7506 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7507 if test -w $cache_file; then
7508 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7509 cat confcache >$cache_file
7511 echo "not updating unwritable cache $cache_file"
7516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7517 # Let make expand exec_prefix.
7518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7520 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7521 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7522 # trailing colons and then remove the whole line if VPATH becomes empty
7523 # (actually we leave an empty line to preserve line numbers).
7524 if test "x$srcdir" = x.; then
7525 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7526 s/:*\$(srcdir):*/:/;
7527 s/:*\${srcdir}:*/:/;
7529 s/^\([^=]*=[ ]*\):*/\1/;
7535 DEFS=-DHAVE_CONFIG_H
7539 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7540 # 1. Remove the extension, and $U if already installed.
7541 ac_i=`echo "$ac_i" |
7542 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7544 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7545 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7549 LTLIBOBJS=$ac_ltlibobjs
7552 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7553 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7554 Usually this means the macro was only invoked conditionally." >&5
7555 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7556 Usually this means the macro was only invoked conditionally." >&2;}
7557 { (exit 1); exit 1; }; }
7559 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7560 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7561 Usually this means the macro was only invoked conditionally." >&5
7562 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7563 Usually this means the macro was only invoked conditionally." >&2;}
7564 { (exit 1); exit 1; }; }
7567 : ${CONFIG_STATUS=./config.status}
7568 ac_clean_files_save=$ac_clean_files
7569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7570 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7571 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7572 cat >$CONFIG_STATUS <<_ACEOF
7574 # Generated by $as_me.
7575 # Run this file to recreate the current configuration.
7576 # Compiler output produced by configure, useful for debugging
7577 # configure, is in config.log if it exists.
7582 SHELL=\${CONFIG_SHELL-$SHELL}
7585 cat >>$CONFIG_STATUS <<\_ACEOF
7586 ## --------------------- ##
7587 ## M4sh Initialization. ##
7588 ## --------------------- ##
7590 # Be Bourne compatible
7591 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7594 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7595 # is contrary to our usage. Disable this feature.
7596 alias -g '${1+"$@"}'='"$@"'
7597 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7601 # Support unset when possible.
7602 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7609 # Work around bugs in pre-3.0 UWIN ksh.
7610 $as_unset ENV MAIL MAILPATH
7617 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7618 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7619 LC_TELEPHONE LC_TIME
7621 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7622 eval $as_var=C; export $as_var
7628 # Required to use basename.
7629 if expr a : '\(a\)' >/dev/null 2>&1; then
7635 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7636 as_basename=basename
7642 # Name of the executable.
7643 as_me=`$as_basename "$0" ||
7644 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7645 X"$0" : 'X\(//\)$' \| \
7646 X"$0" : 'X\(/\)$' \| \
7647 . : '\(.\)' 2>/dev/null ||
7649 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7650 /^X\/\(\/\/\)$/{ s//\1/; q; }
7651 /^X\/\(\/\).*/{ s//\1/; q; }
7655 # PATH needs CR, and LINENO needs CR and PATH.
7656 # Avoid depending upon Character Ranges.
7657 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7658 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7659 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7660 as_cr_digits='0123456789'
7661 as_cr_alnum=$as_cr_Letters$as_cr_digits
7663 # The user is always right.
7664 if test "${PATH_SEPARATOR+set}" != set; then
7665 echo "#! /bin/sh" >conf$$.sh
7666 echo "exit 0" >>conf$$.sh
7668 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7679 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7680 test "x$as_lineno_1" != "x$as_lineno_2" &&
7681 test "x$as_lineno_3" = "x$as_lineno_2" || {
7682 # Find who we are. Look in the path if we contain no path at all
7685 *[\\/]* ) as_myself=$0 ;;
7686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7696 # We did not find ourselves, most probably we were run as `sh COMMAND'
7697 # in which case we are not to be found in the path.
7698 if test "x$as_myself" = x; then
7701 if test ! -f "$as_myself"; then
7702 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7703 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7704 { (exit 1); exit 1; }; }
7706 case $CONFIG_SHELL in
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7712 test -z "$as_dir" && as_dir=.
7713 for as_base in sh bash ksh sh5; do
7716 if ("$as_dir/$as_base" -c '
7719 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7720 test "x$as_lineno_1" != "x$as_lineno_2" &&
7721 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7722 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7723 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7724 CONFIG_SHELL=$as_dir/$as_base
7726 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7734 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7735 # uniformly replaced by the line number. The first 'sed' inserts a
7736 # line-number line before each line; the second 'sed' does the real
7737 # work. The second script uses 'N' to pair each line-number line
7738 # with the numbered line, and appends trailing '-' during
7739 # substitution so that $LINENO is not a special case at line end.
7740 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7741 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7742 sed '=' <$as_myself |
7747 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7750 s,^['$as_cr_digits']*\n,,
7752 chmod +x $as_me.lineno ||
7753 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7754 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7755 { (exit 1); exit 1; }; }
7757 # Don't try to exec as it changes $[0], causing all sort of problems
7758 # (the dirname of $[0] is not the place where we might find the
7759 # original and so on. Autoconf is especially sensible to this).
7761 # Exit status is that of the last command.
7766 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7767 *c*,-n*) ECHO_N= ECHO_C='
7769 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7770 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7773 if expr a : '\(a\)' >/dev/null 2>&1; then
7779 rm -f conf$$ conf$$.exe conf$$.file
7781 if ln -s conf$$.file conf$$ 2>/dev/null; then
7782 # We could just check for DJGPP; but this test a) works b) is more generic
7783 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7784 if test -f conf$$.exe; then
7785 # Don't use ln at all; we don't have any links
7790 elif ln conf$$.file conf$$ 2>/dev/null; then
7795 rm -f conf$$ conf$$.exe conf$$.file
7797 if mkdir -p . 2>/dev/null; then
7803 as_executable_p="test -f"
7805 # Sed expression to map a string onto a valid CPP name.
7806 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7808 # Sed expression to map a string onto a valid variable name.
7809 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7813 # We need space, tab and new line, in precisely that order.
7823 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7824 # report actual input values of CONFIG_FILES etc. instead of their
7825 # values after options handling. Logging --version etc. is OK.
7829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7830 ## Running $as_me. ##
7835 This file was extended by $as_me, which was
7836 generated by GNU Autoconf 2.57. Invocation command line was
7838 CONFIG_FILES = $CONFIG_FILES
7839 CONFIG_HEADERS = $CONFIG_HEADERS
7840 CONFIG_LINKS = $CONFIG_LINKS
7841 CONFIG_COMMANDS = $CONFIG_COMMANDS
7845 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7849 # Files that config.status was made for.
7850 if test -n "$ac_config_files"; then
7851 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7854 if test -n "$ac_config_headers"; then
7855 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7858 if test -n "$ac_config_links"; then
7859 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7862 if test -n "$ac_config_commands"; then
7863 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7866 cat >>$CONFIG_STATUS <<\_ACEOF
7869 \`$as_me' instantiates files from templates according to the
7870 current configuration.
7872 Usage: $0 [OPTIONS] [FILE]...
7874 -h, --help print this help, then exit
7875 -V, --version print version number, then exit
7876 -q, --quiet do not print progress messages
7877 -d, --debug don't remove temporary files
7878 --recheck update $as_me by reconfiguring in the same conditions
7879 --file=FILE[:TEMPLATE]
7880 instantiate the configuration file FILE
7881 --header=FILE[:TEMPLATE]
7882 instantiate the configuration header FILE
7884 Configuration files:
7887 Configuration headers:
7890 Configuration commands:
7893 Report bugs to <bug-autoconf@gnu.org>."
7896 cat >>$CONFIG_STATUS <<_ACEOF
7899 configured by $0, generated by GNU Autoconf 2.57,
7900 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7902 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7903 Free Software Foundation, Inc.
7904 This config.status script is free software; the Free Software Foundation
7905 gives unlimited permission to copy, distribute and modify it."
7910 cat >>$CONFIG_STATUS <<\_ACEOF
7911 # If no file are specified by the user, then we need to provide default
7912 # value. By we need to know if files were specified by the user.
7918 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7919 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7927 *) # This is not an option, so the user has probably given explicit
7930 ac_need_defaults=false;;
7934 # Handling of the options.
7936 cat >>$CONFIG_STATUS <<\_ACEOF
7937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7939 --version | --vers* | -V )
7940 echo "$ac_cs_version"; exit 0 ;;
7942 # Conflict between --help and --header
7943 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7944 Try \`$0 --help' for more information." >&5
7945 echo "$as_me: error: ambiguous option: $1
7946 Try \`$0 --help' for more information." >&2;}
7947 { (exit 1); exit 1; }; };;
7948 --help | --hel | -h )
7949 echo "$ac_cs_usage"; exit 0 ;;
7950 --debug | --d* | -d )
7952 --file | --fil | --fi | --f )
7954 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7955 ac_need_defaults=false;;
7956 --header | --heade | --head | --hea )
7958 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7959 ac_need_defaults=false;;
7960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7961 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7965 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7966 Try \`$0 --help' for more information." >&5
7967 echo "$as_me: error: unrecognized option: $1
7968 Try \`$0 --help' for more information." >&2;}
7969 { (exit 1); exit 1; }; } ;;
7971 *) ac_config_targets="$ac_config_targets $1" ;;
7977 ac_configure_extra_args=
7979 if $ac_cs_silent; then
7981 ac_configure_extra_args="$ac_configure_extra_args --silent"
7985 cat >>$CONFIG_STATUS <<_ACEOF
7986 if \$ac_cs_recheck; then
7987 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7988 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7993 cat >>$CONFIG_STATUS <<_ACEOF
7995 # INIT-COMMANDS section.
7998 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7999 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
8000 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8002 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
8003 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8004 LINGUAS="${LINGUAS-%UNSET%}"
8011 cat >>$CONFIG_STATUS <<\_ACEOF
8012 for ac_config_target in $ac_config_targets
8014 case "$ac_config_target" in
8015 # Handling of arguments.
8016 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8017 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8018 "ap-gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES ap-gl/Makefile" ;;
8019 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8020 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8021 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8022 "Documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES Documentation/Makefile" ;;
8023 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8024 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8025 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8026 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8027 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8028 { (exit 1); exit 1; }; };;
8032 # If the user did not use the arguments to specify the items to instantiate,
8033 # then the envvar interface is used. Set only those that are not.
8034 # We use the long form for the default assignment because of an extremely
8035 # bizarre bug on SunOS 4.1.3.
8036 if $ac_need_defaults; then
8037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8039 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8042 # Have a temporary directory for convenience. Make it in the build tree
8043 # simply because there is no reason to put it here, and in addition,
8044 # creating and moving files from /tmp can sometimes cause problems.
8045 # Create a temporary directory, and hook for its removal unless debugging.
8048 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8049 trap '{ (exit 1); exit 1; }' 1 2 13 15
8052 # Create a (secure) tmp directory for tmp files.
8055 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8056 test -n "$tmp" && test -d "$tmp"
8059 tmp=./confstat$$-$RANDOM
8060 (umask 077 && mkdir $tmp)
8063 echo "$me: cannot create a temporary directory in ." >&2
8064 { (exit 1); exit 1; }
8069 cat >>$CONFIG_STATUS <<_ACEOF
8072 # CONFIG_FILES section.
8075 # No need to generate the scripts if there are no CONFIG_FILES.
8076 # This happens for instance when ./config.status config.h
8077 if test -n "\$CONFIG_FILES"; then
8078 # Protect against being on the right side of a sed subst in config.status.
8079 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8080 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8081 s,@SHELL@,$SHELL,;t t
8082 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8083 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8084 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8085 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8086 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8087 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8088 s,@exec_prefix@,$exec_prefix,;t t
8089 s,@prefix@,$prefix,;t t
8090 s,@program_transform_name@,$program_transform_name,;t t
8091 s,@bindir@,$bindir,;t t
8092 s,@sbindir@,$sbindir,;t t
8093 s,@libexecdir@,$libexecdir,;t t
8094 s,@datadir@,$datadir,;t t
8095 s,@sysconfdir@,$sysconfdir,;t t
8096 s,@sharedstatedir@,$sharedstatedir,;t t
8097 s,@localstatedir@,$localstatedir,;t t
8098 s,@libdir@,$libdir,;t t
8099 s,@includedir@,$includedir,;t t
8100 s,@oldincludedir@,$oldincludedir,;t t
8101 s,@infodir@,$infodir,;t t
8102 s,@mandir@,$mandir,;t t
8103 s,@build_alias@,$build_alias,;t t
8104 s,@host_alias@,$host_alias,;t t
8105 s,@target_alias@,$target_alias,;t t
8107 s,@ECHO_C@,$ECHO_C,;t t
8108 s,@ECHO_N@,$ECHO_N,;t t
8109 s,@ECHO_T@,$ECHO_T,;t t
8111 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8112 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8113 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8114 s,@CYGPATH_W@,$CYGPATH_W,;t t
8115 s,@PACKAGE@,$PACKAGE,;t t
8116 s,@VERSION@,$VERSION,;t t
8117 s,@ACLOCAL@,$ACLOCAL,;t t
8118 s,@AUTOCONF@,$AUTOCONF,;t t
8119 s,@AUTOMAKE@,$AUTOMAKE,;t t
8120 s,@AUTOHEADER@,$AUTOHEADER,;t t
8121 s,@MAKEINFO@,$MAKEINFO,;t t
8122 s,@AMTAR@,$AMTAR,;t t
8123 s,@install_sh@,$install_sh,;t t
8124 s,@STRIP@,$STRIP,;t t
8125 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8126 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8128 s,@SET_MAKE@,$SET_MAKE,;t t
8129 s,@am__leading_dot@,$am__leading_dot,;t t
8131 s,@CFLAGS@,$CFLAGS,;t t
8132 s,@LDFLAGS@,$LDFLAGS,;t t
8133 s,@CPPFLAGS@,$CPPFLAGS,;t t
8134 s,@ac_ct_CC@,$ac_ct_CC,;t t
8135 s,@EXEEXT@,$EXEEXT,;t t
8136 s,@OBJEXT@,$OBJEXT,;t t
8137 s,@DEPDIR@,$DEPDIR,;t t
8138 s,@am__include@,$am__include,;t t
8139 s,@am__quote@,$am__quote,;t t
8140 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8141 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8142 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8143 s,@CCDEPMODE@,$CCDEPMODE,;t t
8144 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8145 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8146 s,@RANLIB@,$RANLIB,;t t
8147 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8149 s,@EGREP@,$EGREP,;t t
8150 s,@LIBOBJS@,$LIBOBJS,;t t
8151 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8152 s,@MSGFMT@,$MSGFMT,;t t
8153 s,@GMSGFMT@,$GMSGFMT,;t t
8154 s,@XGETTEXT@,$XGETTEXT,;t t
8155 s,@MSGMERGE@,$MSGMERGE,;t t
8156 s,@build@,$build,;t t
8157 s,@build_cpu@,$build_cpu,;t t
8158 s,@build_vendor@,$build_vendor,;t t
8159 s,@build_os@,$build_os,;t t
8161 s,@host_cpu@,$host_cpu,;t t
8162 s,@host_vendor@,$host_vendor,;t t
8163 s,@host_os@,$host_os,;t t
8164 s,@ALLOCA@,$ALLOCA,;t t
8165 s,@GLIBC21@,$GLIBC21,;t t
8166 s,@LIBICONV@,$LIBICONV,;t t
8167 s,@LTLIBICONV@,$LTLIBICONV,;t t
8168 s,@INTLBISON@,$INTLBISON,;t t
8169 s,@USE_NLS@,$USE_NLS,;t t
8170 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
8171 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8172 s,@CATOBJEXT@,$CATOBJEXT,;t t
8173 s,@INTLOBJS@,$INTLOBJS,;t t
8174 s,@DATADIRNAME@,$DATADIRNAME,;t t
8175 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8176 s,@GENCAT@,$GENCAT,;t t
8177 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
8178 s,@INTLLIBS@,$INTLLIBS,;t t
8179 s,@LIBINTL@,$LIBINTL,;t t
8180 s,@LTLIBINTL@,$LTLIBINTL,;t t
8181 s,@POSUB@,$POSUB,;t t
8182 s,@CURSESLIBS@,$CURSESLIBS,;t t
8183 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8188 cat >>$CONFIG_STATUS <<\_ACEOF
8189 # Split the substitutions into bite-sized pieces for seds with
8190 # small command number limits, like on Digital OSF/1 and HP-UX.
8192 ac_sed_frag=1 # Number of current file.
8193 ac_beg=1 # First line for current file.
8194 ac_end=$ac_max_sed_lines # Line after last line for current file.
8197 while $ac_more_lines; do
8198 if test $ac_beg -gt 1; then
8199 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8201 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8203 if test ! -s $tmp/subs.frag; then
8206 # The purpose of the label and of the branching condition is to
8207 # speed up the sed processing (if there are no `@' at all, there
8208 # is no need to browse any of the substitutions).
8209 # These are the two extra sed commands mentioned above.
8211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8212 if test -z "$ac_sed_cmds"; then
8213 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8215 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8217 ac_sed_frag=`expr $ac_sed_frag + 1`
8219 ac_end=`expr $ac_end + $ac_max_sed_lines`
8222 if test -z "$ac_sed_cmds"; then
8225 fi # test -n "$CONFIG_FILES"
8228 cat >>$CONFIG_STATUS <<\_ACEOF
8229 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8232 - | *:- | *:-:* ) # input from stdin
8234 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8236 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8238 * ) ac_file_in=$ac_file.in ;;
8241 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8242 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8244 X"$ac_file" : 'X\(//\)[^/]' \| \
8245 X"$ac_file" : 'X\(//\)$' \| \
8246 X"$ac_file" : 'X\(/\)' \| \
8247 . : '\(.\)' 2>/dev/null ||
8249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8251 /^X\(\/\/\)$/{ s//\1/; q; }
8252 /^X\(\/\).*/{ s//\1/; q; }
8254 { if $as_mkdir_p; then
8259 while test ! -d "$as_dir"; do
8260 as_dirs="$as_dir $as_dirs"
8261 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8263 X"$as_dir" : 'X\(//\)[^/]' \| \
8264 X"$as_dir" : 'X\(//\)$' \| \
8265 X"$as_dir" : 'X\(/\)' \| \
8266 . : '\(.\)' 2>/dev/null ||
8268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8270 /^X\(\/\/\)$/{ s//\1/; q; }
8271 /^X\(\/\).*/{ s//\1/; q; }
8274 test ! -n "$as_dirs" || mkdir $as_dirs
8275 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8276 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8277 { (exit 1); exit 1; }; }; }
8281 if test "$ac_dir" != .; then
8282 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8283 # A "../" for each directory in $ac_dir_suffix.
8284 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8286 ac_dir_suffix= ac_top_builddir=
8290 .) # No --srcdir option. We are building in place.
8292 if test -z "$ac_top_builddir"; then
8295 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8297 [\\/]* | ?:[\\/]* ) # Absolute path.
8298 ac_srcdir=$srcdir$ac_dir_suffix;
8299 ac_top_srcdir=$srcdir ;;
8301 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8302 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8304 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8306 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8307 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8308 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8309 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8313 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8314 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8317 if test x"$ac_file" != x-; then
8318 { echo "$as_me:$LINENO: creating $ac_file" >&5
8319 echo "$as_me: creating $ac_file" >&6;}
8322 # Let's still pretend it is `configure' which instantiates (i.e., don't
8323 # use $as_me), people would be surprised to read:
8324 # /* config.h. Generated by config.status. */
8325 if test x"$ac_file" = x-; then
8328 configure_input="$ac_file. "
8330 configure_input=$configure_input"Generated from `echo $ac_file_in |
8331 sed 's,.*/,,'` by configure."
8333 # First look for the input files in the build tree, otherwise in the
8335 ac_file_inputs=`IFS=:
8336 for f in $ac_file_in; do
8338 -) echo $tmp/stdin ;;
8340 # Absolute (can't be DOS-style, as IFS=:)
8341 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8342 echo "$as_me: error: cannot find input file: $f" >&2;}
8343 { (exit 1); exit 1; }; }
8346 if test -f "$f"; then
8349 elif test -f "$srcdir/$f"; then
8354 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8355 echo "$as_me: error: cannot find input file: $f" >&2;}
8356 { (exit 1); exit 1; }; }
8359 done` || { (exit 1); exit 1; }
8361 cat >>$CONFIG_STATUS <<_ACEOF
8365 cat >>$CONFIG_STATUS <<\_ACEOF
8367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8368 s,@configure_input@,$configure_input,;t t
8369 s,@srcdir@,$ac_srcdir,;t t
8370 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8371 s,@top_srcdir@,$ac_top_srcdir,;t t
8372 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8373 s,@builddir@,$ac_builddir,;t t
8374 s,@abs_builddir@,$ac_abs_builddir,;t t
8375 s,@top_builddir@,$ac_top_builddir,;t t
8376 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8377 s,@INSTALL@,$ac_INSTALL,;t t
8378 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8380 if test x"$ac_file" != x-; then
8381 mv $tmp/out $ac_file
8389 cat >>$CONFIG_STATUS <<\_ACEOF
8392 # CONFIG_HEADER section.
8395 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8396 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8398 # ac_d sets the value in "#define NAME VALUE" lines.
8399 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8400 ac_dB='[ ].*$,\1#\2'
8403 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8404 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8405 ac_uB='$,\1#\2define\3'
8409 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8410 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8412 - | *:- | *:-:* ) # input from stdin
8414 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8415 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8416 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8417 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8418 * ) ac_file_in=$ac_file.in ;;
8421 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8422 echo "$as_me: creating $ac_file" >&6;}
8424 # First look for the input files in the build tree, otherwise in the
8426 ac_file_inputs=`IFS=:
8427 for f in $ac_file_in; do
8429 -) echo $tmp/stdin ;;
8431 # Absolute (can't be DOS-style, as IFS=:)
8432 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8433 echo "$as_me: error: cannot find input file: $f" >&2;}
8434 { (exit 1); exit 1; }; }
8437 if test -f "$f"; then
8440 elif test -f "$srcdir/$f"; then
8445 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8446 echo "$as_me: error: cannot find input file: $f" >&2;}
8447 { (exit 1); exit 1; }; }
8450 done` || { (exit 1); exit 1; }
8451 # Remove the trailing spaces.
8452 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8456 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8457 # `conftest.undefs', that substitutes the proper values into
8458 # config.h.in to produce config.h. The first handles `#define'
8459 # templates, and the second `#undef' templates.
8460 # And first: Protect against being on the right side of a sed subst in
8461 # config.status. Protect against being in an unquoted here document
8463 rm -f conftest.defines conftest.undefs
8464 # Using a here document instead of a string reduces the quoting nightmare.
8465 # Putting comments in sed scripts is not portable.
8467 # `end' is used to avoid that the second main sed command (meant for
8468 # 0-ary CPP macros) applies to n-ary macro definitions.
8469 # See the Autoconf documentation for `clear'.
8470 cat >confdef2sed.sed <<\_ACEOF
8475 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8477 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8480 # If some macros were called several times there might be several times
8481 # the same #defines, which is useless. Nevertheless, we may not want to
8482 # sort them, since we want the *last* AC-DEFINE to be honored.
8483 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8484 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8485 rm -f confdef2sed.sed
8487 # This sed command replaces #undef with comments. This is necessary, for
8488 # example, in the case of _POSIX_SOURCE, which is predefined and required
8489 # on some systems where configure will not decide to define it.
8490 cat >>conftest.undefs <<\_ACEOF
8491 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8494 # Break up conftest.defines because some shells have a limit on the size
8495 # of here documents, and old seds have small limits too (100 cmds).
8496 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8497 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8498 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8499 echo ' :' >>$CONFIG_STATUS
8501 while grep . conftest.defines >/dev/null
8503 # Write a limited-size here document to $tmp/defines.sed.
8504 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8505 # Speed up: don't consider the non `#define' lines.
8506 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8507 # Work around the forget-to-reset-the-flag bug.
8508 echo 't clr' >>$CONFIG_STATUS
8509 echo ': clr' >>$CONFIG_STATUS
8510 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8512 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8516 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8517 rm -f conftest.defines
8518 mv conftest.tail conftest.defines
8520 rm -f conftest.defines
8521 echo ' fi # grep' >>$CONFIG_STATUS
8522 echo >>$CONFIG_STATUS
8524 # Break up conftest.undefs because some shells have a limit on the size
8525 # of here documents, and old seds have small limits too (100 cmds).
8526 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8528 while grep . conftest.undefs >/dev/null
8530 # Write a limited-size here document to $tmp/undefs.sed.
8531 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8532 # Speed up: don't consider the non `#undef'
8533 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8534 # Work around the forget-to-reset-the-flag bug.
8535 echo 't clr' >>$CONFIG_STATUS
8536 echo ': clr' >>$CONFIG_STATUS
8537 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8539 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8543 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8544 rm -f conftest.undefs
8545 mv conftest.tail conftest.undefs
8547 rm -f conftest.undefs
8549 cat >>$CONFIG_STATUS <<\_ACEOF
8550 # Let's still pretend it is `configure' which instantiates (i.e., don't
8551 # use $as_me), people would be surprised to read:
8552 # /* config.h. Generated by config.status. */
8553 if test x"$ac_file" = x-; then
8554 echo "/* Generated by configure. */" >$tmp/config.h
8556 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8558 cat $tmp/in >>$tmp/config.h
8560 if test x"$ac_file" != x-; then
8561 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8562 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8563 echo "$as_me: $ac_file is unchanged" >&6;}
8565 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8567 X"$ac_file" : 'X\(//\)[^/]' \| \
8568 X"$ac_file" : 'X\(//\)$' \| \
8569 X"$ac_file" : 'X\(/\)' \| \
8570 . : '\(.\)' 2>/dev/null ||
8572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8574 /^X\(\/\/\)$/{ s//\1/; q; }
8575 /^X\(\/\).*/{ s//\1/; q; }
8577 { if $as_mkdir_p; then
8582 while test ! -d "$as_dir"; do
8583 as_dirs="$as_dir $as_dirs"
8584 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8586 X"$as_dir" : 'X\(//\)[^/]' \| \
8587 X"$as_dir" : 'X\(//\)$' \| \
8588 X"$as_dir" : 'X\(/\)' \| \
8589 . : '\(.\)' 2>/dev/null ||
8591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8593 /^X\(\/\/\)$/{ s//\1/; q; }
8594 /^X\(\/\).*/{ s//\1/; q; }
8597 test ! -n "$as_dirs" || mkdir $as_dirs
8598 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8599 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8600 { (exit 1); exit 1; }; }; }
8603 mv $tmp/config.h $ac_file
8609 # Compute $ac_file's index in $config_headers.
8611 for _am_header in $config_headers :; do
8613 $ac_file | $ac_file:* )
8616 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8619 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8620 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8621 X$ac_file : 'X\(//\)[^/]' \| \
8622 X$ac_file : 'X\(//\)$' \| \
8623 X$ac_file : 'X\(/\)' \| \
8624 . : '\(.\)' 2>/dev/null ||
8626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8628 /^X\(\/\/\)$/{ s//\1/; q; }
8629 /^X\(\/\).*/{ s//\1/; q; }
8630 s/.*/./; q'`/stamp-h$_am_stamp_count
8633 cat >>$CONFIG_STATUS <<\_ACEOF
8636 # CONFIG_COMMANDS section.
8638 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8639 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8640 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8641 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8642 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8643 X"$ac_dest" : 'X\(//\)[^/]' \| \
8644 X"$ac_dest" : 'X\(//\)$' \| \
8645 X"$ac_dest" : 'X\(/\)' \| \
8646 . : '\(.\)' 2>/dev/null ||
8648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8650 /^X\(\/\/\)$/{ s//\1/; q; }
8651 /^X\(\/\).*/{ s//\1/; q; }
8655 if test "$ac_dir" != .; then
8656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8657 # A "../" for each directory in $ac_dir_suffix.
8658 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8660 ac_dir_suffix= ac_top_builddir=
8664 .) # No --srcdir option. We are building in place.
8666 if test -z "$ac_top_builddir"; then
8669 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8671 [\\/]* | ?:[\\/]* ) # Absolute path.
8672 ac_srcdir=$srcdir$ac_dir_suffix;
8673 ac_top_srcdir=$srcdir ;;
8675 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8676 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8678 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8680 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8681 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8682 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8683 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8686 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8687 echo "$as_me: executing $ac_dest commands" >&6;}
8689 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8690 # Strip MF so we end up with the name of the file.
8691 mf=`echo "$mf" | sed -e 's/:.*$//'`
8692 # Check whether this is an Automake generated Makefile or not.
8693 # We used to match only the files named `Makefile.in', but
8694 # some people rename them; so instead we look at the file content.
8695 # Grep'ing the first line is not enough: some people post-process
8696 # each Makefile.in and add a new line on top of each file to say so.
8697 # So let's grep whole file.
8698 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8699 dirpart=`(dirname "$mf") 2>/dev/null ||
8700 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8701 X"$mf" : 'X\(//\)[^/]' \| \
8702 X"$mf" : 'X\(//\)$' \| \
8703 X"$mf" : 'X\(/\)' \| \
8704 . : '\(.\)' 2>/dev/null ||
8706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8708 /^X\(\/\/\)$/{ s//\1/; q; }
8709 /^X\(\/\).*/{ s//\1/; q; }
8714 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8715 # Extract the definition of DEP_FILES from the Makefile without
8717 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8718 test -z "$DEPDIR" && continue
8719 # When using ansi2knr, U may be empty or an underscore; expand it
8720 U=`sed -n -e '/^U = / s///p' < "$mf"`
8721 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8722 # We invoke sed twice because it is the simplest approach to
8723 # changing $(DEPDIR) to its actual value in the expansion.
8724 for file in `sed -n -e '
8725 /^DEP_FILES = .*\\\\$/ {
8734 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8735 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8736 # Make sure the directory exists.
8737 test -f "$dirpart/$file" && continue
8738 fdir=`(dirname "$file") 2>/dev/null ||
8739 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8740 X"$file" : 'X\(//\)[^/]' \| \
8741 X"$file" : 'X\(//\)$' \| \
8742 X"$file" : 'X\(/\)' \| \
8743 . : '\(.\)' 2>/dev/null ||
8745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8747 /^X\(\/\/\)$/{ s//\1/; q; }
8748 /^X\(\/\).*/{ s//\1/; q; }
8750 { if $as_mkdir_p; then
8751 mkdir -p $dirpart/$fdir
8753 as_dir=$dirpart/$fdir
8755 while test ! -d "$as_dir"; do
8756 as_dirs="$as_dir $as_dirs"
8757 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8759 X"$as_dir" : 'X\(//\)[^/]' \| \
8760 X"$as_dir" : 'X\(//\)$' \| \
8761 X"$as_dir" : 'X\(/\)' \| \
8762 . : '\(.\)' 2>/dev/null ||
8764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8765 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8766 /^X\(\/\/\)$/{ s//\1/; q; }
8767 /^X\(\/\).*/{ s//\1/; q; }
8770 test ! -n "$as_dirs" || mkdir $as_dirs
8771 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8772 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8773 { (exit 1); exit 1; }; }; }
8775 # echo "creating $dirpart/$file"
8776 echo '# dummy' > "$dirpart/$file"
8781 for ac_file in $CONFIG_FILES; do
8782 # Support "outfile[:infile[:infile...]]"
8784 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8786 # PO directories have a Makefile.in generated from Makefile.in.in.
8787 case "$ac_file" in */Makefile.in)
8788 # Adjust a relative srcdir.
8789 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8790 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8791 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8792 # In autoconf-2.13 it is called $ac_given_srcdir.
8793 # In autoconf-2.50 it is called $srcdir.
8794 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8795 case "$ac_given_srcdir" in
8796 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8797 /*) top_srcdir="$ac_given_srcdir" ;;
8798 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8800 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8801 rm -f "$ac_dir/POTFILES"
8802 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8803 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8804 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8805 # on $ac_dir but don't depend on user-specified configuration
8807 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8808 # The LINGUAS file contains the set of available languages.
8809 if test -n "$ALL_LINGUAS"; then
8810 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8812 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8813 # Hide the ALL_LINGUAS assigment from automake.
8814 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8816 case "$ac_given_srcdir" in
8818 *) srcdirpre='$(srcdir)/' ;;
8824 for lang in $ALL_LINGUAS; do
8825 POFILES="$POFILES $srcdirpre$lang.po"
8826 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8827 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8828 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8830 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8831 # environment variable.
8833 if test -n "$ALL_LINGUAS"; then
8834 for presentlang in $ALL_LINGUAS; do
8836 if test "%UNSET%" != "$LINGUAS"; then
8837 desiredlanguages="$LINGUAS"
8839 desiredlanguages="$ALL_LINGUAS"
8841 for desiredlang in $desiredlanguages; do
8842 # Use the presentlang catalog if desiredlang is
8843 # a. equal to presentlang, or
8844 # b. a variant of presentlang (because in this case,
8845 # presentlang can be used as a fallback for messages
8846 # which are not translated in the desiredlang catalog).
8847 case "$desiredlang" in
8848 "$presentlang"*) useit=yes;;
8851 if test $useit = yes; then
8852 INST_LINGUAS="$INST_LINGUAS $presentlang"
8857 if test -n "$INST_LINGUAS"; then
8858 for lang in $INST_LINGUAS; do
8859 CATALOGS="$CATALOGS $lang.gmo"
8862 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8863 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"
8864 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8865 if test -f "$f"; then
8867 *.orig | *.bak | *~) ;;
8868 *) cat "$f" >> "$ac_dir/Makefile" ;;
8880 cat >>$CONFIG_STATUS <<\_ACEOF
8882 { (exit 0); exit 0; }
8884 chmod +x $CONFIG_STATUS
8885 ac_clean_files=$ac_clean_files_save
8888 # configure is writing to config.log, and then calls config.status.
8889 # config.status does its own redirection, appending to config.log.
8890 # Unfortunately, on DOS this fails, as config.log is still kept open
8891 # by configure, so config.status won't be able to write to it; its
8892 # output is simply discarded. So we exec the FD to /dev/null,
8893 # effectively closing config.log, so it can be properly (re)opened and
8894 # appended to by config.status. When coming back to configure, we
8895 # need to make the FD available again.
8896 if test "$no_create" != yes; then
8898 ac_config_status_args=
8899 test "$silent" = yes &&
8900 ac_config_status_args="$ac_config_status_args --quiet"
8902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8905 # would make configure fail if this is the last instruction.
8906 $ac_cs_success || { (exit 1); exit 1; }
8912 Thank you for using ap-utils.