2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 E2FSPROGS_YEAR E2FSPROGS_MONTH E2FSPROGS_DAY E2FSPROGS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD CPP EGREP LINUX_INCLUDE MAINTAINER_CMT HTREE_CMT ELF_CMT BSDLIB_CMT PROFILE_CMT CHECKER_CMT LIB_EXT STATIC_LIB_EXT PROFILED_LIB_EXT SWAPFS_CMT DEBUGFS_CMT IMAGER_CMT RESIZER_CMT E2FSCK_TYPE FSCK_PROG FSCK_MAN E2INITRD_PROG E2INITRD_MAN GETTEXT_PACKAGE PACKAGE VERSION SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB BINARY_TYPE LN LN_S MV CP RM CHMOD AWK SED PERL LDCONFIG AR ac_ct_AR STRIP ac_ct_STRIP BUILD_CC SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG SOCKET_LIB DLOPEN_LIB LINUX_CMT CYGWIN_CMT UNIX_CMT root_prefix root_bindir root_sbindir root_libdir root_sysconfdir LDFLAG_STATIC SS_DIR ET_DIR DO_TEST_SUITE INTL_FLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-maintainer-mode enable makefile rules useful for maintainers
848 --enable-compression enable EXPERIMENTAL compression support
849 --enable-htree enable EXPERIMENTAL htree directory support
850 --enable-elf-shlibs select ELF shared libraries
851 --enable-bsd-shlibs select BSD shared libraries
852 --enable-profile build profiling libraries
853 --enable-checker build checker libraries
854 --enable-jbd-debug enable journal debugging
855 --enable-blkid-debug enable blkid debugging
856 --enable-testio-debug enable the use of the test I/O manager for debugging
857 --disable-swapfs disable support of legacy byte-swapped filesystems
858 --disable-debugfs disable support of debugfs program
859 --disable-imager disable support of e2image program
860 --disable-resizer disable support of e2resize program
861 --enable-dynamic-e2fsck build e2fsck dynamically
862 --enable-fsck build fsck wrapper program
863 --enable-e2initrd-helper build e2initrd-helper program
864 --disable-nls do not use Native Language Support
865 --disable-rpath do not hardcode runtime library paths
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-diet-libc Use diet libc
871 --with-cc=COMPILER select compiler to use
872 --with-linker=LINKER select linker to use
873 --with-ccopts=CCOPTS select compiler command line options
874 --with-ldopts=LDOPTS select linker command line options
875 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
876 --with-gnu-ld assume the C compiler uses GNU ld default=no
877 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
878 --without-libiconv-prefix don't search for libiconv in includedir and libdir
879 --with-included-gettext use the GNU gettext library included here
880 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
881 --without-libintl-prefix don't search for libintl in includedir and libdir
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
932 .) ac_abs_builddir="$ac_dir";;
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_must_keep_next=false
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 -* ) ac_must_keep_next=true ;;
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1120 # The following way of writing the cache mishandles newlines in values,
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1143 for ac_var in $ac_subst_vars
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -n "$ac_subst_files"; then
1157 for ac_var in $ac_subst_files
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -s confdefs.h; then
1172 sed "/^$/d" confdefs.h | sort
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1255 # Check that the precious variables saved in the cache have kept the same
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332 for ac_dir in config $srcdir/config; do
1333 if test -f $ac_dir/install-sh; then
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 elif test -f $ac_dir/install.sh; then
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 elif test -f $ac_dir/shtool; then
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1360 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1361 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1363 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1364 MONTH=`echo $DATE | awk -F- '{print $2}'`
1365 YEAR=`echo $DATE | awk -F- '{print $3}'`
1367 if expr $YEAR ">" 1900 > /dev/null ; then
1368 E2FSPROGS_YEAR=$YEAR
1369 elif expr $YEAR ">" 90 >/dev/null ; then
1370 E2FSPROGS_YEAR=19$YEAR
1372 E2FSPROGS_YEAR=20$YEAR
1376 Jan) E2FSPROGS_MONTH="January" ;;
1377 Feb) E2FSPROGS_MONTH="February" ;;
1378 Mar) E2FSPROGS_MONTH="March" ;;
1379 Apr) E2FSPROGS_MONTH="April" ;;
1380 May) E2FSPROGS_MONTH="May" ;;
1381 Jun) E2FSPROGS_MONTH="June" ;;
1382 Jul) E2FSPROGS_MONTH="July" ;;
1383 Aug) E2FSPROGS_MONTH="August" ;;
1384 Sep) E2FSPROGS_MONTH="September" ;;
1385 Oct) E2FSPROGS_MONTH="October" ;;
1386 Nov) E2FSPROGS_MONTH="November" ;;
1387 Dec) E2FSPROGS_MONTH="December" ;;
1388 *) echo "Unknown month $MONTH??" ;;
1391 unset DATE MONTH YEAR
1392 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1393 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1398 # Make sure we can run config.sub.
1399 $ac_config_sub sun4 >/dev/null 2>&1 ||
1400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
1404 echo "$as_me:$LINENO: checking build system type" >&5
1405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406 if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 ac_cv_build_alias=$build_alias
1410 test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412 test -z "$ac_cv_build_alias" &&
1413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423 echo "${ECHO_T}$ac_cv_build" >&6
1425 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 echo "$as_me:$LINENO: checking host system type" >&5
1431 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432 if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 ac_cv_host_alias=$host_alias
1436 test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445 echo "${ECHO_T}$ac_cv_host" >&6
1447 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 # Check whether --with-diet-libc or --without-diet-libc was given.
1454 if test "${with_diet_libc+set}" = set; then
1455 withval="$with_diet_libc"
1456 CC="diet cc -nostdinc"
1457 echo "$as_me:$LINENO: result: CC=$CC" >&5
1458 echo "${ECHO_T}CC=$CC" >&6
1460 # Check whether --with-cc or --without-cc was given.
1461 if test "${with_cc+set}" = set; then
1463 echo "$as_me:$LINENO: result: CC=$withval" >&5
1464 echo "${ECHO_T}CC=$withval" >&6
1467 if test -z "$CC" ; then CC=cc; fi
1468 echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1469 echo "${ECHO_T}CC defaults to $CC" >&6
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 if test -n "$ac_tool_prefix"; then
1478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 if test -n "$CC"; then
1506 echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1514 if test -z "$ac_cv_prog_CC"; then
1516 # Extract the first word of "gcc", so it can be a program name with args.
1517 set dummy gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_ac_ct_CC="gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1556 if test -z "$CC"; then
1557 if test -n "$ac_tool_prefix"; then
1558 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559 set dummy ${ac_tool_prefix}cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 if test -n "$CC"; then
1566 ac_cv_prog_CC="$CC" # Let the user override the test.
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_CC="${ac_tool_prefix}cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585 if test -n "$CC"; then
1586 echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1589 echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1594 if test -z "$ac_cv_prog_CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 if test -n "$ac_ct_CC"; then
1604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_ac_ct_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1637 if test -z "$CC"; then
1638 # Extract the first word of "cc", so it can be a program name with args.
1639 set dummy cc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 if test -n "$CC"; then
1646 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657 ac_prog_rejected=yes
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test $ac_prog_rejected = yes; then
1668 # We found a bogon in the path, so make sure we never use it.
1669 set dummy $ac_cv_prog_CC
1671 if test $# != 0; then
1672 # We chose a different compiler from the bogus one.
1673 # However, it has the same basename, so the bogon will be chosen
1674 # first if we set CC to just the basename; use the full file name.
1676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1691 if test -z "$CC"; then
1692 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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
1730 test -n "$CC" && break
1733 if test -z "$CC"; then
1737 # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_ac_ct_CC="$ac_prog"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1772 test -n "$ac_ct_CC" && break
1781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&2;}
1785 { (exit 1); exit 1; }; }
1787 # Provide some information about the compiler.
1788 echo "$as_me:$LINENO:" \
1789 "checking for C compiler version" >&5
1790 ac_compiler=`set X $ac_compile; echo $2`
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792 (eval $ac_compiler --version </dev/null >&5) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797 (eval $ac_compiler -v </dev/null >&5) 2>&5
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802 (eval $ac_compiler -V </dev/null >&5) 2>&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1807 cat >conftest.$ac_ext <<_ACEOF
1810 cat confdefs.h >>conftest.$ac_ext
1811 cat >>conftest.$ac_ext <<_ACEOF
1812 /* end confdefs.h. */
1822 ac_clean_files_save=$ac_clean_files
1823 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1824 # Try to create an executable without -o first, disregard a.out.
1825 # It will help us diagnose broken compilers, and finding out an intuition
1827 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1828 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1829 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1830 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1831 (eval $ac_link_default) 2>&5
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; then
1835 # Find the output, starting from the most likely. This scheme is
1836 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1839 # Be careful to initialize this variable, since it used to be cached.
1840 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842 # b.out is created by i960 compilers.
1843 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845 test -f "$ac_file" || continue
1847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1850 # This is the source file.
1853 # We found the default executable, but exeext='' is most
1857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1858 # FIXME: I believe we export ac_cv_exeext for Libtool,
1859 # but it would be cool to find out if it's true. Does anybody
1860 # maintain Libtool? --akim.
1868 echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1872 See \`config.log' for more details." >&5
1873 echo "$as_me: error: C compiler cannot create executables
1874 See \`config.log' for more details." >&2;}
1875 { (exit 77); exit 77; }; }
1878 ac_exeext=$ac_cv_exeext
1879 echo "$as_me:$LINENO: result: $ac_file" >&5
1880 echo "${ECHO_T}$ac_file" >&6
1882 # Check the compiler produces executables we can run. If not, either
1883 # the compiler is broken, or we cross compile.
1884 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1885 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1886 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1887 # If not cross compiling, check that we can run a simple program.
1888 if test "$cross_compiling" != yes; then
1889 if { ac_try='./$ac_file'
1890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; }; then
1897 if test "$cross_compiling" = maybe; then
1900 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot run C compiled programs.
1904 If you meant to cross compile, use \`--host'.
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1910 echo "$as_me:$LINENO: result: yes" >&5
1911 echo "${ECHO_T}yes" >&6
1913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1914 ac_clean_files=$ac_clean_files_save
1915 # Check the compiler produces executables we can run. If not, either
1916 # the compiler is broken, or we cross compile.
1917 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1919 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1920 echo "${ECHO_T}$cross_compiling" >&6
1922 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1925 (eval $ac_link) 2>&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; then
1929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1930 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1931 # work properly (i.e., refer to `conftest.exe'), while it won't with
1933 for ac_file in conftest.exe conftest conftest.*; do
1934 test -f "$ac_file" || continue
1936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&5
1946 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1947 See \`config.log' for more details." >&2;}
1948 { (exit 1); exit 1; }; }
1951 rm -f conftest$ac_cv_exeext
1952 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1953 echo "${ECHO_T}$ac_cv_exeext" >&6
1955 rm -f conftest.$ac_ext
1956 EXEEXT=$ac_cv_exeext
1958 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1959 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1960 if test "${ac_cv_objext+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 cat >conftest.$ac_ext <<_ACEOF
1966 cat confdefs.h >>conftest.$ac_ext
1967 cat >>conftest.$ac_ext <<_ACEOF
1968 /* end confdefs.h. */
1978 rm -f conftest.o conftest.obj
1979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; then
1984 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1992 echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2004 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2005 echo "${ECHO_T}$ac_cv_objext" >&6
2006 OBJEXT=$ac_cv_objext
2008 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2009 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2010 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 cat >conftest.$ac_ext <<_ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>conftest.er1
2035 grep -v '^ *+' conftest.er1 >conftest.err
2037 cat conftest.err >&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2063 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2065 GCC=`test $ac_compiler_gnu = yes && echo yes`
2066 ac_test_CFLAGS=${CFLAGS+set}
2067 ac_save_CFLAGS=$CFLAGS
2069 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2071 if test "${ac_cv_prog_cc_g+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 cat >conftest.$ac_ext <<_ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h. */
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>conftest.er1
2093 grep -v '^ *+' conftest.er1 >conftest.err
2095 cat conftest.err >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2112 echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2120 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2121 if test "$ac_test_CFLAGS" = set; then
2122 CFLAGS=$ac_save_CFLAGS
2123 elif test $ac_cv_prog_cc_g = yes; then
2124 if test "$GCC" = yes; then
2130 if test "$GCC" = yes; then
2136 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2137 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2138 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 ac_cv_prog_cc_stdc=no
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2151 #include <sys/types.h>
2152 #include <sys/stat.h>
2153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2154 struct buf { int x; };
2155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2156 static char *e (p, i)
2162 static char *f (char * (*g) (char **, int), char **p, ...)
2167 s = g (p, va_arg (v,int));
2172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2173 function prototypes and stuff, but not '\xHH' hex character constants.
2174 These don't provoke an error unfortunately, instead are silently treated
2175 as 'x'. The following induces an error, until -std1 is added to get
2176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2177 array size at least. It's necessary to write '\x00'==0 to get something
2178 that's true only with -std1. */
2179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2181 int test (int i, double x);
2182 struct s1 {int (*f) (int a);};
2183 struct s2 {int (*f) (double a);};
2184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2190 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2195 # Don't try gcc -ansi; that turns off useful extensions and
2196 # breaks some systems' header files.
2197 # AIX -qlanglvl=ansi
2198 # Ultrix and OSF/1 -std1
2199 # HP-UX 10.20 and later -Ae
2200 # HP-UX older versions -Aa -D_HPUX_SOURCE
2201 # SVR4 -Xc -D__EXTENSIONS__
2202 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2204 CC="$ac_save_CC $ac_arg"
2205 rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2209 grep -v '^ *+' conftest.er1 >conftest.err
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 ac_cv_prog_cc_stdc=$ac_arg
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2233 rm -f conftest.err conftest.$ac_objext
2235 rm -f conftest.$ac_ext conftest.$ac_objext
2240 case "x$ac_cv_prog_cc_stdc" in
2242 echo "$as_me:$LINENO: result: none needed" >&5
2243 echo "${ECHO_T}none needed" >&6 ;;
2245 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2246 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2247 CC="$CC $ac_cv_prog_cc_stdc" ;;
2250 # Some people use a C++ compiler to compile C. Since we use `exit',
2251 # in C++ we need to declare it. In case someone uses the same compiler
2252 # for both compiling C and C++ we need to have the C++ compiler decide
2253 # the declaration of exit, since it's the most demanding environment.
2254 cat >conftest.$ac_ext <<_ACEOF
2259 rm -f conftest.$ac_objext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>conftest.er1
2263 grep -v '^ *+' conftest.er1 >conftest.err
2265 cat conftest.err >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 for ac_declaration in \
2282 'extern "C" void std::exit (int) throw (); using std::exit;' \
2283 'extern "C" void std::exit (int); using std::exit;' \
2284 'extern "C" void exit (int) throw ();' \
2285 'extern "C" void exit (int);' \
2288 cat >conftest.$ac_ext <<_ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>conftest.er1
2308 grep -v '^ *+' conftest.er1 >conftest.err
2310 cat conftest.err >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 cat >conftest.$ac_ext <<_ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>conftest.er1
2352 grep -v '^ *+' conftest.er1 >conftest.err
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2378 if test -n "$ac_declaration"; then
2379 echo '#ifdef __cplusplus' >>confdefs.h
2380 echo $ac_declaration >>confdefs.h
2381 echo '#endif' >>confdefs.h
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 # Check whether --with-linker or --without-linker was given.
2398 if test "${with_linker+set}" = set; then
2399 withval="$with_linker"
2400 echo "$as_me:$LINENO: result: LD=$withval" >&5
2401 echo "${ECHO_T}LD=$withval" >&6
2404 if test -z "$LD" ; then LD=$CC; fi
2405 echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2406 echo "${ECHO_T}LD defaults to $LD" >&6
2410 # Check whether --with-ccopts or --without-ccopts was given.
2411 if test "${with_ccopts+set}" = set; then
2412 withval="$with_ccopts"
2413 echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2414 echo "${ECHO_T}CCOPTS is $withval" >&6
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2423 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2424 # On Suns, sometimes $CPP names a directory.
2425 if test -n "$CPP" && test -d "$CPP"; then
2428 if test -z "$CPP"; then
2429 if test "${ac_cv_prog_CPP+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 # Double quotes because CPP needs to be expanded
2433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2436 for ac_c_preproc_warn_flag in '' yes
2438 # Use a header file that comes with gcc, so configuring glibc
2439 # with a fresh cross-compiler works.
2440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2441 # <limits.h> exists even on freestanding compilers.
2442 # On the NeXT, cc -E runs the code through the compiler's parser,
2443 # not just through cpp. "Syntax error" is here to catch this case.
2444 cat >conftest.$ac_ext <<_ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2451 # include <limits.h>
2453 # include <assert.h>
2457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460 grep -v '^ *+' conftest.er1 >conftest.err
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } >/dev/null; then
2465 if test -s conftest.err; then
2466 ac_cpp_err=$ac_c_preproc_warn_flag
2467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2474 if test -z "$ac_cpp_err"; then
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2480 # Broken: fails on valid input.
2483 rm -f conftest.err conftest.$ac_ext
2485 # OK, works on sane cases. Now check whether non-existent headers
2486 # can be detected and how.
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2493 #include <ac_nonexistent.h>
2495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 grep -v '^ *+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } >/dev/null; then
2503 if test -s conftest.err; then
2504 ac_cpp_err=$ac_c_preproc_warn_flag
2505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2512 if test -z "$ac_cpp_err"; then
2513 # Broken: success on invalid input.
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2519 # Passes both tests.
2523 rm -f conftest.err conftest.$ac_ext
2526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2527 rm -f conftest.err conftest.$ac_ext
2528 if $ac_preproc_ok; then
2540 echo "$as_me:$LINENO: result: $CPP" >&5
2541 echo "${ECHO_T}$CPP" >&6
2543 for ac_c_preproc_warn_flag in '' yes
2545 # Use a header file that comes with gcc, so configuring glibc
2546 # with a fresh cross-compiler works.
2547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2548 # <limits.h> exists even on freestanding compilers.
2549 # On the NeXT, cc -E runs the code through the compiler's parser,
2550 # not just through cpp. "Syntax error" is here to catch this case.
2551 cat >conftest.$ac_ext <<_ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2558 # include <limits.h>
2560 # include <assert.h>
2564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2567 grep -v '^ *+' conftest.er1 >conftest.err
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } >/dev/null; then
2572 if test -s conftest.err; then
2573 ac_cpp_err=$ac_c_preproc_warn_flag
2574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2581 if test -z "$ac_cpp_err"; then
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2587 # Broken: fails on valid input.
2590 rm -f conftest.err conftest.$ac_ext
2592 # OK, works on sane cases. Now check whether non-existent headers
2593 # can be detected and how.
2594 cat >conftest.$ac_ext <<_ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2600 #include <ac_nonexistent.h>
2602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2605 grep -v '^ *+' conftest.er1 >conftest.err
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } >/dev/null; then
2610 if test -s conftest.err; then
2611 ac_cpp_err=$ac_c_preproc_warn_flag
2612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2619 if test -z "$ac_cpp_err"; then
2620 # Broken: success on invalid input.
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2626 # Passes both tests.
2630 rm -f conftest.err conftest.$ac_ext
2633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2634 rm -f conftest.err conftest.$ac_ext
2635 if $ac_preproc_ok; then
2638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 echo "$as_me:$LINENO: checking for egrep" >&5
2653 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2654 if test "${ac_cv_prog_egrep+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2658 then ac_cv_prog_egrep='grep -E'
2659 else ac_cv_prog_egrep='egrep'
2662 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2663 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2664 EGREP=$ac_cv_prog_egrep
2667 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2668 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2669 if test "${ac_cv_header_stdc+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2691 rm -f conftest.$ac_objext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>conftest.er1
2695 grep -v '^ *+' conftest.er1 >conftest.err
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_cv_header_stdc=yes
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2717 ac_cv_header_stdc=no
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721 if test $ac_cv_header_stdc = yes; then
2722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2723 cat >conftest.$ac_ext <<_ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2733 $EGREP "memchr" >/dev/null 2>&1; then
2736 ac_cv_header_stdc=no
2742 if test $ac_cv_header_stdc = yes; then
2743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2744 cat >conftest.$ac_ext <<_ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2754 $EGREP "free" >/dev/null 2>&1; then
2757 ac_cv_header_stdc=no
2763 if test $ac_cv_header_stdc = yes; then
2764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2765 if test "$cross_compiling" = yes; then
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2775 #if ((' ' & 0x0FF) == 0x020)
2776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2779 # define ISLOWER(c) \
2780 (('a' <= (c) && (c) <= 'i') \
2781 || ('j' <= (c) && (c) <= 'r') \
2782 || ('s' <= (c) && (c) <= 'z'))
2783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2791 for (i = 0; i < 256; i++)
2792 if (XOR (islower (i), ISLOWER (i))
2793 || toupper (i) != TOUPPER (i))
2798 rm -f conftest$ac_exeext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2800 (eval $ac_link) 2>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2811 echo "$as_me: program exited with status $ac_status" >&5
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2816 ac_cv_header_stdc=no
2818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2822 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2823 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2824 if test $ac_cv_header_stdc = yes; then
2826 cat >>confdefs.h <<\_ACEOF
2827 #define STDC_HEADERS 1
2832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2842 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2843 inttypes.h stdint.h unistd.h
2845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2846 echo "$as_me:$LINENO: checking for $ac_header" >&5
2847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 cat >conftest.$ac_ext <<_ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857 $ac_includes_default
2859 #include <$ac_header>
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2865 grep -v '^ *+' conftest.er1 >conftest.err
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 eval "$as_ac_Header=yes"
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 eval "$as_ac_Header=no"
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2894 cat >>confdefs.h <<_ACEOF
2895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2903 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2904 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2905 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2906 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2910 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2912 # Is the header compilable?
2913 echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2914 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 $ac_includes_default
2922 #include <linux/fs.h>
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; } &&
2939 { ac_try='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 ac_header_compiler=yes
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 ac_header_compiler=no
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2954 echo "${ECHO_T}$ac_header_compiler" >&6
2956 # Is the header present?
2957 echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2958 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965 #include <linux/fs.h>
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970 grep -v '^ *+' conftest.er1 >conftest.err
2972 cat conftest.err >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } >/dev/null; then
2975 if test -s conftest.err; then
2976 ac_cpp_err=$ac_c_preproc_warn_flag
2977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2984 if test -z "$ac_cpp_err"; then
2985 ac_header_preproc=yes
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 ac_header_preproc=no
2992 rm -f conftest.err conftest.$ac_ext
2993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2994 echo "${ECHO_T}$ac_header_preproc" >&6
2996 # So? What about this header?
2997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2999 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3000 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3001 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3002 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3003 ac_header_preproc=yes
3006 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3007 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3008 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3009 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3010 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3011 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3012 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3013 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3014 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3015 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3016 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3017 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3020 ## ------------------------------------------ ##
3021 ## Report this to the AC_PACKAGE_NAME lists. ##
3022 ## ------------------------------------------ ##
3025 sed "s/^/$as_me: WARNING: /" >&2
3028 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3029 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3030 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 ac_cv_header_linux_fs_h=$ac_header_preproc
3035 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3036 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3039 if test $ac_cv_header_linux_fs_h = yes; then
3046 if test "$linux_headers" != yes; then
3047 LINUX_INCLUDE='-I$(top_builddir)/include'
3050 echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3051 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
3052 if test "$GCC" = yes
3055 alpha) addcflags="-mieee" ;;
3058 if test "x$addcflags" != x
3060 echo "$as_me:$LINENO: result: $addcflags" >&5
3061 echo "${ECHO_T}$addcflags" >&6
3062 CFLAGS="$addcflags $CFLAGS"
3064 echo "$as_me:$LINENO: result: (none)" >&5
3065 echo "${ECHO_T}(none)" >&6
3071 # Check whether --with-ldopts or --without-ldopts was given.
3072 if test "${with_ldopts+set}" = set; then
3073 withval="$with_ldopts"
3074 echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3075 echo "${ECHO_T}LDFLAGS is $withval" >&6
3081 # Check whether --with-root-prefix or --without-root-prefix was given.
3082 if test "${with_root_prefix+set}" = set; then
3083 withval="$with_root_prefix"
3084 root_prefix=$withval
3087 fi; # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3088 if test "${enable_maintainer_mode+set}" = set; then
3089 enableval="$enable_maintainer_mode"
3090 if test "$enableval" = "no"
3093 echo "Disabling maintainer mode"
3096 echo "Enabling maintainer mode"
3101 echo "Disabling maintainer mode by default"
3105 # Check whether --enable-compression or --disable-compression was given.
3106 if test "${enable_compression+set}" = set; then
3107 enableval="$enable_compression"
3108 if test "$enableval" = "no"
3110 echo "Disabling compression support"
3112 cat >>confdefs.h <<\_ACEOF
3113 #define ENABLE_COMPRESSION 1
3116 echo "Enabling compression support"
3117 echo "WARNING: Compression support is experimental"
3121 echo "Disabling compression support by default"
3124 # Check whether --enable-htree or --disable-htree was given.
3125 if test "${enable_htree+set}" = set; then
3126 enableval="$enable_htree"
3127 if test "$enableval" = "no"
3130 echo "Disabling htree directory support"
3133 cat >>confdefs.h <<\_ACEOF
3134 #define ENABLE_HTREE 1
3137 echo "Enabling htree directory support"
3142 cat >>confdefs.h <<\_ACEOF
3143 #define ENABLE_HTREE 1
3146 echo "Enabling htree directory support by default"
3150 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
3151 if test "${enable_elf_shlibs+set}" = set; then
3152 enableval="$enable_elf_shlibs"
3153 if test "$enableval" = "no"
3156 MAKEFILE_ELF=/dev/null
3157 echo "Disabling ELF shared libraries"
3160 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3163 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3168 echo "Enabling ELF shared libraries"
3172 MAKEFILE_ELF=/dev/null
3174 echo "Disabling ELF shared libraries by default"
3179 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
3180 if test "${enable_bsd_shlibs+set}" = set; then
3181 enableval="$enable_bsd_shlibs"
3182 if test "$enableval" = "no"
3185 MAKEFILE_BSDLIB=/dev/null
3186 echo "Disabling BSD shared libraries"
3189 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3193 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3197 echo "Enabling BSD shared libraries"
3201 MAKEFILE_BSDLIB=/dev/null
3203 echo "Disabling BSD shared libraries by default"
3208 # Check whether --enable-profile or --disable-profile was given.
3209 if test "${enable_profile+set}" = set; then
3210 enableval="$enable_profile"
3211 if test "$enableval" = "no"
3214 MAKEFILE_PROFILE=/dev/null
3215 echo "Disabling profiling libraries"
3218 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3219 PROFILED_LIB_EXT=_p.a
3220 echo "Building profiling libraries"
3225 MAKEFILE_PROFILE=/dev/null
3226 echo "Disabling profiling libraries by default"
3231 # Check whether --enable-checker or --disable-checker was given.
3232 if test "${enable_checker+set}" = set; then
3233 enableval="$enable_checker"
3234 if test "$enableval" = "no"
3237 MAKEFILE_CHECKER=/dev/null
3238 echo "Disabling checker libraries"
3241 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3242 echo "Building checker libraries"
3247 MAKEFILE_CHECKER=/dev/null
3248 echo "Disabling checker libraries by default"
3256 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3257 if test "${enable_jbd_debug+set}" = set; then
3258 enableval="$enable_jbd_debug"
3259 if test "$enableval" = "no"
3261 echo "Disabling journal debugging"
3263 cat >>confdefs.h <<\_ACEOF
3264 #define CONFIG_JBD_DEBUG 1
3267 echo "Enabling journal debugging"
3271 echo "Disabling journal debugging by default"
3274 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3275 if test "${enable_blkid_debug+set}" = set; then
3276 enableval="$enable_blkid_debug"
3277 if test "$enableval" = "no"
3279 echo "Disabling blkid debugging"
3281 cat >>confdefs.h <<\_ACEOF
3282 #define CONFIG_BLKID_DEBUG 1
3285 echo "Enabling blkid debugging"
3289 echo "Disabling blkid debugging by default"
3292 # Check whether --enable-testio-debug or --disable-testio-debug was given.
3293 if test "${enable_testio_debug+set}" = set; then
3294 enableval="$enable_testio_debug"
3295 if test "$enableval" = "no"
3297 echo "Disabling testio debugging"
3299 cat >>confdefs.h <<\_ACEOF
3300 #define CONFIG_TESTIO_DEBUG 1
3303 echo "Enabling testio debugging"
3307 echo "Disabling testio debugging by default"
3310 # Check whether --enable-swapfs or --disable-swapfs was given.
3311 if test "${enable_swapfs+set}" = set; then
3312 enableval="$enable_swapfs"
3313 if test "$enableval" = "no"
3316 echo "Disabling swapfs support"
3319 cat >>confdefs.h <<\_ACEOF
3320 #define ENABLE_SWAPFS 1
3323 echo "Enabling swapfs support"
3328 echo "Enabling swapfs support by default"
3329 cat >>confdefs.h <<\_ACEOF
3330 #define ENABLE_SWAPFS 1
3336 # Check whether --enable-debugfs or --disable-debugfs was given.
3337 if test "${enable_debugfs+set}" = set; then
3338 enableval="$enable_debugfs"
3339 if test "$enableval" = "no"
3341 echo "Disabling debugfs support"
3345 echo "Enabling debugfs support"
3349 echo "Enabling debugfs support by default"
3354 # Check whether --enable-imager or --disable-imager was given.
3355 if test "${enable_imager+set}" = set; then
3356 enableval="$enable_imager"
3357 if test "$enableval" = "no"
3359 echo "Disabling e2image support"
3363 echo "Enabling e2image support"
3367 echo "Enabling e2image support by default"
3372 # Check whether --enable-resizer or --disable-resizer was given.
3373 if test "${enable_resizer+set}" = set; then
3374 enableval="$enable_resizer"
3375 if test "$enableval" = "no"
3377 echo "Disabling e2resize support"
3381 echo "Enabling e2resize support"
3385 echo "Enabling e2resize support by default"
3390 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3391 if test "${enable_dynamic_e2fsck+set}" = set; then
3392 enableval="$enable_dynamic_e2fsck"
3393 if test "$enableval" = "no"
3396 echo "Building e2fsck statically"
3399 echo "Building e2fsck dynamically"
3404 echo "Building e2fsck statically by default"
3408 # Check whether --enable-fsck or --disable-fsck was given.
3409 if test "${enable_fsck+set}" = set; then
3410 enableval="$enable_fsck"
3411 if test "$enableval" = "no"
3413 FSCK_PROG='' FSCK_MAN=''
3414 echo "Not building fsck wrapper"
3416 FSCK_PROG=fsck FSCK_MAN=fsck.8
3417 echo "Building fsck wrapper"
3423 FSCK_PROG='' FSCK_MAN=''
3424 echo "Not building fsck wrapper by default"
3427 FSCK_PROG=fsck FSCK_MAN=fsck.8
3428 echo "Building fsck wrapper by default"
3434 # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3435 if test "${enable_e2initrd_helper+set}" = set; then
3436 enableval="$enable_e2initrd_helper"
3437 if test "$enableval" = "no"
3439 E2INITRD_PROG='' E2INITRD_MAN=''
3440 echo "Not building e2initrd helper"
3442 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3443 echo "Building e2initrd helper"
3447 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3448 echo "Building e2initrd helper by default"
3453 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3455 GETTEXT_PACKAGE=e2fsprogs
3457 VERSION="$E2FSPROGS_VERSION"
3459 cat >>confdefs.h <<_ACEOF
3460 #define PACKAGE "$PACKAGE"
3463 cat >>confdefs.h <<_ACEOF
3464 #define VERSION "$VERSION"
3471 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3472 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3473 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3474 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 cat >conftest.make <<\_ACEOF
3479 @echo 'ac_maketemp="$(MAKE)"'
3481 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3482 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3483 if test -n "$ac_maketemp"; then
3484 eval ac_cv_prog_make_${ac_make}_set=yes
3486 eval ac_cv_prog_make_${ac_make}_set=no
3490 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3491 echo "$as_me:$LINENO: result: yes" >&5
3492 echo "${ECHO_T}yes" >&6
3495 echo "$as_me:$LINENO: result: no" >&5
3496 echo "${ECHO_T}no" >&6
3497 SET_MAKE="MAKE=${MAKE-make}"
3500 # Find a good install program. We prefer a C program (faster),
3501 # so one script is as good as another. But avoid the broken or
3502 # incompatible versions:
3503 # SysV /etc/install, /usr/sbin/install
3504 # SunOS /usr/etc/install
3505 # IRIX /sbin/install
3507 # AmigaOS /C/install, which installs bootblocks on floppy discs
3508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3511 # OS/2's system install, which has a completely different semantic
3512 # ./install, which can be erroneously created by make from ./install.sh.
3513 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3514 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3515 if test -z "$INSTALL"; then
3516 if test "${ac_cv_path_install+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir=.
3524 # Account for people who put trailing slashes in PATH elements.
3526 ./ | .// | /cC/* | \
3527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3528 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3531 # OSF1 and SCO ODT 3.0 have their own names for install.
3532 # Don't use installbsd from OSF since it installs stuff as root
3534 for ac_prog in ginstall scoinst install; do
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3537 if test $ac_prog = install &&
3538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3539 # AIX install. It has an incompatible calling convention.
3541 elif test $ac_prog = install &&
3542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3543 # program-specific install script used by HP pwplus--don't use.
3546 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3558 if test "${ac_cv_path_install+set}" = set; then
3559 INSTALL=$ac_cv_path_install
3561 # As a last resort, use the slow shell script. We don't cache a
3562 # path for INSTALL within a source directory, because that will
3563 # break other packages using the cache if that directory is
3564 # removed, or if the path is relative.
3565 INSTALL=$ac_install_sh
3568 echo "$as_me:$LINENO: result: $INSTALL" >&5
3569 echo "${ECHO_T}$INSTALL" >&6
3571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572 # It thinks the first close brace ends the variable substitution.
3573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3581 if test -n "$ac_aux_dir"; then
3582 case "$ac_aux_dir" in
3583 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3584 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3587 if test -z "$MKINSTALLDIRS"; then
3588 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3593 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3594 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3595 # Check whether --enable-nls or --disable-nls was given.
3596 if test "${enable_nls+set}" = set; then
3597 enableval="$enable_nls"
3602 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3603 echo "${ECHO_T}$USE_NLS" >&6
3610 # Prepare PATH_SEPARATOR.
3611 # The user is always right.
3612 if test "${PATH_SEPARATOR+set}" != set; then
3613 echo "#! /bin/sh" >conf$$.sh
3614 echo "exit 0" >>conf$$.sh
3616 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3624 # Find out how to test for executable files. Don't use a zero-byte file,
3625 # as systems may use methods other than mode bits to determine executability.
3626 cat >conf$$.file <<_ASEOF
3630 chmod +x conf$$.file
3631 if test -x conf$$.file >/dev/null 2>&1; then
3632 ac_executable_p="test -x"
3634 ac_executable_p="test -f"
3638 # Extract the first word of "msgfmt", so it can be a program name with args.
3639 set dummy msgfmt; ac_word=$2
3640 echo "$as_me:$LINENO: checking for $ac_word" >&5
3641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3642 if test "${ac_cv_path_MSGFMT+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3650 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3651 for ac_dir in $PATH; do
3653 test -z "$ac_dir" && ac_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3656 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3657 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3658 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3665 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3669 MSGFMT="$ac_cv_path_MSGFMT"
3670 if test "$MSGFMT" != ":"; then
3671 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3672 echo "${ECHO_T}$MSGFMT" >&6
3674 echo "$as_me:$LINENO: result: no" >&5
3675 echo "${ECHO_T}no" >&6
3678 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3679 set dummy gmsgfmt; ac_word=$2
3680 echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3708 GMSGFMT=$ac_cv_path_GMSGFMT
3710 if test -n "$GMSGFMT"; then
3711 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3712 echo "${ECHO_T}$GMSGFMT" >&6
3714 echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6
3720 # Prepare PATH_SEPARATOR.
3721 # The user is always right.
3722 if test "${PATH_SEPARATOR+set}" != set; then
3723 echo "#! /bin/sh" >conf$$.sh
3724 echo "exit 0" >>conf$$.sh
3726 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3734 # Find out how to test for executable files. Don't use a zero-byte file,
3735 # as systems may use methods other than mode bits to determine executability.
3736 cat >conf$$.file <<_ASEOF
3740 chmod +x conf$$.file
3741 if test -x conf$$.file >/dev/null 2>&1; then
3742 ac_executable_p="test -x"
3744 ac_executable_p="test -f"
3748 # Extract the first word of "xgettext", so it can be a program name with args.
3749 set dummy xgettext; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3760 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3761 for ac_dir in $PATH; do
3763 test -z "$ac_dir" && ac_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3766 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3767 (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
3768 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3775 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3779 XGETTEXT="$ac_cv_path_XGETTEXT"
3780 if test "$XGETTEXT" != ":"; then
3781 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3782 echo "${ECHO_T}$XGETTEXT" >&6
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3791 # Prepare PATH_SEPARATOR.
3792 # The user is always right.
3793 if test "${PATH_SEPARATOR+set}" != set; then
3794 echo "#! /bin/sh" >conf$$.sh
3795 echo "exit 0" >>conf$$.sh
3797 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3805 # Find out how to test for executable files. Don't use a zero-byte file,
3806 # as systems may use methods other than mode bits to determine executability.
3807 cat >conf$$.file <<_ASEOF
3811 chmod +x conf$$.file
3812 if test -x conf$$.file >/dev/null 2>&1; then
3813 ac_executable_p="test -x"
3815 ac_executable_p="test -f"
3819 # Extract the first word of "msgmerge", so it can be a program name with args.
3820 set dummy msgmerge; ac_word=$2
3821 echo "$as_me:$LINENO: checking for $ac_word" >&5
3822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3823 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3831 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3832 for ac_dir in $PATH; do
3834 test -z "$ac_dir" && ac_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3837 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3838 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3845 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3849 MSGMERGE="$ac_cv_path_MSGMERGE"
3850 if test "$MSGMERGE" != ":"; then
3851 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3852 echo "${ECHO_T}$MSGMERGE" >&6
3854 echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3859 if test "$GMSGFMT" != ":"; then
3860 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3861 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3864 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3865 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3866 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3871 if test "$XGETTEXT" != ":"; then
3872 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3873 (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
3876 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3877 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3883 ac_config_commands="$ac_config_commands default-1"
3886 if test -n "$ac_tool_prefix"; then
3887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3888 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3889 echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891 if test "${ac_cv_prog_RANLIB+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 if test -n "$RANLIB"; then
3895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 RANLIB=$ac_cv_prog_RANLIB
3914 if test -n "$RANLIB"; then
3915 echo "$as_me:$LINENO: result: $RANLIB" >&5
3916 echo "${ECHO_T}$RANLIB" >&6
3918 echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6
3923 if test -z "$ac_cv_prog_RANLIB"; then
3924 ac_ct_RANLIB=$RANLIB
3925 # Extract the first word of "ranlib", so it can be a program name with args.
3926 set dummy ranlib; ac_word=$2
3927 echo "$as_me:$LINENO: checking for $ac_word" >&5
3928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 if test -n "$ac_ct_RANLIB"; then
3933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_ac_ct_RANLIB="ranlib"
3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3953 if test -n "$ac_ct_RANLIB"; then
3954 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3955 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3957 echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3961 RANLIB=$ac_ct_RANLIB
3963 RANLIB="$ac_cv_prog_RANLIB"
3967 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3968 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3969 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_check_lib_save_LIBS=$LIBS
3973 LIBS="-lcposix $LIBS"
3974 cat >conftest.$ac_ext <<_ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 /* Override any gcc2 internal prototype to avoid an error. */
3985 /* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>conftest.er1
4000 grep -v '^ *+' conftest.er1 >conftest.err
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_lib_cposix_strerror=yes
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 ac_cv_lib_cposix_strerror=no
4024 rm -f conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
4026 LIBS=$ac_check_lib_save_LIBS
4028 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4029 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4030 if test $ac_cv_lib_cposix_strerror = yes; then
4031 LIBS="$LIBS -lcposix"
4036 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4037 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4038 if test "${ac_cv_c_const+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4051 /* FIXME: Include the comments suggested by Paul. */
4053 /* Ultrix mips cc rejects this. */
4054 typedef int charset[2];
4056 /* SunOS 4.1.1 cc rejects this. */
4057 char const *const *ccp;
4059 /* NEC SVR4.0.2 mips cc rejects this. */
4060 struct point {int x, y;};
4061 static struct point const zero = {0,0};
4062 /* AIX XL C 1.02.0.0 rejects this.
4063 It does not let you subtract one const X* pointer from another in
4064 an arm of an if-expression whose if-part is not a constant
4066 const char *g = "string";
4067 ccp = &g + (g ? g-g : 0);
4068 /* HPUX 7.0 cc rejects these. */
4071 ccp = (char const *const *) p;
4072 { /* SCO 3.2v4 cc rejects this. */
4074 char const *s = 0 ? (char *) 0 : (char const *) 0;
4078 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4080 const int *foo = &x[0];
4083 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4084 typedef const int *iptr;
4088 { /* AIX XL C 1.02.0.0 rejects this saying
4089 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4090 struct s { int j; const int *ap[3]; };
4091 struct s *b; b->j = 5;
4093 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4133 echo "${ECHO_T}$ac_cv_c_const" >&6
4134 if test $ac_cv_c_const = no; then
4136 cat >>confdefs.h <<\_ACEOF
4143 echo "$as_me:$LINENO: checking for signed" >&5
4144 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4145 if test "${bh_cv_c_signed+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4163 rm -f conftest.$ac_objext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>conftest.er1
4167 grep -v '^ *+' conftest.er1 >conftest.err
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
4172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4194 echo "${ECHO_T}$bh_cv_c_signed" >&6
4195 if test $bh_cv_c_signed = no; then
4197 cat >>confdefs.h <<\_ACEOF
4203 echo "$as_me:$LINENO: checking for inline" >&5
4204 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4205 if test "${ac_cv_c_inline+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 for ac_kw in inline __inline__ __inline; do
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4218 static $ac_kw foo_t static_foo () {return 0; }
4219 $ac_kw foo_t foo () {return 0; }
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_c_inline=$ac_kw; break
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4254 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4255 echo "${ECHO_T}$ac_cv_c_inline" >&6
4258 case $ac_cv_c_inline in
4261 case $ac_cv_c_inline in
4263 *) ac_val=$ac_cv_c_inline;;
4265 cat >>confdefs.h <<_ACEOF
4267 #define inline $ac_val
4273 echo "$as_me:$LINENO: checking for off_t" >&5
4274 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4275 if test "${ac_cv_type_off_t+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 $ac_includes_default
4296 rm -f conftest.$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>conftest.er1
4300 grep -v '^ *+' conftest.er1 >conftest.err
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_type_off_t=yes
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4327 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4328 if test $ac_cv_type_off_t = yes; then
4332 cat >>confdefs.h <<_ACEOF
4338 echo "$as_me:$LINENO: checking for size_t" >&5
4339 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4340 if test "${ac_cv_type_size_t+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 $ac_includes_default
4355 if (sizeof (size_t))
4361 rm -f conftest.$ac_objext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>conftest.er1
4365 grep -v '^ *+' conftest.er1 >conftest.err
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest.$ac_objext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 ac_cv_type_size_t=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 ac_cv_type_size_t=no
4389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4392 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4393 if test $ac_cv_type_size_t = yes; then
4397 cat >>confdefs.h <<_ACEOF
4398 #define size_t unsigned
4404 echo "$as_me:$LINENO: checking for long long" >&5
4405 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4406 if test "${ac_cv_type_long_long+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 long long ll = 1LL; int i = 63;
4419 long long llmax = (long long) -1;
4420 return ll << i | ll >> i | llmax / ll | llmax % ll;
4425 rm -f conftest.$ac_objext conftest$ac_exeext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4427 (eval $ac_link) 2>conftest.er1
4429 grep -v '^ *+' conftest.er1 >conftest.err
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try='test -s conftest$ac_exeext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_type_long_long=yes
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 ac_cv_type_long_long=no
4453 rm -f conftest.err conftest.$ac_objext \
4454 conftest$ac_exeext conftest.$ac_ext
4456 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4457 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4458 if test $ac_cv_type_long_long = yes; then
4460 cat >>confdefs.h <<\_ACEOF
4461 #define HAVE_LONG_LONG 1
4467 echo "$as_me:$LINENO: checking for long double" >&5
4468 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4469 if test "${gt_cv_c_long_double+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test "$GCC" = yes; then
4473 gt_cv_c_long_double=yes
4475 cat >conftest.$ac_ext <<_ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4482 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4483 long double foo = 0.0;
4484 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4485 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4495 rm -f conftest.$ac_objext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>conftest.er1
4499 grep -v '^ *+' conftest.er1 >conftest.err
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 gt_cv_c_long_double=yes
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 gt_cv_c_long_double=no
4523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4526 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4527 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4528 if test $gt_cv_c_long_double = yes; then
4530 cat >>confdefs.h <<\_ACEOF
4531 #define HAVE_LONG_DOUBLE 1
4537 echo "$as_me:$LINENO: checking for wchar_t" >&5
4538 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4539 if test "${gt_cv_c_wchar_t+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 wchar_t foo = (wchar_t)'\0';
4558 rm -f conftest.$ac_objext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560 (eval $ac_compile) 2>conftest.er1
4562 grep -v '^ *+' conftest.er1 >conftest.err
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4588 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4589 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4590 if test $gt_cv_c_wchar_t = yes; then
4592 cat >>confdefs.h <<\_ACEOF
4593 #define HAVE_WCHAR_T 1
4599 echo "$as_me:$LINENO: checking for wint_t" >&5
4600 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4601 if test "${gt_cv_c_wint_t+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 cat >conftest.$ac_ext <<_ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4611 wint_t foo = (wchar_t)'\0';
4620 rm -f conftest.$ac_objext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622 (eval $ac_compile) 2>conftest.er1
4624 grep -v '^ *+' conftest.er1 >conftest.err
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } &&
4629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; } &&
4635 { ac_try='test -s conftest.$ac_objext'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4651 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4652 if test $gt_cv_c_wint_t = yes; then
4654 cat >>confdefs.h <<\_ACEOF
4655 #define HAVE_WINT_T 1
4661 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4662 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4663 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 cat >conftest.$ac_ext <<_ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 #include <sys/types.h>
4673 #include <inttypes.h>
4677 uintmax_t i = (uintmax_t) -1;
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest.$ac_objext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 jm_ac_cv_header_inttypes_h=yes
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 jm_ac_cv_header_inttypes_h=no
4710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4713 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4714 if test $jm_ac_cv_header_inttypes_h = yes; then
4716 cat >>confdefs.h <<_ACEOF
4717 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4723 echo "$as_me:$LINENO: checking for stdint.h" >&5
4724 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4725 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 #include <sys/types.h>
4739 uintmax_t i = (uintmax_t) -1;
4744 rm -f conftest.$ac_objext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746 (eval $ac_compile) 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 jm_ac_cv_header_stdint_h=yes
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 jm_ac_cv_header_stdint_h=no
4772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4774 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4775 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4776 if test $jm_ac_cv_header_stdint_h = yes; then
4778 cat >>confdefs.h <<_ACEOF
4779 #define HAVE_STDINT_H_WITH_UINTMAX 1
4787 echo "$as_me:$LINENO: checking for intmax_t" >&5
4788 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4789 if test "${gt_cv_c_intmax_t+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4801 #if HAVE_STDINT_H_WITH_UINTMAX
4804 #if HAVE_INTTYPES_H_WITH_UINTMAX
4805 #include <inttypes.h>
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 gt_cv_c_intmax_t=yes
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4847 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4848 if test $gt_cv_c_intmax_t = yes; then
4850 cat >>confdefs.h <<\_ACEOF
4851 #define HAVE_INTMAX_T 1
4858 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4859 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4860 if test "${gt_cv_func_printf_posix+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 if test "$cross_compiling" = yes; then
4866 cat >conftest.$ac_ext <<_ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4873 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4879 $EGREP "notposix" >/dev/null 2>&1; then
4880 gt_cv_func_printf_posix="guessing no"
4882 gt_cv_func_printf_posix="guessing yes"
4888 cat >conftest.$ac_ext <<_ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4897 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4898 dollar expansion (possibly an autoconf bug). */
4899 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4900 static char buf[100];
4903 sprintf (buf, format, 33, 55);
4904 return (strcmp (buf, "55 33") != 0);
4907 rm -f conftest$ac_exeext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4909 (eval $ac_link) 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 gt_cv_func_printf_posix=yes
4920 echo "$as_me: program exited with status $ac_status" >&5
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4925 gt_cv_func_printf_posix=no
4927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4931 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4932 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4933 case $gt_cv_func_printf_posix in
4936 cat >>confdefs.h <<\_ACEOF
4937 #define HAVE_POSIX_PRINTF 1
4943 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4944 # for constant arguments. Useless!
4945 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4946 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4947 if test "${ac_cv_working_alloca_h+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4960 char *p = (char *) alloca (2 * sizeof (int));
4965 rm -f conftest.$ac_objext conftest$ac_exeext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1 >conftest.err
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_cv_working_alloca_h=yes
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_cv_working_alloca_h=no
4993 rm -f conftest.err conftest.$ac_objext \
4994 conftest$ac_exeext conftest.$ac_ext
4996 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4997 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4998 if test $ac_cv_working_alloca_h = yes; then
5000 cat >>confdefs.h <<\_ACEOF
5001 #define HAVE_ALLOCA_H 1
5006 echo "$as_me:$LINENO: checking for alloca" >&5
5007 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5008 if test "${ac_cv_func_alloca_works+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5018 # define alloca __builtin_alloca
5021 # include <malloc.h>
5022 # define alloca _alloca
5025 # include <alloca.h>
5030 # ifndef alloca /* predefined by HP cc +Olibcalls */
5041 char *p = (char *) alloca (1);
5046 rm -f conftest.$ac_objext conftest$ac_exeext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5048 (eval $ac_link) 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; } &&
5061 { ac_try='test -s conftest$ac_exeext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_cv_func_alloca_works=yes
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 ac_cv_func_alloca_works=no
5074 rm -f conftest.err conftest.$ac_objext \
5075 conftest$ac_exeext conftest.$ac_ext
5077 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5078 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5080 if test $ac_cv_func_alloca_works = yes; then
5082 cat >>confdefs.h <<\_ACEOF
5083 #define HAVE_ALLOCA 1
5087 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5088 # that cause trouble. Some versions do not even contain alloca or
5089 # contain a buggy version. If you still want to use their alloca,
5090 # use ar to extract alloca.o from them instead of compiling alloca.c.
5092 ALLOCA=alloca.$ac_objext
5094 cat >>confdefs.h <<\_ACEOF
5099 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5100 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5101 if test "${ac_cv_os_cray+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 cat >conftest.$ac_ext <<_ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #if defined(CRAY) && ! defined(CRAY2)
5117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5118 $EGREP "webecray" >/dev/null 2>&1; then
5126 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5127 echo "${ECHO_T}$ac_cv_os_cray" >&6
5128 if test $ac_cv_os_cray = yes; then
5129 for ac_func in _getb67 GETB67 getb67; do
5130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5131 echo "$as_me:$LINENO: checking for $ac_func" >&5
5132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5133 if eval "test \"\${$as_ac_var+set}\" = set"; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5144 #define $ac_func innocuous_$ac_func
5146 /* System header to define __stub macros and hopefully few prototypes,
5147 which can conflict with char $ac_func (); below.
5148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5149 <limits.h> exists even on freestanding compilers. */
5152 # include <limits.h>
5154 # include <assert.h>
5159 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5167 /* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5173 char (*f) () = $ac_func;
5182 return f != $ac_func;
5187 rm -f conftest.$ac_objext conftest$ac_exeext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189 (eval $ac_link) 2>conftest.er1
5191 grep -v '^ *+' conftest.er1 >conftest.err
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try='test -s conftest$ac_exeext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 eval "$as_ac_var=yes"
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 eval "$as_ac_var=no"
5215 rm -f conftest.err conftest.$ac_objext \
5216 conftest$ac_exeext conftest.$ac_ext
5218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5220 if test `eval echo '${'$as_ac_var'}'` = yes; then
5222 cat >>confdefs.h <<_ACEOF
5223 #define CRAY_STACKSEG_END $ac_func
5232 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5233 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5234 if test "${ac_cv_c_stack_direction+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 if test "$cross_compiling" = yes; then
5238 ac_cv_c_stack_direction=0
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5247 find_stack_direction ()
5249 static char *addr = 0;
5254 return find_stack_direction ();
5257 return (&dummy > addr) ? 1 : -1;
5263 exit (find_stack_direction () < 0);
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_c_stack_direction=1
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_c_stack_direction=-1
5286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5290 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5292 cat >>confdefs.h <<_ACEOF
5293 #define STACK_DIRECTION $ac_cv_c_stack_direction
5301 for ac_header in stdlib.h unistd.h
5303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5305 echo "$as_me:$LINENO: checking for $ac_header" >&5
5306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5313 # Is the header compilable?
5314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5323 #include <$ac_header>
5325 rm -f conftest.$ac_objext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5327 (eval $ac_compile) 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_header_compiler=yes
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_header_compiler=no
5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <$ac_header>
5368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371 grep -v '^ *+' conftest.er1 >conftest.err
5373 cat conftest.err >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } >/dev/null; then
5376 if test -s conftest.err; then
5377 ac_cpp_err=$ac_c_preproc_warn_flag
5378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5385 if test -z "$ac_cpp_err"; then
5386 ac_header_preproc=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_header_preproc=no
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5397 # So? What about this header?
5398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5404 ac_header_preproc=yes
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5421 ## ------------------------------------------ ##
5422 ## Report this to the AC_PACKAGE_NAME lists. ##
5423 ## ------------------------------------------ ##
5426 sed "s/^/$as_me: WARNING: /" >&2
5429 echo "$as_me:$LINENO: checking for $ac_header" >&5
5430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 eval "$as_ac_Header=\$ac_header_preproc"
5436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5450 for ac_func in getpagesize
5452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5453 echo "$as_me:$LINENO: checking for $ac_func" >&5
5454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5455 if eval "test \"\${$as_ac_var+set}\" = set"; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 cat >conftest.$ac_ext <<_ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5466 #define $ac_func innocuous_$ac_func
5468 /* System header to define __stub macros and hopefully few prototypes,
5469 which can conflict with char $ac_func (); below.
5470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5471 <limits.h> exists even on freestanding compilers. */
5474 # include <limits.h>
5476 # include <assert.h>
5481 /* Override any gcc2 internal prototype to avoid an error. */
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
5489 /* The GNU C library defines this for functions which it implements
5490 to always fail with ENOSYS. Some functions are actually named
5491 something starting with __ and the normal name is an alias. */
5492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5495 char (*f) () = $ac_func;
5504 return f != $ac_func;
5509 rm -f conftest.$ac_objext conftest$ac_exeext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5511 (eval $ac_link) 2>conftest.er1
5513 grep -v '^ *+' conftest.er1 >conftest.err
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; } &&
5524 { ac_try='test -s conftest$ac_exeext'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; }; then
5530 eval "$as_ac_var=yes"
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 eval "$as_ac_var=no"
5537 rm -f conftest.err conftest.$ac_objext \
5538 conftest$ac_exeext conftest.$ac_ext
5540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5542 if test `eval echo '${'$as_ac_var'}'` = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5550 echo "$as_me:$LINENO: checking for working mmap" >&5
5551 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5552 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 if test "$cross_compiling" = yes; then
5556 ac_cv_func_mmap_fixed_mapped=no
5558 cat >conftest.$ac_ext <<_ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 $ac_includes_default
5565 /* malloc might have been renamed as rpl_malloc. */
5568 /* Thanks to Mike Haertel and Jim Avera for this test.
5569 Here is a matrix of mmap possibilities:
5570 mmap private not fixed
5571 mmap private fixed at somewhere currently unmapped
5572 mmap private fixed at somewhere already mapped
5573 mmap shared not fixed
5574 mmap shared fixed at somewhere currently unmapped
5575 mmap shared fixed at somewhere already mapped
5576 For private mappings, we should verify that changes cannot be read()
5577 back from the file, nor mmap's back from the file at a different
5578 address. (There have been systems where private was not correctly
5579 implemented like the infamous i386 svr4.0, and systems where the
5580 VM page cache was not coherent with the file system buffer cache
5581 like early versions of FreeBSD and possibly contemporary NetBSD.)
5582 For shared mappings, we should conversely verify that changes get
5583 propagated back to all the places they're supposed to be.
5585 Grep wants private fixed already mapped.
5586 The main things grep needs to know about mmap are:
5587 * does it exist and is it safe to write into the mmap'd area
5588 * how to use it (BSD variants) */
5591 #include <sys/mman.h>
5593 #if !STDC_HEADERS && !HAVE_STDLIB_H
5597 /* This mess was copied from the GNU getpagesize.h. */
5598 #if !HAVE_GETPAGESIZE
5599 /* Assume that all systems that can run configure have sys/param.h. */
5600 # if !HAVE_SYS_PARAM_H
5601 # define HAVE_SYS_PARAM_H 1
5604 # ifdef _SC_PAGESIZE
5605 # define getpagesize() sysconf(_SC_PAGESIZE)
5606 # else /* no _SC_PAGESIZE */
5607 # if HAVE_SYS_PARAM_H
5608 # include <sys/param.h>
5609 # ifdef EXEC_PAGESIZE
5610 # define getpagesize() EXEC_PAGESIZE
5611 # else /* no EXEC_PAGESIZE */
5613 # define getpagesize() NBPG * CLSIZE
5616 # endif /* no CLSIZE */
5617 # else /* no NBPG */
5619 # define getpagesize() NBPC
5620 # else /* no NBPC */
5622 # define getpagesize() PAGESIZE
5623 # endif /* PAGESIZE */
5624 # endif /* no NBPC */
5625 # endif /* no NBPG */
5626 # endif /* no EXEC_PAGESIZE */
5627 # else /* no HAVE_SYS_PARAM_H */
5628 # define getpagesize() 8192 /* punt totally */
5629 # endif /* no HAVE_SYS_PARAM_H */
5630 # endif /* no _SC_PAGESIZE */
5632 #endif /* no HAVE_GETPAGESIZE */
5637 char *data, *data2, *data3;
5641 pagesize = getpagesize ();
5643 /* First, make a file with some known garbage in it. */
5644 data = (char *) malloc (pagesize);
5647 for (i = 0; i < pagesize; ++i)
5648 *(data + i) = rand ();
5650 fd = creat ("conftest.mmap", 0600);
5653 if (write (fd, data, pagesize) != pagesize)
5657 /* Next, try to mmap the file at a fixed address which already has
5658 something else allocated at it. If we can, also make sure that
5659 we see the same garbage. */
5660 fd = open ("conftest.mmap", O_RDWR);
5663 data2 = (char *) malloc (2 * pagesize);
5666 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5667 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5668 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5670 for (i = 0; i < pagesize; ++i)
5671 if (*(data + i) != *(data2 + i))
5674 /* Finally, make sure that changes to the mapped area do not
5675 percolate back to the file as seen by read(). (This is a bug on
5676 some variants of i386 svr4.0.) */
5677 for (i = 0; i < pagesize; ++i)
5678 *(data2 + i) = *(data2 + i) + 1;
5679 data3 = (char *) malloc (pagesize);
5682 if (read (fd, data3, pagesize) != pagesize)
5684 for (i = 0; i < pagesize; ++i)
5685 if (*(data + i) != *(data3 + i))
5691 rm -f conftest$ac_exeext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693 (eval $ac_link) 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5702 ac_cv_func_mmap_fixed_mapped=yes
5704 echo "$as_me: program exited with status $ac_status" >&5
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5709 ac_cv_func_mmap_fixed_mapped=no
5711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5714 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5715 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5716 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5718 cat >>confdefs.h <<\_ACEOF
5726 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5727 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5728 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 cat >conftest.$ac_ext <<_ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5738 #include <features.h>
5739 #ifdef __GNU_LIBRARY__
5740 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5747 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5748 ac_cv_gnu_library_2_1=yes
5750 ac_cv_gnu_library_2_1=no
5757 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5758 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5760 GLIBC21="$ac_cv_gnu_library_2_1"
5765 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5766 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5767 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 if test "$cross_compiling" = yes; then
5773 # Guess based on the CPU.
5775 alpha* | i3456786 | m68k | s390*)
5776 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5778 gt_cv_int_divbyzero_sigfpe="guessing no";;
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5794 sigfpe_handler (int sig)
5796 sigfpe_handler (sig) int sig;
5799 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5800 exit (sig != SIGFPE);
5810 signal (SIGFPE, sigfpe_handler);
5811 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5812 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5813 signal (SIGTRAP, sigfpe_handler);
5815 /* Linux/SPARC yields signal SIGILL. */
5816 #if defined (__sparc__) && defined (__linux__)
5817 signal (SIGILL, sigfpe_handler);
5826 rm -f conftest$ac_exeext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5828 (eval $ac_link) 2>&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 gt_cv_int_divbyzero_sigfpe=yes
5839 echo "$as_me: program exited with status $ac_status" >&5
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5844 gt_cv_int_divbyzero_sigfpe=no
5846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5850 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5851 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5852 case "$gt_cv_int_divbyzero_sigfpe" in
5857 cat >>confdefs.h <<_ACEOF
5858 #define INTDIV0_RAISES_SIGFPE $value
5863 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5864 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5865 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 unsigned long long ull = 1ULL; int i = 63;
5878 unsigned long long ullmax = (unsigned long long) -1;
5879 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5884 rm -f conftest.$ac_objext conftest$ac_exeext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try='test -s conftest$ac_exeext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 ac_cv_type_unsigned_long_long=yes
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 ac_cv_type_unsigned_long_long=no
5912 rm -f conftest.err conftest.$ac_objext \
5913 conftest$ac_exeext conftest.$ac_ext
5915 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5916 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5917 if test $ac_cv_type_unsigned_long_long = yes; then
5919 cat >>confdefs.h <<\_ACEOF
5920 #define HAVE_UNSIGNED_LONG_LONG 1
5928 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5930 test $ac_cv_type_unsigned_long_long = yes \
5931 && ac_type='unsigned long long' \
5932 || ac_type='unsigned long'
5934 cat >>confdefs.h <<_ACEOF
5935 #define uintmax_t $ac_type
5940 cat >>confdefs.h <<\_ACEOF
5941 #define HAVE_UINTMAX_T 1
5947 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5948 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5949 if test "${gt_cv_header_inttypes_h+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <sys/types.h>
5960 #include <inttypes.h>
5969 rm -f conftest.$ac_objext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5971 (eval $ac_compile) 2>conftest.er1
5973 grep -v '^ *+' conftest.er1 >conftest.err
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; } &&
5984 { ac_try='test -s conftest.$ac_objext'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5990 gt_cv_header_inttypes_h=yes
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5995 gt_cv_header_inttypes_h=no
5997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6000 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6001 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6002 if test $gt_cv_header_inttypes_h = yes; then
6004 cat >>confdefs.h <<_ACEOF
6005 #define HAVE_INTTYPES_H 1
6012 if test $gt_cv_header_inttypes_h = yes; then
6013 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6014 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6015 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 #include <inttypes.h>
6038 rm -f conftest.$ac_objext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>conftest.er1
6042 grep -v '^ *+' conftest.er1 >conftest.err
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; } &&
6053 { ac_try='test -s conftest.$ac_objext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6059 gt_cv_inttypes_pri_broken=no
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 gt_cv_inttypes_pri_broken=yes
6066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6069 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6070 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6072 if test "$gt_cv_inttypes_pri_broken" = yes; then
6074 cat >>confdefs.h <<_ACEOF
6075 #define PRI_MACROS_BROKEN 1
6082 for ac_header in stdint.h
6084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6086 echo "$as_me:$LINENO: checking for $ac_header" >&5
6087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6094 # Is the header compilable?
6095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6097 cat >conftest.$ac_ext <<_ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 $ac_includes_default
6104 #include <$ac_header>
6106 rm -f conftest.$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } &&
6115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_header_compiler=yes
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_header_compiler=no
6134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6136 echo "${ECHO_T}$ac_header_compiler" >&6
6138 # Is the header present?
6139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 #include <$ac_header>
6149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6152 grep -v '^ *+' conftest.er1 >conftest.err
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } >/dev/null; then
6157 if test -s conftest.err; then
6158 ac_cpp_err=$ac_c_preproc_warn_flag
6159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6166 if test -z "$ac_cpp_err"; then
6167 ac_header_preproc=yes
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_header_preproc=no
6174 rm -f conftest.err conftest.$ac_ext
6175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6176 echo "${ECHO_T}$ac_header_preproc" >&6
6178 # So? What about this header?
6179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6185 ac_header_preproc=yes
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6202 ## ------------------------------------------ ##
6203 ## Report this to the AC_PACKAGE_NAME lists. ##
6204 ## ------------------------------------------ ##
6207 sed "s/^/$as_me: WARNING: /" >&2
6210 echo "$as_me:$LINENO: checking for $ac_header" >&5
6211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 eval "$as_ac_Header=\$ac_header_preproc"
6217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6230 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6231 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250 $EGREP "Found it" >/dev/null 2>&1; then
6255 if test -z "$result"; then
6256 if test "$cross_compiling" = yes; then
6257 # Depending upon the size, compute the lo and hi bounds.
6258 cat >conftest.$ac_ext <<_ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6268 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6275 rm -f conftest.$ac_objext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6279 grep -v '^ *+' conftest.er1 >conftest.err
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6298 cat >conftest.$ac_ext <<_ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6308 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6319 grep -v '^ *+' conftest.er1 >conftest.err
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; } &&
6330 { ac_try='test -s conftest.$ac_objext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_hi=$ac_mid; break
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6341 ac_lo=`expr $ac_mid + 1`
6342 if test $ac_lo -le $ac_mid; then
6346 ac_mid=`expr 2 '*' $ac_mid + 1`
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6354 cat >conftest.$ac_ext <<_ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6364 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6371 rm -f conftest.$ac_objext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6373 (eval $ac_compile) 2>conftest.er1
6375 grep -v '^ *+' conftest.er1 >conftest.err
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try='test -s conftest.$ac_objext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6404 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 ac_lo=$ac_mid; break
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6437 ac_hi=`expr '(' $ac_mid ')' - 1`
6438 if test $ac_mid -le $ac_hi; then
6442 ac_mid=`expr 2 '*' $ac_mid`
6444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455 # Binary search between lo and hi bounds.
6456 while test "x$ac_lo" != "x$ac_hi"; do
6457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6468 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6475 rm -f conftest.$ac_objext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477 (eval $ac_compile) 2>conftest.er1
6479 grep -v '^ *+' conftest.er1 >conftest.err
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } &&
6484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 ac_lo=`expr '(' $ac_mid ')' + 1`
6503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6510 if test "$cross_compiling" = yes; then
6511 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6512 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6513 { (exit 1); exit 1; }; }
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6522 long longval () { return ~(size_t)0 / 10; }
6523 unsigned long ulongval () { return ~(size_t)0 / 10; }
6530 FILE *f = fopen ("conftest.val", "w");
6533 if ((~(size_t)0 / 10) < 0)
6535 long i = longval ();
6536 if (i != (~(size_t)0 / 10))
6538 fprintf (f, "%ld\n", i);
6542 unsigned long i = ulongval ();
6543 if (i != (~(size_t)0 / 10))
6545 fprintf (f, "%lu\n", i);
6547 exit (ferror (f) || fclose (f) != 0);
6553 rm -f conftest$ac_exeext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6555 (eval $ac_link) 2>&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 res_hi=`cat conftest.val`
6566 echo "$as_me: program exited with status $ac_status" >&5
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6577 if test "$cross_compiling" = yes; then
6578 # Depending upon the size, compute the lo and hi bounds.
6579 cat >conftest.$ac_ext <<_ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6589 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6596 rm -f conftest.$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598 (eval $ac_compile) 2>conftest.er1
6600 grep -v '^ *+' conftest.er1 >conftest.err
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest.$ac_objext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6619 cat >conftest.$ac_ext <<_ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6629 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6636 rm -f conftest.$ac_objext
6637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638 (eval $ac_compile) 2>conftest.er1
6640 grep -v '^ *+' conftest.er1 >conftest.err
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } &&
6645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; } &&
6651 { ac_try='test -s conftest.$ac_objext'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 ac_hi=$ac_mid; break
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_lo=`expr $ac_mid + 1`
6663 if test $ac_lo -le $ac_mid; then
6667 ac_mid=`expr 2 '*' $ac_mid + 1`
6669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6685 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6692 rm -f conftest.$ac_objext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694 (eval $ac_compile) 2>conftest.er1
6696 grep -v '^ *+' conftest.er1 >conftest.err
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6715 cat >conftest.$ac_ext <<_ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6725 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6732 rm -f conftest.$ac_objext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>conftest.er1
6736 grep -v '^ *+' conftest.er1 >conftest.err
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try='test -s conftest.$ac_objext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 ac_lo=$ac_mid; break
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ac_hi=`expr '(' $ac_mid ')' - 1`
6759 if test $ac_mid -le $ac_hi; then
6763 ac_mid=`expr 2 '*' $ac_mid`
6765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6776 # Binary search between lo and hi bounds.
6777 while test "x$ac_lo" != "x$ac_hi"; do
6778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6789 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6796 rm -f conftest.$ac_objext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798 (eval $ac_compile) 2>conftest.er1
6800 grep -v '^ *+' conftest.er1 >conftest.err
6802 cat conftest.err >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; } &&
6811 { ac_try='test -s conftest.$ac_objext'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ac_lo=`expr '(' $ac_mid ')' + 1`
6824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 if test "$cross_compiling" = yes; then
6832 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6833 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6834 { (exit 1); exit 1; }; }
6836 cat >conftest.$ac_ext <<_ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6843 long longval () { return ~(size_t)0 % 10; }
6844 unsigned long ulongval () { return ~(size_t)0 % 10; }
6851 FILE *f = fopen ("conftest.val", "w");
6854 if ((~(size_t)0 % 10) < 0)
6856 long i = longval ();
6857 if (i != (~(size_t)0 % 10))
6859 fprintf (f, "%ld\n", i);
6863 unsigned long i = ulongval ();
6864 if (i != (~(size_t)0 % 10))
6866 fprintf (f, "%lu\n", i);
6868 exit (ferror (f) || fclose (f) != 0);
6874 rm -f conftest$ac_exeext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 res_lo=`cat conftest.val`
6887 echo "$as_me: program exited with status $ac_status" >&5
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6898 if test "$cross_compiling" = yes; then
6899 # Depending upon the size, compute the lo and hi bounds.
6900 cat >conftest.$ac_ext <<_ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6910 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6917 rm -f conftest.$ac_objext
6918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919 (eval $ac_compile) 2>conftest.er1
6921 grep -v '^ *+' conftest.er1 >conftest.err
6923 cat conftest.err >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } &&
6926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; } &&
6932 { ac_try='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6940 cat >conftest.$ac_ext <<_ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6950 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6957 rm -f conftest.$ac_objext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959 (eval $ac_compile) 2>conftest.er1
6961 grep -v '^ *+' conftest.er1 >conftest.err
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest.$ac_objext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_hi=$ac_mid; break
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_lo=`expr $ac_mid + 1`
6984 if test $ac_lo -le $ac_mid; then
6988 ac_mid=`expr 2 '*' $ac_mid + 1`
6990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7006 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7013 rm -f conftest.$ac_objext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015 (eval $ac_compile) 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest.$ac_objext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7046 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7057 grep -v '^ *+' conftest.er1 >conftest.err
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_lo=$ac_mid; break
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_hi=`expr '(' $ac_mid ')' - 1`
7080 if test $ac_mid -le $ac_hi; then
7084 ac_mid=`expr 2 '*' $ac_mid`
7086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097 # Binary search between lo and hi bounds.
7098 while test "x$ac_lo" != "x$ac_hi"; do
7099 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7110 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7117 rm -f conftest.$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>conftest.er1
7121 grep -v '^ *+' conftest.er1 >conftest.err
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; } &&
7132 { ac_try='test -s conftest.$ac_objext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_lo=`expr '(' $ac_mid ')' + 1`
7145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7148 ?*) fits_in_uint=$ac_lo;;
7152 if test "$cross_compiling" = yes; then
7153 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7154 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7155 { (exit 1); exit 1; }; }
7157 cat >conftest.$ac_ext <<_ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7164 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7165 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7172 FILE *f = fopen ("conftest.val", "w");
7175 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7177 long i = longval ();
7178 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7180 fprintf (f, "%ld\n", i);
7184 unsigned long i = ulongval ();
7185 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7187 fprintf (f, "%lu\n", i);
7189 exit (ferror (f) || fclose (f) != 0);
7195 rm -f conftest$ac_exeext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7197 (eval $ac_link) 2>&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 fits_in_uint=`cat conftest.val`
7208 echo "$as_me: program exited with status $ac_status" >&5
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7215 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7219 if test "$fits_in_uint" = 1; then
7220 cat >conftest.$ac_ext <<_ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7228 extern unsigned long foo;
7238 rm -f conftest.$ac_objext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7240 (eval $ac_compile) 2>conftest.er1
7242 grep -v '^ *+' conftest.er1 >conftest.err
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } &&
7247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267 if test -z "$result"; then
7268 if test "$fits_in_uint" = 1; then
7269 result="$res_hi$res_lo"U
7271 result="$res_hi$res_lo"UL
7277 echo "$as_me:$LINENO: result: $result" >&5
7278 echo "${ECHO_T}$result" >&6
7279 if test "$result" != yes; then
7281 cat >>confdefs.h <<_ACEOF
7282 #define SIZE_MAX $result
7290 for ac_header in stdint.h
7292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7294 echo "$as_me:$LINENO: checking for $ac_header" >&5
7295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7302 # Is the header compilable?
7303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 $ac_includes_default
7312 #include <$ac_header>
7314 rm -f conftest.$ac_objext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>conftest.er1
7318 grep -v '^ *+' conftest.er1 >conftest.err
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 ac_header_compiler=yes
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_header_compiler=no
7342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7344 echo "${ECHO_T}$ac_header_compiler" >&6
7346 # Is the header present?
7347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7349 cat >conftest.$ac_ext <<_ACEOF
7352 cat confdefs.h >>conftest.$ac_ext
7353 cat >>conftest.$ac_ext <<_ACEOF
7354 /* end confdefs.h. */
7355 #include <$ac_header>
7357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7360 grep -v '^ *+' conftest.er1 >conftest.err
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } >/dev/null; then
7365 if test -s conftest.err; then
7366 ac_cpp_err=$ac_c_preproc_warn_flag
7367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7374 if test -z "$ac_cpp_err"; then
7375 ac_header_preproc=yes
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7380 ac_header_preproc=no
7382 rm -f conftest.err conftest.$ac_ext
7383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7384 echo "${ECHO_T}$ac_header_preproc" >&6
7386 # So? What about this header?
7387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7393 ac_header_preproc=yes
7396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7410 ## ------------------------------------------ ##
7411 ## Report this to the AC_PACKAGE_NAME lists. ##
7412 ## ------------------------------------------ ##
7415 sed "s/^/$as_me: WARNING: /" >&2
7418 echo "$as_me:$LINENO: checking for $ac_header" >&5
7419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 eval "$as_ac_Header=\$ac_header_preproc"
7425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7430 cat >>confdefs.h <<_ACEOF
7431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7440 if test "X$prefix" = "XNONE"; then
7441 acl_final_prefix="$ac_default_prefix"
7443 acl_final_prefix="$prefix"
7445 if test "X$exec_prefix" = "XNONE"; then
7446 acl_final_exec_prefix='${prefix}'
7448 acl_final_exec_prefix="$exec_prefix"
7450 acl_save_prefix="$prefix"
7451 prefix="$acl_final_prefix"
7452 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7453 prefix="$acl_save_prefix"
7456 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7457 if test "${with_gnu_ld+set}" = set; then
7458 withval="$with_gnu_ld"
7459 test "$withval" = no || with_gnu_ld=yes
7463 # Prepare PATH_SEPARATOR.
7464 # The user is always right.
7465 if test "${PATH_SEPARATOR+set}" != set; then
7466 echo "#! /bin/sh" >conf$$.sh
7467 echo "exit 0" >>conf$$.sh
7469 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7477 if test "$GCC" = yes; then
7478 # Check if gcc -print-prog-name=ld gives a path.
7479 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7480 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7483 # gcc leaves a trailing carriage return which upsets mingw
7484 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7486 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7489 # Accept absolute paths.
7490 [\\/]* | [A-Za-z]:[\\/]*)
7491 re_direlt='/[^/][^/]*/\.\./'
7492 # Canonicalize the path of ld
7493 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7494 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7495 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7497 test -z "$LD" && LD="$ac_prog"
7500 # If it fails, then pretend we aren't using GCC.
7504 # If it is relative, then search for the first ld in PATH.
7508 elif test "$with_gnu_ld" = yes; then
7509 echo "$as_me:$LINENO: checking for GNU ld" >&5
7510 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7512 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7513 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7515 if test "${acl_cv_path_LD+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 if test -z "$LD"; then
7519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7520 for ac_dir in $PATH; do
7521 test -z "$ac_dir" && ac_dir=.
7522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7523 acl_cv_path_LD="$ac_dir/$ac_prog"
7524 # Check to see if the program is GNU ld. I'd rather use --version,
7525 # but apparently some GNU ld's only accept -v.
7526 # Break only if it was the GNU/non-GNU ld that we prefer.
7527 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7528 *GNU* | *'with BFD'*)
7529 test "$with_gnu_ld" != no && break ;;
7531 test "$with_gnu_ld" != yes && break ;;
7537 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7541 LD="$acl_cv_path_LD"
7542 if test -n "$LD"; then
7543 echo "$as_me:$LINENO: result: $LD" >&5
7544 echo "${ECHO_T}$LD" >&6
7546 echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7549 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7550 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7551 { (exit 1); exit 1; }; }
7552 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7553 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7554 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7558 case `$LD -v 2>&1 </dev/null` in
7559 *GNU* | *'with BFD'*)
7560 acl_cv_prog_gnu_ld=yes ;;
7562 acl_cv_prog_gnu_ld=no ;;
7565 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7566 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7567 with_gnu_ld=$acl_cv_prog_gnu_ld
7571 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7572 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7573 if test "${acl_cv_rpath+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7578 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7584 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7585 echo "${ECHO_T}$acl_cv_rpath" >&6
7587 libext="$acl_cv_libext"
7588 shlibext="$acl_cv_shlibext"
7589 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7590 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7591 hardcode_direct="$acl_cv_hardcode_direct"
7592 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7593 # Check whether --enable-rpath or --disable-rpath was given.
7594 if test "${enable_rpath+set}" = set; then
7595 enableval="$enable_rpath"
7609 acl_save_prefix="$prefix"
7610 prefix="$acl_final_prefix"
7611 acl_save_exec_prefix="$exec_prefix"
7612 exec_prefix="$acl_final_exec_prefix"
7614 eval additional_includedir=\"$includedir\"
7615 eval additional_libdir=\"$libdir\"
7617 exec_prefix="$acl_save_exec_prefix"
7618 prefix="$acl_save_prefix"
7621 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7622 if test "${with_libiconv_prefix+set}" = set; then
7623 withval="$with_libiconv_prefix"
7625 if test "X$withval" = "Xno"; then
7628 if test "X$withval" = "X"; then
7630 acl_save_prefix="$prefix"
7631 prefix="$acl_final_prefix"
7632 acl_save_exec_prefix="$exec_prefix"
7633 exec_prefix="$acl_final_exec_prefix"
7635 eval additional_includedir=\"$includedir\"
7636 eval additional_libdir=\"$libdir\"
7638 exec_prefix="$acl_save_exec_prefix"
7639 prefix="$acl_save_prefix"
7642 additional_includedir="$withval/include"
7643 additional_libdir="$withval/lib"
7653 names_already_handled=
7654 names_next_round='iconv '
7655 while test -n "$names_next_round"; do
7656 names_this_round="$names_next_round"
7658 for name in $names_this_round; do
7660 for n in $names_already_handled; do
7661 if test "$n" = "$name"; then
7666 if test -z "$already_handled"; then
7667 names_already_handled="$names_already_handled $name"
7668 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7669 eval value=\"\$HAVE_LIB$uppername\"
7670 if test -n "$value"; then
7671 if test "$value" = yes; then
7672 eval value=\"\$LIB$uppername\"
7673 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7674 eval value=\"\$LTLIB$uppername\"
7675 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7684 if test $use_additional = yes; then
7685 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7686 found_dir="$additional_libdir"
7687 found_so="$additional_libdir/lib$name.$shlibext"
7688 if test -f "$additional_libdir/lib$name.la"; then
7689 found_la="$additional_libdir/lib$name.la"
7692 if test -f "$additional_libdir/lib$name.$libext"; then
7693 found_dir="$additional_libdir"
7694 found_a="$additional_libdir/lib$name.$libext"
7695 if test -f "$additional_libdir/lib$name.la"; then
7696 found_la="$additional_libdir/lib$name.la"
7701 if test "X$found_dir" = "X"; then
7702 for x in $LDFLAGS $LTLIBICONV; do
7704 acl_save_prefix="$prefix"
7705 prefix="$acl_final_prefix"
7706 acl_save_exec_prefix="$exec_prefix"
7707 exec_prefix="$acl_final_exec_prefix"
7709 exec_prefix="$acl_save_exec_prefix"
7710 prefix="$acl_save_prefix"
7714 dir=`echo "X$x" | sed -e 's/^X-L//'`
7715 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7717 found_so="$dir/lib$name.$shlibext"
7718 if test -f "$dir/lib$name.la"; then
7719 found_la="$dir/lib$name.la"
7722 if test -f "$dir/lib$name.$libext"; then
7724 found_a="$dir/lib$name.$libext"
7725 if test -f "$dir/lib$name.la"; then
7726 found_la="$dir/lib$name.la"
7732 if test "X$found_dir" != "X"; then
7737 if test "X$found_dir" != "X"; then
7738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7739 if test "X$found_so" != "X"; then
7740 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7744 for x in $ltrpathdirs; do
7745 if test "X$x" = "X$found_dir"; then
7750 if test -z "$haveit"; then
7751 ltrpathdirs="$ltrpathdirs $found_dir"
7753 if test "$hardcode_direct" = yes; then
7754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7756 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7759 for x in $rpathdirs; do
7760 if test "X$x" = "X$found_dir"; then
7765 if test -z "$haveit"; then
7766 rpathdirs="$rpathdirs $found_dir"
7770 for x in $LDFLAGS $LIBICONV; do
7772 acl_save_prefix="$prefix"
7773 prefix="$acl_final_prefix"
7774 acl_save_exec_prefix="$exec_prefix"
7775 exec_prefix="$acl_final_exec_prefix"
7777 exec_prefix="$acl_save_exec_prefix"
7778 prefix="$acl_save_prefix"
7780 if test "X$x" = "X-L$found_dir"; then
7785 if test -z "$haveit"; then
7786 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7788 if test "$hardcode_minus_L" != no; then
7789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7791 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7797 if test "X$found_a" != "X"; then
7798 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7800 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7803 additional_includedir=
7804 case "$found_dir" in
7806 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7807 additional_includedir="$basedir/include"
7810 if test "X$additional_includedir" != "X"; then
7811 if test "X$additional_includedir" != "X/usr/include"; then
7813 if test "X$additional_includedir" = "X/usr/local/include"; then
7814 if test -n "$GCC"; then
7816 linux*) haveit=yes;;
7820 if test -z "$haveit"; then
7821 for x in $CPPFLAGS $INCICONV; do
7823 acl_save_prefix="$prefix"
7824 prefix="$acl_final_prefix"
7825 acl_save_exec_prefix="$exec_prefix"
7826 exec_prefix="$acl_final_exec_prefix"
7828 exec_prefix="$acl_save_exec_prefix"
7829 prefix="$acl_save_prefix"
7831 if test "X$x" = "X-I$additional_includedir"; then
7836 if test -z "$haveit"; then
7837 if test -d "$additional_includedir"; then
7838 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7844 if test -n "$found_la"; then
7845 save_libdir="$libdir"
7847 */* | *\\*) . "$found_la" ;;
7848 *) . "./$found_la" ;;
7850 libdir="$save_libdir"
7851 for dep in $dependency_libs; do
7854 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7855 if test "X$additional_libdir" != "X/usr/lib"; then
7857 if test "X$additional_libdir" = "X/usr/local/lib"; then
7858 if test -n "$GCC"; then
7860 linux*) haveit=yes;;
7864 if test -z "$haveit"; then
7866 for x in $LDFLAGS $LIBICONV; do
7868 acl_save_prefix="$prefix"
7869 prefix="$acl_final_prefix"
7870 acl_save_exec_prefix="$exec_prefix"
7871 exec_prefix="$acl_final_exec_prefix"
7873 exec_prefix="$acl_save_exec_prefix"
7874 prefix="$acl_save_prefix"
7876 if test "X$x" = "X-L$additional_libdir"; then
7881 if test -z "$haveit"; then
7882 if test -d "$additional_libdir"; then
7883 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7887 for x in $LDFLAGS $LTLIBICONV; do
7889 acl_save_prefix="$prefix"
7890 prefix="$acl_final_prefix"
7891 acl_save_exec_prefix="$exec_prefix"
7892 exec_prefix="$acl_final_exec_prefix"
7894 exec_prefix="$acl_save_exec_prefix"
7895 prefix="$acl_save_prefix"
7897 if test "X$x" = "X-L$additional_libdir"; then
7902 if test -z "$haveit"; then
7903 if test -d "$additional_libdir"; then
7904 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7911 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7912 if test "$enable_rpath" != no; then
7914 for x in $rpathdirs; do
7915 if test "X$x" = "X$dir"; then
7920 if test -z "$haveit"; then
7921 rpathdirs="$rpathdirs $dir"
7924 for x in $ltrpathdirs; do
7925 if test "X$x" = "X$dir"; then
7930 if test -z "$haveit"; then
7931 ltrpathdirs="$ltrpathdirs $dir"
7936 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7942 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7943 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7949 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7950 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7956 if test "X$rpathdirs" != "X"; then
7957 if test -n "$hardcode_libdir_separator"; then
7959 for found_dir in $rpathdirs; do
7960 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7962 acl_save_libdir="$libdir"
7964 eval flag=\"$hardcode_libdir_flag_spec\"
7965 libdir="$acl_save_libdir"
7966 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7968 for found_dir in $rpathdirs; do
7969 acl_save_libdir="$libdir"
7971 eval flag=\"$hardcode_libdir_flag_spec\"
7972 libdir="$acl_save_libdir"
7973 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7977 if test "X$ltrpathdirs" != "X"; then
7978 for found_dir in $ltrpathdirs; do
7979 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7990 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
7991 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
7992 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 cat >conftest.$ac_ext <<_ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 $ac_includes_default
8005 if ((ptrdiff_t *) 0)
8007 if (sizeof (ptrdiff_t))
8013 rm -f conftest.$ac_objext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>conftest.er1
8017 grep -v '^ *+' conftest.er1 >conftest.err
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; } &&
8028 { ac_try='test -s conftest.$ac_objext'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 ac_cv_type_ptrdiff_t=yes
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8039 ac_cv_type_ptrdiff_t=no
8041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8043 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8044 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8045 if test $ac_cv_type_ptrdiff_t = yes; then
8049 cat >>confdefs.h <<\_ACEOF
8050 #define ptrdiff_t long
8066 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8067 stdlib.h string.h unistd.h sys/param.h
8069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8071 echo "$as_me:$LINENO: checking for $ac_header" >&5
8072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8079 # Is the header compilable?
8080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 $ac_includes_default
8089 #include <$ac_header>
8091 rm -f conftest.$ac_objext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093 (eval $ac_compile) 2>conftest.er1
8095 grep -v '^ *+' conftest.er1 >conftest.err
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; } &&
8106 { ac_try='test -s conftest.$ac_objext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 ac_header_compiler=yes
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8117 ac_header_compiler=no
8119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8121 echo "${ECHO_T}$ac_header_compiler" >&6
8123 # Is the header present?
8124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8126 cat >conftest.$ac_ext <<_ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 #include <$ac_header>
8134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8137 grep -v '^ *+' conftest.er1 >conftest.err
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } >/dev/null; then
8142 if test -s conftest.err; then
8143 ac_cpp_err=$ac_c_preproc_warn_flag
8144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8151 if test -z "$ac_cpp_err"; then
8152 ac_header_preproc=yes
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_header_preproc=no
8159 rm -f conftest.err conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8161 echo "${ECHO_T}$ac_header_preproc" >&6
8163 # So? What about this header?
8164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8170 ac_header_preproc=yes
8173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8187 ## ------------------------------------------ ##
8188 ## Report this to the AC_PACKAGE_NAME lists. ##
8189 ## ------------------------------------------ ##
8192 sed "s/^/$as_me: WARNING: /" >&2
8195 echo "$as_me:$LINENO: checking for $ac_header" >&5
8196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 eval "$as_ac_Header=\$ac_header_preproc"
8202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8207 cat >>confdefs.h <<_ACEOF
8208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8238 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8239 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8240 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8244 echo "$as_me:$LINENO: checking for $ac_func" >&5
8245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8246 if eval "test \"\${$as_ac_var+set}\" = set"; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 cat >conftest.$ac_ext <<_ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8257 #define $ac_func innocuous_$ac_func
8259 /* System header to define __stub macros and hopefully few prototypes,
8260 which can conflict with char $ac_func (); below.
8261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8262 <limits.h> exists even on freestanding compilers. */
8265 # include <limits.h>
8267 # include <assert.h>
8272 /* Override any gcc2 internal prototype to avoid an error. */
8277 /* We use char because int might match the return type of a gcc2
8278 builtin and then its argument prototype would still apply. */
8280 /* The GNU C library defines this for functions which it implements
8281 to always fail with ENOSYS. Some functions are actually named
8282 something starting with __ and the normal name is an alias. */
8283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8286 char (*f) () = $ac_func;
8295 return f != $ac_func;
8300 rm -f conftest.$ac_objext conftest$ac_exeext
8301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8302 (eval $ac_link) 2>conftest.er1
8304 grep -v '^ *+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; } &&
8315 { ac_try='test -s conftest$ac_exeext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 eval "$as_ac_var=yes"
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 eval "$as_ac_var=no"
8328 rm -f conftest.err conftest.$ac_objext \
8329 conftest$ac_exeext conftest.$ac_ext
8331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8333 if test `eval echo '${'$as_ac_var'}'` = yes; then
8334 cat >>confdefs.h <<_ACEOF
8335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8343 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8344 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8345 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 cat >conftest.$ac_ext <<_ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8360 char *p = (char *) _snprintf;
8367 rm -f conftest.$ac_objext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8369 (eval $ac_compile) 2>conftest.er1
8371 grep -v '^ *+' conftest.er1 >conftest.err
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_have_decl__snprintf=yes
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_cv_have_decl__snprintf=no
8395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8397 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8398 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8399 if test $ac_cv_have_decl__snprintf = yes; then
8405 cat >>confdefs.h <<_ACEOF
8406 #define HAVE_DECL__SNPRINTF $gt_value
8411 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8412 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8413 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 cat >conftest.$ac_ext <<_ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8428 char *p = (char *) _snwprintf;
8435 rm -f conftest.$ac_objext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8437 (eval $ac_compile) 2>conftest.er1
8439 grep -v '^ *+' conftest.er1 >conftest.err
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest.$ac_objext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_cv_have_decl__snwprintf=yes
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 ac_cv_have_decl__snwprintf=no
8463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8465 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8466 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8467 if test $ac_cv_have_decl__snwprintf = yes; then
8473 cat >>confdefs.h <<_ACEOF
8474 #define HAVE_DECL__SNWPRINTF $gt_value
8480 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8481 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8482 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8496 #ifndef feof_unlocked
8497 char *p = (char *) feof_unlocked;
8504 rm -f conftest.$ac_objext
8505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8506 (eval $ac_compile) 2>conftest.er1
8508 grep -v '^ *+' conftest.er1 >conftest.err
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; } &&
8519 { ac_try='test -s conftest.$ac_objext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 ac_cv_have_decl_feof_unlocked=yes
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8530 ac_cv_have_decl_feof_unlocked=no
8532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8534 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8535 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8536 if test $ac_cv_have_decl_feof_unlocked = yes; then
8542 cat >>confdefs.h <<_ACEOF
8543 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8548 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8549 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8550 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8564 #ifndef fgets_unlocked
8565 char *p = (char *) fgets_unlocked;
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8576 grep -v '^ *+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_have_decl_fgets_unlocked=yes
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 ac_cv_have_decl_fgets_unlocked=no
8600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8603 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8604 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8610 cat >>confdefs.h <<_ACEOF
8611 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8616 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8617 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8618 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8632 #ifndef getc_unlocked
8633 char *p = (char *) getc_unlocked;
8640 rm -f conftest.$ac_objext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8642 (eval $ac_compile) 2>conftest.er1
8644 grep -v '^ *+' conftest.er1 >conftest.err
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } &&
8655 { ac_try='test -s conftest.$ac_objext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 ac_cv_have_decl_getc_unlocked=yes
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 ac_cv_have_decl_getc_unlocked=no
8668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8670 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8671 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8672 if test $ac_cv_have_decl_getc_unlocked = yes; then
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8684 case $gt_cv_func_printf_posix in
8685 *yes) HAVE_POSIX_PRINTF=1 ;;
8686 *) HAVE_POSIX_PRINTF=0 ;;
8689 if test "$ac_cv_func_asprintf" = yes; then
8695 if test "$ac_cv_func_snprintf" = yes; then
8701 if test "$ac_cv_func_wprintf" = yes; then
8713 am_save_CPPFLAGS="$CPPFLAGS"
8715 for element in $INCICONV; do
8717 for x in $CPPFLAGS; do
8719 acl_save_prefix="$prefix"
8720 prefix="$acl_final_prefix"
8721 acl_save_exec_prefix="$exec_prefix"
8722 exec_prefix="$acl_final_exec_prefix"
8724 exec_prefix="$acl_save_exec_prefix"
8725 prefix="$acl_save_prefix"
8727 if test "X$x" = "X$element"; then
8732 if test -z "$haveit"; then
8733 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8738 echo "$as_me:$LINENO: checking for iconv" >&5
8739 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8740 if test "${am_cv_func_iconv+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 am_cv_func_iconv="no, consider installing GNU libiconv"
8746 cat >conftest.$ac_ext <<_ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8757 iconv_t cd = iconv_open("","");
8758 iconv(cd,NULL,NULL,NULL,NULL);
8764 rm -f conftest.$ac_objext conftest$ac_exeext
8765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8766 (eval $ac_link) 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; } &&
8779 { ac_try='test -s conftest$ac_exeext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 am_cv_func_iconv=yes
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8791 rm -f conftest.err conftest.$ac_objext \
8792 conftest$ac_exeext conftest.$ac_ext
8793 if test "$am_cv_func_iconv" != yes; then
8794 am_save_LIBS="$LIBS"
8795 LIBS="$LIBS $LIBICONV"
8796 cat >conftest.$ac_ext <<_ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8807 iconv_t cd = iconv_open("","");
8808 iconv(cd,NULL,NULL,NULL,NULL);
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; } &&
8829 { ac_try='test -s conftest$ac_exeext'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8836 am_cv_func_iconv=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8842 rm -f conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844 LIBS="$am_save_LIBS"
8848 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8849 echo "${ECHO_T}$am_cv_func_iconv" >&6
8850 if test "$am_cv_func_iconv" = yes; then
8852 cat >>confdefs.h <<\_ACEOF
8853 #define HAVE_ICONV 1
8857 if test "$am_cv_lib_iconv" = yes; then
8858 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8859 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8860 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8861 echo "${ECHO_T}$LIBICONV" >&6
8863 CPPFLAGS="$am_save_CPPFLAGS"
8870 if test "$am_cv_func_iconv" = yes; then
8871 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8872 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8873 if test "${am_cv_proto_iconv+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8890 #if defined(__STDC__) || defined(__cplusplus)
8891 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8904 rm -f conftest.$ac_objext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8906 (eval $ac_compile) 2>conftest.er1
8908 grep -v '^ *+' conftest.er1 >conftest.err
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest.$ac_objext'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8925 am_cv_proto_iconv_arg1=""
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8930 am_cv_proto_iconv_arg1="const"
8932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8933 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);"
8936 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8937 echo "$as_me:$LINENO: result: ${ac_t:-
8938 }$am_cv_proto_iconv" >&5
8939 echo "${ECHO_T}${ac_t:-
8940 }$am_cv_proto_iconv" >&6
8942 cat >>confdefs.h <<_ACEOF
8943 #define ICONV_CONST $am_cv_proto_iconv_arg1
8949 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8950 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8951 if test "${am_cv_langinfo_codeset+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 cat >conftest.$ac_ext <<_ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 #include <langinfo.h>
8964 char* cs = nl_langinfo(CODESET);
8969 rm -f conftest.$ac_objext conftest$ac_exeext
8970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8971 (eval $ac_link) 2>conftest.er1
8973 grep -v '^ *+' conftest.er1 >conftest.err
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 am_cv_langinfo_codeset=yes
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 am_cv_langinfo_codeset=no
8997 rm -f conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
9001 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9002 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9003 if test $am_cv_langinfo_codeset = yes; then
9005 cat >>confdefs.h <<\_ACEOF
9006 #define HAVE_LANGINFO_CODESET 1
9011 if test $ac_cv_header_locale_h = yes; then
9013 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9014 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9015 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 cat >conftest.$ac_ext <<_ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>conftest.er1
9037 grep -v '^ *+' conftest.er1 >conftest.err
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 am_cv_val_LC_MESSAGES=yes
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 am_cv_val_LC_MESSAGES=no
9061 rm -f conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9064 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9065 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9066 if test $am_cv_val_LC_MESSAGES = yes; then
9068 cat >>confdefs.h <<\_ACEOF
9069 #define HAVE_LC_MESSAGES 1
9076 for ac_prog in bison
9078 # Extract the first word of "$ac_prog", so it can be a program name with args.
9079 set dummy $ac_prog; ac_word=$2
9080 echo "$as_me:$LINENO: checking for $ac_word" >&5
9081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9082 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 if test -n "$INTLBISON"; then
9086 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_INTLBISON="$ac_prog"
9096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 INTLBISON=$ac_cv_prog_INTLBISON
9105 if test -n "$INTLBISON"; then
9106 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9107 echo "${ECHO_T}$INTLBISON" >&6
9109 echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9113 test -n "$INTLBISON" && break
9116 if test -z "$INTLBISON"; then
9119 echo "$as_me:$LINENO: checking version of bison" >&5
9120 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9121 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9122 case $ac_prog_version in
9123 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9124 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9125 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9126 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9128 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9129 echo "${ECHO_T}$ac_prog_version" >&6
9131 if test $ac_verc_fail = yes; then
9150 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9151 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9152 # Check whether --enable-nls or --disable-nls was given.
9153 if test "${enable_nls+set}" = set; then
9154 enableval="$enable_nls"
9159 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9160 echo "${ECHO_T}$USE_NLS" >&6
9165 BUILD_INCLUDED_LIBINTL=no
9166 USE_INCLUDED_LIBINTL=no
9172 if test "$USE_NLS" = "yes"; then
9173 gt_use_preinstalled_gnugettext=no
9175 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9176 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9178 # Check whether --with-included-gettext or --without-included-gettext was given.
9179 if test "${with_included_gettext+set}" = set; then
9180 withval="$with_included_gettext"
9181 nls_cv_force_use_gnu_gettext=$withval
9183 nls_cv_force_use_gnu_gettext=no
9185 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9186 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9188 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9189 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9196 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9197 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9198 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 cat >conftest.$ac_ext <<_ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207 #include <libintl.h>
9208 extern int _nl_msg_cat_cntr;
9209 extern int *_nl_domain_bindings;
9213 bindtextdomain ("", "");
9214 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9221 (eval $ac_link) 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest$ac_exeext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 gt_cv_func_gnugettext1_libc=yes
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 gt_cv_func_gnugettext1_libc=no
9247 rm -f conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9251 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9253 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9259 acl_save_prefix="$prefix"
9260 prefix="$acl_final_prefix"
9261 acl_save_exec_prefix="$exec_prefix"
9262 exec_prefix="$acl_final_exec_prefix"
9264 eval additional_includedir=\"$includedir\"
9265 eval additional_libdir=\"$libdir\"
9267 exec_prefix="$acl_save_exec_prefix"
9268 prefix="$acl_save_prefix"
9271 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9272 if test "${with_libintl_prefix+set}" = set; then
9273 withval="$with_libintl_prefix"
9275 if test "X$withval" = "Xno"; then
9278 if test "X$withval" = "X"; then
9280 acl_save_prefix="$prefix"
9281 prefix="$acl_final_prefix"
9282 acl_save_exec_prefix="$exec_prefix"
9283 exec_prefix="$acl_final_exec_prefix"
9285 eval additional_includedir=\"$includedir\"
9286 eval additional_libdir=\"$libdir\"
9288 exec_prefix="$acl_save_exec_prefix"
9289 prefix="$acl_save_prefix"
9292 additional_includedir="$withval/include"
9293 additional_libdir="$withval/lib"
9303 names_already_handled=
9304 names_next_round='intl '
9305 while test -n "$names_next_round"; do
9306 names_this_round="$names_next_round"
9308 for name in $names_this_round; do
9310 for n in $names_already_handled; do
9311 if test "$n" = "$name"; then
9316 if test -z "$already_handled"; then
9317 names_already_handled="$names_already_handled $name"
9318 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9319 eval value=\"\$HAVE_LIB$uppername\"
9320 if test -n "$value"; then
9321 if test "$value" = yes; then
9322 eval value=\"\$LIB$uppername\"
9323 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9324 eval value=\"\$LTLIB$uppername\"
9325 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9334 if test $use_additional = yes; then
9335 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9336 found_dir="$additional_libdir"
9337 found_so="$additional_libdir/lib$name.$shlibext"
9338 if test -f "$additional_libdir/lib$name.la"; then
9339 found_la="$additional_libdir/lib$name.la"
9342 if test -f "$additional_libdir/lib$name.$libext"; then
9343 found_dir="$additional_libdir"
9344 found_a="$additional_libdir/lib$name.$libext"
9345 if test -f "$additional_libdir/lib$name.la"; then
9346 found_la="$additional_libdir/lib$name.la"
9351 if test "X$found_dir" = "X"; then
9352 for x in $LDFLAGS $LTLIBINTL; do
9354 acl_save_prefix="$prefix"
9355 prefix="$acl_final_prefix"
9356 acl_save_exec_prefix="$exec_prefix"
9357 exec_prefix="$acl_final_exec_prefix"
9359 exec_prefix="$acl_save_exec_prefix"
9360 prefix="$acl_save_prefix"
9364 dir=`echo "X$x" | sed -e 's/^X-L//'`
9365 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9367 found_so="$dir/lib$name.$shlibext"
9368 if test -f "$dir/lib$name.la"; then
9369 found_la="$dir/lib$name.la"
9372 if test -f "$dir/lib$name.$libext"; then
9374 found_a="$dir/lib$name.$libext"
9375 if test -f "$dir/lib$name.la"; then
9376 found_la="$dir/lib$name.la"
9382 if test "X$found_dir" != "X"; then
9387 if test "X$found_dir" != "X"; then
9388 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9389 if test "X$found_so" != "X"; then
9390 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9391 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9394 for x in $ltrpathdirs; do
9395 if test "X$x" = "X$found_dir"; then
9400 if test -z "$haveit"; then
9401 ltrpathdirs="$ltrpathdirs $found_dir"
9403 if test "$hardcode_direct" = yes; then
9404 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9406 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9407 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9409 for x in $rpathdirs; do
9410 if test "X$x" = "X$found_dir"; then
9415 if test -z "$haveit"; then
9416 rpathdirs="$rpathdirs $found_dir"
9420 for x in $LDFLAGS $LIBINTL; do
9422 acl_save_prefix="$prefix"
9423 prefix="$acl_final_prefix"
9424 acl_save_exec_prefix="$exec_prefix"
9425 exec_prefix="$acl_final_exec_prefix"
9427 exec_prefix="$acl_save_exec_prefix"
9428 prefix="$acl_save_prefix"
9430 if test "X$x" = "X-L$found_dir"; then
9435 if test -z "$haveit"; then
9436 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9438 if test "$hardcode_minus_L" != no; then
9439 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9441 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9447 if test "X$found_a" != "X"; then
9448 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9450 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9453 additional_includedir=
9454 case "$found_dir" in
9456 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9457 additional_includedir="$basedir/include"
9460 if test "X$additional_includedir" != "X"; then
9461 if test "X$additional_includedir" != "X/usr/include"; then
9463 if test "X$additional_includedir" = "X/usr/local/include"; then
9464 if test -n "$GCC"; then
9466 linux*) haveit=yes;;
9470 if test -z "$haveit"; then
9471 for x in $CPPFLAGS $INCINTL; do
9473 acl_save_prefix="$prefix"
9474 prefix="$acl_final_prefix"
9475 acl_save_exec_prefix="$exec_prefix"
9476 exec_prefix="$acl_final_exec_prefix"
9478 exec_prefix="$acl_save_exec_prefix"
9479 prefix="$acl_save_prefix"
9481 if test "X$x" = "X-I$additional_includedir"; then
9486 if test -z "$haveit"; then
9487 if test -d "$additional_includedir"; then
9488 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9494 if test -n "$found_la"; then
9495 save_libdir="$libdir"
9497 */* | *\\*) . "$found_la" ;;
9498 *) . "./$found_la" ;;
9500 libdir="$save_libdir"
9501 for dep in $dependency_libs; do
9504 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9505 if test "X$additional_libdir" != "X/usr/lib"; then
9507 if test "X$additional_libdir" = "X/usr/local/lib"; then
9508 if test -n "$GCC"; then
9510 linux*) haveit=yes;;
9514 if test -z "$haveit"; then
9516 for x in $LDFLAGS $LIBINTL; do
9518 acl_save_prefix="$prefix"
9519 prefix="$acl_final_prefix"
9520 acl_save_exec_prefix="$exec_prefix"
9521 exec_prefix="$acl_final_exec_prefix"
9523 exec_prefix="$acl_save_exec_prefix"
9524 prefix="$acl_save_prefix"
9526 if test "X$x" = "X-L$additional_libdir"; then
9531 if test -z "$haveit"; then
9532 if test -d "$additional_libdir"; then
9533 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9537 for x in $LDFLAGS $LTLIBINTL; do
9539 acl_save_prefix="$prefix"
9540 prefix="$acl_final_prefix"
9541 acl_save_exec_prefix="$exec_prefix"
9542 exec_prefix="$acl_final_exec_prefix"
9544 exec_prefix="$acl_save_exec_prefix"
9545 prefix="$acl_save_prefix"
9547 if test "X$x" = "X-L$additional_libdir"; then
9552 if test -z "$haveit"; then
9553 if test -d "$additional_libdir"; then
9554 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9561 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9562 if test "$enable_rpath" != no; then
9564 for x in $rpathdirs; do
9565 if test "X$x" = "X$dir"; then
9570 if test -z "$haveit"; then
9571 rpathdirs="$rpathdirs $dir"
9574 for x in $ltrpathdirs; do
9575 if test "X$x" = "X$dir"; then
9580 if test -z "$haveit"; then
9581 ltrpathdirs="$ltrpathdirs $dir"
9586 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9589 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9592 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9593 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9599 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9600 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9606 if test "X$rpathdirs" != "X"; then
9607 if test -n "$hardcode_libdir_separator"; then
9609 for found_dir in $rpathdirs; do
9610 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9612 acl_save_libdir="$libdir"
9614 eval flag=\"$hardcode_libdir_flag_spec\"
9615 libdir="$acl_save_libdir"
9616 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9618 for found_dir in $rpathdirs; do
9619 acl_save_libdir="$libdir"
9621 eval flag=\"$hardcode_libdir_flag_spec\"
9622 libdir="$acl_save_libdir"
9623 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9627 if test "X$ltrpathdirs" != "X"; then
9628 for found_dir in $ltrpathdirs; do
9629 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9633 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9634 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9635 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 gt_save_CPPFLAGS="$CPPFLAGS"
9639 CPPFLAGS="$CPPFLAGS $INCINTL"
9640 gt_save_LIBS="$LIBS"
9641 LIBS="$LIBS $LIBINTL"
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 #include <libintl.h>
9649 extern int _nl_msg_cat_cntr;
9654 const char *_nl_expand_alias ();
9658 bindtextdomain ("", "");
9659 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>conftest.er1
9668 grep -v '^ *+' conftest.er1 >conftest.err
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
9685 gt_cv_func_gnugettext1_libintl=yes
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9690 gt_cv_func_gnugettext1_libintl=no
9692 rm -f conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9695 LIBS="$LIBS $LIBICONV"
9696 cat >conftest.$ac_ext <<_ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9702 #include <libintl.h>
9703 extern int _nl_msg_cat_cntr;
9708 const char *_nl_expand_alias ();
9712 bindtextdomain ("", "");
9713 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; } &&
9733 { ac_try='test -s conftest$ac_exeext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 LIBINTL="$LIBINTL $LIBICONV"
9740 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9741 gt_cv_func_gnugettext1_libintl=yes
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9748 rm -f conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9751 CPPFLAGS="$gt_save_CPPFLAGS"
9752 LIBS="$gt_save_LIBS"
9754 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9755 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9758 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9759 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9760 && test "$PACKAGE" != gettext-runtime \
9761 && test "$PACKAGE" != gettext-tools; }; then
9762 gt_use_preinstalled_gnugettext=yes
9770 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9771 nls_cv_use_gnu_gettext=yes
9775 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9776 BUILD_INCLUDED_LIBINTL=yes
9777 USE_INCLUDED_LIBINTL=yes
9778 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9779 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9780 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9783 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9784 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9789 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9790 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9792 cat >>confdefs.h <<\_ACEOF
9793 #define ENABLE_NLS 1
9801 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9802 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9803 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9804 echo "${ECHO_T}$USE_NLS" >&6
9805 if test "$USE_NLS" = "yes"; then
9806 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9807 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9808 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9809 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9810 gt_source="external libintl"
9815 gt_source="included intl directory"
9817 echo "$as_me:$LINENO: result: $gt_source" >&5
9818 echo "${ECHO_T}$gt_source" >&6
9821 if test "$USE_NLS" = "yes"; then
9823 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9824 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9825 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9826 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9827 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9828 echo "${ECHO_T}$LIBINTL" >&6
9830 for element in $INCINTL; do
9832 for x in $CPPFLAGS; do
9834 acl_save_prefix="$prefix"
9835 prefix="$acl_final_prefix"
9836 acl_save_exec_prefix="$exec_prefix"
9837 exec_prefix="$acl_final_exec_prefix"
9839 exec_prefix="$acl_save_exec_prefix"
9840 prefix="$acl_save_prefix"
9842 if test "X$x" = "X$element"; then
9847 if test -z "$haveit"; then
9848 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9855 cat >>confdefs.h <<\_ACEOF
9856 #define HAVE_GETTEXT 1
9860 cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_DCGETTEXT 1
9870 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9871 BUILD_INCLUDED_LIBINTL=yes
9879 nls_cv_header_libgt=
9890 if test "$USE_INCLUDED_LIBINTL" = yes; then
9891 INTLOBJS="\$(GETTOBJS)"
9895 INTL_LIBTOOL_SUFFIX_PREFIX=
9907 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9908 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9910 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 cat >conftest.make <<\_ACEOF
9915 @echo 'ac_maketemp="$(MAKE)"'
9917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9918 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9919 if test -n "$ac_maketemp"; then
9920 eval ac_cv_prog_make_${ac_make}_set=yes
9922 eval ac_cv_prog_make_${ac_make}_set=no
9926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9927 echo "$as_me:$LINENO: result: yes" >&5
9928 echo "${ECHO_T}yes" >&6
9931 echo "$as_me:$LINENO: result: no" >&5
9932 echo "${ECHO_T}no" >&6
9933 SET_MAKE="MAKE=${MAKE-make}"
9936 # Extract the first word of "ln", so it can be a program name with args.
9937 set dummy ln; ac_word=$2
9938 echo "$as_me:$LINENO: checking for $ac_word" >&5
9939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9940 if test "${ac_cv_path_LN+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 test -z "$as_dir" && as_dir=.
9953 for ac_exec_ext in '' $ac_executable_extensions; do
9954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9955 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9968 if test -n "$LN"; then
9969 echo "$as_me:$LINENO: result: $LN" >&5
9970 echo "${ECHO_T}$LN" >&6
9972 echo "$as_me:$LINENO: result: no" >&5
9973 echo "${ECHO_T}no" >&6
9976 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9977 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9979 if test "$LN_S" = "ln -s"; then
9980 echo "$as_me:$LINENO: result: yes" >&5
9981 echo "${ECHO_T}yes" >&6
9983 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9984 echo "${ECHO_T}no, using $LN_S" >&6
9987 # Extract the first word of "mv", so it can be a program name with args.
9988 set dummy mv; ac_word=$2
9989 echo "$as_me:$LINENO: checking for $ac_word" >&5
9990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9991 if test "${ac_cv_path_MV+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $PATH
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10006 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10019 if test -n "$MV"; then
10020 echo "$as_me:$LINENO: result: $MV" >&5
10021 echo "${ECHO_T}$MV" >&6
10023 echo "$as_me:$LINENO: result: no" >&5
10024 echo "${ECHO_T}no" >&6
10027 # Extract the first word of "cp", so it can be a program name with args.
10028 set dummy cp; ac_word=$2
10029 echo "$as_me:$LINENO: checking for $ac_word" >&5
10030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10031 if test "${ac_cv_path_CP+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10043 test -z "$as_dir" && as_dir=.
10044 for ac_exec_ext in '' $ac_executable_extensions; do
10045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10046 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10053 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10059 if test -n "$CP"; then
10060 echo "$as_me:$LINENO: result: $CP" >&5
10061 echo "${ECHO_T}$CP" >&6
10063 echo "$as_me:$LINENO: result: no" >&5
10064 echo "${ECHO_T}no" >&6
10067 # Extract the first word of "rm", so it can be a program name with args.
10068 set dummy rm; ac_word=$2
10069 echo "$as_me:$LINENO: checking for $ac_word" >&5
10070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10071 if test "${ac_cv_path_RM+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10086 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10099 if test -n "$RM"; then
10100 echo "$as_me:$LINENO: result: $RM" >&5
10101 echo "${ECHO_T}$RM" >&6
10103 echo "$as_me:$LINENO: result: no" >&5
10104 echo "${ECHO_T}no" >&6
10107 # Extract the first word of "chmod", so it can be a program name with args.
10108 set dummy chmod; ac_word=$2
10109 echo "$as_me:$LINENO: checking for $ac_word" >&5
10110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10111 if test "${ac_cv_path_CHMOD+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120 for as_dir in $PATH
10123 test -z "$as_dir" && as_dir=.
10124 for ac_exec_ext in '' $ac_executable_extensions; do
10125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10126 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10137 CHMOD=$ac_cv_path_CHMOD
10139 if test -n "$CHMOD"; then
10140 echo "$as_me:$LINENO: result: $CHMOD" >&5
10141 echo "${ECHO_T}$CHMOD" >&6
10143 echo "$as_me:$LINENO: result: no" >&5
10144 echo "${ECHO_T}no" >&6
10147 for ac_prog in gawk mawk nawk awk
10149 # Extract the first word of "$ac_prog", so it can be a program name with args.
10150 set dummy $ac_prog; ac_word=$2
10151 echo "$as_me:$LINENO: checking for $ac_word" >&5
10152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10153 if test "${ac_cv_prog_AWK+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 if test -n "$AWK"; then
10157 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160 for as_dir in $PATH
10163 test -z "$as_dir" && as_dir=.
10164 for ac_exec_ext in '' $ac_executable_extensions; do
10165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10166 ac_cv_prog_AWK="$ac_prog"
10167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10175 AWK=$ac_cv_prog_AWK
10176 if test -n "$AWK"; then
10177 echo "$as_me:$LINENO: result: $AWK" >&5
10178 echo "${ECHO_T}$AWK" >&6
10180 echo "$as_me:$LINENO: result: no" >&5
10181 echo "${ECHO_T}no" >&6
10184 test -n "$AWK" && break
10187 echo "$as_me:$LINENO: checking for egrep" >&5
10188 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10189 if test "${ac_cv_prog_egrep+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10193 then ac_cv_prog_egrep='grep -E'
10194 else ac_cv_prog_egrep='egrep'
10197 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10198 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10199 EGREP=$ac_cv_prog_egrep
10202 # Extract the first word of "sed", so it can be a program name with args.
10203 set dummy sed; ac_word=$2
10204 echo "$as_me:$LINENO: checking for $ac_word" >&5
10205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10206 if test "${ac_cv_path_SED+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10221 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10228 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10232 SED=$ac_cv_path_SED
10234 if test -n "$SED"; then
10235 echo "$as_me:$LINENO: result: $SED" >&5
10236 echo "${ECHO_T}$SED" >&6
10238 echo "$as_me:$LINENO: result: no" >&5
10239 echo "${ECHO_T}no" >&6
10242 # Extract the first word of "perl", so it can be a program name with args.
10243 set dummy perl; ac_word=$2
10244 echo "$as_me:$LINENO: checking for $ac_word" >&5
10245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10246 if test "${ac_cv_path_PERL+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10268 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10272 PERL=$ac_cv_path_PERL
10274 if test -n "$PERL"; then
10275 echo "$as_me:$LINENO: result: $PERL" >&5
10276 echo "${ECHO_T}$PERL" >&6
10278 echo "$as_me:$LINENO: result: no" >&5
10279 echo "${ECHO_T}no" >&6
10282 # Extract the first word of "ldconfig", so it can be a program name with args.
10283 set dummy ldconfig; ac_word=$2
10284 echo "$as_me:$LINENO: checking for $ac_word" >&5
10285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10286 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295 for as_dir in $PATH
10298 test -z "$as_dir" && as_dir=.
10299 for ac_exec_ext in '' $ac_executable_extensions; do
10300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10301 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10308 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10312 LDCONFIG=$ac_cv_path_LDCONFIG
10314 if test -n "$LDCONFIG"; then
10315 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10316 echo "${ECHO_T}$LDCONFIG" >&6
10318 echo "$as_me:$LINENO: result: no" >&5
10319 echo "${ECHO_T}no" >&6
10322 if test -n "$ac_tool_prefix"; then
10323 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10324 set dummy ${ac_tool_prefix}ar; ac_word=$2
10325 echo "$as_me:$LINENO: checking for $ac_word" >&5
10326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10327 if test "${ac_cv_prog_AR+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 if test -n "$AR"; then
10331 ac_cv_prog_AR="$AR" # Let the user override the test.
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10337 test -z "$as_dir" && as_dir=.
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10340 ac_cv_prog_AR="${ac_tool_prefix}ar"
10341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 if test -n "$AR"; then
10351 echo "$as_me:$LINENO: result: $AR" >&5
10352 echo "${ECHO_T}$AR" >&6
10354 echo "$as_me:$LINENO: result: no" >&5
10355 echo "${ECHO_T}no" >&6
10359 if test -z "$ac_cv_prog_AR"; then
10361 # Extract the first word of "ar", so it can be a program name with args.
10362 set dummy ar; ac_word=$2
10363 echo "$as_me:$LINENO: checking for $ac_word" >&5
10364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10365 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 if test -n "$ac_ct_AR"; then
10369 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372 for as_dir in $PATH
10375 test -z "$as_dir" && as_dir=.
10376 for ac_exec_ext in '' $ac_executable_extensions; do
10377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10378 ac_cv_prog_ac_ct_AR="ar"
10379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
10388 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10389 if test -n "$ac_ct_AR"; then
10390 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10391 echo "${ECHO_T}$ac_ct_AR" >&6
10393 echo "$as_me:$LINENO: result: no" >&5
10394 echo "${ECHO_T}no" >&6
10399 AR="$ac_cv_prog_AR"
10402 if test -n "$ac_tool_prefix"; then
10403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10405 echo "$as_me:$LINENO: checking for $ac_word" >&5
10406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10407 if test "${ac_cv_prog_RANLIB+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 if test -n "$RANLIB"; then
10411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in $PATH
10417 test -z "$as_dir" && as_dir=.
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 RANLIB=$ac_cv_prog_RANLIB
10430 if test -n "$RANLIB"; then
10431 echo "$as_me:$LINENO: result: $RANLIB" >&5
10432 echo "${ECHO_T}$RANLIB" >&6
10434 echo "$as_me:$LINENO: result: no" >&5
10435 echo "${ECHO_T}no" >&6
10439 if test -z "$ac_cv_prog_RANLIB"; then
10440 ac_ct_RANLIB=$RANLIB
10441 # Extract the first word of "ranlib", so it can be a program name with args.
10442 set dummy ranlib; ac_word=$2
10443 echo "$as_me:$LINENO: checking for $ac_word" >&5
10444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10445 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 if test -n "$ac_ct_RANLIB"; then
10449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452 for as_dir in $PATH
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10458 ac_cv_prog_ac_ct_RANLIB="ranlib"
10459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10468 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10469 if test -n "$ac_ct_RANLIB"; then
10470 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10471 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10473 echo "$as_me:$LINENO: result: no" >&5
10474 echo "${ECHO_T}no" >&6
10477 RANLIB=$ac_ct_RANLIB
10479 RANLIB="$ac_cv_prog_RANLIB"
10482 if test -n "$ac_tool_prefix"; then
10483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10484 set dummy ${ac_tool_prefix}strip; ac_word=$2
10485 echo "$as_me:$LINENO: checking for $ac_word" >&5
10486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10487 if test "${ac_cv_prog_STRIP+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 if test -n "$STRIP"; then
10491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in $PATH
10497 test -z "$as_dir" && as_dir=.
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10509 STRIP=$ac_cv_prog_STRIP
10510 if test -n "$STRIP"; then
10511 echo "$as_me:$LINENO: result: $STRIP" >&5
10512 echo "${ECHO_T}$STRIP" >&6
10514 echo "$as_me:$LINENO: result: no" >&5
10515 echo "${ECHO_T}no" >&6
10519 if test -z "$ac_cv_prog_STRIP"; then
10521 # Extract the first word of "strip", so it can be a program name with args.
10522 set dummy strip; ac_word=$2
10523 echo "$as_me:$LINENO: checking for $ac_word" >&5
10524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10525 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 if test -n "$ac_ct_STRIP"; then
10529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538 ac_cv_prog_ac_ct_STRIP="strip"
10539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10549 if test -n "$ac_ct_STRIP"; then
10550 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10551 echo "${ECHO_T}$ac_ct_STRIP" >&6
10553 echo "$as_me:$LINENO: result: no" >&5
10554 echo "${ECHO_T}no" >&6
10559 STRIP="$ac_cv_prog_STRIP"
10562 # Find a good install program. We prefer a C program (faster),
10563 # so one script is as good as another. But avoid the broken or
10564 # incompatible versions:
10565 # SysV /etc/install, /usr/sbin/install
10566 # SunOS /usr/etc/install
10567 # IRIX /sbin/install
10569 # AmigaOS /C/install, which installs bootblocks on floppy discs
10570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10573 # OS/2's system install, which has a completely different semantic
10574 # ./install, which can be erroneously created by make from ./install.sh.
10575 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10576 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10577 if test -z "$INSTALL"; then
10578 if test "${ac_cv_path_install+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10585 test -z "$as_dir" && as_dir=.
10586 # Account for people who put trailing slashes in PATH elements.
10588 ./ | .// | /cC/* | \
10589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10590 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10593 # OSF1 and SCO ODT 3.0 have their own names for install.
10594 # Don't use installbsd from OSF since it installs stuff as root
10596 for ac_prog in ginstall scoinst install; do
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10599 if test $ac_prog = install &&
10600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10601 # AIX install. It has an incompatible calling convention.
10603 elif test $ac_prog = install &&
10604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10605 # program-specific install script used by HP pwplus--don't use.
10608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10620 if test "${ac_cv_path_install+set}" = set; then
10621 INSTALL=$ac_cv_path_install
10623 # As a last resort, use the slow shell script. We don't cache a
10624 # path for INSTALL within a source directory, because that will
10625 # break other packages using the cache if that directory is
10626 # removed, or if the path is relative.
10627 INSTALL=$ac_install_sh
10630 echo "$as_me:$LINENO: result: $INSTALL" >&5
10631 echo "${ECHO_T}$INSTALL" >&6
10633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10634 # It thinks the first close brace ends the variable substitution.
10635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10641 # See if we need a separate native compiler.
10642 if test $cross_compiling = no; then
10646 for ac_prog in gcc cc
10648 # Extract the first word of "$ac_prog", so it can be a program name with args.
10649 set dummy $ac_prog; ac_word=$2
10650 echo "$as_me:$LINENO: checking for $ac_word" >&5
10651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10652 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 if test -n "$BUILD_CC"; then
10656 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10665 ac_cv_prog_BUILD_CC="$ac_prog"
10666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 BUILD_CC=$ac_cv_prog_BUILD_CC
10675 if test -n "$BUILD_CC"; then
10676 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10677 echo "${ECHO_T}$BUILD_CC" >&6
10679 echo "$as_me:$LINENO: result: no" >&5
10680 echo "${ECHO_T}no" >&6
10683 test -n "$BUILD_CC" && break
10717 for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h
10719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10721 echo "$as_me:$LINENO: checking for $ac_header" >&5
10722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10729 # Is the header compilable?
10730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 $ac_includes_default
10739 #include <$ac_header>
10741 rm -f conftest.$ac_objext
10742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10743 (eval $ac_compile) 2>conftest.er1
10745 grep -v '^ *+' conftest.er1 >conftest.err
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; } &&
10756 { ac_try='test -s conftest.$ac_objext'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ac_header_compiler=yes
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ac_header_compiler=no
10769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10771 echo "${ECHO_T}$ac_header_compiler" >&6
10773 # Is the header present?
10774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10776 cat >conftest.$ac_ext <<_ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 #include <$ac_header>
10784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10787 grep -v '^ *+' conftest.er1 >conftest.err
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } >/dev/null; then
10792 if test -s conftest.err; then
10793 ac_cpp_err=$ac_c_preproc_warn_flag
10794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10801 if test -z "$ac_cpp_err"; then
10802 ac_header_preproc=yes
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10807 ac_header_preproc=no
10809 rm -f conftest.err conftest.$ac_ext
10810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10811 echo "${ECHO_T}$ac_header_preproc" >&6
10813 # So? What about this header?
10814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10820 ac_header_preproc=yes
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10837 ## ------------------------------------------ ##
10838 ## Report this to the AC_PACKAGE_NAME lists. ##
10839 ## ------------------------------------------ ##
10842 sed "s/^/$as_me: WARNING: /" >&2
10845 echo "$as_me:$LINENO: checking for $ac_header" >&5
10846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 eval "$as_ac_Header=\$ac_header_preproc"
10852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10867 for ac_header in sys/disk.h sys/mount.h
10869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10870 echo "$as_me:$LINENO: checking for $ac_header" >&5
10871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 cat >conftest.$ac_ext <<_ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10882 #if HAVE_SYS_QUEUE_H
10883 #include <sys/queue.h>
10887 #include <$ac_header>
10889 rm -f conftest.$ac_objext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891 (eval $ac_compile) 2>conftest.er1
10893 grep -v '^ *+' conftest.er1 >conftest.err
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try='test -s conftest.$ac_objext'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 eval "$as_ac_Header=yes"
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 eval "$as_ac_Header=no"
10917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10922 cat >>confdefs.h <<_ACEOF
10923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10931 for ac_header in net/if.h
10933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10934 echo "$as_me:$LINENO: checking for $ac_header" >&5
10935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 cat >conftest.$ac_ext <<_ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10946 #if HAVE_SYS_TYPES_H
10947 #include <sys/types.h>
10949 #if HAVE_SYS_SOCKET
10950 #include <sys/socket.h>
10954 #include <$ac_header>
10956 rm -f conftest.$ac_objext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10958 (eval $ac_compile) 2>conftest.er1
10960 grep -v '^ *+' conftest.er1 >conftest.err
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; } &&
10971 { ac_try='test -s conftest.$ac_objext'
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 eval "$as_ac_Header=yes"
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 eval "$as_ac_Header=no"
10984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10989 cat >>confdefs.h <<_ACEOF
10990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10998 for ac_func in vprintf
11000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11001 echo "$as_me:$LINENO: checking for $ac_func" >&5
11002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11003 if eval "test \"\${$as_ac_var+set}\" = set"; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11014 #define $ac_func innocuous_$ac_func
11016 /* System header to define __stub macros and hopefully few prototypes,
11017 which can conflict with char $ac_func (); below.
11018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11019 <limits.h> exists even on freestanding compilers. */
11022 # include <limits.h>
11024 # include <assert.h>
11029 /* Override any gcc2 internal prototype to avoid an error. */
11034 /* We use char because int might match the return type of a gcc2
11035 builtin and then its argument prototype would still apply. */
11037 /* The GNU C library defines this for functions which it implements
11038 to always fail with ENOSYS. Some functions are actually named
11039 something starting with __ and the normal name is an alias. */
11040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11043 char (*f) () = $ac_func;
11052 return f != $ac_func;
11057 rm -f conftest.$ac_objext conftest$ac_exeext
11058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11059 (eval $ac_link) 2>conftest.er1
11061 grep -v '^ *+' conftest.er1 >conftest.err
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } &&
11066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest$ac_exeext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 eval "$as_ac_var=yes"
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 eval "$as_ac_var=no"
11085 rm -f conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11090 if test `eval echo '${'$as_ac_var'}'` = yes; then
11091 cat >>confdefs.h <<_ACEOF
11092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11095 echo "$as_me:$LINENO: checking for _doprnt" >&5
11096 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11097 if test "${ac_cv_func__doprnt+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 cat >conftest.$ac_ext <<_ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11108 #define _doprnt innocuous__doprnt
11110 /* System header to define __stub macros and hopefully few prototypes,
11111 which can conflict with char _doprnt (); below.
11112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11113 <limits.h> exists even on freestanding compilers. */
11116 # include <limits.h>
11118 # include <assert.h>
11123 /* Override any gcc2 internal prototype to avoid an error. */
11128 /* We use char because int might match the return type of a gcc2
11129 builtin and then its argument prototype would still apply. */
11131 /* The GNU C library defines this for functions which it implements
11132 to always fail with ENOSYS. Some functions are actually named
11133 something starting with __ and the normal name is an alias. */
11134 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11137 char (*f) () = _doprnt;
11146 return f != _doprnt;
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153 (eval $ac_link) 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; } &&
11166 { ac_try='test -s conftest$ac_exeext'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 ac_cv_func__doprnt=yes
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11177 ac_cv_func__doprnt=no
11179 rm -f conftest.err conftest.$ac_objext \
11180 conftest$ac_exeext conftest.$ac_ext
11182 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11183 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11184 if test $ac_cv_func__doprnt = yes; then
11186 cat >>confdefs.h <<\_ACEOF
11187 #define HAVE_DOPRNT 1
11196 echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11197 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6
11198 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 #include <dirent.h>
11212 static struct dirent ac_aggr;
11213 if (ac_aggr.d_reclen)
11219 rm -f conftest.$ac_objext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>conftest.er1
11223 grep -v '^ *+' conftest.er1 >conftest.err
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; } &&
11234 { ac_try='test -s conftest.$ac_objext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_cv_member_struct_dirent_d_reclen=yes
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 #include <dirent.h>
11256 static struct dirent ac_aggr;
11257 if (sizeof ac_aggr.d_reclen)
11263 rm -f conftest.$ac_objext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265 (eval $ac_compile) 2>conftest.er1
11267 grep -v '^ *+' conftest.er1 >conftest.err
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11284 ac_cv_member_struct_dirent_d_reclen=yes
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_cv_member_struct_dirent_d_reclen=no
11291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11296 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6
11297 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11298 cat >>confdefs.h <<\_ACEOF
11299 #define HAVE_RECLEN_DIRENT 1
11304 echo "$as_me:$LINENO: checking for ssize_t" >&5
11305 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11306 if test "${ac_cv_type_ssize_t+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <sys/types.h>
11322 if (sizeof (ssize_t))
11328 rm -f conftest.$ac_objext
11329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330 (eval $ac_compile) 2>conftest.er1
11332 grep -v '^ *+' conftest.er1 >conftest.err
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_cv_type_ssize_t=yes
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 ac_cv_type_ssize_t=no
11356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11358 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11359 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11360 if test $ac_cv_type_ssize_t = yes; then
11361 cat >>confdefs.h <<\_ACEOF
11362 #define HAVE_TYPE_SSIZE_T 1
11367 echo "$as_me:$LINENO: checking whether llseek is declared" >&5
11368 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6
11369 if test "${ac_cv_have_decl_llseek+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 cat >conftest.$ac_ext <<_ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 #include <unistd.h>
11384 char *p = (char *) llseek;
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11395 grep -v '^ *+' conftest.er1 >conftest.err
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_cv_have_decl_llseek=yes
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 ac_cv_have_decl_llseek=no
11419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11421 echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
11422 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6
11423 if test $ac_cv_have_decl_llseek = yes; then
11424 cat >>confdefs.h <<\_ACEOF
11425 #define HAVE_LLSEEK_PROTOTYPE 1
11430 echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
11431 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6
11432 if test "${ac_cv_have_decl_lseek64+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 cat >conftest.$ac_ext <<_ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 #define _LARGEFILE_SOURCE
11442 #define _LARGEFILE64_SOURCE
11443 #include <unistd.h>
11449 char *p = (char *) lseek64;
11456 rm -f conftest.$ac_objext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11458 (eval $ac_compile) 2>conftest.er1
11460 grep -v '^ *+' conftest.er1 >conftest.err
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest.$ac_objext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_have_decl_lseek64=yes
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 ac_cv_have_decl_lseek64=no
11484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11486 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
11487 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6
11488 if test $ac_cv_have_decl_lseek64 = yes; then
11489 cat >>confdefs.h <<\_ACEOF
11490 #define HAVE_LSEEK64_PROTOTYPE 1
11495 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
11496 # if cross-compiling, with no cached values, just assume something common.
11497 ac_cv_sizeof_short=2
11499 ac_cv_sizeof_long=4
11500 ac_cv_sizeof_long_long=8
11501 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11502 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
11504 echo "$as_me:$LINENO: checking for short" >&5
11505 echo $ECHO_N "checking for short... $ECHO_C" >&6
11506 if test "${ac_cv_type_short+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11521 if (sizeof (short))
11527 rm -f conftest.$ac_objext
11528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529 (eval $ac_compile) 2>conftest.er1
11531 grep -v '^ *+' conftest.er1 >conftest.err
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11548 ac_cv_type_short=yes
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ac_cv_type_short=no
11555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11557 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11558 echo "${ECHO_T}$ac_cv_type_short" >&6
11560 echo "$as_me:$LINENO: checking size of short" >&5
11561 echo $ECHO_N "checking size of short... $ECHO_C" >&6
11562 if test "${ac_cv_sizeof_short+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 if test "$ac_cv_type_short" = yes; then
11566 # The cast to unsigned long works around a bug in the HP C Compiler
11567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11569 # This bug is HP SR number 8606223364.
11570 if test "$cross_compiling" = yes; then
11571 # Depending upon the size, compute the lo and hi bounds.
11572 cat >conftest.$ac_ext <<_ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11578 $ac_includes_default
11582 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11589 rm -f conftest.$ac_objext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11591 (eval $ac_compile) 2>conftest.er1
11593 grep -v '^ *+' conftest.er1 >conftest.err
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try='test -s conftest.$ac_objext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 $ac_includes_default
11622 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11629 rm -f conftest.$ac_objext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631 (eval $ac_compile) 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest.$ac_objext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_hi=$ac_mid; break
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_lo=`expr $ac_mid + 1`
11656 if test $ac_lo -le $ac_mid; then
11660 ac_mid=`expr 2 '*' $ac_mid + 1`
11662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 cat >conftest.$ac_ext <<_ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 $ac_includes_default
11678 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11685 rm -f conftest.$ac_objext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>conftest.er1
11689 grep -v '^ *+' conftest.er1 >conftest.err
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; } &&
11700 { ac_try='test -s conftest.$ac_objext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 $ac_includes_default
11718 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11725 rm -f conftest.$ac_objext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11727 (eval $ac_compile) 2>conftest.er1
11729 grep -v '^ *+' conftest.er1 >conftest.err
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try='test -s conftest.$ac_objext'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 ac_lo=$ac_mid; break
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11751 ac_hi=`expr '(' $ac_mid ')' - 1`
11752 if test $ac_mid -le $ac_hi; then
11756 ac_mid=`expr 2 '*' $ac_mid`
11758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11769 # Binary search between lo and hi bounds.
11770 while test "x$ac_lo" != "x$ac_hi"; do
11771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11772 cat >conftest.$ac_ext <<_ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 $ac_includes_default
11782 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11789 rm -f conftest.$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11793 grep -v '^ *+' conftest.er1 >conftest.err
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try='test -s conftest.$ac_objext'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; }; then
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11815 ac_lo=`expr '(' $ac_mid ')' + 1`
11817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11820 ?*) ac_cv_sizeof_short=$ac_lo;;
11821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11822 See \`config.log' for more details." >&5
11823 echo "$as_me: error: cannot compute sizeof (short), 77
11824 See \`config.log' for more details." >&2;}
11825 { (exit 1); exit 1; }; } ;;
11828 if test "$cross_compiling" = yes; then
11829 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11830 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11831 { (exit 1); exit 1; }; }
11833 cat >conftest.$ac_ext <<_ACEOF
11836 cat confdefs.h >>conftest.$ac_ext
11837 cat >>conftest.$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11839 $ac_includes_default
11840 long longval () { return (long) (sizeof (short)); }
11841 unsigned long ulongval () { return (long) (sizeof (short)); }
11843 #include <stdlib.h>
11848 FILE *f = fopen ("conftest.val", "w");
11851 if (((long) (sizeof (short))) < 0)
11853 long i = longval ();
11854 if (i != ((long) (sizeof (short))))
11856 fprintf (f, "%ld\n", i);
11860 unsigned long i = ulongval ();
11861 if (i != ((long) (sizeof (short))))
11863 fprintf (f, "%lu\n", i);
11865 exit (ferror (f) || fclose (f) != 0);
11871 rm -f conftest$ac_exeext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11873 (eval $ac_link) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_cv_sizeof_short=`cat conftest.val`
11884 echo "$as_me: program exited with status $ac_status" >&5
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 ( exit $ac_status )
11889 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11890 See \`config.log' for more details." >&5
11891 echo "$as_me: error: cannot compute sizeof (short), 77
11892 See \`config.log' for more details." >&2;}
11893 { (exit 1); exit 1; }; }
11895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11900 ac_cv_sizeof_short=0
11903 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11904 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11905 cat >>confdefs.h <<_ACEOF
11906 #define SIZEOF_SHORT $ac_cv_sizeof_short
11910 echo "$as_me:$LINENO: checking for int" >&5
11911 echo $ECHO_N "checking for int... $ECHO_C" >&6
11912 if test "${ac_cv_type_int+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 cat >conftest.$ac_ext <<_ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 $ac_includes_default
11933 rm -f conftest.$ac_objext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935 (eval $ac_compile) 2>conftest.er1
11937 grep -v '^ *+' conftest.er1 >conftest.err
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11963 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11964 echo "${ECHO_T}$ac_cv_type_int" >&6
11966 echo "$as_me:$LINENO: checking size of int" >&5
11967 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11968 if test "${ac_cv_sizeof_int+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 if test "$ac_cv_type_int" = yes; then
11972 # The cast to unsigned long works around a bug in the HP C Compiler
11973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11975 # This bug is HP SR number 8606223364.
11976 if test "$cross_compiling" = yes; then
11977 # Depending upon the size, compute the lo and hi bounds.
11978 cat >conftest.$ac_ext <<_ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11984 $ac_includes_default
11988 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11995 rm -f conftest.$ac_objext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11997 (eval $ac_compile) 2>conftest.er1
11999 grep -v '^ *+' conftest.er1 >conftest.err
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest.$ac_objext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12028 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12039 grep -v '^ *+' conftest.er1 >conftest.err
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } &&
12050 { ac_try='test -s conftest.$ac_objext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 ac_hi=$ac_mid; break
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 ac_lo=`expr $ac_mid + 1`
12062 if test $ac_lo -le $ac_mid; then
12066 ac_mid=`expr 2 '*' $ac_mid + 1`
12068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 cat >conftest.$ac_ext <<_ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12080 $ac_includes_default
12084 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12091 rm -f conftest.$ac_objext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12093 (eval $ac_compile) 2>conftest.er1
12095 grep -v '^ *+' conftest.er1 >conftest.err
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; } &&
12106 { ac_try='test -s conftest.$ac_objext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12114 cat >conftest.$ac_ext <<_ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 $ac_includes_default
12124 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12135 grep -v '^ *+' conftest.er1 >conftest.err
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest.$ac_objext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 ac_lo=$ac_mid; break
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12157 ac_hi=`expr '(' $ac_mid ')' - 1`
12158 if test $ac_mid -le $ac_hi; then
12162 ac_mid=`expr 2 '*' $ac_mid`
12164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12175 # Binary search between lo and hi bounds.
12176 while test "x$ac_lo" != "x$ac_hi"; do
12177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12178 cat >conftest.$ac_ext <<_ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 $ac_includes_default
12188 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12195 rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197 (eval $ac_compile) 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 ac_lo=`expr '(' $ac_mid ')' + 1`
12223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12226 ?*) ac_cv_sizeof_int=$ac_lo;;
12227 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12228 See \`config.log' for more details." >&5
12229 echo "$as_me: error: cannot compute sizeof (int), 77
12230 See \`config.log' for more details." >&2;}
12231 { (exit 1); exit 1; }; } ;;
12234 if test "$cross_compiling" = yes; then
12235 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12236 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12237 { (exit 1); exit 1; }; }
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 $ac_includes_default
12246 long longval () { return (long) (sizeof (int)); }
12247 unsigned long ulongval () { return (long) (sizeof (int)); }
12249 #include <stdlib.h>
12254 FILE *f = fopen ("conftest.val", "w");
12257 if (((long) (sizeof (int))) < 0)
12259 long i = longval ();
12260 if (i != ((long) (sizeof (int))))
12262 fprintf (f, "%ld\n", i);
12266 unsigned long i = ulongval ();
12267 if (i != ((long) (sizeof (int))))
12269 fprintf (f, "%lu\n", i);
12271 exit (ferror (f) || fclose (f) != 0);
12277 rm -f conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_cv_sizeof_int=`cat conftest.val`
12290 echo "$as_me: program exited with status $ac_status" >&5
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 ( exit $ac_status )
12295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12296 See \`config.log' for more details." >&5
12297 echo "$as_me: error: cannot compute sizeof (int), 77
12298 See \`config.log' for more details." >&2;}
12299 { (exit 1); exit 1; }; }
12301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12309 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12310 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12311 cat >>confdefs.h <<_ACEOF
12312 #define SIZEOF_INT $ac_cv_sizeof_int
12316 echo "$as_me:$LINENO: checking for long" >&5
12317 echo $ECHO_N "checking for long... $ECHO_C" >&6
12318 if test "${ac_cv_type_long+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 cat >conftest.$ac_ext <<_ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 $ac_includes_default
12339 rm -f conftest.$ac_objext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12341 (eval $ac_compile) 2>conftest.er1
12343 grep -v '^ *+' conftest.er1 >conftest.err
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest.$ac_objext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_type_long=yes
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12370 echo "${ECHO_T}$ac_cv_type_long" >&6
12372 echo "$as_me:$LINENO: checking size of long" >&5
12373 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12374 if test "${ac_cv_sizeof_long+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 if test "$ac_cv_type_long" = yes; then
12378 # The cast to unsigned long works around a bug in the HP C Compiler
12379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12380 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12381 # This bug is HP SR number 8606223364.
12382 if test "$cross_compiling" = yes; then
12383 # Depending upon the size, compute the lo and hi bounds.
12384 cat >conftest.$ac_ext <<_ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12390 $ac_includes_default
12394 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12401 rm -f conftest.$ac_objext
12402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12403 (eval $ac_compile) 2>conftest.er1
12405 grep -v '^ *+' conftest.er1 >conftest.err
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } &&
12410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest.$ac_objext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 $ac_includes_default
12434 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12441 rm -f conftest.$ac_objext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12443 (eval $ac_compile) 2>conftest.er1
12445 grep -v '^ *+' conftest.er1 >conftest.err
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
12450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; } &&
12456 { ac_try='test -s conftest.$ac_objext'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12462 ac_hi=$ac_mid; break
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ac_lo=`expr $ac_mid + 1`
12468 if test $ac_lo -le $ac_mid; then
12472 ac_mid=`expr 2 '*' $ac_mid + 1`
12474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 $ac_includes_default
12490 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12497 rm -f conftest.$ac_objext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12499 (eval $ac_compile) 2>conftest.er1
12501 grep -v '^ *+' conftest.er1 >conftest.err
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; } &&
12512 { ac_try='test -s conftest.$ac_objext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 $ac_includes_default
12530 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539 (eval $ac_compile) 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_lo=$ac_mid; break
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ac_hi=`expr '(' $ac_mid ')' - 1`
12564 if test $ac_mid -le $ac_hi; then
12568 ac_mid=`expr 2 '*' $ac_mid`
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12581 # Binary search between lo and hi bounds.
12582 while test "x$ac_lo" != "x$ac_hi"; do
12583 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12584 cat >conftest.$ac_ext <<_ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 $ac_includes_default
12594 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12605 grep -v '^ *+' conftest.er1 >conftest.err
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest.$ac_objext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 ac_lo=`expr '(' $ac_mid ')' + 1`
12629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632 ?*) ac_cv_sizeof_long=$ac_lo;;
12633 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12634 See \`config.log' for more details." >&5
12635 echo "$as_me: error: cannot compute sizeof (long), 77
12636 See \`config.log' for more details." >&2;}
12637 { (exit 1); exit 1; }; } ;;
12640 if test "$cross_compiling" = yes; then
12641 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12642 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12643 { (exit 1); exit 1; }; }
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 $ac_includes_default
12652 long longval () { return (long) (sizeof (long)); }
12653 unsigned long ulongval () { return (long) (sizeof (long)); }
12655 #include <stdlib.h>
12660 FILE *f = fopen ("conftest.val", "w");
12663 if (((long) (sizeof (long))) < 0)
12665 long i = longval ();
12666 if (i != ((long) (sizeof (long))))
12668 fprintf (f, "%ld\n", i);
12672 unsigned long i = ulongval ();
12673 if (i != ((long) (sizeof (long))))
12675 fprintf (f, "%lu\n", i);
12677 exit (ferror (f) || fclose (f) != 0);
12683 rm -f conftest$ac_exeext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12685 (eval $ac_link) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 ac_cv_sizeof_long=`cat conftest.val`
12696 echo "$as_me: program exited with status $ac_status" >&5
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700 ( exit $ac_status )
12701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12702 See \`config.log' for more details." >&5
12703 echo "$as_me: error: cannot compute sizeof (long), 77
12704 See \`config.log' for more details." >&2;}
12705 { (exit 1); exit 1; }; }
12707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12712 ac_cv_sizeof_long=0
12715 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12716 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12717 cat >>confdefs.h <<_ACEOF
12718 #define SIZEOF_LONG $ac_cv_sizeof_long
12722 echo "$as_me:$LINENO: checking for long long" >&5
12723 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12724 if test "${ac_cv_type_long_long+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 $ac_includes_default
12737 if ((long long *) 0)
12739 if (sizeof (long long))
12745 rm -f conftest.$ac_objext
12746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12747 (eval $ac_compile) 2>conftest.er1
12749 grep -v '^ *+' conftest.er1 >conftest.err
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest.$ac_objext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 ac_cv_type_long_long=yes
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 ac_cv_type_long_long=no
12773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12775 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12776 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12778 echo "$as_me:$LINENO: checking size of long long" >&5
12779 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12780 if test "${ac_cv_sizeof_long_long+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 if test "$ac_cv_type_long_long" = yes; then
12784 # The cast to unsigned long works around a bug in the HP C Compiler
12785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12787 # This bug is HP SR number 8606223364.
12788 if test "$cross_compiling" = yes; then
12789 # Depending upon the size, compute the lo and hi bounds.
12790 cat >conftest.$ac_ext <<_ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 $ac_includes_default
12800 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12807 rm -f conftest.$ac_objext
12808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12809 (eval $ac_compile) 2>conftest.er1
12811 grep -v '^ *+' conftest.er1 >conftest.err
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } &&
12822 { ac_try='test -s conftest.$ac_objext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12830 cat >conftest.$ac_ext <<_ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12836 $ac_includes_default
12840 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12847 rm -f conftest.$ac_objext
12848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12849 (eval $ac_compile) 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest.$ac_objext'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
12868 ac_hi=$ac_mid; break
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 ac_lo=`expr $ac_mid + 1`
12874 if test $ac_lo -le $ac_mid; then
12878 ac_mid=`expr 2 '*' $ac_mid + 1`
12880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12886 cat >conftest.$ac_ext <<_ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12892 $ac_includes_default
12896 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12903 rm -f conftest.$ac_objext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905 (eval $ac_compile) 2>conftest.er1
12907 grep -v '^ *+' conftest.er1 >conftest.err
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try='test -s conftest.$ac_objext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12926 cat >conftest.$ac_ext <<_ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12932 $ac_includes_default
12936 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12943 rm -f conftest.$ac_objext
12944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12945 (eval $ac_compile) 2>conftest.er1
12947 grep -v '^ *+' conftest.er1 >conftest.err
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try='test -s conftest.$ac_objext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 ac_lo=$ac_mid; break
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 ac_hi=`expr '(' $ac_mid ')' - 1`
12970 if test $ac_mid -le $ac_hi; then
12974 ac_mid=`expr 2 '*' $ac_mid`
12976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12987 # Binary search between lo and hi bounds.
12988 while test "x$ac_lo" != "x$ac_hi"; do
12989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12990 cat >conftest.$ac_ext <<_ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 $ac_includes_default
13000 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13007 rm -f conftest.$ac_objext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009 (eval $ac_compile) 2>conftest.er1
13011 grep -v '^ *+' conftest.er1 >conftest.err
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; } &&
13022 { ac_try='test -s conftest.$ac_objext'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13033 ac_lo=`expr '(' $ac_mid ')' + 1`
13035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13038 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13039 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13040 See \`config.log' for more details." >&5
13041 echo "$as_me: error: cannot compute sizeof (long long), 77
13042 See \`config.log' for more details." >&2;}
13043 { (exit 1); exit 1; }; } ;;
13046 if test "$cross_compiling" = yes; then
13047 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13048 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13049 { (exit 1); exit 1; }; }
13051 cat >conftest.$ac_ext <<_ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13057 $ac_includes_default
13058 long longval () { return (long) (sizeof (long long)); }
13059 unsigned long ulongval () { return (long) (sizeof (long long)); }
13061 #include <stdlib.h>
13066 FILE *f = fopen ("conftest.val", "w");
13069 if (((long) (sizeof (long long))) < 0)
13071 long i = longval ();
13072 if (i != ((long) (sizeof (long long))))
13074 fprintf (f, "%ld\n", i);
13078 unsigned long i = ulongval ();
13079 if (i != ((long) (sizeof (long long))))
13081 fprintf (f, "%lu\n", i);
13083 exit (ferror (f) || fclose (f) != 0);
13089 rm -f conftest$ac_exeext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13091 (eval $ac_link) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }; then
13100 ac_cv_sizeof_long_long=`cat conftest.val`
13102 echo "$as_me: program exited with status $ac_status" >&5
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13106 ( exit $ac_status )
13107 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13108 See \`config.log' for more details." >&5
13109 echo "$as_me: error: cannot compute sizeof (long long), 77
13110 See \`config.log' for more details." >&2;}
13111 { (exit 1); exit 1; }; }
13113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13118 ac_cv_sizeof_long_long=0
13121 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13122 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13123 cat >>confdefs.h <<_ACEOF
13124 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13128 SIZEOF_SHORT=$ac_cv_sizeof_short
13129 SIZEOF_INT=$ac_cv_sizeof_int
13130 SIZEOF_LONG=$ac_cv_sizeof_long
13131 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13136 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13137 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13138 if test "${ac_cv_c_bigendian+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 # See if sys/param.h defines the BYTE_ORDER macro.
13142 cat >conftest.$ac_ext <<_ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 #include <sys/types.h>
13149 #include <sys/param.h>
13154 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13155 bogus endian macros
13162 rm -f conftest.$ac_objext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164 (eval $ac_compile) 2>conftest.er1
13166 grep -v '^ *+' conftest.er1 >conftest.err
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; } &&
13177 { ac_try='test -s conftest.$ac_objext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 # It does; now see whether it defined to BIG_ENDIAN or not.
13184 cat >conftest.$ac_ext <<_ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 #include <sys/types.h>
13191 #include <sys/param.h>
13196 #if BYTE_ORDER != BIG_ENDIAN
13204 rm -f conftest.$ac_objext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13206 (eval $ac_compile) 2>conftest.er1
13208 grep -v '^ *+' conftest.er1 >conftest.err
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest.$ac_objext'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }; then
13225 ac_cv_c_bigendian=yes
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 ac_cv_c_bigendian=no
13232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 # It does not; compile a test program.
13238 if test "$cross_compiling" = yes; then
13239 # try to guess the endianness by grepping values into an object file
13240 ac_cv_c_bigendian=unknown
13241 cat >conftest.$ac_ext <<_ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13247 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13248 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13249 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13250 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13251 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13252 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13256 _ascii (); _ebcdic ();
13261 rm -f conftest.$ac_objext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263 (eval $ac_compile) 2>conftest.er1
13265 grep -v '^ *+' conftest.er1 >conftest.err
13267 cat conftest.err >&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } &&
13270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } &&
13276 { ac_try='test -s conftest.$ac_objext'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; }; then
13282 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13283 ac_cv_c_bigendian=yes
13285 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13286 if test "$ac_cv_c_bigendian" = unknown; then
13287 ac_cv_c_bigendian=no
13289 # finding both strings is unlikely to happen, but who knows?
13290 ac_cv_c_bigendian=unknown
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13300 cat >conftest.$ac_ext <<_ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13309 /* Are we little or big endian? From Harbison&Steele. */
13313 char c[sizeof (long)];
13316 exit (u.c[sizeof (long) - 1] == 1);
13319 rm -f conftest$ac_exeext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13321 (eval $ac_link) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_cv_c_bigendian=no
13332 echo "$as_me: program exited with status $ac_status" >&5
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 ( exit $ac_status )
13337 ac_cv_c_bigendian=yes
13339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13344 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13345 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13346 case $ac_cv_c_bigendian in
13349 cat >>confdefs.h <<\_ACEOF
13350 #define WORDS_BIGENDIAN 1
13356 { { echo "$as_me:$LINENO: error: unknown endianness
13357 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13358 echo "$as_me: error: unknown endianness
13359 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13360 { (exit 1); exit 1; }; } ;;
13364 for ac_header in inttypes.h
13366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13368 echo "$as_me:$LINENO: checking for $ac_header" >&5
13369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13376 # Is the header compilable?
13377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 $ac_includes_default
13386 #include <$ac_header>
13388 rm -f conftest.$ac_objext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390 (eval $ac_compile) 2>conftest.er1
13392 grep -v '^ *+' conftest.er1 >conftest.err
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest.$ac_objext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 ac_header_compiler=yes
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13414 ac_header_compiler=no
13416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13418 echo "${ECHO_T}$ac_header_compiler" >&6
13420 # Is the header present?
13421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 #include <$ac_header>
13431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13434 grep -v '^ *+' conftest.er1 >conftest.err
13436 cat conftest.err >&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } >/dev/null; then
13439 if test -s conftest.err; then
13440 ac_cpp_err=$ac_c_preproc_warn_flag
13441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13448 if test -z "$ac_cpp_err"; then
13449 ac_header_preproc=yes
13451 echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.$ac_ext >&5
13454 ac_header_preproc=no
13456 rm -f conftest.err conftest.$ac_ext
13457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13458 echo "${ECHO_T}$ac_header_preproc" >&6
13460 # So? What about this header?
13461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13467 ac_header_preproc=yes
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13484 ## ------------------------------------------ ##
13485 ## Report this to the AC_PACKAGE_NAME lists. ##
13486 ## ------------------------------------------ ##
13489 sed "s/^/$as_me: WARNING: /" >&2
13492 echo "$as_me:$LINENO: checking for $ac_header" >&5
13493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 eval "$as_ac_Header=\$ac_header_preproc"
13499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13504 cat >>confdefs.h <<_ACEOF
13505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13512 echo "$as_me:$LINENO: checking for intptr_t" >&5
13513 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13514 if test "${ac_cv_type_intptr_t+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 cat >conftest.$ac_ext <<_ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 $ac_includes_default
13527 if ((intptr_t *) 0)
13529 if (sizeof (intptr_t))
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>conftest.er1
13539 grep -v '^ *+' conftest.er1 >conftest.err
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest.$ac_objext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_cv_type_intptr_t=yes
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13561 ac_cv_type_intptr_t=no
13563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13565 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13566 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13567 if test $ac_cv_type_intptr_t = yes; then
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_INTPTR_T 1
13576 echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13577 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13578 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 cat >conftest.$ac_ext <<_ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 #include <sys/stat.h>
13591 struct stat stat; stat.st_flags = 0;
13596 rm -f conftest.$ac_objext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598 (eval $ac_compile) 2>conftest.er1
13600 grep -v '^ *+' conftest.er1 >conftest.err
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest.$ac_objext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 e2fsprogs_cv_struct_st_flags=yes
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 e2fsprogs_cv_struct_st_flags=no
13624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13627 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13628 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
13629 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13630 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13631 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13632 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 cat >conftest.$ac_ext <<_ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 #include <sys/stat.h>
13645 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13650 rm -f conftest.$ac_objext
13651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13652 (eval $ac_compile) 2>conftest.er1
13654 grep -v '^ *+' conftest.er1 >conftest.err
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; } &&
13665 { ac_try='test -s conftest.$ac_objext'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 e2fsprogs_cv_struct_st_flags_immut=yes
13673 echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13676 e2fsprogs_cv_struct_st_flags_immut=no
13678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13681 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13682 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
13683 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13684 cat >>confdefs.h <<\_ACEOF
13685 #define HAVE_STAT_FLAGS 1
13690 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13691 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13692 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 cat >conftest.$ac_ext <<_ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 #include <sys/types.h>
13702 #include <sys/socket.h>
13707 static struct sockaddr ac_aggr;
13708 if (ac_aggr.sa_len)
13714 rm -f conftest.$ac_objext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716 (eval $ac_compile) 2>conftest.er1
13718 grep -v '^ *+' conftest.er1 >conftest.err
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; } &&
13729 { ac_try='test -s conftest.$ac_objext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_cv_member_struct_sockaddr_sa_len=yes
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 #include <sys/types.h>
13747 #include <sys/socket.h>
13752 static struct sockaddr ac_aggr;
13753 if (sizeof ac_aggr.sa_len)
13759 rm -f conftest.$ac_objext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13761 (eval $ac_compile) 2>conftest.er1
13763 grep -v '^ *+' conftest.er1 >conftest.err
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try='test -s conftest.$ac_objext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_member_struct_sockaddr_sa_len=yes
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 ac_cv_member_struct_sockaddr_sa_len=no
13787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13792 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13793 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13795 cat >>confdefs.h <<_ACEOF
13796 #define HAVE_SA_LEN 1
13822 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl
13824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13825 echo "$as_me:$LINENO: checking for $ac_func" >&5
13826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13827 if eval "test \"\${$as_ac_var+set}\" = set"; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13838 #define $ac_func innocuous_$ac_func
13840 /* System header to define __stub macros and hopefully few prototypes,
13841 which can conflict with char $ac_func (); below.
13842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13843 <limits.h> exists even on freestanding compilers. */
13846 # include <limits.h>
13848 # include <assert.h>
13853 /* Override any gcc2 internal prototype to avoid an error. */
13858 /* We use char because int might match the return type of a gcc2
13859 builtin and then its argument prototype would still apply. */
13861 /* The GNU C library defines this for functions which it implements
13862 to always fail with ENOSYS. Some functions are actually named
13863 something starting with __ and the normal name is an alias. */
13864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13867 char (*f) () = $ac_func;
13876 return f != $ac_func;
13881 rm -f conftest.$ac_objext conftest$ac_exeext
13882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13883 (eval $ac_link) 2>conftest.er1
13885 grep -v '^ *+' conftest.er1 >conftest.err
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
13890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 eval "$as_ac_var=yes"
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 eval "$as_ac_var=no"
13909 rm -f conftest.err conftest.$ac_objext \
13910 conftest$ac_exeext conftest.$ac_ext
13912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13914 if test `eval echo '${'$as_ac_var'}'` = yes; then
13915 cat >>confdefs.h <<_ACEOF
13916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13923 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13924 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13925 if test "${ac_cv_lib_socket_socket+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 ac_check_lib_save_LIBS=$LIBS
13929 LIBS="-lsocket $LIBS"
13930 cat >conftest.$ac_ext <<_ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13937 /* Override any gcc2 internal prototype to avoid an error. */
13941 /* We use char because int might match the return type of a gcc2
13942 builtin and then its argument prototype would still apply. */
13952 rm -f conftest.$ac_objext conftest$ac_exeext
13953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13954 (eval $ac_link) 2>conftest.er1
13956 grep -v '^ *+' conftest.er1 >conftest.err
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } &&
13961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; } &&
13967 { ac_try='test -s conftest$ac_exeext'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13973 ac_cv_lib_socket_socket=yes
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13978 ac_cv_lib_socket_socket=no
13980 rm -f conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13984 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13985 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
13986 if test $ac_cv_lib_socket_socket = yes; then
13987 SOCKET_LIB=-lsocket
13992 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13993 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13994 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 ac_check_lib_save_LIBS=$LIBS
13999 cat >conftest.$ac_ext <<_ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14006 /* Override any gcc2 internal prototype to avoid an error. */
14010 /* We use char because int might match the return type of a gcc2
14011 builtin and then its argument prototype would still apply. */
14021 rm -f conftest.$ac_objext conftest$ac_exeext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14023 (eval $ac_link) 2>conftest.er1
14025 grep -v '^ *+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try='test -s conftest$ac_exeext'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 ac_cv_lib_dl_dlopen=yes
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_cv_lib_dl_dlopen=no
14049 rm -f conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051 LIBS=$ac_check_lib_save_LIBS
14053 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14054 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14055 if test $ac_cv_lib_dl_dlopen = yes; then
14057 cat >>confdefs.h <<\_ACEOF
14058 #define HAVE_DLOPEN 1
14064 echo "$as_me:$LINENO: checking for optreset" >&5
14065 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
14066 if test "${ac_cv_have_optreset+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 cat >conftest.$ac_ext <<_ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 #include <unistd.h>
14078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14079 $EGREP "optreset" >/dev/null 2>&1; then
14080 ac_cv_have_optreset=yes
14082 ac_cv_have_optreset=no
14087 echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14088 echo "${ECHO_T}$ac_cv_have_optreset" >&6
14089 if test $ac_cv_have_optreset = yes; then
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_OPTRESET 1
14097 cat >>confdefs.h <<\_ACEOF
14098 #define HAVE_EXT2_IOCTLS 1
14119 linux* | gnu* | k*bsd*-gnu)
14120 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14122 echo "On $host_os systems, root_prefix defaults to ''"
14127 linux* | gnu* | k*bsd*-gnu)
14128 if test "$prefix" = NONE ; then
14130 echo "On $host_os systems, prefix defaults to /usr"
14131 if test "$mandir" = '${prefix}/man' ; then
14132 echo "...and mandir defaults to /usr/share/man"
14133 mandir=/usr/share/man
14138 if test "$root_prefix" = NONE ; then
14139 if test "$prefix" = NONE ; then
14140 root_prefix="$ac_default_prefix"
14142 root_prefix="$prefix"
14144 root_bindir=$bindir
14145 root_sbindir=$sbindir
14146 root_libdir=$libdir
14147 root_sysconfdir=$sysconfdir
14149 root_bindir='${root_prefix}/bin'
14150 root_sbindir='${root_prefix}/sbin'
14151 root_libdir='${root_prefix}/lib'
14152 root_sysconfdir='${root_prefix}/etc'
14159 echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14160 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
14161 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
14165 cat >conftest.$ac_ext <<_ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14180 rm -f conftest.$ac_objext conftest$ac_exeext
14181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14182 (eval $ac_link) 2>conftest.er1
14184 grep -v '^ *+' conftest.er1 >conftest.err
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
14189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; } &&
14195 { ac_try='test -s conftest$ac_exeext'
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; }; then
14201 ac_cv_e2fsprogs_use_static=yes
14203 echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.$ac_ext >&5
14206 ac_cv_e2fsprogs_use_static=no
14208 rm -f conftest.err conftest.$ac_objext \
14209 conftest$ac_exeext conftest.$ac_ext
14210 LDFLAGS=$SAVE_LDFLAGS
14215 ac_cv_e2fsprogs_use_static=no
14218 echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14219 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
14221 if test $ac_cv_e2fsprogs_use_static = yes; then
14222 LDFLAG_STATIC=-static
14227 echo "Using Apple Darwin / GNU libintl workaround"
14228 cat >>confdefs.h <<\_ACEOF
14229 #define _INTL_REDIRECT_MACROS 1
14234 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14235 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14238 if test "$cross_compiling" = yes ; then
14241 DO_TEST_SUITE=check
14245 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14246 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14249 test -d lib || mkdir lib
14250 test -d include || mkdir include
14251 test -d include/linux || mkdir include/linux
14252 test -d include/asm || mkdir include/asm
14253 for i in MCONFIG Makefile e2fsprogs.spec \
14254 util/Makefile util/subst.conf util/gen-tarball \
14255 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
14256 lib/uuid/Makefile lib/uuid/uuid_types.h \
14257 lib/blkid/Makefile lib/blkid/blkid_types.h \
14258 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14259 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
14260 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14261 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14262 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14263 if test -d `dirname ${srcdir}/$i` ; then
14264 outlist="$outlist $i"
14267 ac_config_files="$ac_config_files $outlist"
14268 cat >confcache <<\_ACEOF
14269 # This file is a shell script that caches the results of configure
14270 # tests run on this system so they can be shared between configure
14271 # scripts and configure runs, see configure's option --config-cache.
14272 # It is not useful on other systems. If it contains results you don't
14273 # want to keep, you may remove or edit it.
14275 # config.status only pays attention to the cache file if you give it
14276 # the --recheck option to rerun configure.
14278 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14280 # following values.
14284 # The following way of writing the cache mishandles newlines in values,
14285 # but we know of no workaround that is simple, portable, and efficient.
14286 # So, don't put newlines in cache variables' values.
14287 # Ultrix sh set writes to stderr and can't be redirected directly,
14288 # and sets the high bit in the cache file unless we assign to the vars.
14291 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14293 # `set' does not quote correctly, so add quotes (double-quote
14294 # substitution turns \\\\ into \\, and sed turns \\ into \).
14297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14300 # `set' quotes correctly as required by POSIX, so do not add quotes.
14302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14309 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14311 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14313 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14314 if test -w $cache_file; then
14315 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14316 cat confcache >$cache_file
14318 echo "not updating unwritable cache $cache_file"
14323 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14324 # Let make expand exec_prefix.
14325 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14327 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14328 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14329 # trailing colons and then remove the whole line if VPATH becomes empty
14330 # (actually we leave an empty line to preserve line numbers).
14331 if test "x$srcdir" = x.; then
14332 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14333 s/:*\$(srcdir):*/:/;
14334 s/:*\${srcdir}:*/:/;
14336 s/^\([^=]*=[ ]*\):*/\1/;
14342 # Transform confdefs.h into DEFS.
14343 # Protect against shell expansion while executing Makefile rules.
14344 # Protect against Makefile macro expansion.
14346 # If the first sed substitution is executed (which looks for macros that
14347 # take arguments), then we branch to the quote section. Otherwise,
14348 # look for a macro that doesn't take arguments.
14349 cat >confdef2opt.sed <<\_ACEOF
14352 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14354 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14358 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14364 # We use echo to avoid assuming a particular line-breaking character.
14365 # The extra dot is to prevent the shell from consuming trailing
14366 # line-breaks from the sub-command output. A line-break within
14367 # single-quotes doesn't work because, if this script is created in a
14368 # platform that uses two characters for line-breaks (e.g., DOS), tr
14370 ac_LF_and_DOT=`echo; echo .`
14371 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14372 rm -f confdef2opt.sed
14377 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14378 # 1. Remove the extension, and $U if already installed.
14379 ac_i=`echo "$ac_i" |
14380 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14382 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14383 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14385 LIBOBJS=$ac_libobjs
14387 LTLIBOBJS=$ac_ltlibobjs
14391 : ${CONFIG_STATUS=./config.status}
14392 ac_clean_files_save=$ac_clean_files
14393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14394 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14395 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14396 cat >$CONFIG_STATUS <<_ACEOF
14398 # Generated by $as_me.
14399 # Run this file to recreate the current configuration.
14400 # Compiler output produced by configure, useful for debugging
14401 # configure, is in config.log if it exists.
14404 ac_cs_recheck=false
14406 SHELL=\${CONFIG_SHELL-$SHELL}
14409 cat >>$CONFIG_STATUS <<\_ACEOF
14410 ## --------------------- ##
14411 ## M4sh Initialization. ##
14412 ## --------------------- ##
14414 # Be Bourne compatible
14415 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14418 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14419 # is contrary to our usage. Disable this feature.
14420 alias -g '${1+"$@"}'='"$@"'
14421 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14424 DUALCASE=1; export DUALCASE # for MKS sh
14426 # Support unset when possible.
14427 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14434 # Work around bugs in pre-3.0 UWIN ksh.
14435 $as_unset ENV MAIL MAILPATH
14442 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14443 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14444 LC_TELEPHONE LC_TIME
14446 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14447 eval $as_var=C; export $as_var
14453 # Required to use basename.
14454 if expr a : '\(a\)' >/dev/null 2>&1; then
14460 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14461 as_basename=basename
14467 # Name of the executable.
14468 as_me=`$as_basename "$0" ||
14469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14470 X"$0" : 'X\(//\)$' \| \
14471 X"$0" : 'X\(/\)$' \| \
14472 . : '\(.\)' 2>/dev/null ||
14474 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14475 /^X\/\(\/\/\)$/{ s//\1/; q; }
14476 /^X\/\(\/\).*/{ s//\1/; q; }
14480 # PATH needs CR, and LINENO needs CR and PATH.
14481 # Avoid depending upon Character Ranges.
14482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14485 as_cr_digits='0123456789'
14486 as_cr_alnum=$as_cr_Letters$as_cr_digits
14488 # The user is always right.
14489 if test "${PATH_SEPARATOR+set}" != set; then
14490 echo "#! /bin/sh" >conf$$.sh
14491 echo "exit 0" >>conf$$.sh
14493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14502 as_lineno_1=$LINENO
14503 as_lineno_2=$LINENO
14504 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14505 test "x$as_lineno_1" != "x$as_lineno_2" &&
14506 test "x$as_lineno_3" = "x$as_lineno_2" || {
14507 # Find who we are. Look in the path if we contain no path at all
14510 *[\\/]* ) as_myself=$0 ;;
14511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14512 for as_dir in $PATH
14515 test -z "$as_dir" && as_dir=.
14516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14521 # We did not find ourselves, most probably we were run as `sh COMMAND'
14522 # in which case we are not to be found in the path.
14523 if test "x$as_myself" = x; then
14526 if test ! -f "$as_myself"; then
14527 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14528 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14529 { (exit 1); exit 1; }; }
14531 case $CONFIG_SHELL in
14533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14537 test -z "$as_dir" && as_dir=.
14538 for as_base in sh bash ksh sh5; do
14541 if ("$as_dir/$as_base" -c '
14542 as_lineno_1=$LINENO
14543 as_lineno_2=$LINENO
14544 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14545 test "x$as_lineno_1" != "x$as_lineno_2" &&
14546 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14547 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14548 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14549 CONFIG_SHELL=$as_dir/$as_base
14550 export CONFIG_SHELL
14551 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14559 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14560 # uniformly replaced by the line number. The first 'sed' inserts a
14561 # line-number line before each line; the second 'sed' does the real
14562 # work. The second script uses 'N' to pair each line-number line
14563 # with the numbered line, and appends trailing '-' during
14564 # substitution so that $LINENO is not a special case at line end.
14565 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14566 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14567 sed '=' <$as_myself |
14572 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14575 s,^['$as_cr_digits']*\n,,
14576 ' >$as_me.lineno &&
14577 chmod +x $as_me.lineno ||
14578 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14579 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14580 { (exit 1); exit 1; }; }
14582 # Don't try to exec as it changes $[0], causing all sort of problems
14583 # (the dirname of $[0] is not the place where we might find the
14584 # original and so on. Autoconf is especially sensible to this).
14586 # Exit status is that of the last command.
14591 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14592 *c*,-n*) ECHO_N= ECHO_C='
14594 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14595 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14598 if expr a : '\(a\)' >/dev/null 2>&1; then
14604 rm -f conf$$ conf$$.exe conf$$.file
14606 if ln -s conf$$.file conf$$ 2>/dev/null; then
14607 # We could just check for DJGPP; but this test a) works b) is more generic
14608 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14609 if test -f conf$$.exe; then
14610 # Don't use ln at all; we don't have any links
14615 elif ln conf$$.file conf$$ 2>/dev/null; then
14620 rm -f conf$$ conf$$.exe conf$$.file
14622 if mkdir -p . 2>/dev/null; then
14625 test -d ./-p && rmdir ./-p
14629 as_executable_p="test -f"
14631 # Sed expression to map a string onto a valid CPP name.
14632 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14634 # Sed expression to map a string onto a valid variable name.
14635 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14639 # We need space, tab and new line, in precisely that order.
14649 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14650 # report actual input values of CONFIG_FILES etc. instead of their
14651 # values after options handling. Logging --version etc. is OK.
14655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14656 ## Running $as_me. ##
14661 This file was extended by $as_me, which was
14662 generated by GNU Autoconf 2.59. Invocation command line was
14664 CONFIG_FILES = $CONFIG_FILES
14665 CONFIG_HEADERS = $CONFIG_HEADERS
14666 CONFIG_LINKS = $CONFIG_LINKS
14667 CONFIG_COMMANDS = $CONFIG_COMMANDS
14671 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14675 # Files that config.status was made for.
14676 if test -n "$ac_config_files"; then
14677 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14680 if test -n "$ac_config_headers"; then
14681 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14684 if test -n "$ac_config_links"; then
14685 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14688 if test -n "$ac_config_commands"; then
14689 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14692 cat >>$CONFIG_STATUS <<\_ACEOF
14695 \`$as_me' instantiates files from templates according to the
14696 current configuration.
14698 Usage: $0 [OPTIONS] [FILE]...
14700 -h, --help print this help, then exit
14701 -V, --version print version number, then exit
14702 -q, --quiet do not print progress messages
14703 -d, --debug don't remove temporary files
14704 --recheck update $as_me by reconfiguring in the same conditions
14705 --file=FILE[:TEMPLATE]
14706 instantiate the configuration file FILE
14708 Configuration files:
14711 Configuration commands:
14714 Report bugs to <bug-autoconf@gnu.org>."
14717 cat >>$CONFIG_STATUS <<_ACEOF
14720 configured by $0, generated by GNU Autoconf 2.59,
14721 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14723 Copyright (C) 2003 Free Software Foundation, Inc.
14724 This config.status script is free software; the Free Software Foundation
14725 gives unlimited permission to copy, distribute and modify it."
14730 cat >>$CONFIG_STATUS <<\_ACEOF
14731 # If no file are specified by the user, then we need to provide default
14732 # value. By we need to know if files were specified by the user.
14738 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14739 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14747 *) # This is not an option, so the user has probably given explicit
14750 ac_need_defaults=false;;
14754 # Handling of the options.
14756 cat >>$CONFIG_STATUS <<\_ACEOF
14757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14759 --version | --vers* | -V )
14760 echo "$ac_cs_version"; exit 0 ;;
14762 # Conflict between --help and --header
14763 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14764 Try \`$0 --help' for more information." >&5
14765 echo "$as_me: error: ambiguous option: $1
14766 Try \`$0 --help' for more information." >&2;}
14767 { (exit 1); exit 1; }; };;
14768 --help | --hel | -h )
14769 echo "$ac_cs_usage"; exit 0 ;;
14770 --debug | --d* | -d )
14772 --file | --fil | --fi | --f )
14774 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14775 ac_need_defaults=false;;
14776 --header | --heade | --head | --hea )
14778 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14779 ac_need_defaults=false;;
14780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14781 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14784 # This is an error.
14785 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14786 Try \`$0 --help' for more information." >&5
14787 echo "$as_me: error: unrecognized option: $1
14788 Try \`$0 --help' for more information." >&2;}
14789 { (exit 1); exit 1; }; } ;;
14791 *) ac_config_targets="$ac_config_targets $1" ;;
14797 ac_configure_extra_args=
14799 if $ac_cs_silent; then
14801 ac_configure_extra_args="$ac_configure_extra_args --silent"
14805 cat >>$CONFIG_STATUS <<_ACEOF
14806 if \$ac_cs_recheck; then
14807 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14808 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14813 cat >>$CONFIG_STATUS <<_ACEOF
14815 # INIT-COMMANDS section.
14818 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14819 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14821 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14822 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14823 LINGUAS="${LINGUAS-%UNSET%}"
14830 cat >>$CONFIG_STATUS <<\_ACEOF
14831 for ac_config_target in $ac_config_targets
14833 case "$ac_config_target" in
14834 # Handling of arguments.
14835 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14836 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14837 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14838 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14839 { (exit 1); exit 1; }; };;
14843 # If the user did not use the arguments to specify the items to instantiate,
14844 # then the envvar interface is used. Set only those that are not.
14845 # We use the long form for the default assignment because of an extremely
14846 # bizarre bug on SunOS 4.1.3.
14847 if $ac_need_defaults; then
14848 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14849 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14852 # Have a temporary directory for convenience. Make it in the build tree
14853 # simply because there is no reason to put it here, and in addition,
14854 # creating and moving files from /tmp can sometimes cause problems.
14855 # Create a temporary directory, and hook for its removal unless debugging.
14858 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14859 trap '{ (exit 1); exit 1; }' 1 2 13 15
14862 # Create a (secure) tmp directory for tmp files.
14865 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14866 test -n "$tmp" && test -d "$tmp"
14869 tmp=./confstat$$-$RANDOM
14870 (umask 077 && mkdir $tmp)
14873 echo "$me: cannot create a temporary directory in ." >&2
14874 { (exit 1); exit 1; }
14879 cat >>$CONFIG_STATUS <<_ACEOF
14882 # CONFIG_FILES section.
14885 # No need to generate the scripts if there are no CONFIG_FILES.
14886 # This happens for instance when ./config.status config.h
14887 if test -n "\$CONFIG_FILES"; then
14888 # Protect against being on the right side of a sed subst in config.status.
14889 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14890 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14891 s,@SHELL@,$SHELL,;t t
14892 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14893 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14894 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14895 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14896 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14897 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14898 s,@exec_prefix@,$exec_prefix,;t t
14899 s,@prefix@,$prefix,;t t
14900 s,@program_transform_name@,$program_transform_name,;t t
14901 s,@bindir@,$bindir,;t t
14902 s,@sbindir@,$sbindir,;t t
14903 s,@libexecdir@,$libexecdir,;t t
14904 s,@datadir@,$datadir,;t t
14905 s,@sysconfdir@,$sysconfdir,;t t
14906 s,@sharedstatedir@,$sharedstatedir,;t t
14907 s,@localstatedir@,$localstatedir,;t t
14908 s,@libdir@,$libdir,;t t
14909 s,@includedir@,$includedir,;t t
14910 s,@oldincludedir@,$oldincludedir,;t t
14911 s,@infodir@,$infodir,;t t
14912 s,@mandir@,$mandir,;t t
14913 s,@build_alias@,$build_alias,;t t
14914 s,@host_alias@,$host_alias,;t t
14915 s,@target_alias@,$target_alias,;t t
14916 s,@DEFS@,$DEFS,;t t
14917 s,@ECHO_C@,$ECHO_C,;t t
14918 s,@ECHO_N@,$ECHO_N,;t t
14919 s,@ECHO_T@,$ECHO_T,;t t
14920 s,@LIBS@,$LIBS,;t t
14921 s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14922 s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14923 s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14924 s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14925 s,@build@,$build,;t t
14926 s,@build_cpu@,$build_cpu,;t t
14927 s,@build_vendor@,$build_vendor,;t t
14928 s,@build_os@,$build_os,;t t
14929 s,@host@,$host,;t t
14930 s,@host_cpu@,$host_cpu,;t t
14931 s,@host_vendor@,$host_vendor,;t t
14932 s,@host_os@,$host_os,;t t
14934 s,@CFLAGS@,$CFLAGS,;t t
14935 s,@LDFLAGS@,$LDFLAGS,;t t
14936 s,@CPPFLAGS@,$CPPFLAGS,;t t
14937 s,@ac_ct_CC@,$ac_ct_CC,;t t
14938 s,@EXEEXT@,$EXEEXT,;t t
14939 s,@OBJEXT@,$OBJEXT,;t t
14942 s,@EGREP@,$EGREP,;t t
14943 s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
14944 s,@MAINTAINER_CMT@,$MAINTAINER_CMT,;t t
14945 s,@HTREE_CMT@,$HTREE_CMT,;t t
14946 s,@ELF_CMT@,$ELF_CMT,;t t
14947 s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14948 s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14949 s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14950 s,@LIB_EXT@,$LIB_EXT,;t t
14951 s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14952 s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14953 s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
14954 s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
14955 s,@IMAGER_CMT@,$IMAGER_CMT,;t t
14956 s,@RESIZER_CMT@,$RESIZER_CMT,;t t
14957 s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
14958 s,@FSCK_PROG@,$FSCK_PROG,;t t
14959 s,@FSCK_MAN@,$FSCK_MAN,;t t
14960 s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
14961 s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
14962 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
14963 s,@PACKAGE@,$PACKAGE,;t t
14964 s,@VERSION@,$VERSION,;t t
14965 s,@SET_MAKE@,$SET_MAKE,;t t
14966 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14967 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14968 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14969 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14970 s,@USE_NLS@,$USE_NLS,;t t
14971 s,@MSGFMT@,$MSGFMT,;t t
14972 s,@GMSGFMT@,$GMSGFMT,;t t
14973 s,@XGETTEXT@,$XGETTEXT,;t t
14974 s,@MSGMERGE@,$MSGMERGE,;t t
14975 s,@RANLIB@,$RANLIB,;t t
14976 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14977 s,@ALLOCA@,$ALLOCA,;t t
14978 s,@GLIBC21@,$GLIBC21,;t t
14979 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
14980 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
14981 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
14982 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
14983 s,@LIBICONV@,$LIBICONV,;t t
14984 s,@LTLIBICONV@,$LTLIBICONV,;t t
14985 s,@INTLBISON@,$INTLBISON,;t t
14986 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14987 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14988 s,@CATOBJEXT@,$CATOBJEXT,;t t
14989 s,@DATADIRNAME@,$DATADIRNAME,;t t
14990 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14991 s,@GENCAT@,$GENCAT,;t t
14992 s,@INTLOBJS@,$INTLOBJS,;t t
14993 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14994 s,@INTLLIBS@,$INTLLIBS,;t t
14995 s,@LIBINTL@,$LIBINTL,;t t
14996 s,@LTLIBINTL@,$LTLIBINTL,;t t
14997 s,@POSUB@,$POSUB,;t t
14998 s,@BINARY_TYPE@,$BINARY_TYPE,;t t
15000 s,@LN_S@,$LN_S,;t t
15004 s,@CHMOD@,$CHMOD,;t t
15007 s,@PERL@,$PERL,;t t
15008 s,@LDCONFIG@,$LDCONFIG,;t t
15010 s,@ac_ct_AR@,$ac_ct_AR,;t t
15011 s,@STRIP@,$STRIP,;t t
15012 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15013 s,@BUILD_CC@,$BUILD_CC,;t t
15014 s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
15015 s,@SIZEOF_INT@,$SIZEOF_INT,;t t
15016 s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
15017 s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
15018 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
15019 s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
15020 s,@LINUX_CMT@,$LINUX_CMT,;t t
15021 s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
15022 s,@UNIX_CMT@,$UNIX_CMT,;t t
15023 s,@root_prefix@,$root_prefix,;t t
15024 s,@root_bindir@,$root_bindir,;t t
15025 s,@root_sbindir@,$root_sbindir,;t t
15026 s,@root_libdir@,$root_libdir,;t t
15027 s,@root_sysconfdir@,$root_sysconfdir,;t t
15028 s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
15029 s,@SS_DIR@,$SS_DIR,;t t
15030 s,@ET_DIR@,$ET_DIR,;t t
15031 s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
15032 s,@INTL_FLAGS@,$INTL_FLAGS,;t t
15033 s,@LIBOBJS@,$LIBOBJS,;t t
15034 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15035 /@MCONFIG@/r $MCONFIG
15037 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
15038 s,@MAKEFILE_ELF@,,;t t
15039 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
15040 s,@MAKEFILE_BSDLIB@,,;t t
15041 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
15042 s,@MAKEFILE_PROFILE@,,;t t
15043 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
15044 s,@MAKEFILE_CHECKER@,,;t t
15045 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
15046 s,@MAKEFILE_LIBRARY@,,;t t
15051 cat >>$CONFIG_STATUS <<\_ACEOF
15052 # Split the substitutions into bite-sized pieces for seds with
15053 # small command number limits, like on Digital OSF/1 and HP-UX.
15054 ac_max_sed_lines=48
15055 ac_sed_frag=1 # Number of current file.
15056 ac_beg=1 # First line for current file.
15057 ac_end=$ac_max_sed_lines # Line after last line for current file.
15060 while $ac_more_lines; do
15061 if test $ac_beg -gt 1; then
15062 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15064 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15066 if test ! -s $tmp/subs.frag; then
15067 ac_more_lines=false
15069 # The purpose of the label and of the branching condition is to
15070 # speed up the sed processing (if there are no `@' at all, there
15071 # is no need to browse any of the substitutions).
15072 # These are the two extra sed commands mentioned above.
15074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15075 if test -z "$ac_sed_cmds"; then
15076 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15078 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15080 ac_sed_frag=`expr $ac_sed_frag + 1`
15082 ac_end=`expr $ac_end + $ac_max_sed_lines`
15085 if test -z "$ac_sed_cmds"; then
15088 fi # test -n "$CONFIG_FILES"
15091 cat >>$CONFIG_STATUS <<\_ACEOF
15092 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15095 - | *:- | *:-:* ) # input from stdin
15097 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15099 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15101 * ) ac_file_in=$ac_file.in ;;
15104 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15105 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15106 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15107 X"$ac_file" : 'X\(//\)[^/]' \| \
15108 X"$ac_file" : 'X\(//\)$' \| \
15109 X"$ac_file" : 'X\(/\)' \| \
15110 . : '\(.\)' 2>/dev/null ||
15112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15114 /^X\(\/\/\)$/{ s//\1/; q; }
15115 /^X\(\/\).*/{ s//\1/; q; }
15117 { if $as_mkdir_p; then
15122 while test ! -d "$as_dir"; do
15123 as_dirs="$as_dir $as_dirs"
15124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15126 X"$as_dir" : 'X\(//\)[^/]' \| \
15127 X"$as_dir" : 'X\(//\)$' \| \
15128 X"$as_dir" : 'X\(/\)' \| \
15129 . : '\(.\)' 2>/dev/null ||
15131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15133 /^X\(\/\/\)$/{ s//\1/; q; }
15134 /^X\(\/\).*/{ s//\1/; q; }
15137 test ! -n "$as_dirs" || mkdir $as_dirs
15138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15140 { (exit 1); exit 1; }; }; }
15144 if test "$ac_dir" != .; then
15145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15146 # A "../" for each directory in $ac_dir_suffix.
15147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15149 ac_dir_suffix= ac_top_builddir=
15153 .) # No --srcdir option. We are building in place.
15155 if test -z "$ac_top_builddir"; then
15158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15160 [\\/]* | ?:[\\/]* ) # Absolute path.
15161 ac_srcdir=$srcdir$ac_dir_suffix;
15162 ac_top_srcdir=$srcdir ;;
15163 *) # Relative path.
15164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15168 # Do not use `cd foo && pwd` to compute absolute paths, because
15169 # the directories may not exist.
15171 .) ac_abs_builddir="$ac_dir";;
15174 .) ac_abs_builddir=`pwd`;;
15175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15176 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15179 case $ac_abs_builddir in
15180 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15182 case ${ac_top_builddir}. in
15183 .) ac_abs_top_builddir=$ac_abs_builddir;;
15184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15188 case $ac_abs_builddir in
15189 .) ac_abs_srcdir=$ac_srcdir;;
15192 .) ac_abs_srcdir=$ac_abs_builddir;;
15193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15197 case $ac_abs_builddir in
15198 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15200 case $ac_top_srcdir in
15201 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15210 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15213 # Let's still pretend it is `configure' which instantiates (i.e., don't
15214 # use $as_me), people would be surprised to read:
15215 # /* config.h. Generated by config.status. */
15216 if test x"$ac_file" = x-; then
15219 configure_input="$ac_file. "
15221 configure_input=$configure_input"Generated from `echo $ac_file_in |
15222 sed 's,.*/,,'` by configure."
15224 # First look for the input files in the build tree, otherwise in the
15226 ac_file_inputs=`IFS=:
15227 for f in $ac_file_in; do
15229 -) echo $tmp/stdin ;;
15231 # Absolute (can't be DOS-style, as IFS=:)
15232 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15233 echo "$as_me: error: cannot find input file: $f" >&2;}
15234 { (exit 1); exit 1; }; }
15237 if test -f "$f"; then
15240 elif test -f "$srcdir/$f"; then
15245 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15246 echo "$as_me: error: cannot find input file: $f" >&2;}
15247 { (exit 1); exit 1; }; }
15250 done` || { (exit 1); exit 1; }
15252 if test x"$ac_file" != x-; then
15253 { echo "$as_me:$LINENO: creating $ac_file" >&5
15254 echo "$as_me: creating $ac_file" >&6;}
15258 cat >>$CONFIG_STATUS <<_ACEOF
15262 cat >>$CONFIG_STATUS <<\_ACEOF
15264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15265 s,@configure_input@,$configure_input,;t t
15266 s,@srcdir@,$ac_srcdir,;t t
15267 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15268 s,@top_srcdir@,$ac_top_srcdir,;t t
15269 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15270 s,@builddir@,$ac_builddir,;t t
15271 s,@abs_builddir@,$ac_abs_builddir,;t t
15272 s,@top_builddir@,$ac_top_builddir,;t t
15273 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15274 s,@INSTALL@,$ac_INSTALL,;t t
15275 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15277 if test x"$ac_file" != x-; then
15278 mv $tmp/out $ac_file
15286 cat >>$CONFIG_STATUS <<\_ACEOF
15289 # CONFIG_COMMANDS section.
15291 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15292 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15293 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15294 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15295 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15296 X"$ac_dest" : 'X\(//\)[^/]' \| \
15297 X"$ac_dest" : 'X\(//\)$' \| \
15298 X"$ac_dest" : 'X\(/\)' \| \
15299 . : '\(.\)' 2>/dev/null ||
15301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15303 /^X\(\/\/\)$/{ s//\1/; q; }
15304 /^X\(\/\).*/{ s//\1/; q; }
15306 { if $as_mkdir_p; then
15311 while test ! -d "$as_dir"; do
15312 as_dirs="$as_dir $as_dirs"
15313 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15315 X"$as_dir" : 'X\(//\)[^/]' \| \
15316 X"$as_dir" : 'X\(//\)$' \| \
15317 X"$as_dir" : 'X\(/\)' \| \
15318 . : '\(.\)' 2>/dev/null ||
15320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15322 /^X\(\/\/\)$/{ s//\1/; q; }
15323 /^X\(\/\).*/{ s//\1/; q; }
15326 test ! -n "$as_dirs" || mkdir $as_dirs
15327 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15328 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15329 { (exit 1); exit 1; }; }; }
15333 if test "$ac_dir" != .; then
15334 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15335 # A "../" for each directory in $ac_dir_suffix.
15336 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15338 ac_dir_suffix= ac_top_builddir=
15342 .) # No --srcdir option. We are building in place.
15344 if test -z "$ac_top_builddir"; then
15347 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15349 [\\/]* | ?:[\\/]* ) # Absolute path.
15350 ac_srcdir=$srcdir$ac_dir_suffix;
15351 ac_top_srcdir=$srcdir ;;
15352 *) # Relative path.
15353 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15354 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15357 # Do not use `cd foo && pwd` to compute absolute paths, because
15358 # the directories may not exist.
15360 .) ac_abs_builddir="$ac_dir";;
15363 .) ac_abs_builddir=`pwd`;;
15364 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15365 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15368 case $ac_abs_builddir in
15369 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15371 case ${ac_top_builddir}. in
15372 .) ac_abs_top_builddir=$ac_abs_builddir;;
15373 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15374 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15377 case $ac_abs_builddir in
15378 .) ac_abs_srcdir=$ac_srcdir;;
15381 .) ac_abs_srcdir=$ac_abs_builddir;;
15382 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15383 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15386 case $ac_abs_builddir in
15387 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15389 case $ac_top_srcdir in
15390 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15391 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15392 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15397 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15398 echo "$as_me: executing $ac_dest commands" >&6;}
15401 for ac_file in $CONFIG_FILES; do
15402 # Support "outfile[:infile[:infile...]]"
15404 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15406 # PO directories have a Makefile.in generated from Makefile.in.in.
15407 case "$ac_file" in */Makefile.in)
15408 # Adjust a relative srcdir.
15409 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15410 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15411 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15412 # In autoconf-2.13 it is called $ac_given_srcdir.
15413 # In autoconf-2.50 it is called $srcdir.
15414 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15415 case "$ac_given_srcdir" in
15416 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15417 /*) top_srcdir="$ac_given_srcdir" ;;
15418 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15420 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15421 rm -f "$ac_dir/POTFILES"
15422 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15423 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15424 POMAKEFILEDEPS="POTFILES.in"
15425 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15426 # on $ac_dir but don't depend on user-specified configuration
15428 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15429 # The LINGUAS file contains the set of available languages.
15430 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15431 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15433 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15434 # Hide the ALL_LINGUAS assigment from automake.
15435 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15436 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15438 # The set of available languages was given in configure.in.
15439 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15442 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15443 # Compute UPDATEPOFILES
15444 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15445 # Compute DUMMYPOFILES
15446 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15448 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15449 case "$ac_given_srcdir" in
15451 *) srcdirpre='$(srcdir)/' ;;
15457 for lang in $ALL_LINGUAS; do
15458 POFILES="$POFILES $srcdirpre$lang.po"
15459 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15460 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15461 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15463 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15464 # environment variable.
15466 if test -n "$ALL_LINGUAS"; then
15467 for presentlang in $ALL_LINGUAS; do
15469 if test "%UNSET%" != "$LINGUAS"; then
15470 desiredlanguages="$LINGUAS"
15472 desiredlanguages="$ALL_LINGUAS"
15474 for desiredlang in $desiredlanguages; do
15475 # Use the presentlang catalog if desiredlang is
15476 # a. equal to presentlang, or
15477 # b. a variant of presentlang (because in this case,
15478 # presentlang can be used as a fallback for messages
15479 # which are not translated in the desiredlang catalog).
15480 case "$desiredlang" in
15481 "$presentlang"*) useit=yes;;
15484 if test $useit = yes; then
15485 INST_LINGUAS="$INST_LINGUAS $presentlang"
15490 if test -n "$INST_LINGUAS"; then
15491 for lang in $INST_LINGUAS; do
15492 CATALOGS="$CATALOGS $lang.gmo"
15495 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15496 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15497 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15498 if test -f "$f"; then
15500 *.orig | *.bak | *~) ;;
15501 *) cat "$f" >> "$ac_dir/Makefile" ;;
15513 cat >>$CONFIG_STATUS <<\_ACEOF
15515 { (exit 0); exit 0; }
15517 chmod +x $CONFIG_STATUS
15518 ac_clean_files=$ac_clean_files_save
15521 # configure is writing to config.log, and then calls config.status.
15522 # config.status does its own redirection, appending to config.log.
15523 # Unfortunately, on DOS this fails, as config.log is still kept open
15524 # by configure, so config.status won't be able to write to it; its
15525 # output is simply discarded. So we exec the FD to /dev/null,
15526 # effectively closing config.log, so it can be properly (re)opened and
15527 # appended to by config.status. When coming back to configure, we
15528 # need to make the FD available again.
15529 if test "$no_create" != yes; then
15531 ac_config_status_args=
15532 test "$silent" = yes &&
15533 ac_config_status_args="$ac_config_status_args --quiet"
15535 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15538 # would make configure fail if this is the last instruction.
15539 $ac_cs_success || { (exit 1); exit 1; }
15542 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi