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 USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS 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-rpath do not hardcode runtime library paths
855 --disable-regdomain disable regulation domain channel restrictions
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-gnu-ld assume the C compiler uses GNU ld default=no
861 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
862 --without-libiconv-prefix don't search for libiconv in includedir and libdir
863 --with-included-gettext use the GNU gettext library included here
864 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
865 --without-libintl-prefix don't search for libintl in includedir and libdir
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
882 if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
889 if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 ac_dir_suffix= ac_top_builddir=
898 .) # No --srcdir option. We are building in place.
900 if test -z "$ac_top_builddir"; then
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
914 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
915 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
916 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
917 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
920 # Check for guested configure; otherwise get Cygnus style configure.
921 if test -f $ac_srcdir/configure.gnu; then
923 $SHELL $ac_srcdir/configure.gnu --help=recursive
924 elif test -f $ac_srcdir/configure; then
926 $SHELL $ac_srcdir/configure --help=recursive
927 elif test -f $ac_srcdir/configure.ac ||
928 test -f $ac_srcdir/configure.in; then
932 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
938 test -n "$ac_init_help" && exit 0
939 if $ac_init_version; then
942 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
943 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
954 It was created by $as_me, which was
955 generated by GNU Autoconf 2.57. Invocation command line was
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
989 test -z "$as_dir" && as_dir=.
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1014 ac_must_keep_next=false
1020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1024 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1028 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1030 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031 if test $ac_must_keep_next = true; then
1032 ac_must_keep_next=false # Got value, back to normal.
1035 *=* | --config-cache | -C | -disable-* | --disable-* \
1036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038 | -with-* | --with-* | -without-* | --without-* | --x)
1039 case "$ac_configure_args0 " in
1040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1043 -* ) ac_must_keep_next=true ;;
1046 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log. We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1072 # The following way of writing the cache mishandles newlines in values,
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1095 for ac_var in $ac_subst_vars
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1102 if test -n "$ac_subst_files"; then
1109 for ac_var in $ac_subst_files
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1117 if test -s confdefs.h; then
1124 sed "/^$/d" confdefs.h | sort
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1131 rm -f core core.* *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1135 for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1145 # Predefined preprocessor variables.
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1181 for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
1183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185 sed 's/^/| /' "$ac_site_file" >&5
1190 if test -r "$cache_file"; then
1191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
1194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1207 # Check that the precious variables saved in the cache have kept the same
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
1228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1231 echo "$as_me: former value: $ac_old_val" >&2;}
1232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1233 echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1237 # Pass precious variables to config.status.
1238 if test "$ac_new_set" = set; then
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1250 if $ac_cache_corrupted; then
1251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283 for ac_dir in config $srcdir/config; do
1284 if test -f $ac_dir/install-sh; then
1286 ac_install_sh="$ac_aux_dir/install-sh -c"
1288 elif test -f $ac_dir/install.sh; then
1290 ac_install_sh="$ac_aux_dir/install.sh -c"
1292 elif test -f $ac_dir/shtool; then
1294 ac_install_sh="$ac_aux_dir/shtool install -c"
1298 if test -z "$ac_aux_dir"; then
1299 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1300 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1301 { (exit 1); exit 1; }; }
1303 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1304 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1305 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1307 am__api_version="1.7"
1308 # Find a good install program. We prefer a C program (faster),
1309 # so one script is as good as another. But avoid the broken or
1310 # incompatible versions:
1311 # SysV /etc/install, /usr/sbin/install
1312 # SunOS /usr/etc/install
1313 # IRIX /sbin/install
1315 # AmigaOS /C/install, which installs bootblocks on floppy discs
1316 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1317 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1318 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1319 # ./install, which can be erroneously created by make from ./install.sh.
1320 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1321 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1322 if test -z "$INSTALL"; then
1323 if test "${ac_cv_path_install+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1330 test -z "$as_dir" && as_dir=.
1331 # Account for people who put trailing slashes in PATH elements.
1333 ./ | .// | /cC/* | \
1334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1337 # OSF1 and SCO ODT 3.0 have their own names for install.
1338 # Don't use installbsd from OSF since it installs stuff as root
1340 for ac_prog in ginstall scoinst install; do
1341 for ac_exec_ext in '' $ac_executable_extensions; do
1342 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1343 if test $ac_prog = install &&
1344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1345 # AIX install. It has an incompatible calling convention.
1347 elif test $ac_prog = install &&
1348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1349 # program-specific install script used by HP pwplus--don't use.
1352 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1364 if test "${ac_cv_path_install+set}" = set; then
1365 INSTALL=$ac_cv_path_install
1367 # As a last resort, use the slow shell script. We don't cache a
1368 # path for INSTALL within a source directory, because that will
1369 # break other packages using the cache if that directory is
1370 # removed, or if the path is relative.
1371 INSTALL=$ac_install_sh
1374 echo "$as_me:$LINENO: result: $INSTALL" >&5
1375 echo "${ECHO_T}$INSTALL" >&6
1377 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1378 # It thinks the first close brace ends the variable substitution.
1379 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1381 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1383 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1385 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1386 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1389 echo timestamp > conftest.file
1390 # Do `set' in a subshell so we don't clobber the current shell's
1391 # arguments. Must try -L first in case configure is actually a
1392 # symlink; some systems play weird games with the mod time of symlinks
1393 # (eg FreeBSD returns the mod time of the symlink's containing
1396 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1397 if test "$*" = "X"; then
1399 set X `ls -t $srcdir/configure conftest.file`
1402 if test "$*" != "X $srcdir/configure conftest.file" \
1403 && test "$*" != "X conftest.file $srcdir/configure"; then
1405 # If neither matched, then we have a broken ls. This can happen
1406 # if, for instance, CONFIG_SHELL is bash and it inherits a
1407 # broken ls alias from the environment. This has actually
1408 # happened. Such a system could not be considered "sane".
1409 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1410 alias in your environment" >&5
1411 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1412 alias in your environment" >&2;}
1413 { (exit 1); exit 1; }; }
1416 test "$2" = conftest.file
1422 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1423 Check your system clock" >&5
1424 echo "$as_me: error: newly created file is older than distributed files!
1425 Check your system clock" >&2;}
1426 { (exit 1); exit 1; }; }
1428 echo "$as_me:$LINENO: result: yes" >&5
1429 echo "${ECHO_T}yes" >&6
1430 test "$program_prefix" != NONE &&
1431 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1432 # Use a double $ so make ignores it.
1433 test "$program_suffix" != NONE &&
1434 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1435 # Double any \ or $. echo might interpret backslashes.
1436 # By default was `s,x,x', remove it if useless.
1437 cat <<\_ACEOF >conftest.sed
1438 s/[\\$]/&&/g;s/;s,x,x,$//
1440 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1444 # expand $ac_aux_dir to an absolute path
1445 am_aux_dir=`cd $ac_aux_dir && pwd`
1447 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1448 # Use eval to expand $SHELL
1449 if eval "$MISSING --run true"; then
1450 am_missing_run="$MISSING --run "
1453 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1454 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1457 for ac_prog in gawk mawk nawk awk
1459 # Extract the first word of "$ac_prog", so it can be a program name with args.
1460 set dummy $ac_prog; ac_word=$2
1461 echo "$as_me:$LINENO: checking for $ac_word" >&5
1462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463 if test "${ac_cv_prog_AWK+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1466 if test -n "$AWK"; then
1467 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 test -z "$as_dir" && as_dir=.
1474 for ac_exec_ext in '' $ac_executable_extensions; do
1475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1476 ac_cv_prog_AWK="$ac_prog"
1477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486 if test -n "$AWK"; then
1487 echo "$as_me:$LINENO: result: $AWK" >&5
1488 echo "${ECHO_T}$AWK" >&6
1490 echo "$as_me:$LINENO: result: no" >&5
1491 echo "${ECHO_T}no" >&6
1494 test -n "$AWK" && break
1497 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1498 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1499 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1500 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 cat >conftest.make <<\_ACEOF
1505 @echo 'ac_maketemp="$(MAKE)"'
1507 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1508 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1509 if test -n "$ac_maketemp"; then
1510 eval ac_cv_prog_make_${ac_make}_set=yes
1512 eval ac_cv_prog_make_${ac_make}_set=no
1516 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1517 echo "$as_me:$LINENO: result: yes" >&5
1518 echo "${ECHO_T}yes" >&6
1521 echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1523 SET_MAKE="MAKE=${MAKE-make}"
1526 rm -rf .tst 2>/dev/null
1527 mkdir .tst 2>/dev/null
1528 if test -d .tst; then
1533 rmdir .tst 2>/dev/null
1535 # test to see if srcdir already configured
1536 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1537 test -f $srcdir/config.status; then
1538 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1539 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1540 { (exit 1); exit 1; }; }
1543 # test whether we have cygpath
1544 if test -z "$CYGPATH_W"; then
1545 if (cygpath --version) >/dev/null 2>/dev/null; then
1546 CYGPATH_W='cygpath -w'
1553 # Define the identity of the package.
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE "$PACKAGE"
1563 cat >>confdefs.h <<_ACEOF
1564 #define VERSION "$VERSION"
1567 # Some tools Automake needs.
1569 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1572 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1575 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1578 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1581 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1584 AMTAR=${AMTAR-"${am_missing_run}tar"}
1586 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1588 # Installed binaries are usually stripped using `strip' when the user
1589 # run `make install-strip'. However `strip' might not be the right
1590 # tool to use in cross-compilation environments, therefore Automake
1591 # will honor the `STRIP' environment variable to overrule this program.
1592 if test "$cross_compiling" != no; then
1593 if test -n "$ac_tool_prefix"; then
1594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1595 set dummy ${ac_tool_prefix}strip; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_STRIP+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 if test -n "$STRIP"; then
1602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 for ac_exec_ext in '' $ac_executable_extensions; do
1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 STRIP=$ac_cv_prog_STRIP
1621 if test -n "$STRIP"; then
1622 echo "$as_me:$LINENO: result: $STRIP" >&5
1623 echo "${ECHO_T}$STRIP" >&6
1625 echo "$as_me:$LINENO: result: no" >&5
1626 echo "${ECHO_T}no" >&6
1630 if test -z "$ac_cv_prog_STRIP"; then
1632 # Extract the first word of "strip", so it can be a program name with args.
1633 set dummy strip; ac_word=$2
1634 echo "$as_me:$LINENO: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 if test -n "$ac_ct_STRIP"; then
1640 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 ac_cv_prog_ac_ct_STRIP="strip"
1650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1659 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1660 if test -n "$ac_ct_STRIP"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1662 echo "${ECHO_T}$ac_ct_STRIP" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1670 STRIP="$ac_cv_prog_STRIP"
1674 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1676 # We need awk for the "check" target. The system "awk" is bad on
1681 ac_config_headers="$ac_config_headers config.h"
1685 ac_config_guess=config/config.guess
1686 ac_config_sub=config/config.sub
1688 # Checks for programs.
1690 ac_cpp='$CPP $CPPFLAGS'
1691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$ac_cv_prog_CC"; then
1733 # Extract the first word of "gcc", so it can be a program name with args.
1734 set dummy gcc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="gcc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1773 if test -z "$CC"; then
1774 if test -n "$ac_tool_prefix"; then
1775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1776 set dummy ${ac_tool_prefix}cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_CC="${ac_tool_prefix}cc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802 if test -n "$CC"; then
1803 echo "$as_me:$LINENO: result: $CC" >&5
1804 echo "${ECHO_T}$CC" >&6
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1811 if test -z "$ac_cv_prog_CC"; then
1813 # Extract the first word of "cc", so it can be a program name with args.
1814 set dummy cc; ac_word=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 if test -n "$ac_ct_CC"; then
1821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_ac_ct_CC="cc"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1840 if test -n "$ac_ct_CC"; then
1841 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1842 echo "${ECHO_T}$ac_ct_CC" >&6
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1854 if test -z "$CC"; then
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$CC"; then
1863 ac_cv_prog_CC="$CC" # Let the user override the test.
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1874 ac_prog_rejected=yes
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 if test $ac_prog_rejected = yes; then
1885 # We found a bogon in the path, so make sure we never use it.
1886 set dummy $ac_cv_prog_CC
1888 if test $# != 0; then
1889 # We chose a different compiler from the bogus one.
1890 # However, it has the same basename, so the bogon will be chosen
1891 # first if we set CC to just the basename; use the full file name.
1893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1908 if test -z "$CC"; then
1909 if test -n "$ac_tool_prefix"; then
1912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CC+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC="$CC" # Let the user override the test.
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 if test -n "$CC"; then
1940 echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1947 test -n "$CC" && break
1950 if test -z "$CC"; then
1954 # Extract the first word of "$ac_prog", so it can be a program name with args.
1955 set dummy $ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CC="$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$ac_ct_CC" && break
1998 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1999 See \`config.log' for more details." >&5
2000 echo "$as_me: error: no acceptable C compiler found in \$PATH
2001 See \`config.log' for more details." >&2;}
2002 { (exit 1); exit 1; }; }
2004 # Provide some information about the compiler.
2005 echo "$as_me:$LINENO:" \
2006 "checking for C compiler version" >&5
2007 ac_compiler=`set X $ac_compile; echo $2`
2008 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2009 (eval $ac_compiler --version </dev/null >&5) 2>&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2014 (eval $ac_compiler -v </dev/null >&5) 2>&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }
2018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2019 (eval $ac_compiler -V </dev/null >&5) 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }
2024 cat >conftest.$ac_ext <<_ACEOF
2025 #line $LINENO "configure"
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2040 ac_clean_files_save=$ac_clean_files
2041 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2042 # Try to create an executable without -o first, disregard a.out.
2043 # It will help us diagnose broken compilers, and finding out an intuition
2045 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2046 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2047 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2048 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2049 (eval $ac_link_default) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; then
2053 # Find the output, starting from the most likely. This scheme is
2054 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2057 # Be careful to initialize this variable, since it used to be cached.
2058 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2060 # b.out is created by i960 compilers.
2061 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2063 test -f "$ac_file" || continue
2065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2068 # This is the source file.
2071 # We found the default executable, but exeext='' is most
2075 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2076 # FIXME: I believe we export ac_cv_exeext for Libtool,
2077 # but it would be cool to find out if it's true. Does anybody
2078 # maintain Libtool? --akim.
2086 echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2089 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: C compiler cannot create executables
2092 See \`config.log' for more details." >&2;}
2093 { (exit 77); exit 77; }; }
2096 ac_exeext=$ac_cv_exeext
2097 echo "$as_me:$LINENO: result: $ac_file" >&5
2098 echo "${ECHO_T}$ac_file" >&6
2100 # Check the compiler produces executables we can run. If not, either
2101 # the compiler is broken, or we cross compile.
2102 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2103 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2104 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2105 # If not cross compiling, check that we can run a simple program.
2106 if test "$cross_compiling" != yes; then
2107 if { ac_try='./$ac_file'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; }; then
2115 if test "$cross_compiling" = maybe; then
2118 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2119 If you meant to cross compile, use \`--host'.
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: cannot run C compiled programs.
2122 If you meant to cross compile, use \`--host'.
2123 See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2128 echo "$as_me:$LINENO: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6
2131 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2132 ac_clean_files=$ac_clean_files_save
2133 # Check the compiler produces executables we can run. If not, either
2134 # the compiler is broken, or we cross compile.
2135 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2136 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2137 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2138 echo "${ECHO_T}$cross_compiling" >&6
2140 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2141 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2143 (eval $ac_link) 2>&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; then
2147 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2148 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2149 # work properly (i.e., refer to `conftest.exe'), while it won't with
2151 for ac_file in conftest.exe conftest conftest.*; do
2152 test -f "$ac_file" || continue
2154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2155 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2162 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2165 See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2169 rm -f conftest$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2171 echo "${ECHO_T}$ac_cv_exeext" >&6
2173 rm -f conftest.$ac_ext
2174 EXEEXT=$ac_cv_exeext
2176 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2177 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2178 if test "${ac_cv_objext+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 cat >conftest.$ac_ext <<_ACEOF
2182 #line $LINENO "configure"
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h. */
2197 rm -f conftest.o conftest.obj
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; then
2203 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2206 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2211 echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2221 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2224 echo "${ECHO_T}$ac_cv_objext" >&6
2225 OBJEXT=$ac_cv_objext
2227 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2228 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2229 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #line $LINENO "configure"
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2274 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2275 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2276 GCC=`test $ac_compiler_gnu = yes && echo yes`
2277 ac_test_CFLAGS=${CFLAGS+set}
2278 ac_save_CFLAGS=$CFLAGS
2280 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2281 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2282 if test "${ac_cv_prog_cc_g+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2320 rm -f conftest.$ac_objext conftest.$ac_ext
2322 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2323 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2324 if test "$ac_test_CFLAGS" = set; then
2325 CFLAGS=$ac_save_CFLAGS
2326 elif test $ac_cv_prog_cc_g = yes; then
2327 if test "$GCC" = yes; then
2333 if test "$GCC" = yes; then
2339 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2340 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2341 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 ac_cv_prog_cc_stdc=no
2346 cat >conftest.$ac_ext <<_ACEOF
2347 #line $LINENO "configure"
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2355 #include <sys/types.h>
2356 #include <sys/stat.h>
2357 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2358 struct buf { int x; };
2359 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2360 static char *e (p, i)
2366 static char *f (char * (*g) (char **, int), char **p, ...)
2371 s = g (p, va_arg (v,int));
2375 int test (int i, double x);
2376 struct s1 {int (*f) (int a);};
2377 struct s2 {int (*f) (double a);};
2378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2384 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2389 # Don't try gcc -ansi; that turns off useful extensions and
2390 # breaks some systems' header files.
2391 # AIX -qlanglvl=ansi
2392 # Ultrix and OSF/1 -std1
2393 # HP-UX 10.20 and later -Ae
2394 # HP-UX older versions -Aa -D_HPUX_SOURCE
2395 # SVR4 -Xc -D__EXTENSIONS__
2396 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2398 CC="$ac_save_CC $ac_arg"
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_prog_cc_stdc=$ac_arg
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f conftest.$ac_objext
2420 rm -f conftest.$ac_ext conftest.$ac_objext
2425 case "x$ac_cv_prog_cc_stdc" in
2427 echo "$as_me:$LINENO: result: none needed" >&5
2428 echo "${ECHO_T}none needed" >&6 ;;
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2432 CC="$CC $ac_cv_prog_cc_stdc" ;;
2435 # Some people use a C++ compiler to compile C. Since we use `exit',
2436 # in C++ we need to declare it. In case someone uses the same compiler
2437 # for both compiling C and C++ we need to have the C++ compiler decide
2438 # the declaration of exit, since it's the most demanding environment.
2439 cat >conftest.$ac_ext <<_ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 for ac_declaration in \
2458 '#include <stdlib.h>' \
2459 'extern "C" void std::exit (int) throw (); using std::exit;' \
2460 'extern "C" void std::exit (int); using std::exit;' \
2461 'extern "C" void exit (int) throw ();' \
2462 'extern "C" void exit (int);' \
2465 cat >conftest.$ac_ext <<_ACEOF
2466 #line $LINENO "configure"
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2482 rm -f conftest.$ac_objext
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); } &&
2488 { ac_try='test -s conftest.$ac_objext'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2501 rm -f conftest.$ac_objext conftest.$ac_ext
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -s conftest.$ac_objext'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2539 if test -n "$ac_declaration"; then
2540 echo '#ifdef __cplusplus' >>confdefs.h
2541 echo $ac_declaration >>confdefs.h
2542 echo '#endif' >>confdefs.h
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2550 rm -f conftest.$ac_objext conftest.$ac_ext
2552 ac_cpp='$CPP $CPPFLAGS'
2553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556 DEPDIR="${am__leading_dot}deps"
2558 ac_config_commands="$ac_config_commands depfiles"
2561 am_make=${MAKE-make}
2562 cat > confinc << 'END'
2567 # If we don't find an include directive, just comment out the code.
2568 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2569 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2573 # First try GNU make style include.
2574 echo "include confinc" > confmf
2575 # We grep out `Entering directory' and `Leaving directory'
2576 # messages which can occur if `w' ends up in MAKEFLAGS.
2577 # In particular we don't look at `^make:' because GNU make might
2578 # be invoked under some other name (usually "gmake"), in which
2579 # case it prints its new name instead of `make'.
2580 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2585 # Now try BSD make style include.
2586 if test "$am__include" = "#"; then
2587 echo '.include "confinc"' > confmf
2588 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2589 am__include=.include
2596 echo "$as_me:$LINENO: result: $_am_result" >&5
2597 echo "${ECHO_T}$_am_result" >&6
2598 rm -f confinc confmf
2600 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2601 if test "${enable_dependency_tracking+set}" = set; then
2602 enableval="$enable_dependency_tracking"
2605 if test "x$enable_dependency_tracking" != xno; then
2606 am_depcomp="$ac_aux_dir/depcomp"
2611 if test "x$enable_dependency_tracking" != xno; then
2622 depcc="$CC" am_compiler_list=
2624 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2625 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2626 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2630 # We make a subdir and do the tests there. Otherwise we can end up
2631 # making bogus files that we don't know about and never remove. For
2632 # instance it was reported that on HP-UX the gcc test will end up
2633 # making a dummy file named `D' -- because `-MD' means `put the output
2636 # Copy depcomp to subdir because otherwise we won't find it if we're
2637 # using a relative directory.
2638 cp "$am_depcomp" conftest.dir
2640 # We will build objects and dependencies in a subdirectory because
2641 # it helps to detect inapplicable dependency modes. For instance
2642 # both Tru64's cc and ICC support -MD to output dependencies as a
2643 # side effect of compilation, but ICC will put the dependencies in
2644 # the current directory while Tru64 will put them in the object
2648 am_cv_CC_dependencies_compiler_type=none
2649 if test "$am_compiler_list" = ""; then
2650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2652 for depmode in $am_compiler_list; do
2653 # Setup a source with many dependencies, because some compilers
2654 # like to wrap large dependency lists on column 80 (with \), and
2655 # we should not choose a depcomp mode which is confused by this.
2657 # We need to recreate these files for each test, as the compiler may
2658 # overwrite some of them when testing with obscure command lines.
2659 # This happens at least with the AIX C compiler.
2661 for i in 1 2 3 4 5 6; do
2662 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2665 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2669 # after this tag, mechanisms are not by side-effect, so they'll
2670 # only be used when explicitly requested
2671 if test "x$enable_dependency_tracking" = xyes; then
2679 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2680 # mode. It turns out that the SunPro C++ compiler does not properly
2681 # handle `-M -o', and we need to detect this.
2682 if depmode=$depmode \
2683 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2684 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2685 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2686 >/dev/null 2>conftest.err &&
2687 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2688 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2689 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2690 # icc doesn't choke on unknown options, it will just issue warnings
2691 # (even with -Werror). So we grep stderr for any message
2692 # that says an option was ignored.
2693 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2694 am_cv_CC_dependencies_compiler_type=$depmode
2703 am_cv_CC_dependencies_compiler_type=none
2707 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2708 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2709 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2714 test "x$enable_dependency_tracking" != xno \
2715 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2717 am__fastdepCC_FALSE='#'
2719 am__fastdepCC_TRUE='#'
2720 am__fastdepCC_FALSE=
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2727 echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729 if test "${ac_cv_prog_RANLIB+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 if test -n "$RANLIB"; then
2733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 RANLIB=$ac_cv_prog_RANLIB
2752 if test -n "$RANLIB"; then
2753 echo "$as_me:$LINENO: result: $RANLIB" >&5
2754 echo "${ECHO_T}$RANLIB" >&6
2756 echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2761 if test -z "$ac_cv_prog_RANLIB"; then
2762 ac_ct_RANLIB=$RANLIB
2763 # Extract the first word of "ranlib", so it can be a program name with args.
2764 set dummy ranlib; ac_word=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 if test -n "$ac_ct_RANLIB"; then
2771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_ac_ct_RANLIB="ranlib"
2781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2791 if test -n "$ac_ct_RANLIB"; then
2792 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2793 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2795 echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6
2799 RANLIB=$ac_ct_RANLIB
2801 RANLIB="$ac_cv_prog_RANLIB"
2805 # Checks for header files.
2808 ac_cpp='$CPP $CPPFLAGS'
2809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2813 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2814 # On Suns, sometimes $CPP names a directory.
2815 if test -n "$CPP" && test -d "$CPP"; then
2818 if test -z "$CPP"; then
2819 if test "${ac_cv_prog_CPP+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 # Double quotes because CPP needs to be expanded
2823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2826 for ac_c_preproc_warn_flag in '' yes
2828 # Use a header file that comes with gcc, so configuring glibc
2829 # with a fresh cross-compiler works.
2830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2831 # <limits.h> exists even on freestanding compilers.
2832 # On the NeXT, cc -E runs the code through the compiler's parser,
2833 # not just through cpp. "Syntax error" is here to catch this case.
2834 cat >conftest.$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2842 # include <limits.h>
2844 # include <assert.h>
2848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1 >conftest.err
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } >/dev/null; then
2856 if test -s conftest.err; then
2857 ac_cpp_err=$ac_c_preproc_warn_flag
2864 if test -z "$ac_cpp_err"; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 # Broken: fails on valid input.
2873 rm -f conftest.err conftest.$ac_ext
2875 # OK, works on sane cases. Now check whether non-existent headers
2876 # can be detected and how.
2877 cat >conftest.$ac_ext <<_ACEOF
2878 #line $LINENO "configure"
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #include <ac_nonexistent.h>
2886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2889 grep -v '^ *+' conftest.er1 >conftest.err
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } >/dev/null; then
2894 if test -s conftest.err; then
2895 ac_cpp_err=$ac_c_preproc_warn_flag
2902 if test -z "$ac_cpp_err"; then
2903 # Broken: success on invalid input.
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 # Passes both tests.
2913 rm -f conftest.err conftest.$ac_ext
2916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2917 rm -f conftest.err conftest.$ac_ext
2918 if $ac_preproc_ok; then
2930 echo "$as_me:$LINENO: result: $CPP" >&5
2931 echo "${ECHO_T}$CPP" >&6
2933 for ac_c_preproc_warn_flag in '' yes
2935 # Use a header file that comes with gcc, so configuring glibc
2936 # with a fresh cross-compiler works.
2937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938 # <limits.h> exists even on freestanding compilers.
2939 # On the NeXT, cc -E runs the code through the compiler's parser,
2940 # not just through cpp. "Syntax error" is here to catch this case.
2941 cat >conftest.$ac_ext <<_ACEOF
2942 #line $LINENO "configure"
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2949 # include <limits.h>
2951 # include <assert.h>
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null; then
2963 if test -s conftest.err; then
2964 ac_cpp_err=$ac_c_preproc_warn_flag
2971 if test -z "$ac_cpp_err"; then
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2977 # Broken: fails on valid input.
2980 rm -f conftest.err conftest.$ac_ext
2982 # OK, works on sane cases. Now check whether non-existent headers
2983 # can be detected and how.
2984 cat >conftest.$ac_ext <<_ACEOF
2985 #line $LINENO "configure"
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <ac_nonexistent.h>
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null; then
3001 if test -s conftest.err; then
3002 ac_cpp_err=$ac_c_preproc_warn_flag
3009 if test -z "$ac_cpp_err"; then
3010 # Broken: success on invalid input.
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 # Passes both tests.
3020 rm -f conftest.err conftest.$ac_ext
3023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024 rm -f conftest.err conftest.$ac_ext
3025 if $ac_preproc_ok; then
3028 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042 echo "$as_me:$LINENO: checking for egrep" >&5
3043 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3044 if test "${ac_cv_prog_egrep+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3048 then ac_cv_prog_egrep='grep -E'
3049 else ac_cv_prog_egrep='egrep'
3052 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3053 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3054 EGREP=$ac_cv_prog_egrep
3057 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3059 if test "${ac_cv_header_stdc+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 cat >conftest.$ac_ext <<_ACEOF
3063 #line $LINENO "configure"
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3082 rm -f conftest.$ac_objext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084 (eval $ac_compile) 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -s conftest.$ac_objext'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 ac_cv_header_stdc=yes
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 ac_cv_header_stdc=no
3101 rm -f conftest.$ac_objext conftest.$ac_ext
3103 if test $ac_cv_header_stdc = yes; then
3104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3105 cat >conftest.$ac_ext <<_ACEOF
3106 #line $LINENO "configure"
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3116 $EGREP "memchr" >/dev/null 2>&1; then
3119 ac_cv_header_stdc=no
3125 if test $ac_cv_header_stdc = yes; then
3126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3127 cat >conftest.$ac_ext <<_ACEOF
3128 #line $LINENO "configure"
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3138 $EGREP "free" >/dev/null 2>&1; then
3141 ac_cv_header_stdc=no
3147 if test $ac_cv_header_stdc = yes; then
3148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3149 if test "$cross_compiling" = yes; then
3152 cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3160 #if ((' ' & 0x0FF) == 0x020)
3161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3164 # define ISLOWER(c) \
3165 (('a' <= (c) && (c) <= 'i') \
3166 || ('j' <= (c) && (c) <= 'r') \
3167 || ('s' <= (c) && (c) <= 'z'))
3168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3176 for (i = 0; i < 256; i++)
3177 if (XOR (islower (i), ISLOWER (i))
3178 || toupper (i) != TOUPPER (i))
3183 rm -f conftest$ac_exeext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3196 echo "$as_me: program exited with status $ac_status" >&5
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3201 ac_cv_header_stdc=no
3203 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3207 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3209 if test $ac_cv_header_stdc = yes; then
3211 cat >>confdefs.h <<\_ACEOF
3212 #define STDC_HEADERS 1
3217 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3218 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3219 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #line $LINENO "configure"
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229 #include <sys/types.h>
3230 #include <sys/wait.h>
3232 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3235 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3243 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_header_sys_wait_h=yes
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 ac_cv_header_sys_wait_h=no
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3269 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3270 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3271 if test $ac_cv_header_sys_wait_h = yes; then
3273 cat >>confdefs.h <<\_ACEOF
3274 #define HAVE_SYS_WAIT_H 1
3279 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3290 inttypes.h stdint.h unistd.h
3292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3293 echo "$as_me:$LINENO: checking for $ac_header" >&5
3294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3299 #line $LINENO "configure"
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305 $ac_includes_default
3307 #include <$ac_header>
3309 rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311 (eval $ac_compile) 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try='test -s conftest.$ac_objext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 eval "$as_ac_Header=yes"
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 eval "$as_ac_Header=no"
3328 rm -f conftest.$ac_objext conftest.$ac_ext
3330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3333 cat >>confdefs.h <<_ACEOF
3334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3352 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
3354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3356 echo "$as_me:$LINENO: checking for $ac_header" >&5
3357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3364 # Is the header compilable?
3365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3367 cat >conftest.$ac_ext <<_ACEOF
3368 #line $LINENO "configure"
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 $ac_includes_default
3375 #include <$ac_header>
3377 rm -f conftest.$ac_objext
3378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_header_compiler=yes
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 ac_header_compiler=no
3396 rm -f conftest.$ac_objext conftest.$ac_ext
3397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3398 echo "${ECHO_T}$ac_header_compiler" >&6
3400 # Is the header present?
3401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3403 cat >conftest.$ac_ext <<_ACEOF
3404 #line $LINENO "configure"
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 #include <$ac_header>
3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3415 grep -v '^ *+' conftest.er1 >conftest.err
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev/null; then
3420 if test -s conftest.err; then
3421 ac_cpp_err=$ac_c_preproc_warn_flag
3428 if test -z "$ac_cpp_err"; then
3429 ac_header_preproc=yes
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 ac_header_preproc=no
3436 rm -f conftest.err conftest.$ac_ext
3437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3438 echo "${ECHO_T}$ac_header_preproc" >&6
3440 # So? What about this header?
3441 case $ac_header_compiler:$ac_header_preproc in
3443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3449 ## ------------------------------------ ##
3450 ## Report this to bug-autoconf@gnu.org. ##
3451 ## ------------------------------------ ##
3454 sed "s/^/$as_me: WARNING: /" >&2
3457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3465 ## ------------------------------------ ##
3466 ## Report this to bug-autoconf@gnu.org. ##
3467 ## ------------------------------------ ##
3470 sed "s/^/$as_me: WARNING: /" >&2
3473 echo "$as_me:$LINENO: checking for $ac_header" >&5
3474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 eval "$as_ac_Header=$ac_header_preproc"
3480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3485 cat >>confdefs.h <<_ACEOF
3486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3494 # Checks for typedefs, structures, and compiler characteristics.
3495 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3496 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3497 if test "${ac_cv_c_const+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3501 #line $LINENO "configure"
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3511 /* FIXME: Include the comments suggested by Paul. */
3513 /* Ultrix mips cc rejects this. */
3514 typedef int charset[2];
3516 /* SunOS 4.1.1 cc rejects this. */
3517 char const *const *ccp;
3519 /* NEC SVR4.0.2 mips cc rejects this. */
3520 struct point {int x, y;};
3521 static struct point const zero = {0,0};
3522 /* AIX XL C 1.02.0.0 rejects this.
3523 It does not let you subtract one const X* pointer from another in
3524 an arm of an if-expression whose if-part is not a constant
3526 const char *g = "string";
3527 ccp = &g + (g ? g-g : 0);
3528 /* HPUX 7.0 cc rejects these. */
3531 ccp = (char const *const *) p;
3532 { /* SCO 3.2v4 cc rejects this. */
3534 char const *s = 0 ? (char *) 0 : (char const *) 0;
3538 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3540 const int *foo = &x[0];
3543 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3544 typedef const int *iptr;
3548 { /* AIX XL C 1.02.0.0 rejects this saying
3549 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3550 struct s { int j; const int *ap[3]; };
3551 struct s *b; b->j = 5;
3553 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -s conftest.$ac_objext'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3581 rm -f conftest.$ac_objext conftest.$ac_ext
3583 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3584 echo "${ECHO_T}$ac_cv_c_const" >&6
3585 if test $ac_cv_c_const = no; then
3587 cat >>confdefs.h <<\_ACEOF
3593 echo "$as_me:$LINENO: checking for pid_t" >&5
3594 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3595 if test "${ac_cv_type_pid_t+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 cat >conftest.$ac_ext <<_ACEOF
3599 #line $LINENO "configure"
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 $ac_includes_default
3617 rm -f conftest.$ac_objext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3629 ac_cv_type_pid_t=yes
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3636 rm -f conftest.$ac_objext conftest.$ac_ext
3638 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3639 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3640 if test $ac_cv_type_pid_t = yes; then
3644 cat >>confdefs.h <<_ACEOF
3650 echo "$as_me:$LINENO: checking for size_t" >&5
3651 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3652 if test "${ac_cv_type_size_t+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 cat >conftest.$ac_ext <<_ACEOF
3656 #line $LINENO "configure"
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 $ac_includes_default
3668 if (sizeof (size_t))
3674 rm -f conftest.$ac_objext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -s conftest.$ac_objext'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 ac_cv_type_size_t=yes
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 ac_cv_type_size_t=no
3693 rm -f conftest.$ac_objext conftest.$ac_ext
3695 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3696 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3697 if test $ac_cv_type_size_t = yes; then
3701 cat >>confdefs.h <<_ACEOF
3702 #define size_t unsigned
3707 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
3708 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
3709 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 cat >conftest.$ac_ext <<_ACEOF
3713 #line $LINENO "configure"
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3720 #include <sys/types.h>
3721 #include <sys/socket.h>
3727 static struct sockaddr ac_aggr;
3734 rm -f conftest.$ac_objext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736 (eval $ac_compile) 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try='test -s conftest.$ac_objext'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3746 ac_cv_member_struct_sockaddr_sa_len=yes
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 cat >conftest.$ac_ext <<_ACEOF
3752 #line $LINENO "configure"
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3759 #include <sys/types.h>
3760 #include <sys/socket.h>
3766 static struct sockaddr ac_aggr;
3767 if (sizeof ac_aggr.sa_len)
3773 rm -f conftest.$ac_objext
3774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3775 (eval $ac_compile) 2>&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try='test -s conftest.$ac_objext'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3785 ac_cv_member_struct_sockaddr_sa_len=yes
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 ac_cv_member_struct_sockaddr_sa_len=no
3792 rm -f conftest.$ac_objext conftest.$ac_ext
3794 rm -f conftest.$ac_objext conftest.$ac_ext
3796 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
3797 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
3798 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
3800 cat >>confdefs.h <<\_ACEOF
3801 #define HAVE_SA_LEN 1
3807 # Checks for library functions.
3808 echo "$as_me:$LINENO: checking for working memcmp" >&5
3809 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3810 if test "${ac_cv_func_memcmp_working+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 if test "$cross_compiling" = yes; then
3814 ac_cv_func_memcmp_working=no
3816 cat >conftest.$ac_ext <<_ACEOF
3817 #line $LINENO "configure"
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3828 /* Some versions of memcmp are not 8-bit clean. */
3829 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3830 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3833 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3834 or more and with at least one buffer not starting on a 4-byte boundary.
3835 William Lewis provided this test program. */
3840 for (i = 0; i < 4; i++)
3844 strcpy (a, "--------01111111");
3845 strcpy (b, "--------10000000");
3846 if (memcmp (a, b, 16) >= 0)
3856 rm -f conftest$ac_exeext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3858 (eval $ac_link) 2>&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_func_memcmp_working=yes
3869 echo "$as_me: program exited with status $ac_status" >&5
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3874 ac_cv_func_memcmp_working=no
3876 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3879 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
3880 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3881 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
3883 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3884 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3885 if test "${ac_cv_type_signal+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line $LINENO "configure"
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895 #include <sys/types.h>
3901 extern "C" void (*signal (int, void (*)(int)))(int);
3903 void (*signal ()) ();
3914 rm -f conftest.$ac_objext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916 (eval $ac_compile) 2>&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_cv_type_signal=void
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 ac_cv_type_signal=int
3933 rm -f conftest.$ac_objext conftest.$ac_ext
3935 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3936 echo "${ECHO_T}$ac_cv_type_signal" >&6
3938 cat >>confdefs.h <<_ACEOF
3939 #define RETSIGTYPE $ac_cv_type_signal
3951 for ac_func in alarm inet_ntoa socket strtol sysinfo fork malloc free
3953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3954 echo "$as_me:$LINENO: checking for $ac_func" >&5
3955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3956 if eval "test \"\${$as_ac_var+set}\" = set"; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 cat >conftest.$ac_ext <<_ACEOF
3960 #line $LINENO "configure"
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966 /* System header to define __stub macros and hopefully few prototypes,
3967 which can conflict with char $ac_func (); below.
3968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969 <limits.h> exists even on freestanding compilers. */
3971 # include <limits.h>
3973 # include <assert.h>
3975 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3983 /* The GNU C library defines this for functions which it implements
3984 to always fail with ENOSYS. Some functions are actually named
3985 something starting with __ and the normal name is an alias. */
3986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3989 char (*f) () = $ac_func;
3998 return f != $ac_func;
4003 rm -f conftest.$ac_objext conftest$ac_exeext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4005 (eval $ac_link) 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try='test -s conftest$ac_exeext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 eval "$as_ac_var=yes"
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 eval "$as_ac_var=no"
4022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4026 if test `eval echo '${'$as_ac_var'}'` = yes; then
4027 cat >>confdefs.h <<_ACEOF
4028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4035 ALL_LINGUAS="uk fr pl ro nl tr rw vi"
4039 if test -n "$ac_aux_dir"; then
4040 case "$ac_aux_dir" in
4041 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4042 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4045 if test -z "$MKINSTALLDIRS"; then
4046 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4051 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4052 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4053 # Check whether --enable-nls or --disable-nls was given.
4054 if test "${enable_nls+set}" = set; then
4055 enableval="$enable_nls"
4060 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4061 echo "${ECHO_T}$USE_NLS" >&6
4068 # Prepare PATH_SEPARATOR.
4069 # The user is always right.
4070 if test "${PATH_SEPARATOR+set}" != set; then
4071 echo "#! /bin/sh" >conf$$.sh
4072 echo "exit 0" >>conf$$.sh
4074 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4082 # Find out how to test for executable files. Don't use a zero-byte file,
4083 # as systems may use methods other than mode bits to determine executability.
4084 cat >conf$$.file <<_ASEOF
4088 chmod +x conf$$.file
4089 if test -x conf$$.file >/dev/null 2>&1; then
4090 ac_executable_p="test -x"
4092 ac_executable_p="test -f"
4096 # Extract the first word of "msgfmt", so it can be a program name with args.
4097 set dummy msgfmt; ac_word=$2
4098 echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4100 if test "${ac_cv_path_MSGFMT+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4108 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4109 for ac_dir in $PATH; do
4111 test -z "$ac_dir" && ac_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4114 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4115 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4116 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4123 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4127 MSGFMT="$ac_cv_path_MSGFMT"
4128 if test "$MSGFMT" != ":"; then
4129 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4130 echo "${ECHO_T}$MSGFMT" >&6
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4136 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4137 set dummy gmsgfmt; ac_word=$2
4138 echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4166 GMSGFMT=$ac_cv_path_GMSGFMT
4168 if test -n "$GMSGFMT"; then
4169 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4170 echo "${ECHO_T}$GMSGFMT" >&6
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4178 # Prepare PATH_SEPARATOR.
4179 # The user is always right.
4180 if test "${PATH_SEPARATOR+set}" != set; then
4181 echo "#! /bin/sh" >conf$$.sh
4182 echo "exit 0" >>conf$$.sh
4184 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4192 # Find out how to test for executable files. Don't use a zero-byte file,
4193 # as systems may use methods other than mode bits to determine executability.
4194 cat >conf$$.file <<_ASEOF
4198 chmod +x conf$$.file
4199 if test -x conf$$.file >/dev/null 2>&1; then
4200 ac_executable_p="test -x"
4202 ac_executable_p="test -f"
4206 # Extract the first word of "xgettext", so it can be a program name with args.
4207 set dummy xgettext; ac_word=$2
4208 echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4210 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4218 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4219 for ac_dir in $PATH; do
4221 test -z "$ac_dir" && ac_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4224 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4225 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4226 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4233 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4237 XGETTEXT="$ac_cv_path_XGETTEXT"
4238 if test "$XGETTEXT" != ":"; then
4239 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4240 echo "${ECHO_T}$XGETTEXT" >&6
4242 echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6
4249 # Prepare PATH_SEPARATOR.
4250 # The user is always right.
4251 if test "${PATH_SEPARATOR+set}" != set; then
4252 echo "#! /bin/sh" >conf$$.sh
4253 echo "exit 0" >>conf$$.sh
4255 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4263 # Find out how to test for executable files. Don't use a zero-byte file,
4264 # as systems may use methods other than mode bits to determine executability.
4265 cat >conf$$.file <<_ASEOF
4269 chmod +x conf$$.file
4270 if test -x conf$$.file >/dev/null 2>&1; then
4271 ac_executable_p="test -x"
4273 ac_executable_p="test -f"
4277 # Extract the first word of "msgmerge", so it can be a program name with args.
4278 set dummy msgmerge; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4289 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4290 for ac_dir in $PATH; do
4292 test -z "$ac_dir" && ac_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4295 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4296 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4303 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4307 MSGMERGE="$ac_cv_path_MSGMERGE"
4308 if test "$MSGMERGE" != ":"; then
4309 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4310 echo "${ECHO_T}$MSGMERGE" >&6
4312 echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4317 if test "$GMSGFMT" != ":"; then
4318 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4319 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4322 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4323 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4324 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4329 if test "$XGETTEXT" != ":"; then
4330 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4331 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4334 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4335 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4341 ac_config_commands="$ac_config_commands default-1"
4344 # Make sure we can run config.sub.
4345 $ac_config_sub sun4 >/dev/null 2>&1 ||
4346 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4348 { (exit 1); exit 1; }; }
4350 echo "$as_me:$LINENO: checking build system type" >&5
4351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4352 if test "${ac_cv_build+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 ac_cv_build_alias=$build_alias
4356 test -z "$ac_cv_build_alias" &&
4357 ac_cv_build_alias=`$ac_config_guess`
4358 test -z "$ac_cv_build_alias" &&
4359 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4361 { (exit 1); exit 1; }; }
4362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4365 { (exit 1); exit 1; }; }
4368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4369 echo "${ECHO_T}$ac_cv_build" >&6
4371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4376 echo "$as_me:$LINENO: checking host system type" >&5
4377 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4378 if test "${ac_cv_host+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 ac_cv_host_alias=$host_alias
4382 test -z "$ac_cv_host_alias" &&
4383 ac_cv_host_alias=$ac_cv_build_alias
4384 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4385 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4386 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4387 { (exit 1); exit 1; }; }
4390 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4391 echo "${ECHO_T}$ac_cv_host" >&6
4393 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4394 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4395 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4399 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4400 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4401 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 ac_check_lib_save_LIBS=$LIBS
4405 LIBS="-lcposix $LIBS"
4406 cat >conftest.$ac_ext <<_ACEOF
4407 #line $LINENO "configure"
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4414 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4429 rm -f conftest.$ac_objext conftest$ac_exeext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4431 (eval $ac_link) 2>&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -s conftest$ac_exeext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_cv_lib_cposix_strerror=yes
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_cv_lib_cposix_strerror=no
4448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4449 LIBS=$ac_check_lib_save_LIBS
4451 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4452 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4453 if test $ac_cv_lib_cposix_strerror = yes; then
4454 LIBS="$LIBS -lcposix"
4459 echo "$as_me:$LINENO: checking for inline" >&5
4460 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4461 if test "${ac_cv_c_inline+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 for ac_kw in inline __inline__ __inline; do
4466 cat >conftest.$ac_ext <<_ACEOF
4467 #line $LINENO "configure"
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4475 static $ac_kw foo_t static_foo () {return 0; }
4476 $ac_kw foo_t foo () {return 0; }
4480 rm -f conftest.$ac_objext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -s conftest.$ac_objext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 ac_cv_c_inline=$ac_kw; break
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4498 rm -f conftest.$ac_objext conftest.$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4503 echo "${ECHO_T}$ac_cv_c_inline" >&6
4504 case $ac_cv_c_inline in
4507 cat >>confdefs.h <<\_ACEOF
4511 *) cat >>confdefs.h <<_ACEOF
4512 #define inline $ac_cv_c_inline
4517 echo "$as_me:$LINENO: checking for off_t" >&5
4518 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4519 if test "${ac_cv_type_off_t+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 cat >conftest.$ac_ext <<_ACEOF
4523 #line $LINENO "configure"
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 $ac_includes_default
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_cv_type_off_t=yes
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4560 rm -f conftest.$ac_objext conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4563 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4564 if test $ac_cv_type_off_t = yes; then
4568 cat >>confdefs.h <<_ACEOF
4574 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4575 # for constant arguments. Useless!
4576 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4577 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4578 if test "${ac_cv_working_alloca_h+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 cat >conftest.$ac_ext <<_ACEOF
4582 #line $LINENO "configure"
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4592 char *p = (char *) alloca (2 * sizeof (int));
4597 rm -f conftest.$ac_objext conftest$ac_exeext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599 (eval $ac_link) 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try='test -s conftest$ac_exeext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 ac_cv_working_alloca_h=yes
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 ac_cv_working_alloca_h=no
4616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4618 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4619 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4620 if test $ac_cv_working_alloca_h = yes; then
4622 cat >>confdefs.h <<\_ACEOF
4623 #define HAVE_ALLOCA_H 1
4628 echo "$as_me:$LINENO: checking for alloca" >&5
4629 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4630 if test "${ac_cv_func_alloca_works+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 cat >conftest.$ac_ext <<_ACEOF
4634 #line $LINENO "configure"
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4641 # define alloca __builtin_alloca
4644 # include <malloc.h>
4645 # define alloca _alloca
4648 # include <alloca.h>
4653 # ifndef alloca /* predefined by HP cc +Olibcalls */
4664 char *p = (char *) alloca (1);
4669 rm -f conftest.$ac_objext conftest$ac_exeext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4671 (eval $ac_link) 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -s conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_cv_func_alloca_works=yes
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4686 ac_cv_func_alloca_works=no
4688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4690 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4691 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4693 if test $ac_cv_func_alloca_works = yes; then
4695 cat >>confdefs.h <<\_ACEOF
4696 #define HAVE_ALLOCA 1
4700 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4701 # that cause trouble. Some versions do not even contain alloca or
4702 # contain a buggy version. If you still want to use their alloca,
4703 # use ar to extract alloca.o from them instead of compiling alloca.c.
4705 ALLOCA=alloca.$ac_objext
4707 cat >>confdefs.h <<\_ACEOF
4712 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4713 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4714 if test "${ac_cv_os_cray+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line $LINENO "configure"
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 #if defined(CRAY) && ! defined(CRAY2)
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732 $EGREP "webecray" >/dev/null 2>&1; then
4740 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4741 echo "${ECHO_T}$ac_cv_os_cray" >&6
4742 if test $ac_cv_os_cray = yes; then
4743 for ac_func in _getb67 GETB67 getb67; do
4744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4745 echo "$as_me:$LINENO: checking for $ac_func" >&5
4746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4747 if eval "test \"\${$as_ac_var+set}\" = set"; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 cat >conftest.$ac_ext <<_ACEOF
4751 #line $LINENO "configure"
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 /* System header to define __stub macros and hopefully few prototypes,
4758 which can conflict with char $ac_func (); below.
4759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4760 <limits.h> exists even on freestanding compilers. */
4762 # include <limits.h>
4764 # include <assert.h>
4766 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4774 /* The GNU C library defines this for functions which it implements
4775 to always fail with ENOSYS. Some functions are actually named
4776 something starting with __ and the normal name is an alias. */
4777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4780 char (*f) () = $ac_func;
4789 return f != $ac_func;
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -s conftest$ac_exeext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 eval "$as_ac_var=yes"
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4811 eval "$as_ac_var=no"
4813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4817 if test `eval echo '${'$as_ac_var'}'` = yes; then
4819 cat >>confdefs.h <<_ACEOF
4820 #define CRAY_STACKSEG_END $ac_func
4829 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4830 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4831 if test "${ac_cv_c_stack_direction+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 if test "$cross_compiling" = yes; then
4835 ac_cv_c_stack_direction=0
4837 cat >conftest.$ac_ext <<_ACEOF
4838 #line $LINENO "configure"
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4845 find_stack_direction ()
4847 static char *addr = 0;
4852 return find_stack_direction ();
4855 return (&dummy > addr) ? 1 : -1;
4861 exit (find_stack_direction () < 0);
4864 rm -f conftest$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_c_stack_direction=1
4877 echo "$as_me: program exited with status $ac_status" >&5
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4882 ac_cv_c_stack_direction=-1
4884 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4887 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4888 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4890 cat >>confdefs.h <<_ACEOF
4891 #define STACK_DIRECTION $ac_cv_c_stack_direction
4899 for ac_header in stdlib.h unistd.h
4901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903 echo "$as_me:$LINENO: checking for $ac_header" >&5
4904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4911 # Is the header compilable?
4912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4914 cat >conftest.$ac_ext <<_ACEOF
4915 #line $LINENO "configure"
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 $ac_includes_default
4922 #include <$ac_header>
4924 rm -f conftest.$ac_objext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4926 (eval $ac_compile) 2>&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } &&
4930 { ac_try='test -s conftest.$ac_objext'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4936 ac_header_compiler=yes
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4941 ac_header_compiler=no
4943 rm -f conftest.$ac_objext conftest.$ac_ext
4944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4945 echo "${ECHO_T}$ac_header_compiler" >&6
4947 # Is the header present?
4948 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4950 cat >conftest.$ac_ext <<_ACEOF
4951 #line $LINENO "configure"
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4957 #include <$ac_header>
4959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null; then
4967 if test -s conftest.err; then
4968 ac_cpp_err=$ac_c_preproc_warn_flag
4975 if test -z "$ac_cpp_err"; then
4976 ac_header_preproc=yes
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 ac_header_preproc=no
4983 rm -f conftest.err conftest.$ac_ext
4984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4985 echo "${ECHO_T}$ac_header_preproc" >&6
4987 # So? What about this header?
4988 case $ac_header_compiler:$ac_header_preproc in
4990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4996 ## ------------------------------------ ##
4997 ## Report this to bug-autoconf@gnu.org. ##
4998 ## ------------------------------------ ##
5001 sed "s/^/$as_me: WARNING: /" >&2
5004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5012 ## ------------------------------------ ##
5013 ## Report this to bug-autoconf@gnu.org. ##
5014 ## ------------------------------------ ##
5017 sed "s/^/$as_me: WARNING: /" >&2
5020 echo "$as_me:$LINENO: checking for $ac_header" >&5
5021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 eval "$as_ac_Header=$ac_header_preproc"
5027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h <<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5041 for ac_func in getpagesize
5043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5044 echo "$as_me:$LINENO: checking for $ac_func" >&5
5045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5046 if eval "test \"\${$as_ac_var+set}\" = set"; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 cat >conftest.$ac_ext <<_ACEOF
5050 #line $LINENO "configure"
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 /* System header to define __stub macros and hopefully few prototypes,
5057 which can conflict with char $ac_func (); below.
5058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059 <limits.h> exists even on freestanding compilers. */
5061 # include <limits.h>
5063 # include <assert.h>
5065 /* Override any gcc2 internal prototype to avoid an error. */
5070 /* We use char because int might match the return type of a gcc2
5071 builtin and then its argument prototype would still apply. */
5073 /* The GNU C library defines this for functions which it implements
5074 to always fail with ENOSYS. Some functions are actually named
5075 something starting with __ and the normal name is an alias. */
5076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5079 char (*f) () = $ac_func;
5088 return f != $ac_func;
5093 rm -f conftest.$ac_objext conftest$ac_exeext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095 (eval $ac_link) 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } &&
5099 { ac_try='test -s conftest$ac_exeext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 eval "$as_ac_var=yes"
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 eval "$as_ac_var=no"
5112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5116 if test `eval echo '${'$as_ac_var'}'` = yes; then
5117 cat >>confdefs.h <<_ACEOF
5118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5124 echo "$as_me:$LINENO: checking for working mmap" >&5
5125 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5126 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 if test "$cross_compiling" = yes; then
5130 ac_cv_func_mmap_fixed_mapped=no
5132 cat >conftest.$ac_ext <<_ACEOF
5133 #line $LINENO "configure"
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 $ac_includes_default
5140 /* malloc might have been renamed as rpl_malloc. */
5143 /* Thanks to Mike Haertel and Jim Avera for this test.
5144 Here is a matrix of mmap possibilities:
5145 mmap private not fixed
5146 mmap private fixed at somewhere currently unmapped
5147 mmap private fixed at somewhere already mapped
5148 mmap shared not fixed
5149 mmap shared fixed at somewhere currently unmapped
5150 mmap shared fixed at somewhere already mapped
5151 For private mappings, we should verify that changes cannot be read()
5152 back from the file, nor mmap's back from the file at a different
5153 address. (There have been systems where private was not correctly
5154 implemented like the infamous i386 svr4.0, and systems where the
5155 VM page cache was not coherent with the file system buffer cache
5156 like early versions of FreeBSD and possibly contemporary NetBSD.)
5157 For shared mappings, we should conversely verify that changes get
5158 propagated back to all the places they're supposed to be.
5160 Grep wants private fixed already mapped.
5161 The main things grep needs to know about mmap are:
5162 * does it exist and is it safe to write into the mmap'd area
5163 * how to use it (BSD variants) */
5166 #include <sys/mman.h>
5168 #if !STDC_HEADERS && !HAVE_STDLIB_H
5172 /* This mess was copied from the GNU getpagesize.h. */
5173 #if !HAVE_GETPAGESIZE
5174 /* Assume that all systems that can run configure have sys/param.h. */
5175 # if !HAVE_SYS_PARAM_H
5176 # define HAVE_SYS_PARAM_H 1
5179 # ifdef _SC_PAGESIZE
5180 # define getpagesize() sysconf(_SC_PAGESIZE)
5181 # else /* no _SC_PAGESIZE */
5182 # if HAVE_SYS_PARAM_H
5183 # include <sys/param.h>
5184 # ifdef EXEC_PAGESIZE
5185 # define getpagesize() EXEC_PAGESIZE
5186 # else /* no EXEC_PAGESIZE */
5188 # define getpagesize() NBPG * CLSIZE
5191 # endif /* no CLSIZE */
5192 # else /* no NBPG */
5194 # define getpagesize() NBPC
5195 # else /* no NBPC */
5197 # define getpagesize() PAGESIZE
5198 # endif /* PAGESIZE */
5199 # endif /* no NBPC */
5200 # endif /* no NBPG */
5201 # endif /* no EXEC_PAGESIZE */
5202 # else /* no HAVE_SYS_PARAM_H */
5203 # define getpagesize() 8192 /* punt totally */
5204 # endif /* no HAVE_SYS_PARAM_H */
5205 # endif /* no _SC_PAGESIZE */
5207 #endif /* no HAVE_GETPAGESIZE */
5212 char *data, *data2, *data3;
5216 pagesize = getpagesize ();
5218 /* First, make a file with some known garbage in it. */
5219 data = (char *) malloc (pagesize);
5222 for (i = 0; i < pagesize; ++i)
5223 *(data + i) = rand ();
5225 fd = creat ("conftest.mmap", 0600);
5228 if (write (fd, data, pagesize) != pagesize)
5232 /* Next, try to mmap the file at a fixed address which already has
5233 something else allocated at it. If we can, also make sure that
5234 we see the same garbage. */
5235 fd = open ("conftest.mmap", O_RDWR);
5238 data2 = (char *) malloc (2 * pagesize);
5241 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5242 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5243 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5245 for (i = 0; i < pagesize; ++i)
5246 if (*(data + i) != *(data2 + i))
5249 /* Finally, make sure that changes to the mapped area do not
5250 percolate back to the file as seen by read(). (This is a bug on
5251 some variants of i386 svr4.0.) */
5252 for (i = 0; i < pagesize; ++i)
5253 *(data2 + i) = *(data2 + i) + 1;
5254 data3 = (char *) malloc (pagesize);
5257 if (read (fd, data3, pagesize) != pagesize)
5259 for (i = 0; i < pagesize; ++i)
5260 if (*(data + i) != *(data3 + i))
5266 rm -f conftest$ac_exeext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5268 (eval $ac_link) 2>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_func_mmap_fixed_mapped=yes
5279 echo "$as_me: program exited with status $ac_status" >&5
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_cv_func_mmap_fixed_mapped=no
5286 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5290 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5291 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5293 cat >>confdefs.h <<\_ACEOF
5301 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5302 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5303 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 cat >conftest.$ac_ext <<_ACEOF
5307 #line $LINENO "configure"
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5314 #include <features.h>
5315 #ifdef __GNU_LIBRARY__
5316 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5324 ac_cv_gnu_library_2_1=yes
5326 ac_cv_gnu_library_2_1=no
5333 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5334 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5336 GLIBC21="$ac_cv_gnu_library_2_1"
5341 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5342 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5343 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 if test "$cross_compiling" = yes; then
5349 # Guess based on the CPU.
5351 alpha* | i3456786 | m68k | s390*)
5352 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5354 gt_cv_int_divbyzero_sigfpe="guessing no";;
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5371 sigfpe_handler (int sig)
5373 sigfpe_handler (sig) int sig;
5376 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5377 exit (sig != SIGFPE);
5387 signal (SIGFPE, sigfpe_handler);
5388 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5389 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5390 signal (SIGTRAP, sigfpe_handler);
5392 /* Linux/SPARC yields signal SIGILL. */
5393 #if defined (__sparc__) && defined (__linux__)
5394 signal (SIGILL, sigfpe_handler);
5403 rm -f conftest$ac_exeext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405 (eval $ac_link) 2>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 gt_cv_int_divbyzero_sigfpe=yes
5416 echo "$as_me: program exited with status $ac_status" >&5
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5421 gt_cv_int_divbyzero_sigfpe=no
5423 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5427 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5428 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5429 case "$gt_cv_int_divbyzero_sigfpe" in
5434 cat >>confdefs.h <<_ACEOF
5435 #define INTDIV0_RAISES_SIGFPE $value
5440 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5441 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5442 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 cat >conftest.$ac_ext <<_ACEOF
5446 #line $LINENO "configure"
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <sys/types.h>
5453 #include <inttypes.h>
5457 uintmax_t i = (uintmax_t) -1;
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 jm_ac_cv_header_inttypes_h=yes
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5479 jm_ac_cv_header_inttypes_h=no
5481 rm -f conftest.$ac_objext conftest.$ac_ext
5483 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5484 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
5485 if test $jm_ac_cv_header_inttypes_h = yes; then
5487 cat >>confdefs.h <<_ACEOF
5488 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5494 echo "$as_me:$LINENO: checking for stdint.h" >&5
5495 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5496 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5500 #line $LINENO "configure"
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 #include <sys/types.h>
5511 uintmax_t i = (uintmax_t) -1;
5516 rm -f conftest.$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -s conftest.$ac_objext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5528 jm_ac_cv_header_stdint_h=yes
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 jm_ac_cv_header_stdint_h=no
5535 rm -f conftest.$ac_objext conftest.$ac_ext
5537 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5538 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5539 if test $jm_ac_cv_header_stdint_h = yes; then
5541 cat >>confdefs.h <<_ACEOF
5542 #define HAVE_STDINT_H_WITH_UINTMAX 1
5548 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5549 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5550 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 cat >conftest.$ac_ext <<_ACEOF
5554 #line $LINENO "configure"
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 unsigned long long ull = 1; int i = 63;
5564 unsigned long long ullmax = (unsigned long long) -1;
5565 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5570 rm -f conftest.$ac_objext conftest$ac_exeext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572 (eval $ac_link) 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -s conftest$ac_exeext'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; }; then
5582 ac_cv_type_unsigned_long_long=yes
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5587 ac_cv_type_unsigned_long_long=no
5589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5591 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5592 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5593 if test $ac_cv_type_unsigned_long_long = yes; then
5595 cat >>confdefs.h <<\_ACEOF
5596 #define HAVE_UNSIGNED_LONG_LONG 1
5604 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5606 test $ac_cv_type_unsigned_long_long = yes \
5607 && ac_type='unsigned long long' \
5608 || ac_type='unsigned long'
5610 cat >>confdefs.h <<_ACEOF
5611 #define uintmax_t $ac_type
5616 cat >>confdefs.h <<\_ACEOF
5617 #define HAVE_UINTMAX_T 1
5623 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5624 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5625 if test "${gt_cv_header_inttypes_h+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 cat >conftest.$ac_ext <<_ACEOF
5630 #line $LINENO "configure"
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 #include <sys/types.h>
5637 #include <inttypes.h>
5646 rm -f conftest.$ac_objext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } &&
5652 { ac_try='test -s conftest.$ac_objext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 gt_cv_header_inttypes_h=yes
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 gt_cv_header_inttypes_h=no
5665 rm -f conftest.$ac_objext conftest.$ac_ext
5668 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5669 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
5670 if test $gt_cv_header_inttypes_h = yes; then
5672 cat >>confdefs.h <<_ACEOF
5673 #define HAVE_INTTYPES_H 1
5680 if test $gt_cv_header_inttypes_h = yes; then
5681 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5682 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
5683 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 cat >conftest.$ac_ext <<_ACEOF
5688 #line $LINENO "configure"
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 #include <inttypes.h>
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 gt_cv_inttypes_pri_broken=no
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 gt_cv_inttypes_pri_broken=yes
5726 rm -f conftest.$ac_objext conftest.$ac_ext
5729 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5730 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
5732 if test "$gt_cv_inttypes_pri_broken" = yes; then
5734 cat >>confdefs.h <<_ACEOF
5735 #define PRI_MACROS_BROKEN 1
5741 if test "X$prefix" = "XNONE"; then
5742 acl_final_prefix="$ac_default_prefix"
5744 acl_final_prefix="$prefix"
5746 if test "X$exec_prefix" = "XNONE"; then
5747 acl_final_exec_prefix='${prefix}'
5749 acl_final_exec_prefix="$exec_prefix"
5751 acl_save_prefix="$prefix"
5752 prefix="$acl_final_prefix"
5753 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5754 prefix="$acl_save_prefix"
5757 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5758 if test "${with_gnu_ld+set}" = set; then
5759 withval="$with_gnu_ld"
5760 test "$withval" = no || with_gnu_ld=yes
5764 # Prepare PATH_SEPARATOR.
5765 # The user is always right.
5766 if test "${PATH_SEPARATOR+set}" != set; then
5767 echo "#! /bin/sh" >conf$$.sh
5768 echo "exit 0" >>conf$$.sh
5770 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5778 if test "$GCC" = yes; then
5779 # Check if gcc -print-prog-name=ld gives a path.
5780 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5781 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5784 # gcc leaves a trailing carriage return which upsets mingw
5785 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5787 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5790 # Accept absolute paths.
5791 [\\/]* | [A-Za-z]:[\\/]*)
5792 re_direlt='/[^/][^/]*/\.\./'
5793 # Canonicalize the path of ld
5794 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5795 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5796 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5798 test -z "$LD" && LD="$ac_prog"
5801 # If it fails, then pretend we aren't using GCC.
5805 # If it is relative, then search for the first ld in PATH.
5809 elif test "$with_gnu_ld" = yes; then
5810 echo "$as_me:$LINENO: checking for GNU ld" >&5
5811 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5813 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5814 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5816 if test "${acl_cv_path_LD+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 if test -z "$LD"; then
5820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5821 for ac_dir in $PATH; do
5822 test -z "$ac_dir" && ac_dir=.
5823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5824 acl_cv_path_LD="$ac_dir/$ac_prog"
5825 # Check to see if the program is GNU ld. I'd rather use --version,
5826 # but apparently some GNU ld's only accept -v.
5827 # Break only if it was the GNU/non-GNU ld that we prefer.
5828 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5829 test "$with_gnu_ld" != no && break
5831 test "$with_gnu_ld" != yes && break
5837 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5841 LD="$acl_cv_path_LD"
5842 if test -n "$LD"; then
5843 echo "$as_me:$LINENO: result: $LD" >&5
5844 echo "${ECHO_T}$LD" >&6
5846 echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6
5849 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5850 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5851 { (exit 1); exit 1; }; }
5852 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5853 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5854 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5858 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5859 acl_cv_prog_gnu_ld=yes
5861 acl_cv_prog_gnu_ld=no
5864 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5865 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5866 with_gnu_ld=$acl_cv_prog_gnu_ld
5870 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5871 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5872 if test "${acl_cv_rpath+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5877 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5883 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5884 echo "${ECHO_T}$acl_cv_rpath" >&6
5886 libext="$acl_cv_libext"
5887 shlibext="$acl_cv_shlibext"
5888 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5889 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5890 hardcode_direct="$acl_cv_hardcode_direct"
5891 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5892 # Check whether --enable-rpath or --disable-rpath was given.
5893 if test "${enable_rpath+set}" = set; then
5894 enableval="$enable_rpath"
5908 acl_save_prefix="$prefix"
5909 prefix="$acl_final_prefix"
5910 acl_save_exec_prefix="$exec_prefix"
5911 exec_prefix="$acl_final_exec_prefix"
5913 eval additional_includedir=\"$includedir\"
5914 eval additional_libdir=\"$libdir\"
5916 exec_prefix="$acl_save_exec_prefix"
5917 prefix="$acl_save_prefix"
5920 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5921 if test "${with_libiconv_prefix+set}" = set; then
5922 withval="$with_libiconv_prefix"
5924 if test "X$withval" = "Xno"; then
5927 if test "X$withval" = "X"; then
5929 acl_save_prefix="$prefix"
5930 prefix="$acl_final_prefix"
5931 acl_save_exec_prefix="$exec_prefix"
5932 exec_prefix="$acl_final_exec_prefix"
5934 eval additional_includedir=\"$includedir\"
5935 eval additional_libdir=\"$libdir\"
5937 exec_prefix="$acl_save_exec_prefix"
5938 prefix="$acl_save_prefix"
5941 additional_includedir="$withval/include"
5942 additional_libdir="$withval/lib"
5952 names_already_handled=
5953 names_next_round='iconv '
5954 while test -n "$names_next_round"; do
5955 names_this_round="$names_next_round"
5957 for name in $names_this_round; do
5959 for n in $names_already_handled; do
5960 if test "$n" = "$name"; then
5965 if test -z "$already_handled"; then
5966 names_already_handled="$names_already_handled $name"
5967 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5968 eval value=\"\$HAVE_LIB$uppername\"
5969 if test -n "$value"; then
5970 if test "$value" = yes; then
5971 eval value=\"\$LIB$uppername\"
5972 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5973 eval value=\"\$LTLIB$uppername\"
5974 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5983 if test $use_additional = yes; then
5984 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5985 found_dir="$additional_libdir"
5986 found_so="$additional_libdir/lib$name.$shlibext"
5987 if test -f "$additional_libdir/lib$name.la"; then
5988 found_la="$additional_libdir/lib$name.la"
5991 if test -f "$additional_libdir/lib$name.$libext"; then
5992 found_dir="$additional_libdir"
5993 found_a="$additional_libdir/lib$name.$libext"
5994 if test -f "$additional_libdir/lib$name.la"; then
5995 found_la="$additional_libdir/lib$name.la"
6000 if test "X$found_dir" = "X"; then
6001 for x in $LDFLAGS $LTLIBICONV; do
6003 acl_save_prefix="$prefix"
6004 prefix="$acl_final_prefix"
6005 acl_save_exec_prefix="$exec_prefix"
6006 exec_prefix="$acl_final_exec_prefix"
6008 exec_prefix="$acl_save_exec_prefix"
6009 prefix="$acl_save_prefix"
6013 dir=`echo "X$x" | sed -e 's/^X-L//'`
6014 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6016 found_so="$dir/lib$name.$shlibext"
6017 if test -f "$dir/lib$name.la"; then
6018 found_la="$dir/lib$name.la"
6021 if test -f "$dir/lib$name.$libext"; then
6023 found_a="$dir/lib$name.$libext"
6024 if test -f "$dir/lib$name.la"; then
6025 found_la="$dir/lib$name.la"
6031 if test "X$found_dir" != "X"; then
6036 if test "X$found_dir" != "X"; then
6037 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6038 if test "X$found_so" != "X"; then
6039 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6040 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6043 for x in $ltrpathdirs; do
6044 if test "X$x" = "X$found_dir"; then
6049 if test -z "$haveit"; then
6050 ltrpathdirs="$ltrpathdirs $found_dir"
6052 if test "$hardcode_direct" = yes; then
6053 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6055 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6056 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6058 for x in $rpathdirs; do
6059 if test "X$x" = "X$found_dir"; then
6064 if test -z "$haveit"; then
6065 rpathdirs="$rpathdirs $found_dir"
6069 for x in $LDFLAGS $LIBICONV; do
6071 acl_save_prefix="$prefix"
6072 prefix="$acl_final_prefix"
6073 acl_save_exec_prefix="$exec_prefix"
6074 exec_prefix="$acl_final_exec_prefix"
6076 exec_prefix="$acl_save_exec_prefix"
6077 prefix="$acl_save_prefix"
6079 if test "X$x" = "X-L$found_dir"; then
6084 if test -z "$haveit"; then
6085 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6087 if test "$hardcode_minus_L" != no; then
6088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6090 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6096 if test "X$found_a" != "X"; then
6097 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6099 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6102 additional_includedir=
6103 case "$found_dir" in
6105 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6106 additional_includedir="$basedir/include"
6109 if test "X$additional_includedir" != "X"; then
6110 if test "X$additional_includedir" != "X/usr/include"; then
6112 if test "X$additional_includedir" = "X/usr/local/include"; then
6113 if test -n "$GCC"; then
6115 linux*) haveit=yes;;
6119 if test -z "$haveit"; then
6120 for x in $CPPFLAGS $INCICONV; do
6122 acl_save_prefix="$prefix"
6123 prefix="$acl_final_prefix"
6124 acl_save_exec_prefix="$exec_prefix"
6125 exec_prefix="$acl_final_exec_prefix"
6127 exec_prefix="$acl_save_exec_prefix"
6128 prefix="$acl_save_prefix"
6130 if test "X$x" = "X-I$additional_includedir"; then
6135 if test -z "$haveit"; then
6136 if test -d "$additional_includedir"; then
6137 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6143 if test -n "$found_la"; then
6144 save_libdir="$libdir"
6146 */* | *\\*) . "$found_la" ;;
6147 *) . "./$found_la" ;;
6149 libdir="$save_libdir"
6150 for dep in $dependency_libs; do
6153 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6154 if test "X$additional_libdir" != "X/usr/lib"; then
6156 if test "X$additional_libdir" = "X/usr/local/lib"; then
6157 if test -n "$GCC"; then
6159 linux*) haveit=yes;;
6163 if test -z "$haveit"; then
6165 for x in $LDFLAGS $LIBICONV; do
6167 acl_save_prefix="$prefix"
6168 prefix="$acl_final_prefix"
6169 acl_save_exec_prefix="$exec_prefix"
6170 exec_prefix="$acl_final_exec_prefix"
6172 exec_prefix="$acl_save_exec_prefix"
6173 prefix="$acl_save_prefix"
6175 if test "X$x" = "X-L$additional_libdir"; then
6180 if test -z "$haveit"; then
6181 if test -d "$additional_libdir"; then
6182 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6186 for x in $LDFLAGS $LTLIBICONV; do
6188 acl_save_prefix="$prefix"
6189 prefix="$acl_final_prefix"
6190 acl_save_exec_prefix="$exec_prefix"
6191 exec_prefix="$acl_final_exec_prefix"
6193 exec_prefix="$acl_save_exec_prefix"
6194 prefix="$acl_save_prefix"
6196 if test "X$x" = "X-L$additional_libdir"; then
6201 if test -z "$haveit"; then
6202 if test -d "$additional_libdir"; then
6203 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6210 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6211 if test "$enable_rpath" != no; then
6213 for x in $rpathdirs; do
6214 if test "X$x" = "X$dir"; then
6219 if test -z "$haveit"; then
6220 rpathdirs="$rpathdirs $dir"
6223 for x in $ltrpathdirs; do
6224 if test "X$x" = "X$dir"; then
6229 if test -z "$haveit"; then
6230 ltrpathdirs="$ltrpathdirs $dir"
6235 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6238 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6241 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6242 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6248 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6249 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6255 if test "X$rpathdirs" != "X"; then
6256 if test -n "$hardcode_libdir_separator"; then
6258 for found_dir in $rpathdirs; do
6259 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6261 acl_save_libdir="$libdir"
6263 eval flag=\"$hardcode_libdir_flag_spec\"
6264 libdir="$acl_save_libdir"
6265 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6267 for found_dir in $rpathdirs; do
6268 acl_save_libdir="$libdir"
6270 eval flag=\"$hardcode_libdir_flag_spec\"
6271 libdir="$acl_save_libdir"
6272 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6276 if test "X$ltrpathdirs" != "X"; then
6277 for found_dir in $ltrpathdirs; do
6278 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6295 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6296 stdlib.h string.h unistd.h sys/param.h
6298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300 echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6308 # Is the header compilable?
6309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6311 cat >conftest.$ac_ext <<_ACEOF
6312 #line $LINENO "configure"
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6318 $ac_includes_default
6319 #include <$ac_header>
6321 rm -f conftest.$ac_objext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323 (eval $ac_compile) 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -s conftest.$ac_objext'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_header_compiler=yes
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338 ac_header_compiler=no
6340 rm -f conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6342 echo "${ECHO_T}$ac_header_compiler" >&6
6344 # Is the header present?
6345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6347 cat >conftest.$ac_ext <<_ACEOF
6348 #line $LINENO "configure"
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #include <$ac_header>
6356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6359 grep -v '^ *+' conftest.er1 >conftest.err
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } >/dev/null; then
6364 if test -s conftest.err; then
6365 ac_cpp_err=$ac_c_preproc_warn_flag
6372 if test -z "$ac_cpp_err"; then
6373 ac_header_preproc=yes
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6378 ac_header_preproc=no
6380 rm -f conftest.err conftest.$ac_ext
6381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6382 echo "${ECHO_T}$ac_header_preproc" >&6
6384 # So? What about this header?
6385 case $ac_header_compiler:$ac_header_preproc in
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6393 ## ------------------------------------ ##
6394 ## Report this to bug-autoconf@gnu.org. ##
6395 ## ------------------------------------ ##
6398 sed "s/^/$as_me: WARNING: /" >&2
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6409 ## ------------------------------------ ##
6410 ## Report this to bug-autoconf@gnu.org. ##
6411 ## ------------------------------------ ##
6414 sed "s/^/$as_me: WARNING: /" >&2
6417 echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 eval "$as_ac_Header=$ac_header_preproc"
6424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6429 cat >>confdefs.h <<_ACEOF
6430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6459 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
6460 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
6461 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
6464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6465 echo "$as_me:$LINENO: checking for $ac_func" >&5
6466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6467 if eval "test \"\${$as_ac_var+set}\" = set"; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line $LINENO "configure"
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 /* System header to define __stub macros and hopefully few prototypes,
6478 which can conflict with char $ac_func (); below.
6479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6480 <limits.h> exists even on freestanding compilers. */
6482 # include <limits.h>
6484 # include <assert.h>
6486 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6494 /* The GNU C library defines this for functions which it implements
6495 to always fail with ENOSYS. Some functions are actually named
6496 something starting with __ and the normal name is an alias. */
6497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6500 char (*f) () = $ac_func;
6509 return f != $ac_func;
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -s conftest$ac_exeext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 eval "$as_ac_var=yes"
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 eval "$as_ac_var=no"
6533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6537 if test `eval echo '${'$as_ac_var'}'` = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6551 am_save_CPPFLAGS="$CPPFLAGS"
6553 for element in $INCICONV; do
6555 for x in $CPPFLAGS; do
6557 acl_save_prefix="$prefix"
6558 prefix="$acl_final_prefix"
6559 acl_save_exec_prefix="$exec_prefix"
6560 exec_prefix="$acl_final_exec_prefix"
6562 exec_prefix="$acl_save_exec_prefix"
6563 prefix="$acl_save_prefix"
6565 if test "X$x" = "X$element"; then
6570 if test -z "$haveit"; then
6571 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6576 echo "$as_me:$LINENO: checking for iconv" >&5
6577 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6578 if test "${am_cv_func_iconv+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 am_cv_func_iconv="no, consider installing GNU libiconv"
6584 cat >conftest.$ac_ext <<_ACEOF
6585 #line $LINENO "configure"
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6596 iconv_t cd = iconv_open("","");
6597 iconv(cd,NULL,NULL,NULL,NULL);
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605 (eval $ac_link) 2>&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -s conftest$ac_exeext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 am_cv_func_iconv=yes
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6622 if test "$am_cv_func_iconv" != yes; then
6623 am_save_LIBS="$LIBS"
6624 LIBS="$LIBS $LIBICONV"
6625 cat >conftest.$ac_ext <<_ACEOF
6626 #line $LINENO "configure"
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6637 iconv_t cd = iconv_open("","");
6638 iconv(cd,NULL,NULL,NULL,NULL);
6644 rm -f conftest.$ac_objext conftest$ac_exeext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6646 (eval $ac_link) 2>&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -s conftest$ac_exeext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6657 am_cv_func_iconv=yes
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6664 LIBS="$am_save_LIBS"
6668 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6669 echo "${ECHO_T}$am_cv_func_iconv" >&6
6670 if test "$am_cv_func_iconv" = yes; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_ICONV 1
6677 if test "$am_cv_lib_iconv" = yes; then
6678 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6679 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6680 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6681 echo "${ECHO_T}$LIBICONV" >&6
6683 CPPFLAGS="$am_save_CPPFLAGS"
6690 if test "$am_cv_func_iconv" = yes; then
6691 echo "$as_me:$LINENO: checking for iconv declaration" >&5
6692 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6693 if test "${am_cv_proto_iconv+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 cat >conftest.$ac_ext <<_ACEOF
6698 #line $LINENO "configure"
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6711 #if defined(__STDC__) || defined(__cplusplus)
6712 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6725 rm -f conftest.$ac_objext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6727 (eval $ac_compile) 2>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } &&
6731 { ac_try='test -s conftest.$ac_objext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6737 am_cv_proto_iconv_arg1=""
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 am_cv_proto_iconv_arg1="const"
6744 rm -f conftest.$ac_objext conftest.$ac_ext
6745 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);"
6748 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6749 echo "$as_me:$LINENO: result: ${ac_t:-
6750 }$am_cv_proto_iconv" >&5
6751 echo "${ECHO_T}${ac_t:-
6752 }$am_cv_proto_iconv" >&6
6754 cat >>confdefs.h <<_ACEOF
6755 #define ICONV_CONST $am_cv_proto_iconv_arg1
6761 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6762 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6763 if test "${am_cv_langinfo_codeset+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 cat >conftest.$ac_ext <<_ACEOF
6767 #line $LINENO "configure"
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 #include <langinfo.h>
6777 char* cs = nl_langinfo(CODESET);
6782 rm -f conftest.$ac_objext conftest$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784 (eval $ac_link) 2>&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
6788 { ac_try='test -s conftest$ac_exeext'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6794 am_cv_langinfo_codeset=yes
6796 echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 am_cv_langinfo_codeset=no
6801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6804 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6805 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6806 if test $am_cv_langinfo_codeset = yes; then
6808 cat >>confdefs.h <<\_ACEOF
6809 #define HAVE_LANGINFO_CODESET 1
6814 if test $ac_cv_header_locale_h = yes; then
6816 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6817 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6818 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 cat >conftest.$ac_ext <<_ACEOF
6822 #line $LINENO "configure"
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6837 rm -f conftest.$ac_objext conftest$ac_exeext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6839 (eval $ac_link) 2>&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } &&
6843 { ac_try='test -s conftest$ac_exeext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 am_cv_val_LC_MESSAGES=yes
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 am_cv_val_LC_MESSAGES=no
6856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6858 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6859 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6860 if test $am_cv_val_LC_MESSAGES = yes; then
6862 cat >>confdefs.h <<\_ACEOF
6863 #define HAVE_LC_MESSAGES 1
6870 for ac_prog in bison
6872 # Extract the first word of "$ac_prog", so it can be a program name with args.
6873 set dummy $ac_prog; ac_word=$2
6874 echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6876 if test "${ac_cv_prog_INTLBISON+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 if test -n "$INTLBISON"; then
6880 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_INTLBISON="$ac_prog"
6890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 INTLBISON=$ac_cv_prog_INTLBISON
6899 if test -n "$INTLBISON"; then
6900 echo "$as_me:$LINENO: result: $INTLBISON" >&5
6901 echo "${ECHO_T}$INTLBISON" >&6
6903 echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6
6907 test -n "$INTLBISON" && break
6910 if test -z "$INTLBISON"; then
6913 echo "$as_me:$LINENO: checking version of bison" >&5
6914 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6915 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6916 case $ac_prog_version in
6917 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6918 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6919 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6920 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6922 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
6923 echo "${ECHO_T}$ac_prog_version" >&6
6925 if test $ac_verc_fail = yes; then
6944 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6945 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6946 # Check whether --enable-nls or --disable-nls was given.
6947 if test "${enable_nls+set}" = set; then
6948 enableval="$enable_nls"
6953 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6954 echo "${ECHO_T}$USE_NLS" >&6
6959 BUILD_INCLUDED_LIBINTL=no
6960 USE_INCLUDED_LIBINTL=no
6966 if test "$USE_NLS" = "yes"; then
6967 gt_use_preinstalled_gnugettext=no
6969 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6970 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6972 # Check whether --with-included-gettext or --without-included-gettext was given.
6973 if test "${with_included_gettext+set}" = set; then
6974 withval="$with_included_gettext"
6975 nls_cv_force_use_gnu_gettext=$withval
6977 nls_cv_force_use_gnu_gettext=no
6979 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6980 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6982 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6983 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6990 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6991 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6992 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 cat >conftest.$ac_ext <<_ACEOF
6996 #line $LINENO "configure"
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 #include <libintl.h>
7003 extern int _nl_msg_cat_cntr;
7004 extern int *_nl_domain_bindings;
7008 bindtextdomain ("", "");
7009 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
7014 rm -f conftest.$ac_objext conftest$ac_exeext
7015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7016 (eval $ac_link) 2>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -s conftest$ac_exeext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 gt_cv_func_gnugettext1_libc=yes
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 gt_cv_func_gnugettext1_libc=no
7033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7035 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7036 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7038 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7044 acl_save_prefix="$prefix"
7045 prefix="$acl_final_prefix"
7046 acl_save_exec_prefix="$exec_prefix"
7047 exec_prefix="$acl_final_exec_prefix"
7049 eval additional_includedir=\"$includedir\"
7050 eval additional_libdir=\"$libdir\"
7052 exec_prefix="$acl_save_exec_prefix"
7053 prefix="$acl_save_prefix"
7056 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
7057 if test "${with_libintl_prefix+set}" = set; then
7058 withval="$with_libintl_prefix"
7060 if test "X$withval" = "Xno"; then
7063 if test "X$withval" = "X"; then
7065 acl_save_prefix="$prefix"
7066 prefix="$acl_final_prefix"
7067 acl_save_exec_prefix="$exec_prefix"
7068 exec_prefix="$acl_final_exec_prefix"
7070 eval additional_includedir=\"$includedir\"
7071 eval additional_libdir=\"$libdir\"
7073 exec_prefix="$acl_save_exec_prefix"
7074 prefix="$acl_save_prefix"
7077 additional_includedir="$withval/include"
7078 additional_libdir="$withval/lib"
7088 names_already_handled=
7089 names_next_round='intl '
7090 while test -n "$names_next_round"; do
7091 names_this_round="$names_next_round"
7093 for name in $names_this_round; do
7095 for n in $names_already_handled; do
7096 if test "$n" = "$name"; then
7101 if test -z "$already_handled"; then
7102 names_already_handled="$names_already_handled $name"
7103 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7104 eval value=\"\$HAVE_LIB$uppername\"
7105 if test -n "$value"; then
7106 if test "$value" = yes; then
7107 eval value=\"\$LIB$uppername\"
7108 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7109 eval value=\"\$LTLIB$uppername\"
7110 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7119 if test $use_additional = yes; then
7120 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7121 found_dir="$additional_libdir"
7122 found_so="$additional_libdir/lib$name.$shlibext"
7123 if test -f "$additional_libdir/lib$name.la"; then
7124 found_la="$additional_libdir/lib$name.la"
7127 if test -f "$additional_libdir/lib$name.$libext"; then
7128 found_dir="$additional_libdir"
7129 found_a="$additional_libdir/lib$name.$libext"
7130 if test -f "$additional_libdir/lib$name.la"; then
7131 found_la="$additional_libdir/lib$name.la"
7136 if test "X$found_dir" = "X"; then
7137 for x in $LDFLAGS $LTLIBINTL; do
7139 acl_save_prefix="$prefix"
7140 prefix="$acl_final_prefix"
7141 acl_save_exec_prefix="$exec_prefix"
7142 exec_prefix="$acl_final_exec_prefix"
7144 exec_prefix="$acl_save_exec_prefix"
7145 prefix="$acl_save_prefix"
7149 dir=`echo "X$x" | sed -e 's/^X-L//'`
7150 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7152 found_so="$dir/lib$name.$shlibext"
7153 if test -f "$dir/lib$name.la"; then
7154 found_la="$dir/lib$name.la"
7157 if test -f "$dir/lib$name.$libext"; then
7159 found_a="$dir/lib$name.$libext"
7160 if test -f "$dir/lib$name.la"; then
7161 found_la="$dir/lib$name.la"
7167 if test "X$found_dir" != "X"; then
7172 if test "X$found_dir" != "X"; then
7173 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7174 if test "X$found_so" != "X"; then
7175 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7176 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7179 for x in $ltrpathdirs; do
7180 if test "X$x" = "X$found_dir"; then
7185 if test -z "$haveit"; then
7186 ltrpathdirs="$ltrpathdirs $found_dir"
7188 if test "$hardcode_direct" = yes; then
7189 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7191 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7192 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7194 for x in $rpathdirs; do
7195 if test "X$x" = "X$found_dir"; then
7200 if test -z "$haveit"; then
7201 rpathdirs="$rpathdirs $found_dir"
7205 for x in $LDFLAGS $LIBINTL; do
7207 acl_save_prefix="$prefix"
7208 prefix="$acl_final_prefix"
7209 acl_save_exec_prefix="$exec_prefix"
7210 exec_prefix="$acl_final_exec_prefix"
7212 exec_prefix="$acl_save_exec_prefix"
7213 prefix="$acl_save_prefix"
7215 if test "X$x" = "X-L$found_dir"; then
7220 if test -z "$haveit"; then
7221 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7223 if test "$hardcode_minus_L" != no; then
7224 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7226 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7232 if test "X$found_a" != "X"; then
7233 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7235 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7238 additional_includedir=
7239 case "$found_dir" in
7241 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7242 additional_includedir="$basedir/include"
7245 if test "X$additional_includedir" != "X"; then
7246 if test "X$additional_includedir" != "X/usr/include"; then
7248 if test "X$additional_includedir" = "X/usr/local/include"; then
7249 if test -n "$GCC"; then
7251 linux*) haveit=yes;;
7255 if test -z "$haveit"; then
7256 for x in $CPPFLAGS $INCINTL; do
7258 acl_save_prefix="$prefix"
7259 prefix="$acl_final_prefix"
7260 acl_save_exec_prefix="$exec_prefix"
7261 exec_prefix="$acl_final_exec_prefix"
7263 exec_prefix="$acl_save_exec_prefix"
7264 prefix="$acl_save_prefix"
7266 if test "X$x" = "X-I$additional_includedir"; then
7271 if test -z "$haveit"; then
7272 if test -d "$additional_includedir"; then
7273 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7279 if test -n "$found_la"; then
7280 save_libdir="$libdir"
7282 */* | *\\*) . "$found_la" ;;
7283 *) . "./$found_la" ;;
7285 libdir="$save_libdir"
7286 for dep in $dependency_libs; do
7289 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7290 if test "X$additional_libdir" != "X/usr/lib"; then
7292 if test "X$additional_libdir" = "X/usr/local/lib"; then
7293 if test -n "$GCC"; then
7295 linux*) haveit=yes;;
7299 if test -z "$haveit"; then
7301 for x in $LDFLAGS $LIBINTL; do
7303 acl_save_prefix="$prefix"
7304 prefix="$acl_final_prefix"
7305 acl_save_exec_prefix="$exec_prefix"
7306 exec_prefix="$acl_final_exec_prefix"
7308 exec_prefix="$acl_save_exec_prefix"
7309 prefix="$acl_save_prefix"
7311 if test "X$x" = "X-L$additional_libdir"; then
7316 if test -z "$haveit"; then
7317 if test -d "$additional_libdir"; then
7318 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7322 for x in $LDFLAGS $LTLIBINTL; do
7324 acl_save_prefix="$prefix"
7325 prefix="$acl_final_prefix"
7326 acl_save_exec_prefix="$exec_prefix"
7327 exec_prefix="$acl_final_exec_prefix"
7329 exec_prefix="$acl_save_exec_prefix"
7330 prefix="$acl_save_prefix"
7332 if test "X$x" = "X-L$additional_libdir"; then
7337 if test -z "$haveit"; then
7338 if test -d "$additional_libdir"; then
7339 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7346 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7347 if test "$enable_rpath" != no; then
7349 for x in $rpathdirs; do
7350 if test "X$x" = "X$dir"; then
7355 if test -z "$haveit"; then
7356 rpathdirs="$rpathdirs $dir"
7359 for x in $ltrpathdirs; do
7360 if test "X$x" = "X$dir"; then
7365 if test -z "$haveit"; then
7366 ltrpathdirs="$ltrpathdirs $dir"
7371 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7374 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7377 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7378 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7384 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7385 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7391 if test "X$rpathdirs" != "X"; then
7392 if test -n "$hardcode_libdir_separator"; then
7394 for found_dir in $rpathdirs; do
7395 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7397 acl_save_libdir="$libdir"
7399 eval flag=\"$hardcode_libdir_flag_spec\"
7400 libdir="$acl_save_libdir"
7401 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7403 for found_dir in $rpathdirs; do
7404 acl_save_libdir="$libdir"
7406 eval flag=\"$hardcode_libdir_flag_spec\"
7407 libdir="$acl_save_libdir"
7408 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7412 if test "X$ltrpathdirs" != "X"; then
7413 for found_dir in $ltrpathdirs; do
7414 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7418 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7419 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7420 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 gt_save_CPPFLAGS="$CPPFLAGS"
7424 CPPFLAGS="$CPPFLAGS $INCINTL"
7425 gt_save_LIBS="$LIBS"
7426 LIBS="$LIBS $LIBINTL"
7427 cat >conftest.$ac_ext <<_ACEOF
7428 #line $LINENO "configure"
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 #include <libintl.h>
7435 extern int _nl_msg_cat_cntr;
7440 const char *_nl_expand_alias ();
7444 bindtextdomain ("", "");
7445 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7450 rm -f conftest.$ac_objext conftest$ac_exeext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7452 (eval $ac_link) 2>&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -s conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 gt_cv_func_gnugettext1_libintl=yes
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7467 gt_cv_func_gnugettext1_libintl=no
7469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7470 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7471 LIBS="$LIBS $LIBICONV"
7472 cat >conftest.$ac_ext <<_ACEOF
7473 #line $LINENO "configure"
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7479 #include <libintl.h>
7480 extern int _nl_msg_cat_cntr;
7485 const char *_nl_expand_alias ();
7489 bindtextdomain ("", "");
7490 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497 (eval $ac_link) 2>&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -s conftest$ac_exeext'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 LIBINTL="$LIBINTL $LIBICONV"
7508 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7509 gt_cv_func_gnugettext1_libintl=yes
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7518 CPPFLAGS="$gt_save_CPPFLAGS"
7519 LIBS="$gt_save_LIBS"
7521 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7522 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7525 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7526 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7527 && test "$PACKAGE" != gettext-runtime \
7528 && test "$PACKAGE" != gettext-tools; }; then
7529 gt_use_preinstalled_gnugettext=yes
7537 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
7538 nls_cv_use_gnu_gettext=yes
7542 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7543 BUILD_INCLUDED_LIBINTL=yes
7544 USE_INCLUDED_LIBINTL=yes
7545 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
7546 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
7547 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7550 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7551 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7556 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7557 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7559 cat >>confdefs.h <<\_ACEOF
7560 #define ENABLE_NLS 1
7568 echo "$as_me:$LINENO: checking whether to use NLS" >&5
7569 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
7570 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7571 echo "${ECHO_T}$USE_NLS" >&6
7572 if test "$USE_NLS" = "yes"; then
7573 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7574 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
7575 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7576 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7577 gt_source="external libintl"
7582 gt_source="included intl directory"
7584 echo "$as_me:$LINENO: result: $gt_source" >&5
7585 echo "${ECHO_T}$gt_source" >&6
7588 if test "$USE_NLS" = "yes"; then
7590 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7591 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7592 echo "$as_me:$LINENO: checking how to link with libintl" >&5
7593 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
7594 echo "$as_me:$LINENO: result: $LIBINTL" >&5
7595 echo "${ECHO_T}$LIBINTL" >&6
7597 for element in $INCINTL; do
7599 for x in $CPPFLAGS; do
7601 acl_save_prefix="$prefix"
7602 prefix="$acl_final_prefix"
7603 acl_save_exec_prefix="$exec_prefix"
7604 exec_prefix="$acl_final_exec_prefix"
7606 exec_prefix="$acl_save_exec_prefix"
7607 prefix="$acl_save_prefix"
7609 if test "X$x" = "X$element"; then
7614 if test -z "$haveit"; then
7615 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7622 cat >>confdefs.h <<\_ACEOF
7623 #define HAVE_GETTEXT 1
7627 cat >>confdefs.h <<\_ACEOF
7628 #define HAVE_DCGETTEXT 1
7637 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
7638 BUILD_INCLUDED_LIBINTL=yes
7646 nls_cv_header_libgt=
7657 if test "$USE_INCLUDED_LIBINTL" = yes; then
7658 INTLOBJS="\$(GETTOBJS)"
7662 INTL_LIBTOOL_SUFFIX_PREFIX=
7674 aputils_save_LIBS="$LIBS"
7675 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
7676 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
7677 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 ac_check_lib_save_LIBS=$LIBS
7681 LIBS="-lncurses $LIBS"
7682 cat >conftest.$ac_ext <<_ACEOF
7683 #line $LINENO "configure"
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7690 /* Override any gcc2 internal prototype to avoid an error. */
7694 /* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_cv_lib_ncurses_initscr=yes
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 ac_cv_lib_ncurses_initscr=no
7724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7725 LIBS=$ac_check_lib_save_LIBS
7727 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
7728 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
7729 if test $ac_cv_lib_ncurses_initscr = yes; then
7730 CURSESLIBS="-lncurses"
7735 if test "$NOCURSES" = yes; then
7736 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
7737 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
7738 if test "${ac_cv_lib_curses_initscr+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 ac_check_lib_save_LIBS=$LIBS
7742 LIBS="-lcurses $LIBS"
7743 cat >conftest.$ac_ext <<_ACEOF
7744 #line $LINENO "configure"
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7751 /* Override any gcc2 internal prototype to avoid an error. */
7755 /* We use char because int might match the return type of a gcc2
7756 builtin and then its argument prototype would still apply. */
7766 rm -f conftest.$ac_objext conftest$ac_exeext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7768 (eval $ac_link) 2>&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -s conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 ac_cv_lib_curses_initscr=yes
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_cv_lib_curses_initscr=no
7785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7786 LIBS=$ac_check_lib_save_LIBS
7788 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
7789 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
7790 if test $ac_cv_lib_curses_initscr = yes; then
7791 CURSESLIBS="-lcurses"
7793 { { echo "$as_me:$LINENO: error: ap-utils requires installed ncurses or Sys V curses to build" >&5
7794 echo "$as_me: error: ap-utils requires installed ncurses or Sys V curses to build" >&2;}
7795 { (exit 1); exit 1; }; }
7799 LIBS="$aputils_save_LIBS"
7801 # Check for OS and make OS define OS specific variables
7805 cat >>confdefs.h <<\_ACEOF
7811 ap_config_LDADD="-lncurses"
7812 CC="$CC -R/usr/pkg/lib -L/usr/pkg/lib -I/usr/pkg/include"
7818 cat >>confdefs.h <<\_ACEOF
7826 LIBS="$LIBS -lsocket"
7827 INSTALL="config/install-sh"
7832 CC="$CC -qcpluscmt -qmaxmem=16384"
7837 cat >>confdefs.h <<\_ACEOF
7838 #define OS_SOLARIS 1
7841 LIBS="$LIBS -lresolv -lnls"
7845 cat >>confdefs.h <<\_ACEOF
7849 CFLAGS="$CFLAGS -Wall -W"
7853 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7854 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7855 if test "${ac_cv_c_bigendian+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 # See if sys/param.h defines the BYTE_ORDER macro.
7859 cat >conftest.$ac_ext <<_ACEOF
7860 #line $LINENO "configure"
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #include <sys/types.h>
7867 #include <sys/param.h>
7872 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7880 rm -f conftest.$ac_objext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7882 (eval $ac_compile) 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 # It does; now see whether it defined to BIG_ENDIAN or not.
7893 cat >conftest.$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 #include <sys/types.h>
7901 #include <sys/param.h>
7906 #if BYTE_ORDER != BIG_ENDIAN
7914 rm -f conftest.$ac_objext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916 (eval $ac_compile) 2>&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try='test -s conftest.$ac_objext'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7926 ac_cv_c_bigendian=yes
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7931 ac_cv_c_bigendian=no
7933 rm -f conftest.$ac_objext conftest.$ac_ext
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 # It does not; compile a test program.
7939 if test "$cross_compiling" = yes; then
7940 # try to guess the endianness by grepping values into an object file
7941 ac_cv_c_bigendian=unknown
7942 cat >conftest.$ac_ext <<_ACEOF
7943 #line $LINENO "configure"
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7950 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7951 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7952 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7953 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7954 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7958 _ascii (); _ebcdic ();
7963 rm -f conftest.$ac_objext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7965 (eval $ac_compile) 2>&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -s conftest.$ac_objext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7976 ac_cv_c_bigendian=yes
7978 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7979 if test "$ac_cv_c_bigendian" = unknown; then
7980 ac_cv_c_bigendian=no
7982 # finding both strings is unlikely to happen, but who knows?
7983 ac_cv_c_bigendian=unknown
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7991 rm -f conftest.$ac_objext conftest.$ac_ext
7993 cat >conftest.$ac_ext <<_ACEOF
7994 #line $LINENO "configure"
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8003 /* Are we little or big endian? From Harbison&Steele. */
8007 char c[sizeof (long)];
8010 exit (u.c[sizeof (long) - 1] == 1);
8013 rm -f conftest$ac_exeext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015 (eval $ac_link) 2>&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8024 ac_cv_c_bigendian=no
8026 echo "$as_me: program exited with status $ac_status" >&5
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_c_bigendian=yes
8033 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8036 rm -f conftest.$ac_objext conftest.$ac_ext
8038 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8039 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8040 case $ac_cv_c_bigendian in
8043 cat >>confdefs.h <<\_ACEOF
8044 #define WORDS_BIGENDIAN 1
8050 { { echo "$as_me:$LINENO: error: unknown endianness
8051 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8052 echo "$as_me: error: unknown endianness
8053 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8054 { (exit 1); exit 1; }; } ;;
8058 # Check whether --enable-regdomain or --disable-regdomain was given.
8059 if test "${enable_regdomain+set}" = set; then
8060 enableval="$enable_regdomain"
8061 case "$enableval" in
8064 cat >>confdefs.h <<\_ACEOF
8065 #define NO_REG_DOMAIN 1
8075 ac_config_files="$ac_config_files Makefile src/Makefile ap-gl/Makefile lib/Makefile po/Makefile.in intl/Makefile Documentation/Makefile"
8076 cat >confcache <<\_ACEOF
8077 # This file is a shell script that caches the results of configure
8078 # tests run on this system so they can be shared between configure
8079 # scripts and configure runs, see configure's option --config-cache.
8080 # It is not useful on other systems. If it contains results you don't
8081 # want to keep, you may remove or edit it.
8083 # config.status only pays attention to the cache file if you give it
8084 # the --recheck option to rerun configure.
8086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8092 # The following way of writing the cache mishandles newlines in values,
8093 # but we know of no workaround that is simple, portable, and efficient.
8094 # So, don't put newlines in cache variables' values.
8095 # Ultrix sh set writes to stderr and can't be redirected directly,
8096 # and sets the high bit in the cache file unless we assign to the vars.
8099 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8101 # `set' does not quote correctly, so add quotes (double-quote
8102 # substitution turns \\\\ into \\, and sed turns \\ into \).
8105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8108 # `set' quotes correctly as required by POSIX, so do not add quotes.
8110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8117 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8119 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8121 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8122 if test -w $cache_file; then
8123 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8124 cat confcache >$cache_file
8126 echo "not updating unwritable cache $cache_file"
8131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8132 # Let make expand exec_prefix.
8133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8135 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8136 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8137 # trailing colons and then remove the whole line if VPATH becomes empty
8138 # (actually we leave an empty line to preserve line numbers).
8139 if test "x$srcdir" = x.; then
8140 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8141 s/:*\$(srcdir):*/:/;
8142 s/:*\${srcdir}:*/:/;
8144 s/^\([^=]*=[ ]*\):*/\1/;
8150 DEFS=-DHAVE_CONFIG_H
8154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8155 # 1. Remove the extension, and $U if already installed.
8156 ac_i=`echo "$ac_i" |
8157 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8159 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8160 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8164 LTLIBOBJS=$ac_ltlibobjs
8167 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8168 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8169 Usually this means the macro was only invoked conditionally." >&5
8170 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8171 Usually this means the macro was only invoked conditionally." >&2;}
8172 { (exit 1); exit 1; }; }
8174 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8175 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8176 Usually this means the macro was only invoked conditionally." >&5
8177 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8178 Usually this means the macro was only invoked conditionally." >&2;}
8179 { (exit 1); exit 1; }; }
8182 : ${CONFIG_STATUS=./config.status}
8183 ac_clean_files_save=$ac_clean_files
8184 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8185 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8186 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8187 cat >$CONFIG_STATUS <<_ACEOF
8189 # Generated by $as_me.
8190 # Run this file to recreate the current configuration.
8191 # Compiler output produced by configure, useful for debugging
8192 # configure, is in config.log if it exists.
8197 SHELL=\${CONFIG_SHELL-$SHELL}
8200 cat >>$CONFIG_STATUS <<\_ACEOF
8201 ## --------------------- ##
8202 ## M4sh Initialization. ##
8203 ## --------------------- ##
8205 # Be Bourne compatible
8206 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8209 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8210 # is contrary to our usage. Disable this feature.
8211 alias -g '${1+"$@"}'='"$@"'
8212 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8216 # Support unset when possible.
8217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8224 # Work around bugs in pre-3.0 UWIN ksh.
8225 $as_unset ENV MAIL MAILPATH
8232 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8233 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8234 LC_TELEPHONE LC_TIME
8236 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8237 eval $as_var=C; export $as_var
8243 # Required to use basename.
8244 if expr a : '\(a\)' >/dev/null 2>&1; then
8250 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8251 as_basename=basename
8257 # Name of the executable.
8258 as_me=`$as_basename "$0" ||
8259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8260 X"$0" : 'X\(//\)$' \| \
8261 X"$0" : 'X\(/\)$' \| \
8262 . : '\(.\)' 2>/dev/null ||
8264 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8265 /^X\/\(\/\/\)$/{ s//\1/; q; }
8266 /^X\/\(\/\).*/{ s//\1/; q; }
8270 # PATH needs CR, and LINENO needs CR and PATH.
8271 # Avoid depending upon Character Ranges.
8272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8275 as_cr_digits='0123456789'
8276 as_cr_alnum=$as_cr_Letters$as_cr_digits
8278 # The user is always right.
8279 if test "${PATH_SEPARATOR+set}" != set; then
8280 echo "#! /bin/sh" >conf$$.sh
8281 echo "exit 0" >>conf$$.sh
8283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8294 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8295 test "x$as_lineno_1" != "x$as_lineno_2" &&
8296 test "x$as_lineno_3" = "x$as_lineno_2" || {
8297 # Find who we are. Look in the path if we contain no path at all
8300 *[\\/]* ) as_myself=$0 ;;
8301 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 test -z "$as_dir" && as_dir=.
8306 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8311 # We did not find ourselves, most probably we were run as `sh COMMAND'
8312 # in which case we are not to be found in the path.
8313 if test "x$as_myself" = x; then
8316 if test ! -f "$as_myself"; then
8317 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8318 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8319 { (exit 1); exit 1; }; }
8321 case $CONFIG_SHELL in
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8327 test -z "$as_dir" && as_dir=.
8328 for as_base in sh bash ksh sh5; do
8331 if ("$as_dir/$as_base" -c '
8334 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8335 test "x$as_lineno_1" != "x$as_lineno_2" &&
8336 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8337 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8338 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8339 CONFIG_SHELL=$as_dir/$as_base
8341 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8349 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8350 # uniformly replaced by the line number. The first 'sed' inserts a
8351 # line-number line before each line; the second 'sed' does the real
8352 # work. The second script uses 'N' to pair each line-number line
8353 # with the numbered line, and appends trailing '-' during
8354 # substitution so that $LINENO is not a special case at line end.
8355 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8356 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8357 sed '=' <$as_myself |
8362 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8365 s,^['$as_cr_digits']*\n,,
8367 chmod +x $as_me.lineno ||
8368 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8369 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8370 { (exit 1); exit 1; }; }
8372 # Don't try to exec as it changes $[0], causing all sort of problems
8373 # (the dirname of $[0] is not the place where we might find the
8374 # original and so on. Autoconf is especially sensible to this).
8376 # Exit status is that of the last command.
8381 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8382 *c*,-n*) ECHO_N= ECHO_C='
8384 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8385 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8388 if expr a : '\(a\)' >/dev/null 2>&1; then
8394 rm -f conf$$ conf$$.exe conf$$.file
8396 if ln -s conf$$.file conf$$ 2>/dev/null; then
8397 # We could just check for DJGPP; but this test a) works b) is more generic
8398 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8399 if test -f conf$$.exe; then
8400 # Don't use ln at all; we don't have any links
8405 elif ln conf$$.file conf$$ 2>/dev/null; then
8410 rm -f conf$$ conf$$.exe conf$$.file
8412 if mkdir -p . 2>/dev/null; then
8418 as_executable_p="test -f"
8420 # Sed expression to map a string onto a valid CPP name.
8421 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8423 # Sed expression to map a string onto a valid variable name.
8424 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8428 # We need space, tab and new line, in precisely that order.
8438 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8439 # report actual input values of CONFIG_FILES etc. instead of their
8440 # values after options handling. Logging --version etc. is OK.
8444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8445 ## Running $as_me. ##
8450 This file was extended by $as_me, which was
8451 generated by GNU Autoconf 2.57. Invocation command line was
8453 CONFIG_FILES = $CONFIG_FILES
8454 CONFIG_HEADERS = $CONFIG_HEADERS
8455 CONFIG_LINKS = $CONFIG_LINKS
8456 CONFIG_COMMANDS = $CONFIG_COMMANDS
8460 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8464 # Files that config.status was made for.
8465 if test -n "$ac_config_files"; then
8466 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8469 if test -n "$ac_config_headers"; then
8470 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8473 if test -n "$ac_config_links"; then
8474 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8477 if test -n "$ac_config_commands"; then
8478 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8481 cat >>$CONFIG_STATUS <<\_ACEOF
8484 \`$as_me' instantiates files from templates according to the
8485 current configuration.
8487 Usage: $0 [OPTIONS] [FILE]...
8489 -h, --help print this help, then exit
8490 -V, --version print version number, then exit
8491 -q, --quiet do not print progress messages
8492 -d, --debug don't remove temporary files
8493 --recheck update $as_me by reconfiguring in the same conditions
8494 --file=FILE[:TEMPLATE]
8495 instantiate the configuration file FILE
8496 --header=FILE[:TEMPLATE]
8497 instantiate the configuration header FILE
8499 Configuration files:
8502 Configuration headers:
8505 Configuration commands:
8508 Report bugs to <bug-autoconf@gnu.org>."
8511 cat >>$CONFIG_STATUS <<_ACEOF
8514 configured by $0, generated by GNU Autoconf 2.57,
8515 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8517 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8518 Free Software Foundation, Inc.
8519 This config.status script is free software; the Free Software Foundation
8520 gives unlimited permission to copy, distribute and modify it."
8525 cat >>$CONFIG_STATUS <<\_ACEOF
8526 # If no file are specified by the user, then we need to provide default
8527 # value. By we need to know if files were specified by the user.
8533 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8534 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8542 *) # This is not an option, so the user has probably given explicit
8545 ac_need_defaults=false;;
8549 # Handling of the options.
8551 cat >>$CONFIG_STATUS <<\_ACEOF
8552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8554 --version | --vers* | -V )
8555 echo "$ac_cs_version"; exit 0 ;;
8557 # Conflict between --help and --header
8558 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8559 Try \`$0 --help' for more information." >&5
8560 echo "$as_me: error: ambiguous option: $1
8561 Try \`$0 --help' for more information." >&2;}
8562 { (exit 1); exit 1; }; };;
8563 --help | --hel | -h )
8564 echo "$ac_cs_usage"; exit 0 ;;
8565 --debug | --d* | -d )
8567 --file | --fil | --fi | --f )
8569 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8570 ac_need_defaults=false;;
8571 --header | --heade | --head | --hea )
8573 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8574 ac_need_defaults=false;;
8575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8576 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8580 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8581 Try \`$0 --help' for more information." >&5
8582 echo "$as_me: error: unrecognized option: $1
8583 Try \`$0 --help' for more information." >&2;}
8584 { (exit 1); exit 1; }; } ;;
8586 *) ac_config_targets="$ac_config_targets $1" ;;
8592 ac_configure_extra_args=
8594 if $ac_cs_silent; then
8596 ac_configure_extra_args="$ac_configure_extra_args --silent"
8600 cat >>$CONFIG_STATUS <<_ACEOF
8601 if \$ac_cs_recheck; then
8602 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8603 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8608 cat >>$CONFIG_STATUS <<_ACEOF
8610 # INIT-COMMANDS section.
8613 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8614 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8615 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8617 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8618 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8619 LINGUAS="${LINGUAS-%UNSET%}"
8626 cat >>$CONFIG_STATUS <<\_ACEOF
8627 for ac_config_target in $ac_config_targets
8629 case "$ac_config_target" in
8630 # Handling of arguments.
8631 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8632 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8633 "ap-gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES ap-gl/Makefile" ;;
8634 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8635 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8636 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8637 "Documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES Documentation/Makefile" ;;
8638 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8639 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8640 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8641 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8642 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8643 { (exit 1); exit 1; }; };;
8647 # If the user did not use the arguments to specify the items to instantiate,
8648 # then the envvar interface is used. Set only those that are not.
8649 # We use the long form for the default assignment because of an extremely
8650 # bizarre bug on SunOS 4.1.3.
8651 if $ac_need_defaults; then
8652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8657 # Have a temporary directory for convenience. Make it in the build tree
8658 # simply because there is no reason to put it here, and in addition,
8659 # creating and moving files from /tmp can sometimes cause problems.
8660 # Create a temporary directory, and hook for its removal unless debugging.
8663 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8664 trap '{ (exit 1); exit 1; }' 1 2 13 15
8667 # Create a (secure) tmp directory for tmp files.
8670 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8671 test -n "$tmp" && test -d "$tmp"
8674 tmp=./confstat$$-$RANDOM
8675 (umask 077 && mkdir $tmp)
8678 echo "$me: cannot create a temporary directory in ." >&2
8679 { (exit 1); exit 1; }
8684 cat >>$CONFIG_STATUS <<_ACEOF
8687 # CONFIG_FILES section.
8690 # No need to generate the scripts if there are no CONFIG_FILES.
8691 # This happens for instance when ./config.status config.h
8692 if test -n "\$CONFIG_FILES"; then
8693 # Protect against being on the right side of a sed subst in config.status.
8694 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8695 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8696 s,@SHELL@,$SHELL,;t t
8697 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8698 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8699 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8700 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8701 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8702 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8703 s,@exec_prefix@,$exec_prefix,;t t
8704 s,@prefix@,$prefix,;t t
8705 s,@program_transform_name@,$program_transform_name,;t t
8706 s,@bindir@,$bindir,;t t
8707 s,@sbindir@,$sbindir,;t t
8708 s,@libexecdir@,$libexecdir,;t t
8709 s,@datadir@,$datadir,;t t
8710 s,@sysconfdir@,$sysconfdir,;t t
8711 s,@sharedstatedir@,$sharedstatedir,;t t
8712 s,@localstatedir@,$localstatedir,;t t
8713 s,@libdir@,$libdir,;t t
8714 s,@includedir@,$includedir,;t t
8715 s,@oldincludedir@,$oldincludedir,;t t
8716 s,@infodir@,$infodir,;t t
8717 s,@mandir@,$mandir,;t t
8718 s,@build_alias@,$build_alias,;t t
8719 s,@host_alias@,$host_alias,;t t
8720 s,@target_alias@,$target_alias,;t t
8722 s,@ECHO_C@,$ECHO_C,;t t
8723 s,@ECHO_N@,$ECHO_N,;t t
8724 s,@ECHO_T@,$ECHO_T,;t t
8726 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8727 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8728 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8729 s,@CYGPATH_W@,$CYGPATH_W,;t t
8730 s,@PACKAGE@,$PACKAGE,;t t
8731 s,@VERSION@,$VERSION,;t t
8732 s,@ACLOCAL@,$ACLOCAL,;t t
8733 s,@AUTOCONF@,$AUTOCONF,;t t
8734 s,@AUTOMAKE@,$AUTOMAKE,;t t
8735 s,@AUTOHEADER@,$AUTOHEADER,;t t
8736 s,@MAKEINFO@,$MAKEINFO,;t t
8737 s,@AMTAR@,$AMTAR,;t t
8738 s,@install_sh@,$install_sh,;t t
8739 s,@STRIP@,$STRIP,;t t
8740 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8741 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8743 s,@SET_MAKE@,$SET_MAKE,;t t
8744 s,@am__leading_dot@,$am__leading_dot,;t t
8746 s,@CFLAGS@,$CFLAGS,;t t
8747 s,@LDFLAGS@,$LDFLAGS,;t t
8748 s,@CPPFLAGS@,$CPPFLAGS,;t t
8749 s,@ac_ct_CC@,$ac_ct_CC,;t t
8750 s,@EXEEXT@,$EXEEXT,;t t
8751 s,@OBJEXT@,$OBJEXT,;t t
8752 s,@DEPDIR@,$DEPDIR,;t t
8753 s,@am__include@,$am__include,;t t
8754 s,@am__quote@,$am__quote,;t t
8755 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8756 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8757 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8758 s,@CCDEPMODE@,$CCDEPMODE,;t t
8759 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8760 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8761 s,@RANLIB@,$RANLIB,;t t
8762 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8764 s,@EGREP@,$EGREP,;t t
8765 s,@LIBOBJS@,$LIBOBJS,;t t
8766 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8767 s,@USE_NLS@,$USE_NLS,;t t
8768 s,@MSGFMT@,$MSGFMT,;t t
8769 s,@GMSGFMT@,$GMSGFMT,;t t
8770 s,@XGETTEXT@,$XGETTEXT,;t t
8771 s,@MSGMERGE@,$MSGMERGE,;t t
8772 s,@build@,$build,;t t
8773 s,@build_cpu@,$build_cpu,;t t
8774 s,@build_vendor@,$build_vendor,;t t
8775 s,@build_os@,$build_os,;t t
8777 s,@host_cpu@,$host_cpu,;t t
8778 s,@host_vendor@,$host_vendor,;t t
8779 s,@host_os@,$host_os,;t t
8780 s,@ALLOCA@,$ALLOCA,;t t
8781 s,@GLIBC21@,$GLIBC21,;t t
8782 s,@LIBICONV@,$LIBICONV,;t t
8783 s,@LTLIBICONV@,$LTLIBICONV,;t t
8784 s,@INTLBISON@,$INTLBISON,;t t
8785 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
8786 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8787 s,@CATOBJEXT@,$CATOBJEXT,;t t
8788 s,@DATADIRNAME@,$DATADIRNAME,;t t
8789 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8790 s,@GENCAT@,$GENCAT,;t t
8791 s,@INTLOBJS@,$INTLOBJS,;t t
8792 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
8793 s,@INTLLIBS@,$INTLLIBS,;t t
8794 s,@LIBINTL@,$LIBINTL,;t t
8795 s,@LTLIBINTL@,$LTLIBINTL,;t t
8796 s,@POSUB@,$POSUB,;t t
8797 s,@CURSESLIBS@,$CURSESLIBS,;t t
8798 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8803 cat >>$CONFIG_STATUS <<\_ACEOF
8804 # Split the substitutions into bite-sized pieces for seds with
8805 # small command number limits, like on Digital OSF/1 and HP-UX.
8807 ac_sed_frag=1 # Number of current file.
8808 ac_beg=1 # First line for current file.
8809 ac_end=$ac_max_sed_lines # Line after last line for current file.
8812 while $ac_more_lines; do
8813 if test $ac_beg -gt 1; then
8814 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8816 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8818 if test ! -s $tmp/subs.frag; then
8821 # The purpose of the label and of the branching condition is to
8822 # speed up the sed processing (if there are no `@' at all, there
8823 # is no need to browse any of the substitutions).
8824 # These are the two extra sed commands mentioned above.
8826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8827 if test -z "$ac_sed_cmds"; then
8828 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8830 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8832 ac_sed_frag=`expr $ac_sed_frag + 1`
8834 ac_end=`expr $ac_end + $ac_max_sed_lines`
8837 if test -z "$ac_sed_cmds"; then
8840 fi # test -n "$CONFIG_FILES"
8843 cat >>$CONFIG_STATUS <<\_ACEOF
8844 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8845 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8847 - | *:- | *:-:* ) # input from stdin
8849 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8851 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8853 * ) ac_file_in=$ac_file.in ;;
8856 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8857 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8859 X"$ac_file" : 'X\(//\)[^/]' \| \
8860 X"$ac_file" : 'X\(//\)$' \| \
8861 X"$ac_file" : 'X\(/\)' \| \
8862 . : '\(.\)' 2>/dev/null ||
8864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8866 /^X\(\/\/\)$/{ s//\1/; q; }
8867 /^X\(\/\).*/{ s//\1/; q; }
8869 { if $as_mkdir_p; then
8874 while test ! -d "$as_dir"; do
8875 as_dirs="$as_dir $as_dirs"
8876 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8877 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8878 X"$as_dir" : 'X\(//\)[^/]' \| \
8879 X"$as_dir" : 'X\(//\)$' \| \
8880 X"$as_dir" : 'X\(/\)' \| \
8881 . : '\(.\)' 2>/dev/null ||
8883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8885 /^X\(\/\/\)$/{ s//\1/; q; }
8886 /^X\(\/\).*/{ s//\1/; q; }
8889 test ! -n "$as_dirs" || mkdir $as_dirs
8890 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8891 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8892 { (exit 1); exit 1; }; }; }
8896 if test "$ac_dir" != .; then
8897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8898 # A "../" for each directory in $ac_dir_suffix.
8899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8901 ac_dir_suffix= ac_top_builddir=
8905 .) # No --srcdir option. We are building in place.
8907 if test -z "$ac_top_builddir"; then
8910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8912 [\\/]* | ?:[\\/]* ) # Absolute path.
8913 ac_srcdir=$srcdir$ac_dir_suffix;
8914 ac_top_srcdir=$srcdir ;;
8916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8919 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8921 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8922 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8923 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8924 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8929 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8932 if test x"$ac_file" != x-; then
8933 { echo "$as_me:$LINENO: creating $ac_file" >&5
8934 echo "$as_me: creating $ac_file" >&6;}
8937 # Let's still pretend it is `configure' which instantiates (i.e., don't
8938 # use $as_me), people would be surprised to read:
8939 # /* config.h. Generated by config.status. */
8940 if test x"$ac_file" = x-; then
8943 configure_input="$ac_file. "
8945 configure_input=$configure_input"Generated from `echo $ac_file_in |
8946 sed 's,.*/,,'` by configure."
8948 # First look for the input files in the build tree, otherwise in the
8950 ac_file_inputs=`IFS=:
8951 for f in $ac_file_in; do
8953 -) echo $tmp/stdin ;;
8955 # Absolute (can't be DOS-style, as IFS=:)
8956 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8957 echo "$as_me: error: cannot find input file: $f" >&2;}
8958 { (exit 1); exit 1; }; }
8961 if test -f "$f"; then
8964 elif test -f "$srcdir/$f"; then
8969 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8970 echo "$as_me: error: cannot find input file: $f" >&2;}
8971 { (exit 1); exit 1; }; }
8974 done` || { (exit 1); exit 1; }
8976 cat >>$CONFIG_STATUS <<_ACEOF
8980 cat >>$CONFIG_STATUS <<\_ACEOF
8982 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8983 s,@configure_input@,$configure_input,;t t
8984 s,@srcdir@,$ac_srcdir,;t t
8985 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8986 s,@top_srcdir@,$ac_top_srcdir,;t t
8987 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8988 s,@builddir@,$ac_builddir,;t t
8989 s,@abs_builddir@,$ac_abs_builddir,;t t
8990 s,@top_builddir@,$ac_top_builddir,;t t
8991 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8992 s,@INSTALL@,$ac_INSTALL,;t t
8993 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8995 if test x"$ac_file" != x-; then
8996 mv $tmp/out $ac_file
9004 cat >>$CONFIG_STATUS <<\_ACEOF
9007 # CONFIG_HEADER section.
9010 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9011 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9013 # ac_d sets the value in "#define NAME VALUE" lines.
9014 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9015 ac_dB='[ ].*$,\1#\2'
9018 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9019 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9020 ac_uB='$,\1#\2define\3'
9024 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9025 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9027 - | *:- | *:-:* ) # input from stdin
9029 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9030 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9031 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9033 * ) ac_file_in=$ac_file.in ;;
9036 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9037 echo "$as_me: creating $ac_file" >&6;}
9039 # First look for the input files in the build tree, otherwise in the
9041 ac_file_inputs=`IFS=:
9042 for f in $ac_file_in; do
9044 -) echo $tmp/stdin ;;
9046 # Absolute (can't be DOS-style, as IFS=:)
9047 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9048 echo "$as_me: error: cannot find input file: $f" >&2;}
9049 { (exit 1); exit 1; }; }
9052 if test -f "$f"; then
9055 elif test -f "$srcdir/$f"; then
9060 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9061 echo "$as_me: error: cannot find input file: $f" >&2;}
9062 { (exit 1); exit 1; }; }
9065 done` || { (exit 1); exit 1; }
9066 # Remove the trailing spaces.
9067 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9071 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9072 # `conftest.undefs', that substitutes the proper values into
9073 # config.h.in to produce config.h. The first handles `#define'
9074 # templates, and the second `#undef' templates.
9075 # And first: Protect against being on the right side of a sed subst in
9076 # config.status. Protect against being in an unquoted here document
9078 rm -f conftest.defines conftest.undefs
9079 # Using a here document instead of a string reduces the quoting nightmare.
9080 # Putting comments in sed scripts is not portable.
9082 # `end' is used to avoid that the second main sed command (meant for
9083 # 0-ary CPP macros) applies to n-ary macro definitions.
9084 # See the Autoconf documentation for `clear'.
9085 cat >confdef2sed.sed <<\_ACEOF
9090 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9092 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9095 # If some macros were called several times there might be several times
9096 # the same #defines, which is useless. Nevertheless, we may not want to
9097 # sort them, since we want the *last* AC-DEFINE to be honored.
9098 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9099 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9100 rm -f confdef2sed.sed
9102 # This sed command replaces #undef with comments. This is necessary, for
9103 # example, in the case of _POSIX_SOURCE, which is predefined and required
9104 # on some systems where configure will not decide to define it.
9105 cat >>conftest.undefs <<\_ACEOF
9106 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9109 # Break up conftest.defines because some shells have a limit on the size
9110 # of here documents, and old seds have small limits too (100 cmds).
9111 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9112 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9113 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9114 echo ' :' >>$CONFIG_STATUS
9116 while grep . conftest.defines >/dev/null
9118 # Write a limited-size here document to $tmp/defines.sed.
9119 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9120 # Speed up: don't consider the non `#define' lines.
9121 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9122 # Work around the forget-to-reset-the-flag bug.
9123 echo 't clr' >>$CONFIG_STATUS
9124 echo ': clr' >>$CONFIG_STATUS
9125 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9127 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9131 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9132 rm -f conftest.defines
9133 mv conftest.tail conftest.defines
9135 rm -f conftest.defines
9136 echo ' fi # grep' >>$CONFIG_STATUS
9137 echo >>$CONFIG_STATUS
9139 # Break up conftest.undefs because some shells have a limit on the size
9140 # of here documents, and old seds have small limits too (100 cmds).
9141 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9143 while grep . conftest.undefs >/dev/null
9145 # Write a limited-size here document to $tmp/undefs.sed.
9146 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9147 # Speed up: don't consider the non `#undef'
9148 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9149 # Work around the forget-to-reset-the-flag bug.
9150 echo 't clr' >>$CONFIG_STATUS
9151 echo ': clr' >>$CONFIG_STATUS
9152 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9154 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9158 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9159 rm -f conftest.undefs
9160 mv conftest.tail conftest.undefs
9162 rm -f conftest.undefs
9164 cat >>$CONFIG_STATUS <<\_ACEOF
9165 # Let's still pretend it is `configure' which instantiates (i.e., don't
9166 # use $as_me), people would be surprised to read:
9167 # /* config.h. Generated by config.status. */
9168 if test x"$ac_file" = x-; then
9169 echo "/* Generated by configure. */" >$tmp/config.h
9171 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9173 cat $tmp/in >>$tmp/config.h
9175 if test x"$ac_file" != x-; then
9176 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9177 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9178 echo "$as_me: $ac_file is unchanged" >&6;}
9180 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9182 X"$ac_file" : 'X\(//\)[^/]' \| \
9183 X"$ac_file" : 'X\(//\)$' \| \
9184 X"$ac_file" : 'X\(/\)' \| \
9185 . : '\(.\)' 2>/dev/null ||
9187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9189 /^X\(\/\/\)$/{ s//\1/; q; }
9190 /^X\(\/\).*/{ s//\1/; q; }
9192 { if $as_mkdir_p; then
9197 while test ! -d "$as_dir"; do
9198 as_dirs="$as_dir $as_dirs"
9199 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9201 X"$as_dir" : 'X\(//\)[^/]' \| \
9202 X"$as_dir" : 'X\(//\)$' \| \
9203 X"$as_dir" : 'X\(/\)' \| \
9204 . : '\(.\)' 2>/dev/null ||
9206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9208 /^X\(\/\/\)$/{ s//\1/; q; }
9209 /^X\(\/\).*/{ s//\1/; q; }
9212 test ! -n "$as_dirs" || mkdir $as_dirs
9213 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9214 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9215 { (exit 1); exit 1; }; }; }
9218 mv $tmp/config.h $ac_file
9224 # Compute $ac_file's index in $config_headers.
9226 for _am_header in $config_headers :; do
9228 $ac_file | $ac_file:* )
9231 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9234 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9235 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9236 X$ac_file : 'X\(//\)[^/]' \| \
9237 X$ac_file : 'X\(//\)$' \| \
9238 X$ac_file : 'X\(/\)' \| \
9239 . : '\(.\)' 2>/dev/null ||
9241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9243 /^X\(\/\/\)$/{ s//\1/; q; }
9244 /^X\(\/\).*/{ s//\1/; q; }
9245 s/.*/./; q'`/stamp-h$_am_stamp_count
9248 cat >>$CONFIG_STATUS <<\_ACEOF
9251 # CONFIG_COMMANDS section.
9253 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9254 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9255 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9256 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9257 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9258 X"$ac_dest" : 'X\(//\)[^/]' \| \
9259 X"$ac_dest" : 'X\(//\)$' \| \
9260 X"$ac_dest" : 'X\(/\)' \| \
9261 . : '\(.\)' 2>/dev/null ||
9263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9265 /^X\(\/\/\)$/{ s//\1/; q; }
9266 /^X\(\/\).*/{ s//\1/; q; }
9270 if test "$ac_dir" != .; then
9271 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9272 # A "../" for each directory in $ac_dir_suffix.
9273 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9275 ac_dir_suffix= ac_top_builddir=
9279 .) # No --srcdir option. We are building in place.
9281 if test -z "$ac_top_builddir"; then
9284 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9286 [\\/]* | ?:[\\/]* ) # Absolute path.
9287 ac_srcdir=$srcdir$ac_dir_suffix;
9288 ac_top_srcdir=$srcdir ;;
9290 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9291 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9293 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9295 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9296 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9297 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9298 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9301 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9302 echo "$as_me: executing $ac_dest commands" >&6;}
9304 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9305 # Strip MF so we end up with the name of the file.
9306 mf=`echo "$mf" | sed -e 's/:.*$//'`
9307 # Check whether this is an Automake generated Makefile or not.
9308 # We used to match only the files named `Makefile.in', but
9309 # some people rename them; so instead we look at the file content.
9310 # Grep'ing the first line is not enough: some people post-process
9311 # each Makefile.in and add a new line on top of each file to say so.
9312 # So let's grep whole file.
9313 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9314 dirpart=`(dirname "$mf") 2>/dev/null ||
9315 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9316 X"$mf" : 'X\(//\)[^/]' \| \
9317 X"$mf" : 'X\(//\)$' \| \
9318 X"$mf" : 'X\(/\)' \| \
9319 . : '\(.\)' 2>/dev/null ||
9321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9323 /^X\(\/\/\)$/{ s//\1/; q; }
9324 /^X\(\/\).*/{ s//\1/; q; }
9329 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9330 # Extract the definition of DEP_FILES from the Makefile without
9332 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9333 test -z "$DEPDIR" && continue
9334 # When using ansi2knr, U may be empty or an underscore; expand it
9335 U=`sed -n -e '/^U = / s///p' < "$mf"`
9336 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9337 # We invoke sed twice because it is the simplest approach to
9338 # changing $(DEPDIR) to its actual value in the expansion.
9339 for file in `sed -n -e '
9340 /^DEP_FILES = .*\\\\$/ {
9349 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9350 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9351 # Make sure the directory exists.
9352 test -f "$dirpart/$file" && continue
9353 fdir=`(dirname "$file") 2>/dev/null ||
9354 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9355 X"$file" : 'X\(//\)[^/]' \| \
9356 X"$file" : 'X\(//\)$' \| \
9357 X"$file" : 'X\(/\)' \| \
9358 . : '\(.\)' 2>/dev/null ||
9360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9362 /^X\(\/\/\)$/{ s//\1/; q; }
9363 /^X\(\/\).*/{ s//\1/; q; }
9365 { if $as_mkdir_p; then
9366 mkdir -p $dirpart/$fdir
9368 as_dir=$dirpart/$fdir
9370 while test ! -d "$as_dir"; do
9371 as_dirs="$as_dir $as_dirs"
9372 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9374 X"$as_dir" : 'X\(//\)[^/]' \| \
9375 X"$as_dir" : 'X\(//\)$' \| \
9376 X"$as_dir" : 'X\(/\)' \| \
9377 . : '\(.\)' 2>/dev/null ||
9379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9381 /^X\(\/\/\)$/{ s//\1/; q; }
9382 /^X\(\/\).*/{ s//\1/; q; }
9385 test ! -n "$as_dirs" || mkdir $as_dirs
9386 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9387 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9388 { (exit 1); exit 1; }; }; }
9390 # echo "creating $dirpart/$file"
9391 echo '# dummy' > "$dirpart/$file"
9396 for ac_file in $CONFIG_FILES; do
9397 # Support "outfile[:infile[:infile...]]"
9399 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9401 # PO directories have a Makefile.in generated from Makefile.in.in.
9402 case "$ac_file" in */Makefile.in)
9403 # Adjust a relative srcdir.
9404 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9405 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9406 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9407 # In autoconf-2.13 it is called $ac_given_srcdir.
9408 # In autoconf-2.50 it is called $srcdir.
9409 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9410 case "$ac_given_srcdir" in
9411 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9412 /*) top_srcdir="$ac_given_srcdir" ;;
9413 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9415 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9416 rm -f "$ac_dir/POTFILES"
9417 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9418 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9419 POMAKEFILEDEPS="POTFILES.in"
9420 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9421 # on $ac_dir but don't depend on user-specified configuration
9423 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9424 # The LINGUAS file contains the set of available languages.
9425 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9426 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9428 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9429 # Hide the ALL_LINGUAS assigment from automake.
9430 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9431 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9433 # The set of available languages was given in configure.in.
9434 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9436 case "$ac_given_srcdir" in
9438 *) srcdirpre='$(srcdir)/' ;;
9444 for lang in $ALL_LINGUAS; do
9445 POFILES="$POFILES $srcdirpre$lang.po"
9446 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9447 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9448 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9450 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9451 # environment variable.
9453 if test -n "$ALL_LINGUAS"; then
9454 for presentlang in $ALL_LINGUAS; do
9456 if test "%UNSET%" != "$LINGUAS"; then
9457 desiredlanguages="$LINGUAS"
9459 desiredlanguages="$ALL_LINGUAS"
9461 for desiredlang in $desiredlanguages; do
9462 # Use the presentlang catalog if desiredlang is
9463 # a. equal to presentlang, or
9464 # b. a variant of presentlang (because in this case,
9465 # presentlang can be used as a fallback for messages
9466 # which are not translated in the desiredlang catalog).
9467 case "$desiredlang" in
9468 "$presentlang"*) useit=yes;;
9471 if test $useit = yes; then
9472 INST_LINGUAS="$INST_LINGUAS $presentlang"
9477 if test -n "$INST_LINGUAS"; then
9478 for lang in $INST_LINGUAS; do
9479 CATALOGS="$CATALOGS $lang.gmo"
9482 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9483 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" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9484 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9485 if test -f "$f"; then
9487 *.orig | *.bak | *~) ;;
9488 *) cat "$f" >> "$ac_dir/Makefile" ;;
9500 cat >>$CONFIG_STATUS <<\_ACEOF
9502 { (exit 0); exit 0; }
9504 chmod +x $CONFIG_STATUS
9505 ac_clean_files=$ac_clean_files_save
9508 # configure is writing to config.log, and then calls config.status.
9509 # config.status does its own redirection, appending to config.log.
9510 # Unfortunately, on DOS this fails, as config.log is still kept open
9511 # by configure, so config.status won't be able to write to it; its
9512 # output is simply discarded. So we exec the FD to /dev/null,
9513 # effectively closing config.log, so it can be properly (re)opened and
9514 # appended to by config.status. When coming back to configure, we
9515 # need to make the FD available again.
9516 if test "$no_create" != yes; then
9518 ac_config_status_args=
9519 test "$silent" = yes &&
9520 ac_config_status_args="$ac_config_status_args --quiet"
9522 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9524 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9525 # would make configure fail if this is the last instruction.
9526 $ac_cs_success || { (exit 1); exit 1; }
9532 Thanks for support to Polesye Trade networking equipment
9533 internet shop http://trade.polesye.net
9535 Thank you for using ap-utils!