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 DEVMAPPER_REQ DEVMAPPER_PC_LIBS DEVMAPPER_LIBS STATIC_DEVMAPPER_LIBS 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 BUILD_CFLAGS BUILD_LDFLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY ASM_TYPES_HEADER'
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 --enable-blkid-devmapper build with device-mapper support
865 --disable-nls do not use Native Language Support
866 --disable-rpath do not hardcode runtime library paths
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-diet-libc Use diet libc
872 --with-cc=COMPILER select compiler to use
873 --with-linker=LINKER select linker to use
874 --with-ccopts=CCOPTS select compiler command line options
875 --with-ldopts=LDOPTS select linker command line options
876 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
877 --with-gnu-ld assume the C compiler uses GNU ld default=no
878 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
879 --without-libiconv-prefix don't search for libiconv in includedir and libdir
880 --with-included-gettext use the GNU gettext library included here
881 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
882 --without-libintl-prefix don't search for libintl in includedir and libdir
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
933 .) ac_abs_builddir="$ac_dir";;
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h; then
1173 sed "/^$/d" confdefs.h | sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 for ac_dir in config $srcdir/config; do
1334 if test -f $ac_dir/install-sh; then
1336 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 elif test -f $ac_dir/install.sh; then
1340 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 elif test -f $ac_dir/shtool; then
1344 ac_install_sh="$ac_aux_dir/shtool install -c"
1348 if test -z "$ac_aux_dir"; then
1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1350 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1351 { (exit 1); exit 1; }; }
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1361 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1362 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1364 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1365 MONTH=`echo $DATE | awk -F- '{print $2}'`
1366 YEAR=`echo $DATE | awk -F- '{print $3}'`
1368 if expr $YEAR ">" 1900 > /dev/null ; then
1369 E2FSPROGS_YEAR=$YEAR
1370 elif expr $YEAR ">" 90 >/dev/null ; then
1371 E2FSPROGS_YEAR=19$YEAR
1373 E2FSPROGS_YEAR=20$YEAR
1377 Jan) E2FSPROGS_MONTH="January" ;;
1378 Feb) E2FSPROGS_MONTH="February" ;;
1379 Mar) E2FSPROGS_MONTH="March" ;;
1380 Apr) E2FSPROGS_MONTH="April" ;;
1381 May) E2FSPROGS_MONTH="May" ;;
1382 Jun) E2FSPROGS_MONTH="June" ;;
1383 Jul) E2FSPROGS_MONTH="July" ;;
1384 Aug) E2FSPROGS_MONTH="August" ;;
1385 Sep) E2FSPROGS_MONTH="September" ;;
1386 Oct) E2FSPROGS_MONTH="October" ;;
1387 Nov) E2FSPROGS_MONTH="November" ;;
1388 Dec) E2FSPROGS_MONTH="December" ;;
1389 *) echo "Unknown month $MONTH??" ;;
1392 unset DATE MONTH YEAR
1393 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1394 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1399 # Make sure we can run config.sub.
1400 $ac_config_sub sun4 >/dev/null 2>&1 ||
1401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1402 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1403 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: checking build system type" >&5
1406 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1407 if test "${ac_cv_build+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 ac_cv_build_alias=$build_alias
1411 test -z "$ac_cv_build_alias" &&
1412 ac_cv_build_alias=`$ac_config_guess`
1413 test -z "$ac_cv_build_alias" &&
1414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1415 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1416 { (exit 1); exit 1; }; }
1417 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1424 echo "${ECHO_T}$ac_cv_build" >&6
1426 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 echo "$as_me:$LINENO: checking host system type" >&5
1432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433 if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_host_alias=$host_alias
1437 test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1446 echo "${ECHO_T}$ac_cv_host" >&6
1448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 # Check whether --with-diet-libc or --without-diet-libc was given.
1455 if test "${with_diet_libc+set}" = set; then
1456 withval="$with_diet_libc"
1457 CC="diet cc -nostdinc"
1458 echo "$as_me:$LINENO: result: CC=$CC" >&5
1459 echo "${ECHO_T}CC=$CC" >&6
1461 # Check whether --with-cc or --without-cc was given.
1462 if test "${with_cc+set}" = set; then
1464 echo "$as_me:$LINENO: result: CC=$withval" >&5
1465 echo "${ECHO_T}CC=$withval" >&6
1468 if test -z "$CC" ; then CC=cc; fi
1469 echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1470 echo "${ECHO_T}CC defaults to $CC" >&6
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478 if test -n "$ac_tool_prefix"; then
1479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1480 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 if test -n "$CC"; then
1487 ac_cv_prog_CC="$CC" # Let the user override the test.
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 if test -n "$CC"; then
1507 echo "$as_me:$LINENO: result: $CC" >&5
1508 echo "${ECHO_T}$CC" >&6
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1515 if test -z "$ac_cv_prog_CC"; then
1517 # Extract the first word of "gcc", so it can be a program name with args.
1518 set dummy gcc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_ac_ct_CC="gcc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544 if test -n "$ac_ct_CC"; then
1545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546 echo "${ECHO_T}$ac_ct_CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1557 if test -z "$CC"; then
1558 if test -n "$ac_tool_prefix"; then
1559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1560 set dummy ${ac_tool_prefix}cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 if test -n "$CC"; then
1567 ac_cv_prog_CC="$CC" # Let the user override the test.
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_CC="${ac_tool_prefix}cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 if test -n "$CC"; then
1587 echo "$as_me:$LINENO: result: $CC" >&5
1588 echo "${ECHO_T}$CC" >&6
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1595 if test -z "$ac_cv_prog_CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 if test -n "$ac_ct_CC"; then
1605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 ac_cv_prog_ac_ct_CC="cc"
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1624 if test -n "$ac_ct_CC"; then
1625 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1626 echo "${ECHO_T}$ac_ct_CC" >&6
1628 echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1638 if test -z "$CC"; then
1639 # Extract the first word of "cc", so it can be a program name with args.
1640 set dummy cc; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 if test -n "$CC"; then
1647 ac_cv_prog_CC="$CC" # Let the user override the test.
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1658 ac_prog_rejected=yes
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 if test $ac_prog_rejected = yes; then
1669 # We found a bogon in the path, so make sure we never use it.
1670 set dummy $ac_cv_prog_CC
1672 if test $# != 0; then
1673 # We chose a different compiler from the bogus one.
1674 # However, it has the same basename, so the bogon will be chosen
1675 # first if we set CC to just the basename; use the full file name.
1677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1683 if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1692 if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 if test -n "$CC"; then
1724 echo "$as_me:$LINENO: result: $CC" >&5
1725 echo "${ECHO_T}$CC" >&6
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1731 test -n "$CC" && break
1734 if test -z "$CC"; then
1738 # Extract the first word of "$ac_prog", so it can be a program name with args.
1739 set dummy $ac_prog; ac_word=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 if test -n "$ac_ct_CC"; then
1746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_ac_ct_CC="$ac_prog"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1765 if test -n "$ac_ct_CC"; then
1766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1767 echo "${ECHO_T}$ac_ct_CC" >&6
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1773 test -n "$ac_ct_CC" && break
1782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1783 See \`config.log' for more details." >&5
1784 echo "$as_me: error: no acceptable C compiler found in \$PATH
1785 See \`config.log' for more details." >&2;}
1786 { (exit 1); exit 1; }; }
1788 # Provide some information about the compiler.
1789 echo "$as_me:$LINENO:" \
1790 "checking for C compiler version" >&5
1791 ac_compiler=`set X $ac_compile; echo $2`
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1793 (eval $ac_compiler --version </dev/null >&5) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1798 (eval $ac_compiler -v </dev/null >&5) 2>&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1802 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1803 (eval $ac_compiler -V </dev/null >&5) 2>&5
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }
1808 cat >conftest.$ac_ext <<_ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h. */
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1828 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1829 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832 (eval $ac_link_default) 2>&5
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; then
1836 # Find the output, starting from the most likely. This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1846 test -f "$ac_file" || continue
1848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1851 # This is the source file.
1854 # We found the default executable, but exeext='' is most
1858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859 # FIXME: I believe we export ac_cv_exeext for Libtool,
1860 # but it would be cool to find out if it's true. Does anybody
1861 # maintain Libtool? --akim.
1869 echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876 { (exit 77); exit 77; }; }
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1883 # Check the compiler produces executables we can run. If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890 if { ac_try='./$ac_file'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 if test "$cross_compiling" = maybe; then
1901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run. If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926 (eval $ac_link) 2>&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; then
1930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1934 for ac_file in conftest.exe conftest conftest.*; do
1935 test -f "$ac_file" || continue
1937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 cat >conftest.$ac_ext <<_ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1979 rm -f conftest.o conftest.obj
1980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1981 (eval $ac_compile) 2>&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1993 echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&5
1998 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1999 See \`config.log' for more details." >&2;}
2000 { (exit 1); exit 1; }; }
2003 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2005 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2006 echo "${ECHO_T}$ac_cv_objext" >&6
2007 OBJEXT=$ac_cv_objext
2009 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2010 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2011 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 cat >conftest.$ac_ext <<_ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2032 rm -f conftest.$ac_objext
2033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034 (eval $ac_compile) 2>conftest.er1
2036 grep -v '^ *+' conftest.er1 >conftest.err
2038 cat conftest.err >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; } &&
2047 { ac_try='test -s conftest.$ac_objext'
2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2055 echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2064 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2066 GCC=`test $ac_compiler_gnu = yes && echo yes`
2067 ac_test_CFLAGS=${CFLAGS+set}
2068 ac_save_CFLAGS=$CFLAGS
2070 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_g+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.$ac_ext <<_ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>conftest.er1
2094 grep -v '^ *+' conftest.er1 >conftest.err
2096 cat conftest.err >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2113 echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2120 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2121 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2122 if test "$ac_test_CFLAGS" = set; then
2123 CFLAGS=$ac_save_CFLAGS
2124 elif test $ac_cv_prog_cc_g = yes; then
2125 if test "$GCC" = yes; then
2131 if test "$GCC" = yes; then
2137 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2138 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2139 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 ac_cv_prog_cc_stdc=no
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2152 #include <sys/types.h>
2153 #include <sys/stat.h>
2154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2155 struct buf { int x; };
2156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2157 static char *e (p, i)
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2168 s = g (p, va_arg (v,int));
2173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2174 function prototypes and stuff, but not '\xHH' hex character constants.
2175 These don't provoke an error unfortunately, instead are silently treated
2176 as 'x'. The following induces an error, until -std1 is added to get
2177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2178 array size at least. It's necessary to write '\x00'==0 to get something
2179 that's true only with -std1. */
2180 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2182 int test (int i, double x);
2183 struct s1 {int (*f) (int a);};
2184 struct s2 {int (*f) (double a);};
2185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2191 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2196 # Don't try gcc -ansi; that turns off useful extensions and
2197 # breaks some systems' header files.
2198 # AIX -qlanglvl=ansi
2199 # Ultrix and OSF/1 -std1
2200 # HP-UX 10.20 and later -Ae
2201 # HP-UX older versions -Aa -D_HPUX_SOURCE
2202 # SVR4 -Xc -D__EXTENSIONS__
2203 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2205 CC="$ac_save_CC $ac_arg"
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2210 grep -v '^ *+' conftest.er1 >conftest.err
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 ac_cv_prog_cc_stdc=$ac_arg
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2234 rm -f conftest.err conftest.$ac_objext
2236 rm -f conftest.$ac_ext conftest.$ac_objext
2241 case "x$ac_cv_prog_cc_stdc" in
2243 echo "$as_me:$LINENO: result: none needed" >&5
2244 echo "${ECHO_T}none needed" >&6 ;;
2246 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2247 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2248 CC="$CC $ac_cv_prog_cc_stdc" ;;
2251 # Some people use a C++ compiler to compile C. Since we use `exit',
2252 # in C++ we need to declare it. In case someone uses the same compiler
2253 # for both compiling C and C++ we need to have the C++ compiler decide
2254 # the declaration of exit, since it's the most demanding environment.
2255 cat >conftest.$ac_ext <<_ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2264 grep -v '^ *+' conftest.er1 >conftest.err
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 for ac_declaration in \
2283 'extern "C" void std::exit (int) throw (); using std::exit;' \
2284 'extern "C" void std::exit (int); using std::exit;' \
2285 'extern "C" void exit (int) throw ();' \
2286 'extern "C" void exit (int);' \
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2353 grep -v '^ *+' conftest.er1 >conftest.err
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
2358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 if test -n "$ac_declaration"; then
2380 echo '#ifdef __cplusplus' >>confdefs.h
2381 echo $ac_declaration >>confdefs.h
2382 echo '#endif' >>confdefs.h
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 # Check whether --with-linker or --without-linker was given.
2399 if test "${with_linker+set}" = set; then
2400 withval="$with_linker"
2401 echo "$as_me:$LINENO: result: LD=$withval" >&5
2402 echo "${ECHO_T}LD=$withval" >&6
2405 if test -z "$LD" ; then LD=$CC; fi
2406 echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2407 echo "${ECHO_T}LD defaults to $LD" >&6
2411 # Check whether --with-ccopts or --without-ccopts was given.
2412 if test "${with_ccopts+set}" = set; then
2413 withval="$with_ccopts"
2414 echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2415 echo "${ECHO_T}CCOPTS is $withval" >&6
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2424 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2425 # On Suns, sometimes $CPP names a directory.
2426 if test -n "$CPP" && test -d "$CPP"; then
2429 if test -z "$CPP"; then
2430 if test "${ac_cv_prog_CPP+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 # Double quotes because CPP needs to be expanded
2434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2437 for ac_c_preproc_warn_flag in '' yes
2439 # Use a header file that comes with gcc, so configuring glibc
2440 # with a fresh cross-compiler works.
2441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2442 # <limits.h> exists even on freestanding compilers.
2443 # On the NeXT, cc -E runs the code through the compiler's parser,
2444 # not just through cpp. "Syntax error" is here to catch this case.
2445 cat >conftest.$ac_ext <<_ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2452 # include <limits.h>
2454 # include <assert.h>
2458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2461 grep -v '^ *+' conftest.er1 >conftest.err
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } >/dev/null; then
2466 if test -s conftest.err; then
2467 ac_cpp_err=$ac_c_preproc_warn_flag
2468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2475 if test -z "$ac_cpp_err"; then
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2481 # Broken: fails on valid input.
2484 rm -f conftest.err conftest.$ac_ext
2486 # OK, works on sane cases. Now check whether non-existent headers
2487 # can be detected and how.
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494 #include <ac_nonexistent.h>
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2513 if test -z "$ac_cpp_err"; then
2514 # Broken: success on invalid input.
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2520 # Passes both tests.
2524 rm -f conftest.err conftest.$ac_ext
2527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2528 rm -f conftest.err conftest.$ac_ext
2529 if $ac_preproc_ok; then
2541 echo "$as_me:$LINENO: result: $CPP" >&5
2542 echo "${ECHO_T}$CPP" >&6
2544 for ac_c_preproc_warn_flag in '' yes
2546 # Use a header file that comes with gcc, so configuring glibc
2547 # with a fresh cross-compiler works.
2548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2549 # <limits.h> exists even on freestanding compilers.
2550 # On the NeXT, cc -E runs the code through the compiler's parser,
2551 # not just through cpp. "Syntax error" is here to catch this case.
2552 cat >conftest.$ac_ext <<_ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2559 # include <limits.h>
2561 # include <assert.h>
2565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2568 grep -v '^ *+' conftest.er1 >conftest.err
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } >/dev/null; then
2573 if test -s conftest.err; then
2574 ac_cpp_err=$ac_c_preproc_warn_flag
2575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2582 if test -z "$ac_cpp_err"; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2588 # Broken: fails on valid input.
2591 rm -f conftest.err conftest.$ac_ext
2593 # OK, works on sane cases. Now check whether non-existent headers
2594 # can be detected and how.
2595 cat >conftest.$ac_ext <<_ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2601 #include <ac_nonexistent.h>
2603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1 >conftest.err
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } >/dev/null; then
2611 if test -s conftest.err; then
2612 ac_cpp_err=$ac_c_preproc_warn_flag
2613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2620 if test -z "$ac_cpp_err"; then
2621 # Broken: success on invalid input.
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2627 # Passes both tests.
2631 rm -f conftest.err conftest.$ac_ext
2634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2635 rm -f conftest.err conftest.$ac_ext
2636 if $ac_preproc_ok; then
2639 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653 echo "$as_me:$LINENO: checking for egrep" >&5
2654 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2655 if test "${ac_cv_prog_egrep+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2659 then ac_cv_prog_egrep='grep -E'
2660 else ac_cv_prog_egrep='egrep'
2663 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2664 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2665 EGREP=$ac_cv_prog_egrep
2668 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2669 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2670 if test "${ac_cv_header_stdc+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1 >conftest.err
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_header_stdc=yes
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 ac_cv_header_stdc=no
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722 if test $ac_cv_header_stdc = yes; then
2723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2734 $EGREP "memchr" >/dev/null 2>&1; then
2737 ac_cv_header_stdc=no
2743 if test $ac_cv_header_stdc = yes; then
2744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2745 cat >conftest.$ac_ext <<_ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755 $EGREP "free" >/dev/null 2>&1; then
2758 ac_cv_header_stdc=no
2764 if test $ac_cv_header_stdc = yes; then
2765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2766 if test "$cross_compiling" = yes; then
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2776 #if ((' ' & 0x0FF) == 0x020)
2777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2780 # define ISLOWER(c) \
2781 (('a' <= (c) && (c) <= 'i') \
2782 || ('j' <= (c) && (c) <= 'r') \
2783 || ('s' <= (c) && (c) <= 'z'))
2784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2792 for (i = 0; i < 256; i++)
2793 if (XOR (islower (i), ISLOWER (i))
2794 || toupper (i) != TOUPPER (i))
2799 rm -f conftest$ac_exeext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2801 (eval $ac_link) 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2812 echo "$as_me: program exited with status $ac_status" >&5
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2817 ac_cv_header_stdc=no
2819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2823 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2824 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2825 if test $ac_cv_header_stdc = yes; then
2827 cat >>confdefs.h <<\_ACEOF
2828 #define STDC_HEADERS 1
2833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2844 inttypes.h stdint.h unistd.h
2846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2847 echo "$as_me:$LINENO: checking for $ac_header" >&5
2848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858 $ac_includes_default
2860 #include <$ac_header>
2862 rm -f conftest.$ac_objext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864 (eval $ac_compile) 2>conftest.er1
2866 grep -v '^ *+' conftest.er1 >conftest.err
2868 cat conftest.err >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } &&
2871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 eval "$as_ac_Header=yes"
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2888 eval "$as_ac_Header=no"
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2895 cat >>confdefs.h <<_ACEOF
2896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2904 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2905 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2906 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2907 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2911 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2913 # Is the header compilable?
2914 echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2915 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 $ac_includes_default
2923 #include <linux/fs.h>
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2929 grep -v '^ *+' conftest.er1 >conftest.err
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 ac_header_compiler=yes
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 ac_header_compiler=no
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2955 echo "${ECHO_T}$ac_header_compiler" >&6
2957 # Is the header present?
2958 echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2959 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #include <linux/fs.h>
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } >/dev/null; then
2976 if test -s conftest.err; then
2977 ac_cpp_err=$ac_c_preproc_warn_flag
2978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985 if test -z "$ac_cpp_err"; then
2986 ac_header_preproc=yes
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2991 ac_header_preproc=no
2993 rm -f conftest.err conftest.$ac_ext
2994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2995 echo "${ECHO_T}$ac_header_preproc" >&6
2997 # So? What about this header?
2998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3000 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3001 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3002 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3003 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3004 ac_header_preproc=yes
3007 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3008 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3009 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3010 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3011 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3012 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3013 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3014 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3015 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3016 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3017 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3018 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3021 ## ------------------------------------------ ##
3022 ## Report this to the AC_PACKAGE_NAME lists. ##
3023 ## ------------------------------------------ ##
3026 sed "s/^/$as_me: WARNING: /" >&2
3029 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3030 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3031 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 ac_cv_header_linux_fs_h=$ac_header_preproc
3036 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3037 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3040 if test $ac_cv_header_linux_fs_h = yes; then
3047 if test "$linux_headers" != yes; then
3048 LINUX_INCLUDE='-I$(top_builddir)/include'
3051 echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3052 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
3053 if test "$GCC" = yes
3056 alpha) addcflags="-mieee" ;;
3059 if test "x$addcflags" != x
3061 echo "$as_me:$LINENO: result: $addcflags" >&5
3062 echo "${ECHO_T}$addcflags" >&6
3063 CFLAGS="$addcflags $CFLAGS"
3065 echo "$as_me:$LINENO: result: (none)" >&5
3066 echo "${ECHO_T}(none)" >&6
3072 # Check whether --with-ldopts or --without-ldopts was given.
3073 if test "${with_ldopts+set}" = set; then
3074 withval="$with_ldopts"
3075 echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3076 echo "${ECHO_T}LDFLAGS is $withval" >&6
3082 # Check whether --with-root-prefix or --without-root-prefix was given.
3083 if test "${with_root_prefix+set}" = set; then
3084 withval="$with_root_prefix"
3085 root_prefix=$withval
3088 fi; # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3089 if test "${enable_maintainer_mode+set}" = set; then
3090 enableval="$enable_maintainer_mode"
3091 if test "$enableval" = "no"
3094 echo "Disabling maintainer mode"
3097 echo "Enabling maintainer mode"
3102 echo "Disabling maintainer mode by default"
3106 # Check whether --enable-compression or --disable-compression was given.
3107 if test "${enable_compression+set}" = set; then
3108 enableval="$enable_compression"
3109 if test "$enableval" = "no"
3111 echo "Disabling compression support"
3113 cat >>confdefs.h <<\_ACEOF
3114 #define ENABLE_COMPRESSION 1
3117 echo "Enabling compression support"
3118 echo "WARNING: Compression support is experimental"
3122 echo "Disabling compression support by default"
3125 # Check whether --enable-htree or --disable-htree was given.
3126 if test "${enable_htree+set}" = set; then
3127 enableval="$enable_htree"
3128 if test "$enableval" = "no"
3131 echo "Disabling htree directory support"
3134 cat >>confdefs.h <<\_ACEOF
3135 #define ENABLE_HTREE 1
3138 echo "Enabling htree directory support"
3143 cat >>confdefs.h <<\_ACEOF
3144 #define ENABLE_HTREE 1
3147 echo "Enabling htree directory support by default"
3151 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
3152 if test "${enable_elf_shlibs+set}" = set; then
3153 enableval="$enable_elf_shlibs"
3154 if test "$enableval" = "no"
3157 MAKEFILE_ELF=/dev/null
3158 echo "Disabling ELF shared libraries"
3161 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3164 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3169 echo "Enabling ELF shared libraries"
3173 MAKEFILE_ELF=/dev/null
3175 echo "Disabling ELF shared libraries by default"
3180 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
3181 if test "${enable_bsd_shlibs+set}" = set; then
3182 enableval="$enable_bsd_shlibs"
3183 if test "$enableval" = "no"
3186 MAKEFILE_BSDLIB=/dev/null
3187 echo "Disabling BSD shared libraries"
3190 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3194 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3198 echo "Enabling BSD shared libraries"
3202 MAKEFILE_BSDLIB=/dev/null
3204 echo "Disabling BSD shared libraries by default"
3209 # Check whether --enable-profile or --disable-profile was given.
3210 if test "${enable_profile+set}" = set; then
3211 enableval="$enable_profile"
3212 if test "$enableval" = "no"
3215 MAKEFILE_PROFILE=/dev/null
3216 echo "Disabling profiling libraries"
3219 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3220 PROFILED_LIB_EXT=_p.a
3221 echo "Building profiling libraries"
3226 MAKEFILE_PROFILE=/dev/null
3227 echo "Disabling profiling libraries by default"
3232 # Check whether --enable-checker or --disable-checker was given.
3233 if test "${enable_checker+set}" = set; then
3234 enableval="$enable_checker"
3235 if test "$enableval" = "no"
3238 MAKEFILE_CHECKER=/dev/null
3239 echo "Disabling checker libraries"
3242 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3243 echo "Building checker libraries"
3248 MAKEFILE_CHECKER=/dev/null
3249 echo "Disabling checker libraries by default"
3257 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3258 if test "${enable_jbd_debug+set}" = set; then
3259 enableval="$enable_jbd_debug"
3260 if test "$enableval" = "no"
3262 echo "Disabling journal debugging"
3264 cat >>confdefs.h <<\_ACEOF
3265 #define CONFIG_JBD_DEBUG 1
3268 echo "Enabling journal debugging"
3272 echo "Disabling journal debugging by default"
3275 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3276 if test "${enable_blkid_debug+set}" = set; then
3277 enableval="$enable_blkid_debug"
3278 if test "$enableval" = "no"
3280 echo "Disabling blkid debugging"
3282 cat >>confdefs.h <<\_ACEOF
3283 #define CONFIG_BLKID_DEBUG 1
3286 echo "Enabling blkid debugging"
3290 echo "Disabling blkid debugging by default"
3293 # Check whether --enable-testio-debug or --disable-testio-debug was given.
3294 if test "${enable_testio_debug+set}" = set; then
3295 enableval="$enable_testio_debug"
3296 if test "$enableval" = "no"
3298 echo "Disabling testio debugging"
3300 cat >>confdefs.h <<\_ACEOF
3301 #define CONFIG_TESTIO_DEBUG 1
3304 echo "Enabling testio debugging"
3308 echo "Disabling testio debugging by default"
3311 # Check whether --enable-swapfs or --disable-swapfs was given.
3312 if test "${enable_swapfs+set}" = set; then
3313 enableval="$enable_swapfs"
3314 if test "$enableval" = "no"
3317 echo "Disabling swapfs support"
3320 cat >>confdefs.h <<\_ACEOF
3321 #define ENABLE_SWAPFS 1
3324 echo "Enabling swapfs support"
3329 echo "Enabling swapfs support by default"
3330 cat >>confdefs.h <<\_ACEOF
3331 #define ENABLE_SWAPFS 1
3337 # Check whether --enable-debugfs or --disable-debugfs was given.
3338 if test "${enable_debugfs+set}" = set; then
3339 enableval="$enable_debugfs"
3340 if test "$enableval" = "no"
3342 echo "Disabling debugfs support"
3346 echo "Enabling debugfs support"
3350 echo "Enabling debugfs support by default"
3355 # Check whether --enable-imager or --disable-imager was given.
3356 if test "${enable_imager+set}" = set; then
3357 enableval="$enable_imager"
3358 if test "$enableval" = "no"
3360 echo "Disabling e2image support"
3364 echo "Enabling e2image support"
3368 echo "Enabling e2image support by default"
3373 # Check whether --enable-resizer or --disable-resizer was given.
3374 if test "${enable_resizer+set}" = set; then
3375 enableval="$enable_resizer"
3376 if test "$enableval" = "no"
3378 echo "Disabling e2resize support"
3382 echo "Enabling e2resize support"
3386 echo "Enabling e2resize support by default"
3391 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3392 if test "${enable_dynamic_e2fsck+set}" = set; then
3393 enableval="$enable_dynamic_e2fsck"
3394 if test "$enableval" = "no"
3397 echo "Building e2fsck statically"
3400 echo "Building e2fsck dynamically"
3405 echo "Building e2fsck statically by default"
3409 # Check whether --enable-fsck or --disable-fsck was given.
3410 if test "${enable_fsck+set}" = set; then
3411 enableval="$enable_fsck"
3412 if test "$enableval" = "no"
3414 FSCK_PROG='' FSCK_MAN=''
3415 echo "Not building fsck wrapper"
3417 FSCK_PROG=fsck FSCK_MAN=fsck.8
3418 echo "Building fsck wrapper"
3424 FSCK_PROG='' FSCK_MAN=''
3425 echo "Not building fsck wrapper by default"
3428 FSCK_PROG=fsck FSCK_MAN=fsck.8
3429 echo "Building fsck wrapper by default"
3435 # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3436 if test "${enable_e2initrd_helper+set}" = set; then
3437 enableval="$enable_e2initrd_helper"
3438 if test "$enableval" = "no"
3440 E2INITRD_PROG='' E2INITRD_MAN=''
3441 echo "Not building e2initrd helper"
3443 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3444 echo "Building e2initrd helper"
3448 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3449 echo "Building e2initrd helper by default"
3454 # Check whether --enable-blkid-devmapper or --disable-blkid-devmapper was given.
3455 if test "${enable_blkid_devmapper+set}" = set; then
3456 enableval="$enable_blkid_devmapper"
3457 if test "$enableval" = "no"
3459 echo "Disabling device-mapper support"
3462 STATIC_DEVMAPPER_LIBS=''
3464 cat >>confdefs.h <<\_ACEOF
3465 #define HAVE_DEVMAPPER 1
3468 echo "Enabling device-mapper support"
3470 DEVMAPPER_REQ='libselinux libsepol'
3471 DEVMAPPER_PC_LIBS='-ldevmapper'
3472 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol'
3473 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a'
3478 echo "Disabling device-mapper support by default"
3485 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3487 GETTEXT_PACKAGE=e2fsprogs
3489 VERSION="$E2FSPROGS_VERSION"
3491 cat >>confdefs.h <<_ACEOF
3492 #define PACKAGE "$PACKAGE"
3495 cat >>confdefs.h <<_ACEOF
3496 #define VERSION "$VERSION"
3503 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3504 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3505 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3506 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 cat >conftest.make <<\_ACEOF
3511 @echo 'ac_maketemp="$(MAKE)"'
3513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3514 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3515 if test -n "$ac_maketemp"; then
3516 eval ac_cv_prog_make_${ac_make}_set=yes
3518 eval ac_cv_prog_make_${ac_make}_set=no
3522 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3523 echo "$as_me:$LINENO: result: yes" >&5
3524 echo "${ECHO_T}yes" >&6
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3529 SET_MAKE="MAKE=${MAKE-make}"
3532 # Find a good install program. We prefer a C program (faster),
3533 # so one script is as good as another. But avoid the broken or
3534 # incompatible versions:
3535 # SysV /etc/install, /usr/sbin/install
3536 # SunOS /usr/etc/install
3537 # IRIX /sbin/install
3539 # AmigaOS /C/install, which installs bootblocks on floppy discs
3540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3543 # OS/2's system install, which has a completely different semantic
3544 # ./install, which can be erroneously created by make from ./install.sh.
3545 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3546 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3547 if test -z "$INSTALL"; then
3548 if test "${ac_cv_path_install+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 # Account for people who put trailing slashes in PATH elements.
3558 ./ | .// | /cC/* | \
3559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3560 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3563 # OSF1 and SCO ODT 3.0 have their own names for install.
3564 # Don't use installbsd from OSF since it installs stuff as root
3566 for ac_prog in ginstall scoinst install; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3569 if test $ac_prog = install &&
3570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571 # AIX install. It has an incompatible calling convention.
3573 elif test $ac_prog = install &&
3574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3575 # program-specific install script used by HP pwplus--don't use.
3578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3590 if test "${ac_cv_path_install+set}" = set; then
3591 INSTALL=$ac_cv_path_install
3593 # As a last resort, use the slow shell script. We don't cache a
3594 # path for INSTALL within a source directory, because that will
3595 # break other packages using the cache if that directory is
3596 # removed, or if the path is relative.
3597 INSTALL=$ac_install_sh
3600 echo "$as_me:$LINENO: result: $INSTALL" >&5
3601 echo "${ECHO_T}$INSTALL" >&6
3603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3604 # It thinks the first close brace ends the variable substitution.
3605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3613 if test -n "$ac_aux_dir"; then
3614 case "$ac_aux_dir" in
3615 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3616 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3619 if test -z "$MKINSTALLDIRS"; then
3620 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3625 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3626 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3627 # Check whether --enable-nls or --disable-nls was given.
3628 if test "${enable_nls+set}" = set; then
3629 enableval="$enable_nls"
3634 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3635 echo "${ECHO_T}$USE_NLS" >&6
3642 # Prepare PATH_SEPARATOR.
3643 # The user is always right.
3644 if test "${PATH_SEPARATOR+set}" != set; then
3645 echo "#! /bin/sh" >conf$$.sh
3646 echo "exit 0" >>conf$$.sh
3648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3656 # Find out how to test for executable files. Don't use a zero-byte file,
3657 # as systems may use methods other than mode bits to determine executability.
3658 cat >conf$$.file <<_ASEOF
3662 chmod +x conf$$.file
3663 if test -x conf$$.file >/dev/null 2>&1; then
3664 ac_executable_p="test -x"
3666 ac_executable_p="test -f"
3670 # Extract the first word of "msgfmt", so it can be a program name with args.
3671 set dummy msgfmt; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_path_MSGFMT+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3682 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3683 for ac_dir in $PATH; do
3685 test -z "$ac_dir" && ac_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3688 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3689 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3690 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3697 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3701 MSGFMT="$ac_cv_path_MSGFMT"
3702 if test "$MSGFMT" != ":"; then
3703 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3704 echo "${ECHO_T}$MSGFMT" >&6
3706 echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3710 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3711 set dummy gmsgfmt; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3740 GMSGFMT=$ac_cv_path_GMSGFMT
3742 if test -n "$GMSGFMT"; then
3743 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3744 echo "${ECHO_T}$GMSGFMT" >&6
3746 echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3752 # Prepare PATH_SEPARATOR.
3753 # The user is always right.
3754 if test "${PATH_SEPARATOR+set}" != set; then
3755 echo "#! /bin/sh" >conf$$.sh
3756 echo "exit 0" >>conf$$.sh
3758 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3766 # Find out how to test for executable files. Don't use a zero-byte file,
3767 # as systems may use methods other than mode bits to determine executability.
3768 cat >conf$$.file <<_ASEOF
3772 chmod +x conf$$.file
3773 if test -x conf$$.file >/dev/null 2>&1; then
3774 ac_executable_p="test -x"
3776 ac_executable_p="test -f"
3780 # Extract the first word of "xgettext", so it can be a program name with args.
3781 set dummy xgettext; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3792 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3793 for ac_dir in $PATH; do
3795 test -z "$ac_dir" && ac_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3798 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3799 (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
3800 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3807 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3811 XGETTEXT="$ac_cv_path_XGETTEXT"
3812 if test "$XGETTEXT" != ":"; then
3813 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3814 echo "${ECHO_T}$XGETTEXT" >&6
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3823 # Prepare PATH_SEPARATOR.
3824 # The user is always right.
3825 if test "${PATH_SEPARATOR+set}" != set; then
3826 echo "#! /bin/sh" >conf$$.sh
3827 echo "exit 0" >>conf$$.sh
3829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3837 # Find out how to test for executable files. Don't use a zero-byte file,
3838 # as systems may use methods other than mode bits to determine executability.
3839 cat >conf$$.file <<_ASEOF
3843 chmod +x conf$$.file
3844 if test -x conf$$.file >/dev/null 2>&1; then
3845 ac_executable_p="test -x"
3847 ac_executable_p="test -f"
3851 # Extract the first word of "msgmerge", so it can be a program name with args.
3852 set dummy msgmerge; ac_word=$2
3853 echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3863 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3864 for ac_dir in $PATH; do
3866 test -z "$ac_dir" && ac_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3869 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3870 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3877 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3881 MSGMERGE="$ac_cv_path_MSGMERGE"
3882 if test "$MSGMERGE" != ":"; then
3883 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3884 echo "${ECHO_T}$MSGMERGE" >&6
3886 echo "$as_me:$LINENO: result: no" >&5
3887 echo "${ECHO_T}no" >&6
3891 if test "$GMSGFMT" != ":"; then
3892 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3893 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3896 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3897 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3898 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3903 if test "$XGETTEXT" != ":"; then
3904 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3905 (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
3908 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3909 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3915 ac_config_commands="$ac_config_commands default-1"
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_RANLIB+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test -n "$RANLIB"; then
3927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 RANLIB=$ac_cv_prog_RANLIB
3946 if test -n "$RANLIB"; then
3947 echo "$as_me:$LINENO: result: $RANLIB" >&5
3948 echo "${ECHO_T}$RANLIB" >&6
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3955 if test -z "$ac_cv_prog_RANLIB"; then
3956 ac_ct_RANLIB=$RANLIB
3957 # Extract the first word of "ranlib", so it can be a program name with args.
3958 set dummy ranlib; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$ac_ct_RANLIB"; then
3965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_RANLIB="ranlib"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3985 if test -n "$ac_ct_RANLIB"; then
3986 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3987 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3989 echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3993 RANLIB=$ac_ct_RANLIB
3995 RANLIB="$ac_cv_prog_RANLIB"
3999 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4000 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4001 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 ac_check_lib_save_LIBS=$LIBS
4005 LIBS="-lcposix $LIBS"
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4013 /* Override any gcc2 internal prototype to avoid an error. */
4017 /* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>conftest.er1
4032 grep -v '^ *+' conftest.er1 >conftest.err
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest$ac_exeext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 ac_cv_lib_cposix_strerror=yes
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 ac_cv_lib_cposix_strerror=no
4056 rm -f conftest.err conftest.$ac_objext \
4057 conftest$ac_exeext conftest.$ac_ext
4058 LIBS=$ac_check_lib_save_LIBS
4060 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4061 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4062 if test $ac_cv_lib_cposix_strerror = yes; then
4063 LIBS="$LIBS -lcposix"
4068 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4069 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4070 if test "${ac_cv_c_const+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4083 /* FIXME: Include the comments suggested by Paul. */
4085 /* Ultrix mips cc rejects this. */
4086 typedef int charset[2];
4088 /* SunOS 4.1.1 cc rejects this. */
4089 char const *const *ccp;
4091 /* NEC SVR4.0.2 mips cc rejects this. */
4092 struct point {int x, y;};
4093 static struct point const zero = {0,0};
4094 /* AIX XL C 1.02.0.0 rejects this.
4095 It does not let you subtract one const X* pointer from another in
4096 an arm of an if-expression whose if-part is not a constant
4098 const char *g = "string";
4099 ccp = &g + (g ? g-g : 0);
4100 /* HPUX 7.0 cc rejects these. */
4103 ccp = (char const *const *) p;
4104 { /* SCO 3.2v4 cc rejects this. */
4106 char const *s = 0 ? (char *) 0 : (char const *) 0;
4110 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4112 const int *foo = &x[0];
4115 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4116 typedef const int *iptr;
4120 { /* AIX XL C 1.02.0.0 rejects this saying
4121 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4122 struct s { int j; const int *ap[3]; };
4123 struct s *b; b->j = 5;
4125 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4165 echo "${ECHO_T}$ac_cv_c_const" >&6
4166 if test $ac_cv_c_const = no; then
4168 cat >>confdefs.h <<\_ACEOF
4175 echo "$as_me:$LINENO: checking for signed" >&5
4176 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4177 if test "${bh_cv_c_signed+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4225 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4226 echo "${ECHO_T}$bh_cv_c_signed" >&6
4227 if test $bh_cv_c_signed = no; then
4229 cat >>confdefs.h <<\_ACEOF
4235 echo "$as_me:$LINENO: checking for inline" >&5
4236 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4237 if test "${ac_cv_c_inline+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 for ac_kw in inline __inline__ __inline; do
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4250 static $ac_kw foo_t static_foo () {return 0; }
4251 $ac_kw foo_t foo () {return 0; }
4255 rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257 (eval $ac_compile) 2>conftest.er1
4259 grep -v '^ *+' conftest.er1 >conftest.err
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest.$ac_objext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_c_inline=$ac_kw; break
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4286 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4287 echo "${ECHO_T}$ac_cv_c_inline" >&6
4290 case $ac_cv_c_inline in
4293 case $ac_cv_c_inline in
4295 *) ac_val=$ac_cv_c_inline;;
4297 cat >>confdefs.h <<_ACEOF
4299 #define inline $ac_val
4305 echo "$as_me:$LINENO: checking for off_t" >&5
4306 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4307 if test "${ac_cv_type_off_t+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 cat >conftest.$ac_ext <<_ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 $ac_includes_default
4328 rm -f conftest.$ac_objext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>conftest.er1
4332 grep -v '^ *+' conftest.er1 >conftest.err
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } &&
4337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_type_off_t=yes
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4359 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4360 if test $ac_cv_type_off_t = yes; then
4364 cat >>confdefs.h <<_ACEOF
4370 echo "$as_me:$LINENO: checking for size_t" >&5
4371 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4372 if test "${ac_cv_type_size_t+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 cat >conftest.$ac_ext <<_ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 $ac_includes_default
4387 if (sizeof (size_t))
4393 rm -f conftest.$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_type_size_t=yes
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 ac_cv_type_size_t=no
4421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4423 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4424 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4425 if test $ac_cv_type_size_t = yes; then
4429 cat >>confdefs.h <<_ACEOF
4430 #define size_t unsigned
4436 echo "$as_me:$LINENO: checking for long long" >&5
4437 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4438 if test "${ac_cv_type_long_long+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 cat >conftest.$ac_ext <<_ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 long long ll = 1LL; int i = 63;
4451 long long llmax = (long long) -1;
4452 return ll << i | ll >> i | llmax / ll | llmax % ll;
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest$ac_exeext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 ac_cv_type_long_long=yes
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4483 ac_cv_type_long_long=no
4485 rm -f conftest.err conftest.$ac_objext \
4486 conftest$ac_exeext conftest.$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4489 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4490 if test $ac_cv_type_long_long = yes; then
4492 cat >>confdefs.h <<\_ACEOF
4493 #define HAVE_LONG_LONG 1
4499 echo "$as_me:$LINENO: checking for long double" >&5
4500 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4501 if test "${gt_cv_c_long_double+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 if test "$GCC" = yes; then
4505 gt_cv_c_long_double=yes
4507 cat >conftest.$ac_ext <<_ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4514 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4515 long double foo = 0.0;
4516 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4517 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4527 rm -f conftest.$ac_objext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>conftest.er1
4531 grep -v '^ *+' conftest.er1 >conftest.err
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 gt_cv_c_long_double=yes
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4553 gt_cv_c_long_double=no
4555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4559 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4560 if test $gt_cv_c_long_double = yes; then
4562 cat >>confdefs.h <<\_ACEOF
4563 #define HAVE_LONG_DOUBLE 1
4569 echo "$as_me:$LINENO: checking for wchar_t" >&5
4570 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4571 if test "${gt_cv_c_wchar_t+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 cat >conftest.$ac_ext <<_ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4581 wchar_t foo = (wchar_t)'\0';
4590 rm -f conftest.$ac_objext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>conftest.er1
4594 grep -v '^ *+' conftest.er1 >conftest.err
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4621 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4622 if test $gt_cv_c_wchar_t = yes; then
4624 cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_WCHAR_T 1
4631 echo "$as_me:$LINENO: checking for wint_t" >&5
4632 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4633 if test "${gt_cv_c_wint_t+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4643 wint_t foo = (wchar_t)'\0';
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4656 grep -v '^ *+' conftest.er1 >conftest.err
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4683 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4684 if test $gt_cv_c_wint_t = yes; then
4686 cat >>confdefs.h <<\_ACEOF
4687 #define HAVE_WINT_T 1
4693 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4694 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4695 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 #include <inttypes.h>
4709 uintmax_t i = (uintmax_t) -1;
4714 rm -f conftest.$ac_objext
4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>conftest.er1
4718 grep -v '^ *+' conftest.er1 >conftest.err
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 jm_ac_cv_header_inttypes_h=yes
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 jm_ac_cv_header_inttypes_h=no
4742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4744 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4745 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4746 if test $jm_ac_cv_header_inttypes_h = yes; then
4748 cat >>confdefs.h <<_ACEOF
4749 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4755 echo "$as_me:$LINENO: checking for stdint.h" >&5
4756 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4757 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 cat >conftest.$ac_ext <<_ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 #include <sys/types.h>
4771 uintmax_t i = (uintmax_t) -1;
4776 rm -f conftest.$ac_objext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>conftest.er1
4780 grep -v '^ *+' conftest.er1 >conftest.err
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 jm_ac_cv_header_stdint_h=yes
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4802 jm_ac_cv_header_stdint_h=no
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4806 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4807 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4808 if test $jm_ac_cv_header_stdint_h = yes; then
4810 cat >>confdefs.h <<_ACEOF
4811 #define HAVE_STDINT_H_WITH_UINTMAX 1
4819 echo "$as_me:$LINENO: checking for intmax_t" >&5
4820 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4821 if test "${gt_cv_c_intmax_t+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4833 #if HAVE_STDINT_H_WITH_UINTMAX
4836 #if HAVE_INTTYPES_H_WITH_UINTMAX
4837 #include <inttypes.h>
4848 rm -f conftest.$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4852 grep -v '^ *+' conftest.er1 >conftest.err
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 gt_cv_c_intmax_t=yes
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4879 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4880 if test $gt_cv_c_intmax_t = yes; then
4882 cat >>confdefs.h <<\_ACEOF
4883 #define HAVE_INTMAX_T 1
4890 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4891 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4892 if test "${gt_cv_func_printf_posix+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 if test "$cross_compiling" = yes; then
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4905 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4911 $EGREP "notposix" >/dev/null 2>&1; then
4912 gt_cv_func_printf_posix="guessing no"
4914 gt_cv_func_printf_posix="guessing yes"
4920 cat >conftest.$ac_ext <<_ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4929 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4930 dollar expansion (possibly an autoconf bug). */
4931 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4932 static char buf[100];
4935 sprintf (buf, format, 33, 55);
4936 return (strcmp (buf, "55 33") != 0);
4939 rm -f conftest$ac_exeext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 gt_cv_func_printf_posix=yes
4952 echo "$as_me: program exited with status $ac_status" >&5
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4957 gt_cv_func_printf_posix=no
4959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4963 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4964 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4965 case $gt_cv_func_printf_posix in
4968 cat >>confdefs.h <<\_ACEOF
4969 #define HAVE_POSIX_PRINTF 1
4975 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4976 # for constant arguments. Useless!
4977 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4978 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4979 if test "${ac_cv_working_alloca_h+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 cat >conftest.$ac_ext <<_ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4992 char *p = (char *) alloca (2 * sizeof (int));
4997 rm -f conftest.$ac_objext conftest$ac_exeext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4999 (eval $ac_link) 2>conftest.er1
5001 grep -v '^ *+' conftest.er1 >conftest.err
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest$ac_exeext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 ac_cv_working_alloca_h=yes
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 ac_cv_working_alloca_h=no
5025 rm -f conftest.err conftest.$ac_objext \
5026 conftest$ac_exeext conftest.$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5029 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5030 if test $ac_cv_working_alloca_h = yes; then
5032 cat >>confdefs.h <<\_ACEOF
5033 #define HAVE_ALLOCA_H 1
5038 echo "$as_me:$LINENO: checking for alloca" >&5
5039 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5040 if test "${ac_cv_func_alloca_works+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 cat >conftest.$ac_ext <<_ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5050 # define alloca __builtin_alloca
5053 # include <malloc.h>
5054 # define alloca _alloca
5057 # include <alloca.h>
5062 # ifndef alloca /* predefined by HP cc +Olibcalls */
5073 char *p = (char *) alloca (1);
5078 rm -f conftest.$ac_objext conftest$ac_exeext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080 (eval $ac_link) 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest$ac_exeext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_cv_func_alloca_works=yes
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 ac_cv_func_alloca_works=no
5106 rm -f conftest.err conftest.$ac_objext \
5107 conftest$ac_exeext conftest.$ac_ext
5109 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5110 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5112 if test $ac_cv_func_alloca_works = yes; then
5114 cat >>confdefs.h <<\_ACEOF
5115 #define HAVE_ALLOCA 1
5119 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5120 # that cause trouble. Some versions do not even contain alloca or
5121 # contain a buggy version. If you still want to use their alloca,
5122 # use ar to extract alloca.o from them instead of compiling alloca.c.
5124 ALLOCA=alloca.$ac_objext
5126 cat >>confdefs.h <<\_ACEOF
5131 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5132 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5133 if test "${ac_cv_os_cray+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 #if defined(CRAY) && ! defined(CRAY2)
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150 $EGREP "webecray" >/dev/null 2>&1; then
5158 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5159 echo "${ECHO_T}$ac_cv_os_cray" >&6
5160 if test $ac_cv_os_cray = yes; then
5161 for ac_func in _getb67 GETB67 getb67; do
5162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5163 echo "$as_me:$LINENO: checking for $ac_func" >&5
5164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5165 if eval "test \"\${$as_ac_var+set}\" = set"; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 cat >conftest.$ac_ext <<_ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5176 #define $ac_func innocuous_$ac_func
5178 /* System header to define __stub macros and hopefully few prototypes,
5179 which can conflict with char $ac_func (); below.
5180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5181 <limits.h> exists even on freestanding compilers. */
5184 # include <limits.h>
5186 # include <assert.h>
5191 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5199 /* The GNU C library defines this for functions which it implements
5200 to always fail with ENOSYS. Some functions are actually named
5201 something starting with __ and the normal name is an alias. */
5202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5205 char (*f) () = $ac_func;
5214 return f != $ac_func;
5219 rm -f conftest.$ac_objext conftest$ac_exeext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221 (eval $ac_link) 2>conftest.er1
5223 grep -v '^ *+' conftest.er1 >conftest.err
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest$ac_exeext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 eval "$as_ac_var=yes"
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 eval "$as_ac_var=no"
5247 rm -f conftest.err conftest.$ac_objext \
5248 conftest$ac_exeext conftest.$ac_ext
5250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5252 if test `eval echo '${'$as_ac_var'}'` = yes; then
5254 cat >>confdefs.h <<_ACEOF
5255 #define CRAY_STACKSEG_END $ac_func
5264 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5265 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5266 if test "${ac_cv_c_stack_direction+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 if test "$cross_compiling" = yes; then
5270 ac_cv_c_stack_direction=0
5272 cat >conftest.$ac_ext <<_ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5279 find_stack_direction ()
5281 static char *addr = 0;
5286 return find_stack_direction ();
5289 return (&dummy > addr) ? 1 : -1;
5295 exit (find_stack_direction () < 0);
5298 rm -f conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 ac_cv_c_stack_direction=1
5311 echo "$as_me: program exited with status $ac_status" >&5
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5316 ac_cv_c_stack_direction=-1
5318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5321 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5322 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5324 cat >>confdefs.h <<_ACEOF
5325 #define STACK_DIRECTION $ac_cv_c_stack_direction
5333 for ac_header in stdlib.h unistd.h
5335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5337 echo "$as_me:$LINENO: checking for $ac_header" >&5
5338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5345 # Is the header compilable?
5346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 $ac_includes_default
5355 #include <$ac_header>
5357 rm -f conftest.$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359 (eval $ac_compile) 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_header_compiler=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_header_compiler=no
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5387 echo "${ECHO_T}$ac_header_compiler" >&6
5389 # Is the header present?
5390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5392 cat >conftest.$ac_ext <<_ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <$ac_header>
5400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5403 grep -v '^ *+' conftest.er1 >conftest.err
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev/null; then
5408 if test -s conftest.err; then
5409 ac_cpp_err=$ac_c_preproc_warn_flag
5410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5417 if test -z "$ac_cpp_err"; then
5418 ac_header_preproc=yes
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 ac_header_preproc=no
5425 rm -f conftest.err conftest.$ac_ext
5426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427 echo "${ECHO_T}$ac_header_preproc" >&6
5429 # So? What about this header?
5430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5436 ac_header_preproc=yes
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5453 ## ------------------------------------------ ##
5454 ## Report this to the AC_PACKAGE_NAME lists. ##
5455 ## ------------------------------------------ ##
5458 sed "s/^/$as_me: WARNING: /" >&2
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 eval "$as_ac_Header=\$ac_header_preproc"
5468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5482 for ac_func in getpagesize
5484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5485 echo "$as_me:$LINENO: checking for $ac_func" >&5
5486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5487 if eval "test \"\${$as_ac_var+set}\" = set"; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 cat >conftest.$ac_ext <<_ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5498 #define $ac_func innocuous_$ac_func
5500 /* System header to define __stub macros and hopefully few prototypes,
5501 which can conflict with char $ac_func (); below.
5502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503 <limits.h> exists even on freestanding compilers. */
5506 # include <limits.h>
5508 # include <assert.h>
5513 /* Override any gcc2 internal prototype to avoid an error. */
5518 /* We use char because int might match the return type of a gcc2
5519 builtin and then its argument prototype would still apply. */
5521 /* The GNU C library defines this for functions which it implements
5522 to always fail with ENOSYS. Some functions are actually named
5523 something starting with __ and the normal name is an alias. */
5524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5527 char (*f) () = $ac_func;
5536 return f != $ac_func;
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 eval "$as_ac_var=yes"
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 eval "$as_ac_var=no"
5569 rm -f conftest.err conftest.$ac_objext \
5570 conftest$ac_exeext conftest.$ac_ext
5572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5574 if test `eval echo '${'$as_ac_var'}'` = yes; then
5575 cat >>confdefs.h <<_ACEOF
5576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5582 echo "$as_me:$LINENO: checking for working mmap" >&5
5583 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5584 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 if test "$cross_compiling" = yes; then
5588 ac_cv_func_mmap_fixed_mapped=no
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5596 $ac_includes_default
5597 /* malloc might have been renamed as rpl_malloc. */
5600 /* Thanks to Mike Haertel and Jim Avera for this test.
5601 Here is a matrix of mmap possibilities:
5602 mmap private not fixed
5603 mmap private fixed at somewhere currently unmapped
5604 mmap private fixed at somewhere already mapped
5605 mmap shared not fixed
5606 mmap shared fixed at somewhere currently unmapped
5607 mmap shared fixed at somewhere already mapped
5608 For private mappings, we should verify that changes cannot be read()
5609 back from the file, nor mmap's back from the file at a different
5610 address. (There have been systems where private was not correctly
5611 implemented like the infamous i386 svr4.0, and systems where the
5612 VM page cache was not coherent with the file system buffer cache
5613 like early versions of FreeBSD and possibly contemporary NetBSD.)
5614 For shared mappings, we should conversely verify that changes get
5615 propagated back to all the places they're supposed to be.
5617 Grep wants private fixed already mapped.
5618 The main things grep needs to know about mmap are:
5619 * does it exist and is it safe to write into the mmap'd area
5620 * how to use it (BSD variants) */
5623 #include <sys/mman.h>
5625 #if !STDC_HEADERS && !HAVE_STDLIB_H
5629 /* This mess was copied from the GNU getpagesize.h. */
5630 #if !HAVE_GETPAGESIZE
5631 /* Assume that all systems that can run configure have sys/param.h. */
5632 # if !HAVE_SYS_PARAM_H
5633 # define HAVE_SYS_PARAM_H 1
5636 # ifdef _SC_PAGESIZE
5637 # define getpagesize() sysconf(_SC_PAGESIZE)
5638 # else /* no _SC_PAGESIZE */
5639 # if HAVE_SYS_PARAM_H
5640 # include <sys/param.h>
5641 # ifdef EXEC_PAGESIZE
5642 # define getpagesize() EXEC_PAGESIZE
5643 # else /* no EXEC_PAGESIZE */
5645 # define getpagesize() NBPG * CLSIZE
5648 # endif /* no CLSIZE */
5649 # else /* no NBPG */
5651 # define getpagesize() NBPC
5652 # else /* no NBPC */
5654 # define getpagesize() PAGESIZE
5655 # endif /* PAGESIZE */
5656 # endif /* no NBPC */
5657 # endif /* no NBPG */
5658 # endif /* no EXEC_PAGESIZE */
5659 # else /* no HAVE_SYS_PARAM_H */
5660 # define getpagesize() 8192 /* punt totally */
5661 # endif /* no HAVE_SYS_PARAM_H */
5662 # endif /* no _SC_PAGESIZE */
5664 #endif /* no HAVE_GETPAGESIZE */
5669 char *data, *data2, *data3;
5673 pagesize = getpagesize ();
5675 /* First, make a file with some known garbage in it. */
5676 data = (char *) malloc (pagesize);
5679 for (i = 0; i < pagesize; ++i)
5680 *(data + i) = rand ();
5682 fd = creat ("conftest.mmap", 0600);
5685 if (write (fd, data, pagesize) != pagesize)
5689 /* Next, try to mmap the file at a fixed address which already has
5690 something else allocated at it. If we can, also make sure that
5691 we see the same garbage. */
5692 fd = open ("conftest.mmap", O_RDWR);
5695 data2 = (char *) malloc (2 * pagesize);
5698 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5699 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5700 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5702 for (i = 0; i < pagesize; ++i)
5703 if (*(data + i) != *(data2 + i))
5706 /* Finally, make sure that changes to the mapped area do not
5707 percolate back to the file as seen by read(). (This is a bug on
5708 some variants of i386 svr4.0.) */
5709 for (i = 0; i < pagesize; ++i)
5710 *(data2 + i) = *(data2 + i) + 1;
5711 data3 = (char *) malloc (pagesize);
5714 if (read (fd, data3, pagesize) != pagesize)
5716 for (i = 0; i < pagesize; ++i)
5717 if (*(data + i) != *(data3 + i))
5723 rm -f conftest$ac_exeext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725 (eval $ac_link) 2>&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_func_mmap_fixed_mapped=yes
5736 echo "$as_me: program exited with status $ac_status" >&5
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5741 ac_cv_func_mmap_fixed_mapped=no
5743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5746 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5747 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5748 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5750 cat >>confdefs.h <<\_ACEOF
5758 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5759 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5760 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5770 #include <features.h>
5771 #ifdef __GNU_LIBRARY__
5772 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5779 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5780 ac_cv_gnu_library_2_1=yes
5782 ac_cv_gnu_library_2_1=no
5789 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5790 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5792 GLIBC21="$ac_cv_gnu_library_2_1"
5797 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5798 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5799 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 if test "$cross_compiling" = yes; then
5805 # Guess based on the CPU.
5807 alpha* | i3456786 | m68k | s390*)
5808 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5810 gt_cv_int_divbyzero_sigfpe="guessing no";;
5814 cat >conftest.$ac_ext <<_ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5826 sigfpe_handler (int sig)
5828 sigfpe_handler (sig) int sig;
5831 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5832 exit (sig != SIGFPE);
5842 signal (SIGFPE, sigfpe_handler);
5843 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5844 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5845 signal (SIGTRAP, sigfpe_handler);
5847 /* Linux/SPARC yields signal SIGILL. */
5848 #if defined (__sparc__) && defined (__linux__)
5849 signal (SIGILL, sigfpe_handler);
5858 rm -f conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 gt_cv_int_divbyzero_sigfpe=yes
5871 echo "$as_me: program exited with status $ac_status" >&5
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5876 gt_cv_int_divbyzero_sigfpe=no
5878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5882 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5883 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5884 case "$gt_cv_int_divbyzero_sigfpe" in
5889 cat >>confdefs.h <<_ACEOF
5890 #define INTDIV0_RAISES_SIGFPE $value
5895 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5896 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5897 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 unsigned long long ull = 1ULL; int i = 63;
5910 unsigned long long ullmax = (unsigned long long) -1;
5911 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918 (eval $ac_link) 2>conftest.er1
5920 grep -v '^ *+' conftest.er1 >conftest.err
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try='test -s conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_type_unsigned_long_long=yes
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 ac_cv_type_unsigned_long_long=no
5944 rm -f conftest.err conftest.$ac_objext \
5945 conftest$ac_exeext conftest.$ac_ext
5947 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5948 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5949 if test $ac_cv_type_unsigned_long_long = yes; then
5951 cat >>confdefs.h <<\_ACEOF
5952 #define HAVE_UNSIGNED_LONG_LONG 1
5960 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5962 test $ac_cv_type_unsigned_long_long = yes \
5963 && ac_type='unsigned long long' \
5964 || ac_type='unsigned long'
5966 cat >>confdefs.h <<_ACEOF
5967 #define uintmax_t $ac_type
5972 cat >>confdefs.h <<\_ACEOF
5973 #define HAVE_UINTMAX_T 1
5979 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5980 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5981 if test "${gt_cv_header_inttypes_h+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 #include <sys/types.h>
5992 #include <inttypes.h>
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>conftest.er1
6005 grep -v '^ *+' conftest.er1 >conftest.err
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 gt_cv_header_inttypes_h=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 gt_cv_header_inttypes_h=no
6029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6033 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6034 if test $gt_cv_header_inttypes_h = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define HAVE_INTTYPES_H 1
6044 if test $gt_cv_header_inttypes_h = yes; then
6045 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6046 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6047 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 cat >conftest.$ac_ext <<_ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #include <inttypes.h>
6070 rm -f conftest.$ac_objext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>conftest.er1
6074 grep -v '^ *+' conftest.er1 >conftest.err
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 gt_cv_inttypes_pri_broken=no
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 gt_cv_inttypes_pri_broken=yes
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6102 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6104 if test "$gt_cv_inttypes_pri_broken" = yes; then
6106 cat >>confdefs.h <<_ACEOF
6107 #define PRI_MACROS_BROKEN 1
6114 for ac_header in stdint.h
6116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6118 echo "$as_me:$LINENO: checking for $ac_header" >&5
6119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6126 # Is the header compilable?
6127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 $ac_includes_default
6136 #include <$ac_header>
6138 rm -f conftest.$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6142 grep -v '^ *+' conftest.er1 >conftest.err
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_header_compiler=yes
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_header_compiler=no
6166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6168 echo "${ECHO_T}$ac_header_compiler" >&6
6170 # Is the header present?
6171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <$ac_header>
6181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6184 grep -v '^ *+' conftest.er1 >conftest.err
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null; then
6189 if test -s conftest.err; then
6190 ac_cpp_err=$ac_c_preproc_warn_flag
6191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6198 if test -z "$ac_cpp_err"; then
6199 ac_header_preproc=yes
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ac_header_preproc=no
6206 rm -f conftest.err conftest.$ac_ext
6207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6208 echo "${ECHO_T}$ac_header_preproc" >&6
6210 # So? What about this header?
6211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6217 ac_header_preproc=yes
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6234 ## ------------------------------------------ ##
6235 ## Report this to the AC_PACKAGE_NAME lists. ##
6236 ## ------------------------------------------ ##
6239 sed "s/^/$as_me: WARNING: /" >&2
6242 echo "$as_me:$LINENO: checking for $ac_header" >&5
6243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 eval "$as_ac_Header=\$ac_header_preproc"
6249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6254 cat >>confdefs.h <<_ACEOF
6255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6262 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6263 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6265 cat >conftest.$ac_ext <<_ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "Found it" >/dev/null 2>&1; then
6287 if test -z "$result"; then
6288 if test "$cross_compiling" = yes; then
6289 # Depending upon the size, compute the lo and hi bounds.
6290 cat >conftest.$ac_ext <<_ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6300 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>conftest.er1
6311 grep -v '^ *+' conftest.er1 >conftest.err
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6330 cat >conftest.$ac_ext <<_ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6340 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6347 rm -f conftest.$ac_objext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349 (eval $ac_compile) 2>conftest.er1
6351 grep -v '^ *+' conftest.er1 >conftest.err
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest.$ac_objext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_hi=$ac_mid; break
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 ac_lo=`expr $ac_mid + 1`
6374 if test $ac_lo -le $ac_mid; then
6378 ac_mid=`expr 2 '*' $ac_mid + 1`
6380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6396 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6436 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6443 rm -f conftest.$ac_objext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest.$ac_objext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_lo=$ac_mid; break
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 ac_hi=`expr '(' $ac_mid ')' - 1`
6470 if test $ac_mid -le $ac_hi; then
6474 ac_mid=`expr 2 '*' $ac_mid`
6476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487 # Binary search between lo and hi bounds.
6488 while test "x$ac_lo" != "x$ac_hi"; do
6489 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6490 cat >conftest.$ac_ext <<_ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6500 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6507 rm -f conftest.$ac_objext
6508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509 (eval $ac_compile) 2>conftest.er1
6511 grep -v '^ *+' conftest.er1 >conftest.err
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 ac_lo=`expr '(' $ac_mid ')' + 1`
6535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6542 if test "$cross_compiling" = yes; then
6543 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6544 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6545 { (exit 1); exit 1; }; }
6547 cat >conftest.$ac_ext <<_ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6554 long longval () { return ~(size_t)0 / 10; }
6555 unsigned long ulongval () { return ~(size_t)0 / 10; }
6562 FILE *f = fopen ("conftest.val", "w");
6565 if ((~(size_t)0 / 10) < 0)
6567 long i = longval ();
6568 if (i != (~(size_t)0 / 10))
6570 fprintf (f, "%ld\n", i);
6574 unsigned long i = ulongval ();
6575 if (i != (~(size_t)0 / 10))
6577 fprintf (f, "%lu\n", i);
6579 exit (ferror (f) || fclose (f) != 0);
6585 rm -f conftest$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587 (eval $ac_link) 2>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 res_hi=`cat conftest.val`
6598 echo "$as_me: program exited with status $ac_status" >&5
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6609 if test "$cross_compiling" = yes; then
6610 # Depending upon the size, compute the lo and hi bounds.
6611 cat >conftest.$ac_ext <<_ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6621 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6632 grep -v '^ *+' conftest.er1 >conftest.err
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; } &&
6643 { ac_try='test -s conftest.$ac_objext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6651 cat >conftest.$ac_ext <<_ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6661 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6668 rm -f conftest.$ac_objext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670 (eval $ac_compile) 2>conftest.er1
6672 grep -v '^ *+' conftest.er1 >conftest.err
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_hi=$ac_mid; break
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_lo=`expr $ac_mid + 1`
6695 if test $ac_lo -le $ac_mid; then
6699 ac_mid=`expr 2 '*' $ac_mid + 1`
6701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6717 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6724 rm -f conftest.$ac_objext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>conftest.er1
6728 grep -v '^ *+' conftest.er1 >conftest.err
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest.$ac_objext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6757 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>conftest.er1
6768 grep -v '^ *+' conftest.er1 >conftest.err
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_lo=$ac_mid; break
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 ac_hi=`expr '(' $ac_mid ')' - 1`
6791 if test $ac_mid -le $ac_hi; then
6795 ac_mid=`expr 2 '*' $ac_mid`
6797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808 # Binary search between lo and hi bounds.
6809 while test "x$ac_lo" != "x$ac_hi"; do
6810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6811 cat >conftest.$ac_ext <<_ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6821 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6828 rm -f conftest.$ac_objext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6830 (eval $ac_compile) 2>conftest.er1
6832 grep -v '^ *+' conftest.er1 >conftest.err
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest.$ac_objext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_lo=`expr '(' $ac_mid ')' + 1`
6856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6863 if test "$cross_compiling" = yes; then
6864 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6865 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6866 { (exit 1); exit 1; }; }
6868 cat >conftest.$ac_ext <<_ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6875 long longval () { return ~(size_t)0 % 10; }
6876 unsigned long ulongval () { return ~(size_t)0 % 10; }
6883 FILE *f = fopen ("conftest.val", "w");
6886 if ((~(size_t)0 % 10) < 0)
6888 long i = longval ();
6889 if (i != (~(size_t)0 % 10))
6891 fprintf (f, "%ld\n", i);
6895 unsigned long i = ulongval ();
6896 if (i != (~(size_t)0 % 10))
6898 fprintf (f, "%lu\n", i);
6900 exit (ferror (f) || fclose (f) != 0);
6906 rm -f conftest$ac_exeext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908 (eval $ac_link) 2>&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 res_lo=`cat conftest.val`
6919 echo "$as_me: program exited with status $ac_status" >&5
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6930 if test "$cross_compiling" = yes; then
6931 # Depending upon the size, compute the lo and hi bounds.
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6942 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6949 rm -f conftest.$ac_objext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>conftest.er1
6953 grep -v '^ *+' conftest.er1 >conftest.err
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; } &&
6964 { ac_try='test -s conftest.$ac_objext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6972 cat >conftest.$ac_ext <<_ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6982 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6989 rm -f conftest.$ac_objext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991 (eval $ac_compile) 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 ac_hi=$ac_mid; break
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 ac_lo=`expr $ac_mid + 1`
7016 if test $ac_lo -le $ac_mid; then
7020 ac_mid=`expr 2 '*' $ac_mid + 1`
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 cat >conftest.$ac_ext <<_ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7038 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7045 rm -f conftest.$ac_objext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047 (eval $ac_compile) 2>conftest.er1
7049 grep -v '^ *+' conftest.er1 >conftest.err
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest.$ac_objext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7078 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7085 rm -f conftest.$ac_objext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; } &&
7100 { ac_try='test -s conftest.$ac_objext'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_lo=$ac_mid; break
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 ac_hi=`expr '(' $ac_mid ')' - 1`
7112 if test $ac_mid -le $ac_hi; then
7116 ac_mid=`expr 2 '*' $ac_mid`
7118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129 # Binary search between lo and hi bounds.
7130 while test "x$ac_lo" != "x$ac_hi"; do
7131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7132 cat >conftest.$ac_ext <<_ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7142 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>conftest.er1
7153 grep -v '^ *+' conftest.er1 >conftest.err
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; } &&
7164 { ac_try='test -s conftest.$ac_objext'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_lo=`expr '(' $ac_mid ')' + 1`
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7180 ?*) fits_in_uint=$ac_lo;;
7184 if test "$cross_compiling" = yes; then
7185 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7186 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7187 { (exit 1); exit 1; }; }
7189 cat >conftest.$ac_ext <<_ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7196 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7197 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7204 FILE *f = fopen ("conftest.val", "w");
7207 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7209 long i = longval ();
7210 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7212 fprintf (f, "%ld\n", i);
7216 unsigned long i = ulongval ();
7217 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7219 fprintf (f, "%lu\n", i);
7221 exit (ferror (f) || fclose (f) != 0);
7227 rm -f conftest$ac_exeext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229 (eval $ac_link) 2>&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 fits_in_uint=`cat conftest.val`
7240 echo "$as_me: program exited with status $ac_status" >&5
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7251 if test "$fits_in_uint" = 1; then
7252 cat >conftest.$ac_ext <<_ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7260 extern unsigned long foo;
7270 rm -f conftest.$ac_objext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272 (eval $ac_compile) 2>conftest.er1
7274 grep -v '^ *+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } &&
7279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 if test -z "$result"; then
7300 if test "$fits_in_uint" = 1; then
7301 result="$res_hi$res_lo"U
7303 result="$res_hi$res_lo"UL
7309 echo "$as_me:$LINENO: result: $result" >&5
7310 echo "${ECHO_T}$result" >&6
7311 if test "$result" != yes; then
7313 cat >>confdefs.h <<_ACEOF
7314 #define SIZE_MAX $result
7322 for ac_header in stdint.h
7324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7326 echo "$as_me:$LINENO: checking for $ac_header" >&5
7327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7334 # Is the header compilable?
7335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7337 cat >conftest.$ac_ext <<_ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7344 #include <$ac_header>
7346 rm -f conftest.$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7350 grep -v '^ *+' conftest.er1 >conftest.err
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_header_compiler=yes
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_header_compiler=no
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7376 echo "${ECHO_T}$ac_header_compiler" >&6
7378 # Is the header present?
7379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 #include <$ac_header>
7389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } >/dev/null; then
7397 if test -s conftest.err; then
7398 ac_cpp_err=$ac_c_preproc_warn_flag
7399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7406 if test -z "$ac_cpp_err"; then
7407 ac_header_preproc=yes
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 ac_header_preproc=no
7414 rm -f conftest.err conftest.$ac_ext
7415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7416 echo "${ECHO_T}$ac_header_preproc" >&6
7418 # So? What about this header?
7419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7425 ac_header_preproc=yes
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7442 ## ------------------------------------------ ##
7443 ## Report this to the AC_PACKAGE_NAME lists. ##
7444 ## ------------------------------------------ ##
7447 sed "s/^/$as_me: WARNING: /" >&2
7450 echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 eval "$as_ac_Header=\$ac_header_preproc"
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7462 cat >>confdefs.h <<_ACEOF
7463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7472 if test "X$prefix" = "XNONE"; then
7473 acl_final_prefix="$ac_default_prefix"
7475 acl_final_prefix="$prefix"
7477 if test "X$exec_prefix" = "XNONE"; then
7478 acl_final_exec_prefix='${prefix}'
7480 acl_final_exec_prefix="$exec_prefix"
7482 acl_save_prefix="$prefix"
7483 prefix="$acl_final_prefix"
7484 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7485 prefix="$acl_save_prefix"
7488 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7489 if test "${with_gnu_ld+set}" = set; then
7490 withval="$with_gnu_ld"
7491 test "$withval" = no || with_gnu_ld=yes
7495 # Prepare PATH_SEPARATOR.
7496 # The user is always right.
7497 if test "${PATH_SEPARATOR+set}" != set; then
7498 echo "#! /bin/sh" >conf$$.sh
7499 echo "exit 0" >>conf$$.sh
7501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7509 if test "$GCC" = yes; then
7510 # Check if gcc -print-prog-name=ld gives a path.
7511 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7512 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7515 # gcc leaves a trailing carriage return which upsets mingw
7516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7521 # Accept absolute paths.
7522 [\\/]* | [A-Za-z]:[\\/]*)
7523 re_direlt='/[^/][^/]*/\.\./'
7524 # Canonicalize the path of ld
7525 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7527 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7529 test -z "$LD" && LD="$ac_prog"
7532 # If it fails, then pretend we aren't using GCC.
7536 # If it is relative, then search for the first ld in PATH.
7540 elif test "$with_gnu_ld" = yes; then
7541 echo "$as_me:$LINENO: checking for GNU ld" >&5
7542 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7544 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7545 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7547 if test "${acl_cv_path_LD+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 if test -z "$LD"; then
7551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7552 for ac_dir in $PATH; do
7553 test -z "$ac_dir" && ac_dir=.
7554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7555 acl_cv_path_LD="$ac_dir/$ac_prog"
7556 # Check to see if the program is GNU ld. I'd rather use --version,
7557 # but apparently some GNU ld's only accept -v.
7558 # Break only if it was the GNU/non-GNU ld that we prefer.
7559 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7560 *GNU* | *'with BFD'*)
7561 test "$with_gnu_ld" != no && break ;;
7563 test "$with_gnu_ld" != yes && break ;;
7569 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7573 LD="$acl_cv_path_LD"
7574 if test -n "$LD"; then
7575 echo "$as_me:$LINENO: result: $LD" >&5
7576 echo "${ECHO_T}$LD" >&6
7578 echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6
7581 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7582 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7583 { (exit 1); exit 1; }; }
7584 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7585 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7586 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7590 case `$LD -v 2>&1 </dev/null` in
7591 *GNU* | *'with BFD'*)
7592 acl_cv_prog_gnu_ld=yes ;;
7594 acl_cv_prog_gnu_ld=no ;;
7597 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7598 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7599 with_gnu_ld=$acl_cv_prog_gnu_ld
7603 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7604 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7605 if test "${acl_cv_rpath+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7610 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7616 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7617 echo "${ECHO_T}$acl_cv_rpath" >&6
7619 libext="$acl_cv_libext"
7620 shlibext="$acl_cv_shlibext"
7621 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7622 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7623 hardcode_direct="$acl_cv_hardcode_direct"
7624 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7625 # Check whether --enable-rpath or --disable-rpath was given.
7626 if test "${enable_rpath+set}" = set; then
7627 enableval="$enable_rpath"
7641 acl_save_prefix="$prefix"
7642 prefix="$acl_final_prefix"
7643 acl_save_exec_prefix="$exec_prefix"
7644 exec_prefix="$acl_final_exec_prefix"
7646 eval additional_includedir=\"$includedir\"
7647 eval additional_libdir=\"$libdir\"
7649 exec_prefix="$acl_save_exec_prefix"
7650 prefix="$acl_save_prefix"
7653 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7654 if test "${with_libiconv_prefix+set}" = set; then
7655 withval="$with_libiconv_prefix"
7657 if test "X$withval" = "Xno"; then
7660 if test "X$withval" = "X"; then
7662 acl_save_prefix="$prefix"
7663 prefix="$acl_final_prefix"
7664 acl_save_exec_prefix="$exec_prefix"
7665 exec_prefix="$acl_final_exec_prefix"
7667 eval additional_includedir=\"$includedir\"
7668 eval additional_libdir=\"$libdir\"
7670 exec_prefix="$acl_save_exec_prefix"
7671 prefix="$acl_save_prefix"
7674 additional_includedir="$withval/include"
7675 additional_libdir="$withval/lib"
7685 names_already_handled=
7686 names_next_round='iconv '
7687 while test -n "$names_next_round"; do
7688 names_this_round="$names_next_round"
7690 for name in $names_this_round; do
7692 for n in $names_already_handled; do
7693 if test "$n" = "$name"; then
7698 if test -z "$already_handled"; then
7699 names_already_handled="$names_already_handled $name"
7700 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7701 eval value=\"\$HAVE_LIB$uppername\"
7702 if test -n "$value"; then
7703 if test "$value" = yes; then
7704 eval value=\"\$LIB$uppername\"
7705 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7706 eval value=\"\$LTLIB$uppername\"
7707 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7716 if test $use_additional = yes; then
7717 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7718 found_dir="$additional_libdir"
7719 found_so="$additional_libdir/lib$name.$shlibext"
7720 if test -f "$additional_libdir/lib$name.la"; then
7721 found_la="$additional_libdir/lib$name.la"
7724 if test -f "$additional_libdir/lib$name.$libext"; then
7725 found_dir="$additional_libdir"
7726 found_a="$additional_libdir/lib$name.$libext"
7727 if test -f "$additional_libdir/lib$name.la"; then
7728 found_la="$additional_libdir/lib$name.la"
7733 if test "X$found_dir" = "X"; then
7734 for x in $LDFLAGS $LTLIBICONV; do
7736 acl_save_prefix="$prefix"
7737 prefix="$acl_final_prefix"
7738 acl_save_exec_prefix="$exec_prefix"
7739 exec_prefix="$acl_final_exec_prefix"
7741 exec_prefix="$acl_save_exec_prefix"
7742 prefix="$acl_save_prefix"
7746 dir=`echo "X$x" | sed -e 's/^X-L//'`
7747 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7749 found_so="$dir/lib$name.$shlibext"
7750 if test -f "$dir/lib$name.la"; then
7751 found_la="$dir/lib$name.la"
7754 if test -f "$dir/lib$name.$libext"; then
7756 found_a="$dir/lib$name.$libext"
7757 if test -f "$dir/lib$name.la"; then
7758 found_la="$dir/lib$name.la"
7764 if test "X$found_dir" != "X"; then
7769 if test "X$found_dir" != "X"; then
7770 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7771 if test "X$found_so" != "X"; then
7772 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7776 for x in $ltrpathdirs; do
7777 if test "X$x" = "X$found_dir"; then
7782 if test -z "$haveit"; then
7783 ltrpathdirs="$ltrpathdirs $found_dir"
7785 if test "$hardcode_direct" = yes; then
7786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7788 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7791 for x in $rpathdirs; do
7792 if test "X$x" = "X$found_dir"; then
7797 if test -z "$haveit"; then
7798 rpathdirs="$rpathdirs $found_dir"
7802 for x in $LDFLAGS $LIBICONV; do
7804 acl_save_prefix="$prefix"
7805 prefix="$acl_final_prefix"
7806 acl_save_exec_prefix="$exec_prefix"
7807 exec_prefix="$acl_final_exec_prefix"
7809 exec_prefix="$acl_save_exec_prefix"
7810 prefix="$acl_save_prefix"
7812 if test "X$x" = "X-L$found_dir"; then
7817 if test -z "$haveit"; then
7818 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7820 if test "$hardcode_minus_L" != no; then
7821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7823 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7829 if test "X$found_a" != "X"; then
7830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7832 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7835 additional_includedir=
7836 case "$found_dir" in
7838 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7839 additional_includedir="$basedir/include"
7842 if test "X$additional_includedir" != "X"; then
7843 if test "X$additional_includedir" != "X/usr/include"; then
7845 if test "X$additional_includedir" = "X/usr/local/include"; then
7846 if test -n "$GCC"; then
7848 linux*) haveit=yes;;
7852 if test -z "$haveit"; then
7853 for x in $CPPFLAGS $INCICONV; do
7855 acl_save_prefix="$prefix"
7856 prefix="$acl_final_prefix"
7857 acl_save_exec_prefix="$exec_prefix"
7858 exec_prefix="$acl_final_exec_prefix"
7860 exec_prefix="$acl_save_exec_prefix"
7861 prefix="$acl_save_prefix"
7863 if test "X$x" = "X-I$additional_includedir"; then
7868 if test -z "$haveit"; then
7869 if test -d "$additional_includedir"; then
7870 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7876 if test -n "$found_la"; then
7877 save_libdir="$libdir"
7879 */* | *\\*) . "$found_la" ;;
7880 *) . "./$found_la" ;;
7882 libdir="$save_libdir"
7883 for dep in $dependency_libs; do
7886 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7887 if test "X$additional_libdir" != "X/usr/lib"; then
7889 if test "X$additional_libdir" = "X/usr/local/lib"; then
7890 if test -n "$GCC"; then
7892 linux*) haveit=yes;;
7896 if test -z "$haveit"; then
7898 for x in $LDFLAGS $LIBICONV; do
7900 acl_save_prefix="$prefix"
7901 prefix="$acl_final_prefix"
7902 acl_save_exec_prefix="$exec_prefix"
7903 exec_prefix="$acl_final_exec_prefix"
7905 exec_prefix="$acl_save_exec_prefix"
7906 prefix="$acl_save_prefix"
7908 if test "X$x" = "X-L$additional_libdir"; then
7913 if test -z "$haveit"; then
7914 if test -d "$additional_libdir"; then
7915 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7919 for x in $LDFLAGS $LTLIBICONV; do
7921 acl_save_prefix="$prefix"
7922 prefix="$acl_final_prefix"
7923 acl_save_exec_prefix="$exec_prefix"
7924 exec_prefix="$acl_final_exec_prefix"
7926 exec_prefix="$acl_save_exec_prefix"
7927 prefix="$acl_save_prefix"
7929 if test "X$x" = "X-L$additional_libdir"; then
7934 if test -z "$haveit"; then
7935 if test -d "$additional_libdir"; then
7936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7943 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7944 if test "$enable_rpath" != no; then
7946 for x in $rpathdirs; do
7947 if test "X$x" = "X$dir"; then
7952 if test -z "$haveit"; then
7953 rpathdirs="$rpathdirs $dir"
7956 for x in $ltrpathdirs; do
7957 if test "X$x" = "X$dir"; then
7962 if test -z "$haveit"; then
7963 ltrpathdirs="$ltrpathdirs $dir"
7968 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7971 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7974 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7981 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7988 if test "X$rpathdirs" != "X"; then
7989 if test -n "$hardcode_libdir_separator"; then
7991 for found_dir in $rpathdirs; do
7992 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7994 acl_save_libdir="$libdir"
7996 eval flag=\"$hardcode_libdir_flag_spec\"
7997 libdir="$acl_save_libdir"
7998 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8000 for found_dir in $rpathdirs; do
8001 acl_save_libdir="$libdir"
8003 eval flag=\"$hardcode_libdir_flag_spec\"
8004 libdir="$acl_save_libdir"
8005 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8009 if test "X$ltrpathdirs" != "X"; then
8010 for found_dir in $ltrpathdirs; do
8011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8022 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8023 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8024 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8033 $ac_includes_default
8037 if ((ptrdiff_t *) 0)
8039 if (sizeof (ptrdiff_t))
8045 rm -f conftest.$ac_objext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8047 (eval $ac_compile) 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_type_ptrdiff_t=yes
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_cv_type_ptrdiff_t=no
8073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8075 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8076 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8077 if test $ac_cv_type_ptrdiff_t = yes; then
8081 cat >>confdefs.h <<\_ACEOF
8082 #define ptrdiff_t long
8098 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8099 stdlib.h string.h unistd.h sys/param.h
8101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103 echo "$as_me:$LINENO: checking for $ac_header" >&5
8104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8111 # Is the header compilable?
8112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8114 cat >conftest.$ac_ext <<_ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 $ac_includes_default
8121 #include <$ac_header>
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>conftest.er1
8127 grep -v '^ *+' conftest.er1 >conftest.err
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_header_compiler=yes
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_header_compiler=no
8151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8153 echo "${ECHO_T}$ac_header_compiler" >&6
8155 # Is the header present?
8156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8158 cat >conftest.$ac_ext <<_ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 #include <$ac_header>
8166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8169 grep -v '^ *+' conftest.er1 >conftest.err
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } >/dev/null; then
8174 if test -s conftest.err; then
8175 ac_cpp_err=$ac_c_preproc_warn_flag
8176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8183 if test -z "$ac_cpp_err"; then
8184 ac_header_preproc=yes
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8189 ac_header_preproc=no
8191 rm -f conftest.err conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193 echo "${ECHO_T}$ac_header_preproc" >&6
8195 # So? What about this header?
8196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8202 ac_header_preproc=yes
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8219 ## ------------------------------------------ ##
8220 ## Report this to the AC_PACKAGE_NAME lists. ##
8221 ## ------------------------------------------ ##
8224 sed "s/^/$as_me: WARNING: /" >&2
8227 echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 eval "$as_ac_Header=\$ac_header_preproc"
8234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8270 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8271 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8272 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8276 echo "$as_me:$LINENO: checking for $ac_func" >&5
8277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8278 if eval "test \"\${$as_ac_var+set}\" = set"; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8289 #define $ac_func innocuous_$ac_func
8291 /* System header to define __stub macros and hopefully few prototypes,
8292 which can conflict with char $ac_func (); below.
8293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294 <limits.h> exists even on freestanding compilers. */
8297 # include <limits.h>
8299 # include <assert.h>
8304 /* Override any gcc2 internal prototype to avoid an error. */
8309 /* We use char because int might match the return type of a gcc2
8310 builtin and then its argument prototype would still apply. */
8312 /* The GNU C library defines this for functions which it implements
8313 to always fail with ENOSYS. Some functions are actually named
8314 something starting with __ and the normal name is an alias. */
8315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8318 char (*f) () = $ac_func;
8327 return f != $ac_func;
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334 (eval $ac_link) 2>conftest.er1
8336 grep -v '^ *+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 eval "$as_ac_var=yes"
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8358 eval "$as_ac_var=no"
8360 rm -f conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8365 if test `eval echo '${'$as_ac_var'}'` = yes; then
8366 cat >>confdefs.h <<_ACEOF
8367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8375 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8376 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8377 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8392 char *p = (char *) _snprintf;
8399 rm -f conftest.$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8403 grep -v '^ *+' conftest.er1 >conftest.err
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_have_decl__snprintf=yes
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 ac_cv_have_decl__snprintf=no
8427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8430 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8431 if test $ac_cv_have_decl__snprintf = yes; then
8437 cat >>confdefs.h <<_ACEOF
8438 #define HAVE_DECL__SNPRINTF $gt_value
8443 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8444 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8445 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8460 char *p = (char *) _snwprintf;
8467 rm -f conftest.$ac_objext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469 (eval $ac_compile) 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } &&
8476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_have_decl__snwprintf=yes
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_cv_have_decl__snwprintf=no
8495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8497 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8498 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8499 if test $ac_cv_have_decl__snwprintf = yes; then
8505 cat >>confdefs.h <<_ACEOF
8506 #define HAVE_DECL__SNWPRINTF $gt_value
8512 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8513 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8514 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8528 #ifndef feof_unlocked
8529 char *p = (char *) feof_unlocked;
8536 rm -f conftest.$ac_objext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>conftest.er1
8540 grep -v '^ *+' conftest.er1 >conftest.err
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_have_decl_feof_unlocked=yes
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_cv_have_decl_feof_unlocked=no
8564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8566 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8567 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8568 if test $ac_cv_have_decl_feof_unlocked = yes; then
8574 cat >>confdefs.h <<_ACEOF
8575 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8580 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8581 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8582 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 cat >conftest.$ac_ext <<_ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8596 #ifndef fgets_unlocked
8597 char *p = (char *) fgets_unlocked;
8604 rm -f conftest.$ac_objext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>conftest.er1
8608 grep -v '^ *+' conftest.er1 >conftest.err
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_have_decl_fgets_unlocked=yes
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 ac_cv_have_decl_fgets_unlocked=no
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8635 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8636 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8642 cat >>confdefs.h <<_ACEOF
8643 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8648 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8649 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8650 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 cat >conftest.$ac_ext <<_ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8664 #ifndef getc_unlocked
8665 char *p = (char *) getc_unlocked;
8672 rm -f conftest.$ac_objext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8674 (eval $ac_compile) 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest.$ac_objext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_cv_have_decl_getc_unlocked=yes
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 ac_cv_have_decl_getc_unlocked=no
8700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8703 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8704 if test $ac_cv_have_decl_getc_unlocked = yes; then
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8716 case $gt_cv_func_printf_posix in
8717 *yes) HAVE_POSIX_PRINTF=1 ;;
8718 *) HAVE_POSIX_PRINTF=0 ;;
8721 if test "$ac_cv_func_asprintf" = yes; then
8727 if test "$ac_cv_func_snprintf" = yes; then
8733 if test "$ac_cv_func_wprintf" = yes; then
8745 am_save_CPPFLAGS="$CPPFLAGS"
8747 for element in $INCICONV; do
8749 for x in $CPPFLAGS; do
8751 acl_save_prefix="$prefix"
8752 prefix="$acl_final_prefix"
8753 acl_save_exec_prefix="$exec_prefix"
8754 exec_prefix="$acl_final_exec_prefix"
8756 exec_prefix="$acl_save_exec_prefix"
8757 prefix="$acl_save_prefix"
8759 if test "X$x" = "X$element"; then
8764 if test -z "$haveit"; then
8765 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8770 echo "$as_me:$LINENO: checking for iconv" >&5
8771 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8772 if test "${am_cv_func_iconv+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 am_cv_func_iconv="no, consider installing GNU libiconv"
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8789 iconv_t cd = iconv_open("","");
8790 iconv(cd,NULL,NULL,NULL,NULL);
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798 (eval $ac_link) 2>conftest.er1
8800 grep -v '^ *+' conftest.er1 >conftest.err
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 am_cv_func_iconv=yes
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8823 rm -f conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 if test "$am_cv_func_iconv" != yes; then
8826 am_save_LIBS="$LIBS"
8827 LIBS="$LIBS $LIBICONV"
8828 cat >conftest.$ac_ext <<_ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8839 iconv_t cd = iconv_open("","");
8840 iconv(cd,NULL,NULL,NULL,NULL);
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>conftest.er1
8850 grep -v '^ *+' conftest.er1 >conftest.err
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8868 am_cv_func_iconv=yes
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8874 rm -f conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext conftest.$ac_ext
8876 LIBS="$am_save_LIBS"
8880 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8881 echo "${ECHO_T}$am_cv_func_iconv" >&6
8882 if test "$am_cv_func_iconv" = yes; then
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_ICONV 1
8889 if test "$am_cv_lib_iconv" = yes; then
8890 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8891 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8892 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8893 echo "${ECHO_T}$LIBICONV" >&6
8895 CPPFLAGS="$am_save_CPPFLAGS"
8902 if test "$am_cv_func_iconv" = yes; then
8903 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8904 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8905 if test "${am_cv_proto_iconv+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 cat >conftest.$ac_ext <<_ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8922 #if defined(__STDC__) || defined(__cplusplus)
8923 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8936 rm -f conftest.$ac_objext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>conftest.er1
8940 grep -v '^ *+' conftest.er1 >conftest.err
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 am_cv_proto_iconv_arg1=""
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 am_cv_proto_iconv_arg1="const"
8964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8965 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);"
8968 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8969 echo "$as_me:$LINENO: result: ${ac_t:-
8970 }$am_cv_proto_iconv" >&5
8971 echo "${ECHO_T}${ac_t:-
8972 }$am_cv_proto_iconv" >&6
8974 cat >>confdefs.h <<_ACEOF
8975 #define ICONV_CONST $am_cv_proto_iconv_arg1
8981 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8982 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8983 if test "${am_cv_langinfo_codeset+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 cat >conftest.$ac_ext <<_ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992 #include <langinfo.h>
8996 char* cs = nl_langinfo(CODESET);
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003 (eval $ac_link) 2>conftest.er1
9005 grep -v '^ *+' conftest.er1 >conftest.err
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try='test -s conftest$ac_exeext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 am_cv_langinfo_codeset=yes
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9027 am_cv_langinfo_codeset=no
9029 rm -f conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9034 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9035 if test $am_cv_langinfo_codeset = yes; then
9037 cat >>confdefs.h <<\_ACEOF
9038 #define HAVE_LANGINFO_CODESET 1
9043 if test $ac_cv_header_locale_h = yes; then
9045 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9046 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9047 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 cat >conftest.$ac_ext <<_ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9065 rm -f conftest.$ac_objext conftest$ac_exeext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067 (eval $ac_link) 2>conftest.er1
9069 grep -v '^ *+' conftest.er1 >conftest.err
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } &&
9074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest$ac_exeext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 am_cv_val_LC_MESSAGES=yes
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9091 am_cv_val_LC_MESSAGES=no
9093 rm -f conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9097 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9098 if test $am_cv_val_LC_MESSAGES = yes; then
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_LC_MESSAGES 1
9108 for ac_prog in bison
9110 # Extract the first word of "$ac_prog", so it can be a program name with args.
9111 set dummy $ac_prog; ac_word=$2
9112 echo "$as_me:$LINENO: checking for $ac_word" >&5
9113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9114 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 if test -n "$INTLBISON"; then
9118 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127 ac_cv_prog_INTLBISON="$ac_prog"
9128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 INTLBISON=$ac_cv_prog_INTLBISON
9137 if test -n "$INTLBISON"; then
9138 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9139 echo "${ECHO_T}$INTLBISON" >&6
9141 echo "$as_me:$LINENO: result: no" >&5
9142 echo "${ECHO_T}no" >&6
9145 test -n "$INTLBISON" && break
9148 if test -z "$INTLBISON"; then
9151 echo "$as_me:$LINENO: checking version of bison" >&5
9152 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9153 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9154 case $ac_prog_version in
9155 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9156 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9157 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9158 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9160 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9161 echo "${ECHO_T}$ac_prog_version" >&6
9163 if test $ac_verc_fail = yes; then
9182 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9183 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9184 # Check whether --enable-nls or --disable-nls was given.
9185 if test "${enable_nls+set}" = set; then
9186 enableval="$enable_nls"
9191 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9192 echo "${ECHO_T}$USE_NLS" >&6
9197 BUILD_INCLUDED_LIBINTL=no
9198 USE_INCLUDED_LIBINTL=no
9204 if test "$USE_NLS" = "yes"; then
9205 gt_use_preinstalled_gnugettext=no
9207 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9208 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9210 # Check whether --with-included-gettext or --without-included-gettext was given.
9211 if test "${with_included_gettext+set}" = set; then
9212 withval="$with_included_gettext"
9213 nls_cv_force_use_gnu_gettext=$withval
9215 nls_cv_force_use_gnu_gettext=no
9217 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9218 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9220 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9221 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9228 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9229 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9230 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 cat >conftest.$ac_ext <<_ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239 #include <libintl.h>
9240 extern int _nl_msg_cat_cntr;
9241 extern int *_nl_domain_bindings;
9245 bindtextdomain ("", "");
9246 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>conftest.er1
9255 grep -v '^ *+' conftest.er1 >conftest.err
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 gt_cv_func_gnugettext1_libc=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 gt_cv_func_gnugettext1_libc=no
9279 rm -f conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9282 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9283 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9285 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9291 acl_save_prefix="$prefix"
9292 prefix="$acl_final_prefix"
9293 acl_save_exec_prefix="$exec_prefix"
9294 exec_prefix="$acl_final_exec_prefix"
9296 eval additional_includedir=\"$includedir\"
9297 eval additional_libdir=\"$libdir\"
9299 exec_prefix="$acl_save_exec_prefix"
9300 prefix="$acl_save_prefix"
9303 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9304 if test "${with_libintl_prefix+set}" = set; then
9305 withval="$with_libintl_prefix"
9307 if test "X$withval" = "Xno"; then
9310 if test "X$withval" = "X"; then
9312 acl_save_prefix="$prefix"
9313 prefix="$acl_final_prefix"
9314 acl_save_exec_prefix="$exec_prefix"
9315 exec_prefix="$acl_final_exec_prefix"
9317 eval additional_includedir=\"$includedir\"
9318 eval additional_libdir=\"$libdir\"
9320 exec_prefix="$acl_save_exec_prefix"
9321 prefix="$acl_save_prefix"
9324 additional_includedir="$withval/include"
9325 additional_libdir="$withval/lib"
9335 names_already_handled=
9336 names_next_round='intl '
9337 while test -n "$names_next_round"; do
9338 names_this_round="$names_next_round"
9340 for name in $names_this_round; do
9342 for n in $names_already_handled; do
9343 if test "$n" = "$name"; then
9348 if test -z "$already_handled"; then
9349 names_already_handled="$names_already_handled $name"
9350 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9351 eval value=\"\$HAVE_LIB$uppername\"
9352 if test -n "$value"; then
9353 if test "$value" = yes; then
9354 eval value=\"\$LIB$uppername\"
9355 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9356 eval value=\"\$LTLIB$uppername\"
9357 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9366 if test $use_additional = yes; then
9367 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9368 found_dir="$additional_libdir"
9369 found_so="$additional_libdir/lib$name.$shlibext"
9370 if test -f "$additional_libdir/lib$name.la"; then
9371 found_la="$additional_libdir/lib$name.la"
9374 if test -f "$additional_libdir/lib$name.$libext"; then
9375 found_dir="$additional_libdir"
9376 found_a="$additional_libdir/lib$name.$libext"
9377 if test -f "$additional_libdir/lib$name.la"; then
9378 found_la="$additional_libdir/lib$name.la"
9383 if test "X$found_dir" = "X"; then
9384 for x in $LDFLAGS $LTLIBINTL; do
9386 acl_save_prefix="$prefix"
9387 prefix="$acl_final_prefix"
9388 acl_save_exec_prefix="$exec_prefix"
9389 exec_prefix="$acl_final_exec_prefix"
9391 exec_prefix="$acl_save_exec_prefix"
9392 prefix="$acl_save_prefix"
9396 dir=`echo "X$x" | sed -e 's/^X-L//'`
9397 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9399 found_so="$dir/lib$name.$shlibext"
9400 if test -f "$dir/lib$name.la"; then
9401 found_la="$dir/lib$name.la"
9404 if test -f "$dir/lib$name.$libext"; then
9406 found_a="$dir/lib$name.$libext"
9407 if test -f "$dir/lib$name.la"; then
9408 found_la="$dir/lib$name.la"
9414 if test "X$found_dir" != "X"; then
9419 if test "X$found_dir" != "X"; then
9420 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9421 if test "X$found_so" != "X"; then
9422 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9426 for x in $ltrpathdirs; do
9427 if test "X$x" = "X$found_dir"; then
9432 if test -z "$haveit"; then
9433 ltrpathdirs="$ltrpathdirs $found_dir"
9435 if test "$hardcode_direct" = yes; then
9436 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9438 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9439 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9441 for x in $rpathdirs; do
9442 if test "X$x" = "X$found_dir"; then
9447 if test -z "$haveit"; then
9448 rpathdirs="$rpathdirs $found_dir"
9452 for x in $LDFLAGS $LIBINTL; do
9454 acl_save_prefix="$prefix"
9455 prefix="$acl_final_prefix"
9456 acl_save_exec_prefix="$exec_prefix"
9457 exec_prefix="$acl_final_exec_prefix"
9459 exec_prefix="$acl_save_exec_prefix"
9460 prefix="$acl_save_prefix"
9462 if test "X$x" = "X-L$found_dir"; then
9467 if test -z "$haveit"; then
9468 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9470 if test "$hardcode_minus_L" != no; then
9471 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9473 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9479 if test "X$found_a" != "X"; then
9480 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9482 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9485 additional_includedir=
9486 case "$found_dir" in
9488 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9489 additional_includedir="$basedir/include"
9492 if test "X$additional_includedir" != "X"; then
9493 if test "X$additional_includedir" != "X/usr/include"; then
9495 if test "X$additional_includedir" = "X/usr/local/include"; then
9496 if test -n "$GCC"; then
9498 linux*) haveit=yes;;
9502 if test -z "$haveit"; then
9503 for x in $CPPFLAGS $INCINTL; do
9505 acl_save_prefix="$prefix"
9506 prefix="$acl_final_prefix"
9507 acl_save_exec_prefix="$exec_prefix"
9508 exec_prefix="$acl_final_exec_prefix"
9510 exec_prefix="$acl_save_exec_prefix"
9511 prefix="$acl_save_prefix"
9513 if test "X$x" = "X-I$additional_includedir"; then
9518 if test -z "$haveit"; then
9519 if test -d "$additional_includedir"; then
9520 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9526 if test -n "$found_la"; then
9527 save_libdir="$libdir"
9529 */* | *\\*) . "$found_la" ;;
9530 *) . "./$found_la" ;;
9532 libdir="$save_libdir"
9533 for dep in $dependency_libs; do
9536 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9537 if test "X$additional_libdir" != "X/usr/lib"; then
9539 if test "X$additional_libdir" = "X/usr/local/lib"; then
9540 if test -n "$GCC"; then
9542 linux*) haveit=yes;;
9546 if test -z "$haveit"; then
9548 for x in $LDFLAGS $LIBINTL; do
9550 acl_save_prefix="$prefix"
9551 prefix="$acl_final_prefix"
9552 acl_save_exec_prefix="$exec_prefix"
9553 exec_prefix="$acl_final_exec_prefix"
9555 exec_prefix="$acl_save_exec_prefix"
9556 prefix="$acl_save_prefix"
9558 if test "X$x" = "X-L$additional_libdir"; then
9563 if test -z "$haveit"; then
9564 if test -d "$additional_libdir"; then
9565 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9569 for x in $LDFLAGS $LTLIBINTL; do
9571 acl_save_prefix="$prefix"
9572 prefix="$acl_final_prefix"
9573 acl_save_exec_prefix="$exec_prefix"
9574 exec_prefix="$acl_final_exec_prefix"
9576 exec_prefix="$acl_save_exec_prefix"
9577 prefix="$acl_save_prefix"
9579 if test "X$x" = "X-L$additional_libdir"; then
9584 if test -z "$haveit"; then
9585 if test -d "$additional_libdir"; then
9586 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9593 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9594 if test "$enable_rpath" != no; then
9596 for x in $rpathdirs; do
9597 if test "X$x" = "X$dir"; then
9602 if test -z "$haveit"; then
9603 rpathdirs="$rpathdirs $dir"
9606 for x in $ltrpathdirs; do
9607 if test "X$x" = "X$dir"; then
9612 if test -z "$haveit"; then
9613 ltrpathdirs="$ltrpathdirs $dir"
9618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9621 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9624 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9625 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9631 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9632 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9638 if test "X$rpathdirs" != "X"; then
9639 if test -n "$hardcode_libdir_separator"; then
9641 for found_dir in $rpathdirs; do
9642 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9644 acl_save_libdir="$libdir"
9646 eval flag=\"$hardcode_libdir_flag_spec\"
9647 libdir="$acl_save_libdir"
9648 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9650 for found_dir in $rpathdirs; do
9651 acl_save_libdir="$libdir"
9653 eval flag=\"$hardcode_libdir_flag_spec\"
9654 libdir="$acl_save_libdir"
9655 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9659 if test "X$ltrpathdirs" != "X"; then
9660 for found_dir in $ltrpathdirs; do
9661 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9665 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9666 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9667 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 gt_save_CPPFLAGS="$CPPFLAGS"
9671 CPPFLAGS="$CPPFLAGS $INCINTL"
9672 gt_save_LIBS="$LIBS"
9673 LIBS="$LIBS $LIBINTL"
9674 cat >conftest.$ac_ext <<_ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 #include <libintl.h>
9681 extern int _nl_msg_cat_cntr;
9686 const char *_nl_expand_alias ();
9690 bindtextdomain ("", "");
9691 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>conftest.er1
9700 grep -v '^ *+' conftest.er1 >conftest.err
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 gt_cv_func_gnugettext1_libintl=yes
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 gt_cv_func_gnugettext1_libintl=no
9724 rm -f conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9727 LIBS="$LIBS $LIBICONV"
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 #include <libintl.h>
9735 extern int _nl_msg_cat_cntr;
9740 const char *_nl_expand_alias ();
9744 bindtextdomain ("", "");
9745 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>conftest.er1
9754 grep -v '^ *+' conftest.er1 >conftest.err
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; } &&
9765 { ac_try='test -s conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 LIBINTL="$LIBINTL $LIBICONV"
9772 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9773 gt_cv_func_gnugettext1_libintl=yes
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9780 rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9783 CPPFLAGS="$gt_save_CPPFLAGS"
9784 LIBS="$gt_save_LIBS"
9786 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9787 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9790 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9791 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9792 && test "$PACKAGE" != gettext-runtime \
9793 && test "$PACKAGE" != gettext-tools; }; then
9794 gt_use_preinstalled_gnugettext=yes
9802 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9803 nls_cv_use_gnu_gettext=yes
9807 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9808 BUILD_INCLUDED_LIBINTL=yes
9809 USE_INCLUDED_LIBINTL=yes
9810 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9811 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9812 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9815 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9816 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9821 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9822 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9824 cat >>confdefs.h <<\_ACEOF
9825 #define ENABLE_NLS 1
9833 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9834 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9835 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9836 echo "${ECHO_T}$USE_NLS" >&6
9837 if test "$USE_NLS" = "yes"; then
9838 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9839 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9840 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9841 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9842 gt_source="external libintl"
9847 gt_source="included intl directory"
9849 echo "$as_me:$LINENO: result: $gt_source" >&5
9850 echo "${ECHO_T}$gt_source" >&6
9853 if test "$USE_NLS" = "yes"; then
9855 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9856 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9857 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9858 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9859 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9860 echo "${ECHO_T}$LIBINTL" >&6
9862 for element in $INCINTL; do
9864 for x in $CPPFLAGS; do
9866 acl_save_prefix="$prefix"
9867 prefix="$acl_final_prefix"
9868 acl_save_exec_prefix="$exec_prefix"
9869 exec_prefix="$acl_final_exec_prefix"
9871 exec_prefix="$acl_save_exec_prefix"
9872 prefix="$acl_save_prefix"
9874 if test "X$x" = "X$element"; then
9879 if test -z "$haveit"; then
9880 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9887 cat >>confdefs.h <<\_ACEOF
9888 #define HAVE_GETTEXT 1
9892 cat >>confdefs.h <<\_ACEOF
9893 #define HAVE_DCGETTEXT 1
9902 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9903 BUILD_INCLUDED_LIBINTL=yes
9911 nls_cv_header_libgt=
9922 if test "$USE_INCLUDED_LIBINTL" = yes; then
9923 INTLOBJS="\$(GETTOBJS)"
9927 INTL_LIBTOOL_SUFFIX_PREFIX=
9939 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9940 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9941 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9942 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 cat >conftest.make <<\_ACEOF
9947 @echo 'ac_maketemp="$(MAKE)"'
9949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9950 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9951 if test -n "$ac_maketemp"; then
9952 eval ac_cv_prog_make_${ac_make}_set=yes
9954 eval ac_cv_prog_make_${ac_make}_set=no
9958 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9959 echo "$as_me:$LINENO: result: yes" >&5
9960 echo "${ECHO_T}yes" >&6
9963 echo "$as_me:$LINENO: result: no" >&5
9964 echo "${ECHO_T}no" >&6
9965 SET_MAKE="MAKE=${MAKE-make}"
9968 # Extract the first word of "ln", so it can be a program name with args.
9969 set dummy ln; ac_word=$2
9970 echo "$as_me:$LINENO: checking for $ac_word" >&5
9971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9972 if test "${ac_cv_path_LN+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10000 if test -n "$LN"; then
10001 echo "$as_me:$LINENO: result: $LN" >&5
10002 echo "${ECHO_T}$LN" >&6
10004 echo "$as_me:$LINENO: result: no" >&5
10005 echo "${ECHO_T}no" >&6
10008 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10009 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10011 if test "$LN_S" = "ln -s"; then
10012 echo "$as_me:$LINENO: result: yes" >&5
10013 echo "${ECHO_T}yes" >&6
10015 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10016 echo "${ECHO_T}no, using $LN_S" >&6
10019 # Extract the first word of "mv", so it can be a program name with args.
10020 set dummy mv; ac_word=$2
10021 echo "$as_me:$LINENO: checking for $ac_word" >&5
10022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10023 if test "${ac_cv_path_MV+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10038 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10045 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10051 if test -n "$MV"; then
10052 echo "$as_me:$LINENO: result: $MV" >&5
10053 echo "${ECHO_T}$MV" >&6
10055 echo "$as_me:$LINENO: result: no" >&5
10056 echo "${ECHO_T}no" >&6
10059 # Extract the first word of "cp", so it can be a program name with args.
10060 set dummy cp; ac_word=$2
10061 echo "$as_me:$LINENO: checking for $ac_word" >&5
10062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10063 if test "${ac_cv_path_CP+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10075 test -z "$as_dir" && as_dir=.
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10078 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10091 if test -n "$CP"; then
10092 echo "$as_me:$LINENO: result: $CP" >&5
10093 echo "${ECHO_T}$CP" >&6
10095 echo "$as_me:$LINENO: result: no" >&5
10096 echo "${ECHO_T}no" >&6
10099 # Extract the first word of "rm", so it can be a program name with args.
10100 set dummy rm; ac_word=$2
10101 echo "$as_me:$LINENO: checking for $ac_word" >&5
10102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10103 if test "${ac_cv_path_RM+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10125 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10131 if test -n "$RM"; then
10132 echo "$as_me:$LINENO: result: $RM" >&5
10133 echo "${ECHO_T}$RM" >&6
10135 echo "$as_me:$LINENO: result: no" >&5
10136 echo "${ECHO_T}no" >&6
10139 # Extract the first word of "chmod", so it can be a program name with args.
10140 set dummy chmod; ac_word=$2
10141 echo "$as_me:$LINENO: checking for $ac_word" >&5
10142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10143 if test "${ac_cv_path_CHMOD+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10169 CHMOD=$ac_cv_path_CHMOD
10171 if test -n "$CHMOD"; then
10172 echo "$as_me:$LINENO: result: $CHMOD" >&5
10173 echo "${ECHO_T}$CHMOD" >&6
10175 echo "$as_me:$LINENO: result: no" >&5
10176 echo "${ECHO_T}no" >&6
10179 for ac_prog in gawk mawk nawk awk
10181 # Extract the first word of "$ac_prog", so it can be a program name with args.
10182 set dummy $ac_prog; ac_word=$2
10183 echo "$as_me:$LINENO: checking for $ac_word" >&5
10184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10185 if test "${ac_cv_prog_AWK+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 if test -n "$AWK"; then
10189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192 for as_dir in $PATH
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10198 ac_cv_prog_AWK="$ac_prog"
10199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 AWK=$ac_cv_prog_AWK
10208 if test -n "$AWK"; then
10209 echo "$as_me:$LINENO: result: $AWK" >&5
10210 echo "${ECHO_T}$AWK" >&6
10212 echo "$as_me:$LINENO: result: no" >&5
10213 echo "${ECHO_T}no" >&6
10216 test -n "$AWK" && break
10219 echo "$as_me:$LINENO: checking for egrep" >&5
10220 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10221 if test "${ac_cv_prog_egrep+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10225 then ac_cv_prog_egrep='grep -E'
10226 else ac_cv_prog_egrep='egrep'
10229 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10230 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10231 EGREP=$ac_cv_prog_egrep
10234 # Extract the first word of "sed", so it can be a program name with args.
10235 set dummy sed; ac_word=$2
10236 echo "$as_me:$LINENO: checking for $ac_word" >&5
10237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10238 if test "${ac_cv_path_SED+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247 for as_dir in $PATH
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10253 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10260 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10264 SED=$ac_cv_path_SED
10266 if test -n "$SED"; then
10267 echo "$as_me:$LINENO: result: $SED" >&5
10268 echo "${ECHO_T}$SED" >&6
10270 echo "$as_me:$LINENO: result: no" >&5
10271 echo "${ECHO_T}no" >&6
10274 # Extract the first word of "perl", so it can be a program name with args.
10275 set dummy perl; ac_word=$2
10276 echo "$as_me:$LINENO: checking for $ac_word" >&5
10277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10278 if test "${ac_cv_path_PERL+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10293 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10304 PERL=$ac_cv_path_PERL
10306 if test -n "$PERL"; then
10307 echo "$as_me:$LINENO: result: $PERL" >&5
10308 echo "${ECHO_T}$PERL" >&6
10310 echo "$as_me:$LINENO: result: no" >&5
10311 echo "${ECHO_T}no" >&6
10314 # Extract the first word of "ldconfig", so it can be a program name with args.
10315 set dummy ldconfig; ac_word=$2
10316 echo "$as_me:$LINENO: checking for $ac_word" >&5
10317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10318 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327 for as_dir in $PATH
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10333 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10344 LDCONFIG=$ac_cv_path_LDCONFIG
10346 if test -n "$LDCONFIG"; then
10347 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10348 echo "${ECHO_T}$LDCONFIG" >&6
10350 echo "$as_me:$LINENO: result: no" >&5
10351 echo "${ECHO_T}no" >&6
10354 if test -n "$ac_tool_prefix"; then
10355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10356 set dummy ${ac_tool_prefix}ar; ac_word=$2
10357 echo "$as_me:$LINENO: checking for $ac_word" >&5
10358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359 if test "${ac_cv_prog_AR+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 if test -n "$AR"; then
10363 ac_cv_prog_AR="$AR" # Let the user override the test.
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_AR="${ac_tool_prefix}ar"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 if test -n "$AR"; then
10383 echo "$as_me:$LINENO: result: $AR" >&5
10384 echo "${ECHO_T}$AR" >&6
10386 echo "$as_me:$LINENO: result: no" >&5
10387 echo "${ECHO_T}no" >&6
10391 if test -z "$ac_cv_prog_AR"; then
10393 # Extract the first word of "ar", so it can be a program name with args.
10394 set dummy ar; ac_word=$2
10395 echo "$as_me:$LINENO: checking for $ac_word" >&5
10396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10397 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 if test -n "$ac_ct_AR"; then
10401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410 ac_cv_prog_ac_ct_AR="ar"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
10420 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10421 if test -n "$ac_ct_AR"; then
10422 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10423 echo "${ECHO_T}$ac_ct_AR" >&6
10425 echo "$as_me:$LINENO: result: no" >&5
10426 echo "${ECHO_T}no" >&6
10431 AR="$ac_cv_prog_AR"
10434 if test -n "$ac_tool_prefix"; then
10435 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10436 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10437 echo "$as_me:$LINENO: checking for $ac_word" >&5
10438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439 if test "${ac_cv_prog_RANLIB+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 if test -n "$RANLIB"; then
10443 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446 for as_dir in $PATH
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10461 RANLIB=$ac_cv_prog_RANLIB
10462 if test -n "$RANLIB"; then
10463 echo "$as_me:$LINENO: result: $RANLIB" >&5
10464 echo "${ECHO_T}$RANLIB" >&6
10466 echo "$as_me:$LINENO: result: no" >&5
10467 echo "${ECHO_T}no" >&6
10471 if test -z "$ac_cv_prog_RANLIB"; then
10472 ac_ct_RANLIB=$RANLIB
10473 # Extract the first word of "ranlib", so it can be a program name with args.
10474 set dummy ranlib; ac_word=$2
10475 echo "$as_me:$LINENO: checking for $ac_word" >&5
10476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10477 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 if test -n "$ac_ct_RANLIB"; then
10481 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_prog_ac_ct_RANLIB="ranlib"
10491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10500 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10501 if test -n "$ac_ct_RANLIB"; then
10502 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10503 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10505 echo "$as_me:$LINENO: result: no" >&5
10506 echo "${ECHO_T}no" >&6
10509 RANLIB=$ac_ct_RANLIB
10511 RANLIB="$ac_cv_prog_RANLIB"
10514 if test -n "$ac_tool_prefix"; then
10515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10516 set dummy ${ac_tool_prefix}strip; ac_word=$2
10517 echo "$as_me:$LINENO: checking for $ac_word" >&5
10518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10519 if test "${ac_cv_prog_STRIP+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10522 if test -n "$STRIP"; then
10523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526 for as_dir in $PATH
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 STRIP=$ac_cv_prog_STRIP
10542 if test -n "$STRIP"; then
10543 echo "$as_me:$LINENO: result: $STRIP" >&5
10544 echo "${ECHO_T}$STRIP" >&6
10546 echo "$as_me:$LINENO: result: no" >&5
10547 echo "${ECHO_T}no" >&6
10551 if test -z "$ac_cv_prog_STRIP"; then
10553 # Extract the first word of "strip", so it can be a program name with args.
10554 set dummy strip; ac_word=$2
10555 echo "$as_me:$LINENO: checking for $ac_word" >&5
10556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10557 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 if test -n "$ac_ct_STRIP"; then
10561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570 ac_cv_prog_ac_ct_STRIP="strip"
10571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10581 if test -n "$ac_ct_STRIP"; then
10582 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10583 echo "${ECHO_T}$ac_ct_STRIP" >&6
10585 echo "$as_me:$LINENO: result: no" >&5
10586 echo "${ECHO_T}no" >&6
10591 STRIP="$ac_cv_prog_STRIP"
10594 # Find a good install program. We prefer a C program (faster),
10595 # so one script is as good as another. But avoid the broken or
10596 # incompatible versions:
10597 # SysV /etc/install, /usr/sbin/install
10598 # SunOS /usr/etc/install
10599 # IRIX /sbin/install
10601 # AmigaOS /C/install, which installs bootblocks on floppy discs
10602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10605 # OS/2's system install, which has a completely different semantic
10606 # ./install, which can be erroneously created by make from ./install.sh.
10607 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10608 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10609 if test -z "$INSTALL"; then
10610 if test "${ac_cv_path_install+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $PATH
10617 test -z "$as_dir" && as_dir=.
10618 # Account for people who put trailing slashes in PATH elements.
10620 ./ | .// | /cC/* | \
10621 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10622 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10625 # OSF1 and SCO ODT 3.0 have their own names for install.
10626 # Don't use installbsd from OSF since it installs stuff as root
10628 for ac_prog in ginstall scoinst install; do
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10631 if test $ac_prog = install &&
10632 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10633 # AIX install. It has an incompatible calling convention.
10635 elif test $ac_prog = install &&
10636 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10637 # program-specific install script used by HP pwplus--don't use.
10640 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10652 if test "${ac_cv_path_install+set}" = set; then
10653 INSTALL=$ac_cv_path_install
10655 # As a last resort, use the slow shell script. We don't cache a
10656 # path for INSTALL within a source directory, because that will
10657 # break other packages using the cache if that directory is
10658 # removed, or if the path is relative.
10659 INSTALL=$ac_install_sh
10662 echo "$as_me:$LINENO: result: $INSTALL" >&5
10663 echo "${ECHO_T}$INSTALL" >&6
10665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10666 # It thinks the first close brace ends the variable substitution.
10667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10671 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10673 # See if we need a separate native compiler.
10674 if test $cross_compiling = no; then
10678 for ac_prog in gcc cc
10680 # Extract the first word of "$ac_prog", so it can be a program name with args.
10681 set dummy $ac_prog; ac_word=$2
10682 echo "$as_me:$LINENO: checking for $ac_word" >&5
10683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10684 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 if test -n "$BUILD_CC"; then
10688 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691 for as_dir in $PATH
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697 ac_cv_prog_BUILD_CC="$ac_prog"
10698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10706 BUILD_CC=$ac_cv_prog_BUILD_CC
10707 if test -n "$BUILD_CC"; then
10708 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10709 echo "${ECHO_T}$BUILD_CC" >&6
10711 echo "$as_me:$LINENO: result: no" >&5
10712 echo "${ECHO_T}no" >&6
10715 test -n "$BUILD_CC" && break
10749 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
10751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10753 echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10761 # Is the header compilable?
10762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10770 $ac_includes_default
10771 #include <$ac_header>
10773 rm -f conftest.$ac_objext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10775 (eval $ac_compile) 2>conftest.er1
10777 grep -v '^ *+' conftest.er1 >conftest.err
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_header_compiler=yes
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_header_compiler=no
10801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10803 echo "${ECHO_T}$ac_header_compiler" >&6
10805 # Is the header present?
10806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10808 cat >conftest.$ac_ext <<_ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <$ac_header>
10816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10819 grep -v '^ *+' conftest.er1 >conftest.err
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } >/dev/null; then
10824 if test -s conftest.err; then
10825 ac_cpp_err=$ac_c_preproc_warn_flag
10826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10833 if test -z "$ac_cpp_err"; then
10834 ac_header_preproc=yes
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_header_preproc=no
10841 rm -f conftest.err conftest.$ac_ext
10842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843 echo "${ECHO_T}$ac_header_preproc" >&6
10845 # So? What about this header?
10846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10852 ac_header_preproc=yes
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10869 ## ------------------------------------------ ##
10870 ## Report this to the AC_PACKAGE_NAME lists. ##
10871 ## ------------------------------------------ ##
10874 sed "s/^/$as_me: WARNING: /" >&2
10877 echo "$as_me:$LINENO: checking for $ac_header" >&5
10878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 eval "$as_ac_Header=\$ac_header_preproc"
10884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10889 cat >>confdefs.h <<_ACEOF
10890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10899 for ac_header in sys/disk.h sys/mount.h
10901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10902 echo "$as_me:$LINENO: checking for $ac_header" >&5
10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10914 #if HAVE_SYS_QUEUE_H
10915 #include <sys/queue.h>
10919 #include <$ac_header>
10921 rm -f conftest.$ac_objext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; } &&
10936 { ac_try='test -s conftest.$ac_objext'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 eval "$as_ac_Header=yes"
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 eval "$as_ac_Header=no"
10949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10954 cat >>confdefs.h <<_ACEOF
10955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10963 for ac_header in net/if.h
10965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10966 echo "$as_me:$LINENO: checking for $ac_header" >&5
10967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 cat >conftest.$ac_ext <<_ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10978 #if HAVE_SYS_TYPES_H
10979 #include <sys/types.h>
10981 #if HAVE_SYS_SOCKET
10982 #include <sys/socket.h>
10986 #include <$ac_header>
10988 rm -f conftest.$ac_objext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10990 (eval $ac_compile) 2>conftest.er1
10992 grep -v '^ *+' conftest.er1 >conftest.err
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; } &&
11003 { ac_try='test -s conftest.$ac_objext'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 eval "$as_ac_Header=yes"
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 eval "$as_ac_Header=no"
11016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11021 cat >>confdefs.h <<_ACEOF
11022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11030 for ac_func in vprintf
11032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11033 echo "$as_me:$LINENO: checking for $ac_func" >&5
11034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11035 if eval "test \"\${$as_ac_var+set}\" = set"; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 cat >conftest.$ac_ext <<_ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11046 #define $ac_func innocuous_$ac_func
11048 /* System header to define __stub macros and hopefully few prototypes,
11049 which can conflict with char $ac_func (); below.
11050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11051 <limits.h> exists even on freestanding compilers. */
11054 # include <limits.h>
11056 # include <assert.h>
11061 /* Override any gcc2 internal prototype to avoid an error. */
11066 /* We use char because int might match the return type of a gcc2
11067 builtin and then its argument prototype would still apply. */
11069 /* The GNU C library defines this for functions which it implements
11070 to always fail with ENOSYS. Some functions are actually named
11071 something starting with __ and the normal name is an alias. */
11072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11075 char (*f) () = $ac_func;
11084 return f != $ac_func;
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11091 (eval $ac_link) 2>conftest.er1
11093 grep -v '^ *+' conftest.er1 >conftest.err
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest$ac_exeext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 eval "$as_ac_var=yes"
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 eval "$as_ac_var=no"
11117 rm -f conftest.err conftest.$ac_objext \
11118 conftest$ac_exeext conftest.$ac_ext
11120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11122 if test `eval echo '${'$as_ac_var'}'` = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11127 echo "$as_me:$LINENO: checking for _doprnt" >&5
11128 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11129 if test "${ac_cv_func__doprnt+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11140 #define _doprnt innocuous__doprnt
11142 /* System header to define __stub macros and hopefully few prototypes,
11143 which can conflict with char _doprnt (); below.
11144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11145 <limits.h> exists even on freestanding compilers. */
11148 # include <limits.h>
11150 # include <assert.h>
11155 /* Override any gcc2 internal prototype to avoid an error. */
11160 /* We use char because int might match the return type of a gcc2
11161 builtin and then its argument prototype would still apply. */
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11169 char (*f) () = _doprnt;
11178 return f != _doprnt;
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>conftest.er1
11187 grep -v '^ *+' conftest.er1 >conftest.err
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; } &&
11198 { ac_try='test -s conftest$ac_exeext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 ac_cv_func__doprnt=yes
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11209 ac_cv_func__doprnt=no
11211 rm -f conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11214 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11215 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11216 if test $ac_cv_func__doprnt = yes; then
11218 cat >>confdefs.h <<\_ACEOF
11219 #define HAVE_DOPRNT 1
11228 echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11229 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6
11230 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 cat >conftest.$ac_ext <<_ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 #include <dirent.h>
11244 static struct dirent ac_aggr;
11245 if (ac_aggr.d_reclen)
11251 rm -f conftest.$ac_objext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11253 (eval $ac_compile) 2>conftest.er1
11255 grep -v '^ *+' conftest.er1 >conftest.err
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest.$ac_objext'
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; }; then
11272 ac_cv_member_struct_dirent_d_reclen=yes
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 cat >conftest.$ac_ext <<_ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 #include <dirent.h>
11288 static struct dirent ac_aggr;
11289 if (sizeof ac_aggr.d_reclen)
11295 rm -f conftest.$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; } &&
11310 { ac_try='test -s conftest.$ac_objext'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 ac_cv_member_struct_dirent_d_reclen=yes
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 ac_cv_member_struct_dirent_d_reclen=no
11323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11327 echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11328 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6
11329 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11330 cat >>confdefs.h <<\_ACEOF
11331 #define HAVE_RECLEN_DIRENT 1
11336 echo "$as_me:$LINENO: checking for ssize_t" >&5
11337 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11338 if test "${ac_cv_type_ssize_t+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 #include <sys/types.h>
11354 if (sizeof (ssize_t))
11360 rm -f conftest.$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11364 grep -v '^ *+' conftest.er1 >conftest.err
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_type_ssize_t=yes
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 ac_cv_type_ssize_t=no
11388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11391 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11392 if test $ac_cv_type_ssize_t = yes; then
11393 cat >>confdefs.h <<\_ACEOF
11394 #define HAVE_TYPE_SSIZE_T 1
11399 echo "$as_me:$LINENO: checking whether llseek is declared" >&5
11400 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6
11401 if test "${ac_cv_have_decl_llseek+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 cat >conftest.$ac_ext <<_ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 #include <unistd.h>
11416 char *p = (char *) llseek;
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_cv_have_decl_llseek=yes
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 ac_cv_have_decl_llseek=no
11451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11453 echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
11454 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6
11455 if test $ac_cv_have_decl_llseek = yes; then
11456 cat >>confdefs.h <<\_ACEOF
11457 #define HAVE_LLSEEK_PROTOTYPE 1
11462 echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
11463 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6
11464 if test "${ac_cv_have_decl_lseek64+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 cat >conftest.$ac_ext <<_ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 #define _LARGEFILE_SOURCE
11474 #define _LARGEFILE64_SOURCE
11475 #include <unistd.h>
11481 char *p = (char *) lseek64;
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 ac_cv_have_decl_lseek64=yes
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 ac_cv_have_decl_lseek64=no
11516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11518 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
11519 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6
11520 if test $ac_cv_have_decl_lseek64 = yes; then
11521 cat >>confdefs.h <<\_ACEOF
11522 #define HAVE_LSEEK64_PROTOTYPE 1
11527 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
11528 # if cross-compiling, with no cached values, just assume something common.
11529 ac_cv_sizeof_short=2
11531 ac_cv_sizeof_long=4
11532 ac_cv_sizeof_long_long=8
11533 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11534 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
11536 echo "$as_me:$LINENO: checking for short" >&5
11537 echo $ECHO_N "checking for short... $ECHO_C" >&6
11538 if test "${ac_cv_type_short+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 $ac_includes_default
11553 if (sizeof (short))
11559 rm -f conftest.$ac_objext
11560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11561 (eval $ac_compile) 2>conftest.er1
11563 grep -v '^ *+' conftest.er1 >conftest.err
11565 cat conftest.err >&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_type_short=yes
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 ac_cv_type_short=no
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11589 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11590 echo "${ECHO_T}$ac_cv_type_short" >&6
11592 echo "$as_me:$LINENO: checking size of short" >&5
11593 echo $ECHO_N "checking size of short... $ECHO_C" >&6
11594 if test "${ac_cv_sizeof_short+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 if test "$ac_cv_type_short" = yes; then
11598 # The cast to unsigned long works around a bug in the HP C Compiler
11599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11601 # This bug is HP SR number 8606223364.
11602 if test "$cross_compiling" = yes; then
11603 # Depending upon the size, compute the lo and hi bounds.
11604 cat >conftest.$ac_ext <<_ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 $ac_includes_default
11614 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest.$ac_objext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11644 cat >conftest.$ac_ext <<_ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 $ac_includes_default
11654 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11661 rm -f conftest.$ac_objext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663 (eval $ac_compile) 2>conftest.er1
11665 grep -v '^ *+' conftest.er1 >conftest.err
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
11670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_hi=$ac_mid; break
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 ac_lo=`expr $ac_mid + 1`
11688 if test $ac_lo -le $ac_mid; then
11692 ac_mid=`expr 2 '*' $ac_mid + 1`
11694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 cat >conftest.$ac_ext <<_ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11706 $ac_includes_default
11710 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11717 rm -f conftest.$ac_objext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719 (eval $ac_compile) 2>conftest.er1
11721 grep -v '^ *+' conftest.er1 >conftest.err
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 $ac_includes_default
11750 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11757 rm -f conftest.$ac_objext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11759 (eval $ac_compile) 2>conftest.er1
11761 grep -v '^ *+' conftest.er1 >conftest.err
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest.$ac_objext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_lo=$ac_mid; break
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_hi=`expr '(' $ac_mid ')' - 1`
11784 if test $ac_mid -le $ac_hi; then
11788 ac_mid=`expr 2 '*' $ac_mid`
11790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11801 # Binary search between lo and hi bounds.
11802 while test "x$ac_lo" != "x$ac_hi"; do
11803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 $ac_includes_default
11814 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11821 rm -f conftest.$ac_objext
11822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823 (eval $ac_compile) 2>conftest.er1
11825 grep -v '^ *+' conftest.er1 >conftest.err
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; } &&
11836 { ac_try='test -s conftest.$ac_objext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11847 ac_lo=`expr '(' $ac_mid ')' + 1`
11849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11852 ?*) ac_cv_sizeof_short=$ac_lo;;
11853 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11854 See \`config.log' for more details." >&5
11855 echo "$as_me: error: cannot compute sizeof (short), 77
11856 See \`config.log' for more details." >&2;}
11857 { (exit 1); exit 1; }; } ;;
11860 if test "$cross_compiling" = yes; then
11861 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11862 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11863 { (exit 1); exit 1; }; }
11865 cat >conftest.$ac_ext <<_ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 $ac_includes_default
11872 long longval () { return (long) (sizeof (short)); }
11873 unsigned long ulongval () { return (long) (sizeof (short)); }
11875 #include <stdlib.h>
11880 FILE *f = fopen ("conftest.val", "w");
11883 if (((long) (sizeof (short))) < 0)
11885 long i = longval ();
11886 if (i != ((long) (sizeof (short))))
11888 fprintf (f, "%ld\n", i);
11892 unsigned long i = ulongval ();
11893 if (i != ((long) (sizeof (short))))
11895 fprintf (f, "%lu\n", i);
11897 exit (ferror (f) || fclose (f) != 0);
11903 rm -f conftest$ac_exeext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905 (eval $ac_link) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_sizeof_short=`cat conftest.val`
11916 echo "$as_me: program exited with status $ac_status" >&5
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ( exit $ac_status )
11921 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11922 See \`config.log' for more details." >&5
11923 echo "$as_me: error: cannot compute sizeof (short), 77
11924 See \`config.log' for more details." >&2;}
11925 { (exit 1); exit 1; }; }
11927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11932 ac_cv_sizeof_short=0
11935 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11936 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11937 cat >>confdefs.h <<_ACEOF
11938 #define SIZEOF_SHORT $ac_cv_sizeof_short
11942 echo "$as_me:$LINENO: checking for int" >&5
11943 echo $ECHO_N "checking for int... $ECHO_C" >&6
11944 if test "${ac_cv_type_int+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 $ac_includes_default
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11996 echo "${ECHO_T}$ac_cv_type_int" >&6
11998 echo "$as_me:$LINENO: checking size of int" >&5
11999 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12000 if test "${ac_cv_sizeof_int+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 if test "$ac_cv_type_int" = yes; then
12004 # The cast to unsigned long works around a bug in the HP C Compiler
12005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12007 # This bug is HP SR number 8606223364.
12008 if test "$cross_compiling" = yes; then
12009 # Depending upon the size, compute the lo and hi bounds.
12010 cat >conftest.$ac_ext <<_ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 $ac_includes_default
12020 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12027 rm -f conftest.$ac_objext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12029 (eval $ac_compile) 2>conftest.er1
12031 grep -v '^ *+' conftest.er1 >conftest.err
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12050 cat >conftest.$ac_ext <<_ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 $ac_includes_default
12060 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12067 rm -f conftest.$ac_objext
12068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest.$ac_objext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_hi=$ac_mid; break
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_lo=`expr $ac_mid + 1`
12094 if test $ac_lo -le $ac_mid; then
12098 ac_mid=`expr 2 '*' $ac_mid + 1`
12100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 cat >conftest.$ac_ext <<_ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 $ac_includes_default
12116 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>conftest.er1
12127 grep -v '^ *+' conftest.er1 >conftest.err
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest.$ac_objext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12146 cat >conftest.$ac_ext <<_ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12156 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12163 rm -f conftest.$ac_objext
12164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165 (eval $ac_compile) 2>conftest.er1
12167 grep -v '^ *+' conftest.er1 >conftest.err
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_lo=$ac_mid; break
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 ac_hi=`expr '(' $ac_mid ')' - 1`
12190 if test $ac_mid -le $ac_hi; then
12194 ac_mid=`expr 2 '*' $ac_mid`
12196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12207 # Binary search between lo and hi bounds.
12208 while test "x$ac_lo" != "x$ac_hi"; do
12209 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12210 cat >conftest.$ac_ext <<_ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 $ac_includes_default
12220 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12227 rm -f conftest.$ac_objext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229 (eval $ac_compile) 2>conftest.er1
12231 grep -v '^ *+' conftest.er1 >conftest.err
12233 cat conftest.err >&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 ac_lo=`expr '(' $ac_mid ')' + 1`
12255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12258 ?*) ac_cv_sizeof_int=$ac_lo;;
12259 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12260 See \`config.log' for more details." >&5
12261 echo "$as_me: error: cannot compute sizeof (int), 77
12262 See \`config.log' for more details." >&2;}
12263 { (exit 1); exit 1; }; } ;;
12266 if test "$cross_compiling" = yes; then
12267 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12268 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12269 { (exit 1); exit 1; }; }
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 $ac_includes_default
12278 long longval () { return (long) (sizeof (int)); }
12279 unsigned long ulongval () { return (long) (sizeof (int)); }
12281 #include <stdlib.h>
12286 FILE *f = fopen ("conftest.val", "w");
12289 if (((long) (sizeof (int))) < 0)
12291 long i = longval ();
12292 if (i != ((long) (sizeof (int))))
12294 fprintf (f, "%ld\n", i);
12298 unsigned long i = ulongval ();
12299 if (i != ((long) (sizeof (int))))
12301 fprintf (f, "%lu\n", i);
12303 exit (ferror (f) || fclose (f) != 0);
12309 rm -f conftest$ac_exeext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311 (eval $ac_link) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_sizeof_int=`cat conftest.val`
12322 echo "$as_me: program exited with status $ac_status" >&5
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ( exit $ac_status )
12327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12328 See \`config.log' for more details." >&5
12329 echo "$as_me: error: cannot compute sizeof (int), 77
12330 See \`config.log' for more details." >&2;}
12331 { (exit 1); exit 1; }; }
12333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12341 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12342 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12343 cat >>confdefs.h <<_ACEOF
12344 #define SIZEOF_INT $ac_cv_sizeof_int
12348 echo "$as_me:$LINENO: checking for long" >&5
12349 echo $ECHO_N "checking for long... $ECHO_C" >&6
12350 if test "${ac_cv_type_long+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 cat >conftest.$ac_ext <<_ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 $ac_includes_default
12371 rm -f conftest.$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>conftest.er1
12375 grep -v '^ *+' conftest.er1 >conftest.err
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; } &&
12386 { ac_try='test -s conftest.$ac_objext'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 ac_cv_type_long=yes
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12401 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12402 echo "${ECHO_T}$ac_cv_type_long" >&6
12404 echo "$as_me:$LINENO: checking size of long" >&5
12405 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12406 if test "${ac_cv_sizeof_long+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 if test "$ac_cv_type_long" = yes; then
12410 # The cast to unsigned long works around a bug in the HP C Compiler
12411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12413 # This bug is HP SR number 8606223364.
12414 if test "$cross_compiling" = yes; then
12415 # Depending upon the size, compute the lo and hi bounds.
12416 cat >conftest.$ac_ext <<_ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 $ac_includes_default
12426 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12433 rm -f conftest.$ac_objext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12435 (eval $ac_compile) 2>conftest.er1
12437 grep -v '^ *+' conftest.er1 >conftest.err
12439 cat conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; } &&
12448 { ac_try='test -s conftest.$ac_objext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12462 $ac_includes_default
12466 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12473 rm -f conftest.$ac_objext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>conftest.er1
12477 grep -v '^ *+' conftest.er1 >conftest.err
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_hi=$ac_mid; break
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_lo=`expr $ac_mid + 1`
12500 if test $ac_lo -le $ac_mid; then
12504 ac_mid=`expr 2 '*' $ac_mid + 1`
12506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 $ac_includes_default
12522 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12529 rm -f conftest.$ac_objext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>conftest.er1
12533 grep -v '^ *+' conftest.er1 >conftest.err
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12552 cat >conftest.$ac_ext <<_ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 $ac_includes_default
12562 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12569 rm -f conftest.$ac_objext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_lo=$ac_mid; break
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ac_hi=`expr '(' $ac_mid ')' - 1`
12596 if test $ac_mid -le $ac_hi; then
12600 ac_mid=`expr 2 '*' $ac_mid`
12602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613 # Binary search between lo and hi bounds.
12614 while test "x$ac_lo" != "x$ac_hi"; do
12615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12616 cat >conftest.$ac_ext <<_ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12622 $ac_includes_default
12626 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12633 rm -f conftest.$ac_objext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>conftest.er1
12637 grep -v '^ *+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 ac_lo=`expr '(' $ac_mid ')' + 1`
12661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12664 ?*) ac_cv_sizeof_long=$ac_lo;;
12665 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12666 See \`config.log' for more details." >&5
12667 echo "$as_me: error: cannot compute sizeof (long), 77
12668 See \`config.log' for more details." >&2;}
12669 { (exit 1); exit 1; }; } ;;
12672 if test "$cross_compiling" = yes; then
12673 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12674 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12675 { (exit 1); exit 1; }; }
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 $ac_includes_default
12684 long longval () { return (long) (sizeof (long)); }
12685 unsigned long ulongval () { return (long) (sizeof (long)); }
12687 #include <stdlib.h>
12692 FILE *f = fopen ("conftest.val", "w");
12695 if (((long) (sizeof (long))) < 0)
12697 long i = longval ();
12698 if (i != ((long) (sizeof (long))))
12700 fprintf (f, "%ld\n", i);
12704 unsigned long i = ulongval ();
12705 if (i != ((long) (sizeof (long))))
12707 fprintf (f, "%lu\n", i);
12709 exit (ferror (f) || fclose (f) != 0);
12715 rm -f conftest$ac_exeext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717 (eval $ac_link) 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 ac_cv_sizeof_long=`cat conftest.val`
12728 echo "$as_me: program exited with status $ac_status" >&5
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 ( exit $ac_status )
12733 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12734 See \`config.log' for more details." >&5
12735 echo "$as_me: error: cannot compute sizeof (long), 77
12736 See \`config.log' for more details." >&2;}
12737 { (exit 1); exit 1; }; }
12739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12744 ac_cv_sizeof_long=0
12747 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12748 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12749 cat >>confdefs.h <<_ACEOF
12750 #define SIZEOF_LONG $ac_cv_sizeof_long
12754 echo "$as_me:$LINENO: checking for long long" >&5
12755 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12756 if test "${ac_cv_type_long_long+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 cat >conftest.$ac_ext <<_ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12765 $ac_includes_default
12769 if ((long long *) 0)
12771 if (sizeof (long long))
12777 rm -f conftest.$ac_objext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779 (eval $ac_compile) 2>conftest.er1
12781 grep -v '^ *+' conftest.er1 >conftest.err
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest.$ac_objext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_type_long_long=yes
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12803 ac_cv_type_long_long=no
12805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12807 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12808 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12810 echo "$as_me:$LINENO: checking size of long long" >&5
12811 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12812 if test "${ac_cv_sizeof_long_long+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 if test "$ac_cv_type_long_long" = yes; then
12816 # The cast to unsigned long works around a bug in the HP C Compiler
12817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12819 # This bug is HP SR number 8606223364.
12820 if test "$cross_compiling" = yes; then
12821 # Depending upon the size, compute the lo and hi bounds.
12822 cat >conftest.$ac_ext <<_ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 $ac_includes_default
12832 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12839 rm -f conftest.$ac_objext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841 (eval $ac_compile) 2>conftest.er1
12843 grep -v '^ *+' conftest.er1 >conftest.err
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } &&
12848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest.$ac_objext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12862 cat >conftest.$ac_ext <<_ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 $ac_includes_default
12872 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12879 rm -f conftest.$ac_objext
12880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12881 (eval $ac_compile) 2>conftest.er1
12883 grep -v '^ *+' conftest.er1 >conftest.err
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest.$ac_objext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_hi=$ac_mid; break
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12905 ac_lo=`expr $ac_mid + 1`
12906 if test $ac_lo -le $ac_mid; then
12910 ac_mid=`expr 2 '*' $ac_mid + 1`
12912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 cat >conftest.$ac_ext <<_ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12924 $ac_includes_default
12928 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12935 rm -f conftest.$ac_objext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937 (eval $ac_compile) 2>conftest.er1
12939 grep -v '^ *+' conftest.er1 >conftest.err
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; } &&
12950 { ac_try='test -s conftest.$ac_objext'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; }; then
12958 cat >conftest.$ac_ext <<_ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 $ac_includes_default
12968 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12975 rm -f conftest.$ac_objext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 2>conftest.er1
12979 grep -v '^ *+' conftest.er1 >conftest.err
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest.$ac_objext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_lo=$ac_mid; break
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ac_hi=`expr '(' $ac_mid ')' - 1`
13002 if test $ac_mid -le $ac_hi; then
13006 ac_mid=`expr 2 '*' $ac_mid`
13008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13019 # Binary search between lo and hi bounds.
13020 while test "x$ac_lo" != "x$ac_hi"; do
13021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13022 cat >conftest.$ac_ext <<_ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 $ac_includes_default
13032 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13039 rm -f conftest.$ac_objext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>conftest.er1
13043 grep -v '^ *+' conftest.er1 >conftest.err
13045 cat conftest.err >&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; } &&
13054 { ac_try='test -s conftest.$ac_objext'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13065 ac_lo=`expr '(' $ac_mid ')' + 1`
13067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13070 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13071 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13072 See \`config.log' for more details." >&5
13073 echo "$as_me: error: cannot compute sizeof (long long), 77
13074 See \`config.log' for more details." >&2;}
13075 { (exit 1); exit 1; }; } ;;
13078 if test "$cross_compiling" = yes; then
13079 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13080 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13081 { (exit 1); exit 1; }; }
13083 cat >conftest.$ac_ext <<_ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 $ac_includes_default
13090 long longval () { return (long) (sizeof (long long)); }
13091 unsigned long ulongval () { return (long) (sizeof (long long)); }
13093 #include <stdlib.h>
13098 FILE *f = fopen ("conftest.val", "w");
13101 if (((long) (sizeof (long long))) < 0)
13103 long i = longval ();
13104 if (i != ((long) (sizeof (long long))))
13106 fprintf (f, "%ld\n", i);
13110 unsigned long i = ulongval ();
13111 if (i != ((long) (sizeof (long long))))
13113 fprintf (f, "%lu\n", i);
13115 exit (ferror (f) || fclose (f) != 0);
13121 rm -f conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132 ac_cv_sizeof_long_long=`cat conftest.val`
13134 echo "$as_me: program exited with status $ac_status" >&5
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13138 ( exit $ac_status )
13139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13140 See \`config.log' for more details." >&5
13141 echo "$as_me: error: cannot compute sizeof (long long), 77
13142 See \`config.log' for more details." >&2;}
13143 { (exit 1); exit 1; }; }
13145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13150 ac_cv_sizeof_long_long=0
13153 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13154 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13155 cat >>confdefs.h <<_ACEOF
13156 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13160 SIZEOF_SHORT=$ac_cv_sizeof_short
13161 SIZEOF_INT=$ac_cv_sizeof_int
13162 SIZEOF_LONG=$ac_cv_sizeof_long
13163 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13168 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13169 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13170 if test "${ac_cv_c_bigendian+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 # See if sys/param.h defines the BYTE_ORDER macro.
13174 cat >conftest.$ac_ext <<_ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13180 #include <sys/types.h>
13181 #include <sys/param.h>
13186 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13187 bogus endian macros
13194 rm -f conftest.$ac_objext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>conftest.er1
13198 grep -v '^ *+' conftest.er1 >conftest.err
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
13203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } &&
13209 { ac_try='test -s conftest.$ac_objext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 # It does; now see whether it defined to BIG_ENDIAN or not.
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 #include <sys/types.h>
13223 #include <sys/param.h>
13228 #if BYTE_ORDER != BIG_ENDIAN
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>conftest.er1
13240 grep -v '^ *+' conftest.er1 >conftest.err
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; } &&
13251 { ac_try='test -s conftest.$ac_objext'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 ac_cv_c_bigendian=yes
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 ac_cv_c_bigendian=no
13264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 # It does not; compile a test program.
13270 if test "$cross_compiling" = yes; then
13271 # try to guess the endianness by grepping values into an object file
13272 ac_cv_c_bigendian=unknown
13273 cat >conftest.$ac_ext <<_ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13280 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13281 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13282 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13283 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13284 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13288 _ascii (); _ebcdic ();
13293 rm -f conftest.$ac_objext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13295 (eval $ac_compile) 2>conftest.er1
13297 grep -v '^ *+' conftest.er1 >conftest.err
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } &&
13302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } &&
13308 { ac_try='test -s conftest.$ac_objext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13315 ac_cv_c_bigendian=yes
13317 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13318 if test "$ac_cv_c_bigendian" = unknown; then
13319 ac_cv_c_bigendian=no
13321 # finding both strings is unlikely to happen, but who knows?
13322 ac_cv_c_bigendian=unknown
13326 echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13332 cat >conftest.$ac_ext <<_ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13341 /* Are we little or big endian? From Harbison&Steele. */
13345 char c[sizeof (long)];
13348 exit (u.c[sizeof (long) - 1] == 1);
13351 rm -f conftest$ac_exeext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 ac_cv_c_bigendian=no
13364 echo "$as_me: program exited with status $ac_status" >&5
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13368 ( exit $ac_status )
13369 ac_cv_c_bigendian=yes
13371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13376 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13377 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13378 case $ac_cv_c_bigendian in
13381 cat >>confdefs.h <<\_ACEOF
13382 #define WORDS_BIGENDIAN 1
13388 { { echo "$as_me:$LINENO: error: unknown endianness
13389 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13390 echo "$as_me: error: unknown endianness
13391 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13392 { (exit 1); exit 1; }; } ;;
13395 /bin/sh $ac_aux_dir/parse-types.sh
13396 ASM_TYPES_HEADER=./asm_types.h
13399 for ac_header in inttypes.h
13401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo "$as_me:$LINENO: checking for $ac_header" >&5
13404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13411 # Is the header compilable?
13412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 $ac_includes_default
13421 #include <$ac_header>
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425 (eval $ac_compile) 2>conftest.er1
13427 grep -v '^ *+' conftest.er1 >conftest.err
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest.$ac_objext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 ac_header_compiler=yes
13446 echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13449 ac_header_compiler=no
13451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453 echo "${ECHO_T}$ac_header_compiler" >&6
13455 # Is the header present?
13456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13458 cat >conftest.$ac_ext <<_ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464 #include <$ac_header>
13466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13469 grep -v '^ *+' conftest.er1 >conftest.err
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } >/dev/null; then
13474 if test -s conftest.err; then
13475 ac_cpp_err=$ac_c_preproc_warn_flag
13476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13483 if test -z "$ac_cpp_err"; then
13484 ac_header_preproc=yes
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13489 ac_header_preproc=no
13491 rm -f conftest.err conftest.$ac_ext
13492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13493 echo "${ECHO_T}$ac_header_preproc" >&6
13495 # So? What about this header?
13496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13502 ac_header_preproc=yes
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13519 ## ------------------------------------------ ##
13520 ## Report this to the AC_PACKAGE_NAME lists. ##
13521 ## ------------------------------------------ ##
13524 sed "s/^/$as_me: WARNING: /" >&2
13527 echo "$as_me:$LINENO: checking for $ac_header" >&5
13528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 eval "$as_ac_Header=\$ac_header_preproc"
13534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13539 cat >>confdefs.h <<_ACEOF
13540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13547 echo "$as_me:$LINENO: checking for intptr_t" >&5
13548 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13549 if test "${ac_cv_type_intptr_t+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 $ac_includes_default
13562 if ((intptr_t *) 0)
13564 if (sizeof (intptr_t))
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>conftest.er1
13574 grep -v '^ *+' conftest.er1 >conftest.err
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest.$ac_objext'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13591 ac_cv_type_intptr_t=yes
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 ac_cv_type_intptr_t=no
13598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13600 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13601 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13602 if test $ac_cv_type_intptr_t = yes; then
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_INTPTR_T 1
13611 echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13612 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13613 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 #include <sys/stat.h>
13626 struct stat stat; stat.st_flags = 0;
13631 rm -f conftest.$ac_objext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633 (eval $ac_compile) 2>conftest.er1
13635 grep -v '^ *+' conftest.er1 >conftest.err
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; } &&
13646 { ac_try='test -s conftest.$ac_objext'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
13652 e2fsprogs_cv_struct_st_flags=yes
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 e2fsprogs_cv_struct_st_flags=no
13659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13662 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13663 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
13664 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13665 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13666 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13667 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 cat >conftest.$ac_ext <<_ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 #include <sys/stat.h>
13680 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13685 rm -f conftest.$ac_objext
13686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13687 (eval $ac_compile) 2>conftest.er1
13689 grep -v '^ *+' conftest.er1 >conftest.err
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; } &&
13700 { ac_try='test -s conftest.$ac_objext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 e2fsprogs_cv_struct_st_flags_immut=yes
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13711 e2fsprogs_cv_struct_st_flags_immut=no
13713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13716 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13717 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
13718 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13719 cat >>confdefs.h <<\_ACEOF
13720 #define HAVE_STAT_FLAGS 1
13725 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13726 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13727 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <sys/types.h>
13737 #include <sys/socket.h>
13742 static struct sockaddr ac_aggr;
13743 if (ac_aggr.sa_len)
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751 (eval $ac_compile) 2>conftest.er1
13753 grep -v '^ *+' conftest.er1 >conftest.err
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } &&
13758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; } &&
13764 { ac_try='test -s conftest.$ac_objext'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770 ac_cv_member_struct_sockaddr_sa_len=yes
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 cat >conftest.$ac_ext <<_ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 #include <sys/types.h>
13782 #include <sys/socket.h>
13787 static struct sockaddr ac_aggr;
13788 if (sizeof ac_aggr.sa_len)
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>conftest.er1
13798 grep -v '^ *+' conftest.er1 >conftest.err
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest.$ac_objext'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_cv_member_struct_sockaddr_sa_len=yes
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 ac_cv_member_struct_sockaddr_sa_len=no
13822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13826 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13827 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13828 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_SA_LEN 1
13858 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl
13860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13861 echo "$as_me:$LINENO: checking for $ac_func" >&5
13862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13863 if eval "test \"\${$as_ac_var+set}\" = set"; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 cat >conftest.$ac_ext <<_ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13874 #define $ac_func innocuous_$ac_func
13876 /* System header to define __stub macros and hopefully few prototypes,
13877 which can conflict with char $ac_func (); below.
13878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13879 <limits.h> exists even on freestanding compilers. */
13882 # include <limits.h>
13884 # include <assert.h>
13889 /* Override any gcc2 internal prototype to avoid an error. */
13894 /* We use char because int might match the return type of a gcc2
13895 builtin and then its argument prototype would still apply. */
13897 /* The GNU C library defines this for functions which it implements
13898 to always fail with ENOSYS. Some functions are actually named
13899 something starting with __ and the normal name is an alias. */
13900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13903 char (*f) () = $ac_func;
13912 return f != $ac_func;
13917 rm -f conftest.$ac_objext conftest$ac_exeext
13918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13919 (eval $ac_link) 2>conftest.er1
13921 grep -v '^ *+' conftest.er1 >conftest.err
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try='test -s conftest$ac_exeext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 eval "$as_ac_var=yes"
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 eval "$as_ac_var=no"
13945 rm -f conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13950 if test `eval echo '${'$as_ac_var'}'` = yes; then
13951 cat >>confdefs.h <<_ACEOF
13952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13959 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13960 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13961 if test "${ac_cv_lib_socket_socket+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 ac_check_lib_save_LIBS=$LIBS
13965 LIBS="-lsocket $LIBS"
13966 cat >conftest.$ac_ext <<_ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13973 /* Override any gcc2 internal prototype to avoid an error. */
13977 /* We use char because int might match the return type of a gcc2
13978 builtin and then its argument prototype would still apply. */
13988 rm -f conftest.$ac_objext conftest$ac_exeext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13990 (eval $ac_link) 2>conftest.er1
13992 grep -v '^ *+' conftest.er1 >conftest.err
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_lib_socket_socket=yes
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 ac_cv_lib_socket_socket=no
14016 rm -f conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14018 LIBS=$ac_check_lib_save_LIBS
14020 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14021 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
14022 if test $ac_cv_lib_socket_socket = yes; then
14023 SOCKET_LIB=-lsocket
14028 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14029 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14030 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 ac_check_lib_save_LIBS=$LIBS
14035 cat >conftest.$ac_ext <<_ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14042 /* Override any gcc2 internal prototype to avoid an error. */
14046 /* We use char because int might match the return type of a gcc2
14047 builtin and then its argument prototype would still apply. */
14057 rm -f conftest.$ac_objext conftest$ac_exeext
14058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14059 (eval $ac_link) 2>conftest.er1
14061 grep -v '^ *+' conftest.er1 >conftest.err
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest$ac_exeext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_lib_dl_dlopen=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_cv_lib_dl_dlopen=no
14085 rm -f conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
14087 LIBS=$ac_check_lib_save_LIBS
14089 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14090 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14091 if test $ac_cv_lib_dl_dlopen = yes; then
14093 cat >>confdefs.h <<\_ACEOF
14094 #define HAVE_DLOPEN 1
14100 echo "$as_me:$LINENO: checking for optreset" >&5
14101 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
14102 if test "${ac_cv_have_optreset+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 cat >conftest.$ac_ext <<_ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14111 #include <unistd.h>
14114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14115 $EGREP "optreset" >/dev/null 2>&1; then
14116 ac_cv_have_optreset=yes
14118 ac_cv_have_optreset=no
14123 echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14124 echo "${ECHO_T}$ac_cv_have_optreset" >&6
14125 if test $ac_cv_have_optreset = yes; then
14126 cat >>confdefs.h <<\_ACEOF
14127 #define HAVE_OPTRESET 1
14133 cat >>confdefs.h <<\_ACEOF
14134 #define HAVE_EXT2_IOCTLS 1
14155 linux* | gnu* | k*bsd*-gnu)
14156 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14158 echo "On $host_os systems, root_prefix defaults to ''"
14163 linux* | gnu* | k*bsd*-gnu)
14164 if test "$prefix" = NONE ; then
14166 echo "On $host_os systems, prefix defaults to /usr"
14167 if test "$mandir" = '${prefix}/man' ; then
14168 echo "...and mandir defaults to /usr/share/man"
14169 mandir=/usr/share/man
14174 if test "$root_prefix" = NONE ; then
14175 if test "$prefix" = NONE ; then
14176 root_prefix="$ac_default_prefix"
14178 root_prefix="$prefix"
14180 root_bindir=$bindir
14181 root_sbindir=$sbindir
14182 root_libdir=$libdir
14183 root_sysconfdir=$sysconfdir
14185 root_bindir='${root_prefix}/bin'
14186 root_sbindir='${root_prefix}/sbin'
14187 root_libdir='${root_prefix}/lib'
14188 root_sysconfdir='${root_prefix}/etc'
14195 echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14196 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
14197 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
14201 cat >conftest.$ac_ext <<_ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218 (eval $ac_link) 2>conftest.er1
14220 grep -v '^ *+' conftest.er1 >conftest.err
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest$ac_exeext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_e2fsprogs_use_static=yes
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14242 ac_cv_e2fsprogs_use_static=no
14244 rm -f conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14246 LDFLAGS=$SAVE_LDFLAGS
14251 ac_cv_e2fsprogs_use_static=no
14254 echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14255 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
14257 if test $ac_cv_e2fsprogs_use_static = yes; then
14258 LDFLAG_STATIC=-static
14263 echo "Using Apple Darwin / GNU libintl workaround"
14264 cat >>confdefs.h <<\_ACEOF
14265 #define _INTL_REDIRECT_MACROS 1
14270 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14271 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14274 if test "$cross_compiling" = yes ; then
14277 DO_TEST_SUITE=check
14281 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14282 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14285 if test $cross_compiling = no; then
14286 BUILD_CFLAGS="$CFLAGS"
14287 BUILD_LDFLAGS="$LDFLAGS"
14294 test -d lib || mkdir lib
14295 test -d include || mkdir include
14296 test -d include/linux || mkdir include/linux
14297 test -d include/asm || mkdir include/asm
14298 for i in MCONFIG Makefile e2fsprogs.spec \
14299 util/Makefile util/subst.conf util/gen-tarball \
14300 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14301 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14302 lib/uuid/Makefile lib/uuid/uuid_types.h \
14303 lib/blkid/Makefile lib/blkid/blkid_types.h \
14304 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14305 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
14306 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14307 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14308 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14309 if test -d `dirname ${srcdir}/$i` ; then
14310 outlist="$outlist $i"
14313 ac_config_files="$ac_config_files $outlist"
14314 cat >confcache <<\_ACEOF
14315 # This file is a shell script that caches the results of configure
14316 # tests run on this system so they can be shared between configure
14317 # scripts and configure runs, see configure's option --config-cache.
14318 # It is not useful on other systems. If it contains results you don't
14319 # want to keep, you may remove or edit it.
14321 # config.status only pays attention to the cache file if you give it
14322 # the --recheck option to rerun configure.
14324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14326 # following values.
14330 # The following way of writing the cache mishandles newlines in values,
14331 # but we know of no workaround that is simple, portable, and efficient.
14332 # So, don't put newlines in cache variables' values.
14333 # Ultrix sh set writes to stderr and can't be redirected directly,
14334 # and sets the high bit in the cache file unless we assign to the vars.
14337 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14339 # `set' does not quote correctly, so add quotes (double-quote
14340 # substitution turns \\\\ into \\, and sed turns \\ into \).
14343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14346 # `set' quotes correctly as required by POSIX, so do not add quotes.
14348 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14355 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14357 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14359 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14360 if test -w $cache_file; then
14361 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14362 cat confcache >$cache_file
14364 echo "not updating unwritable cache $cache_file"
14369 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14370 # Let make expand exec_prefix.
14371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14373 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14374 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14375 # trailing colons and then remove the whole line if VPATH becomes empty
14376 # (actually we leave an empty line to preserve line numbers).
14377 if test "x$srcdir" = x.; then
14378 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14379 s/:*\$(srcdir):*/:/;
14380 s/:*\${srcdir}:*/:/;
14382 s/^\([^=]*=[ ]*\):*/\1/;
14388 # Transform confdefs.h into DEFS.
14389 # Protect against shell expansion while executing Makefile rules.
14390 # Protect against Makefile macro expansion.
14392 # If the first sed substitution is executed (which looks for macros that
14393 # take arguments), then we branch to the quote section. Otherwise,
14394 # look for a macro that doesn't take arguments.
14395 cat >confdef2opt.sed <<\_ACEOF
14398 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14400 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14404 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14410 # We use echo to avoid assuming a particular line-breaking character.
14411 # The extra dot is to prevent the shell from consuming trailing
14412 # line-breaks from the sub-command output. A line-break within
14413 # single-quotes doesn't work because, if this script is created in a
14414 # platform that uses two characters for line-breaks (e.g., DOS), tr
14416 ac_LF_and_DOT=`echo; echo .`
14417 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14418 rm -f confdef2opt.sed
14423 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14424 # 1. Remove the extension, and $U if already installed.
14425 ac_i=`echo "$ac_i" |
14426 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14428 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14429 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14431 LIBOBJS=$ac_libobjs
14433 LTLIBOBJS=$ac_ltlibobjs
14437 : ${CONFIG_STATUS=./config.status}
14438 ac_clean_files_save=$ac_clean_files
14439 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14440 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14441 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14442 cat >$CONFIG_STATUS <<_ACEOF
14444 # Generated by $as_me.
14445 # Run this file to recreate the current configuration.
14446 # Compiler output produced by configure, useful for debugging
14447 # configure, is in config.log if it exists.
14450 ac_cs_recheck=false
14452 SHELL=\${CONFIG_SHELL-$SHELL}
14455 cat >>$CONFIG_STATUS <<\_ACEOF
14456 ## --------------------- ##
14457 ## M4sh Initialization. ##
14458 ## --------------------- ##
14460 # Be Bourne compatible
14461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14464 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14465 # is contrary to our usage. Disable this feature.
14466 alias -g '${1+"$@"}'='"$@"'
14467 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14470 DUALCASE=1; export DUALCASE # for MKS sh
14472 # Support unset when possible.
14473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14480 # Work around bugs in pre-3.0 UWIN ksh.
14481 $as_unset ENV MAIL MAILPATH
14488 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14489 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14490 LC_TELEPHONE LC_TIME
14492 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14493 eval $as_var=C; export $as_var
14499 # Required to use basename.
14500 if expr a : '\(a\)' >/dev/null 2>&1; then
14506 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14507 as_basename=basename
14513 # Name of the executable.
14514 as_me=`$as_basename "$0" ||
14515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14516 X"$0" : 'X\(//\)$' \| \
14517 X"$0" : 'X\(/\)$' \| \
14518 . : '\(.\)' 2>/dev/null ||
14520 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14521 /^X\/\(\/\/\)$/{ s//\1/; q; }
14522 /^X\/\(\/\).*/{ s//\1/; q; }
14526 # PATH needs CR, and LINENO needs CR and PATH.
14527 # Avoid depending upon Character Ranges.
14528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14531 as_cr_digits='0123456789'
14532 as_cr_alnum=$as_cr_Letters$as_cr_digits
14534 # The user is always right.
14535 if test "${PATH_SEPARATOR+set}" != set; then
14536 echo "#! /bin/sh" >conf$$.sh
14537 echo "exit 0" >>conf$$.sh
14539 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14548 as_lineno_1=$LINENO
14549 as_lineno_2=$LINENO
14550 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14551 test "x$as_lineno_1" != "x$as_lineno_2" &&
14552 test "x$as_lineno_3" = "x$as_lineno_2" || {
14553 # Find who we are. Look in the path if we contain no path at all
14556 *[\\/]* ) as_myself=$0 ;;
14557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 for as_dir in $PATH
14561 test -z "$as_dir" && as_dir=.
14562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14567 # We did not find ourselves, most probably we were run as `sh COMMAND'
14568 # in which case we are not to be found in the path.
14569 if test "x$as_myself" = x; then
14572 if test ! -f "$as_myself"; then
14573 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14574 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14575 { (exit 1); exit 1; }; }
14577 case $CONFIG_SHELL in
14579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14580 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14583 test -z "$as_dir" && as_dir=.
14584 for as_base in sh bash ksh sh5; do
14587 if ("$as_dir/$as_base" -c '
14588 as_lineno_1=$LINENO
14589 as_lineno_2=$LINENO
14590 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14591 test "x$as_lineno_1" != "x$as_lineno_2" &&
14592 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14593 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14594 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14595 CONFIG_SHELL=$as_dir/$as_base
14596 export CONFIG_SHELL
14597 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14606 # uniformly replaced by the line number. The first 'sed' inserts a
14607 # line-number line before each line; the second 'sed' does the real
14608 # work. The second script uses 'N' to pair each line-number line
14609 # with the numbered line, and appends trailing '-' during
14610 # substitution so that $LINENO is not a special case at line end.
14611 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14612 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14613 sed '=' <$as_myself |
14618 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14621 s,^['$as_cr_digits']*\n,,
14622 ' >$as_me.lineno &&
14623 chmod +x $as_me.lineno ||
14624 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14625 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14626 { (exit 1); exit 1; }; }
14628 # Don't try to exec as it changes $[0], causing all sort of problems
14629 # (the dirname of $[0] is not the place where we might find the
14630 # original and so on. Autoconf is especially sensible to this).
14632 # Exit status is that of the last command.
14637 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14638 *c*,-n*) ECHO_N= ECHO_C='
14640 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14641 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14644 if expr a : '\(a\)' >/dev/null 2>&1; then
14650 rm -f conf$$ conf$$.exe conf$$.file
14652 if ln -s conf$$.file conf$$ 2>/dev/null; then
14653 # We could just check for DJGPP; but this test a) works b) is more generic
14654 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14655 if test -f conf$$.exe; then
14656 # Don't use ln at all; we don't have any links
14661 elif ln conf$$.file conf$$ 2>/dev/null; then
14666 rm -f conf$$ conf$$.exe conf$$.file
14668 if mkdir -p . 2>/dev/null; then
14671 test -d ./-p && rmdir ./-p
14675 as_executable_p="test -f"
14677 # Sed expression to map a string onto a valid CPP name.
14678 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14680 # Sed expression to map a string onto a valid variable name.
14681 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14685 # We need space, tab and new line, in precisely that order.
14695 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14696 # report actual input values of CONFIG_FILES etc. instead of their
14697 # values after options handling. Logging --version etc. is OK.
14701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14702 ## Running $as_me. ##
14707 This file was extended by $as_me, which was
14708 generated by GNU Autoconf 2.59. Invocation command line was
14710 CONFIG_FILES = $CONFIG_FILES
14711 CONFIG_HEADERS = $CONFIG_HEADERS
14712 CONFIG_LINKS = $CONFIG_LINKS
14713 CONFIG_COMMANDS = $CONFIG_COMMANDS
14717 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14721 # Files that config.status was made for.
14722 if test -n "$ac_config_files"; then
14723 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14726 if test -n "$ac_config_headers"; then
14727 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14730 if test -n "$ac_config_links"; then
14731 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14734 if test -n "$ac_config_commands"; then
14735 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14738 cat >>$CONFIG_STATUS <<\_ACEOF
14741 \`$as_me' instantiates files from templates according to the
14742 current configuration.
14744 Usage: $0 [OPTIONS] [FILE]...
14746 -h, --help print this help, then exit
14747 -V, --version print version number, then exit
14748 -q, --quiet do not print progress messages
14749 -d, --debug don't remove temporary files
14750 --recheck update $as_me by reconfiguring in the same conditions
14751 --file=FILE[:TEMPLATE]
14752 instantiate the configuration file FILE
14754 Configuration files:
14757 Configuration commands:
14760 Report bugs to <bug-autoconf@gnu.org>."
14763 cat >>$CONFIG_STATUS <<_ACEOF
14766 configured by $0, generated by GNU Autoconf 2.59,
14767 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14769 Copyright (C) 2003 Free Software Foundation, Inc.
14770 This config.status script is free software; the Free Software Foundation
14771 gives unlimited permission to copy, distribute and modify it."
14776 cat >>$CONFIG_STATUS <<\_ACEOF
14777 # If no file are specified by the user, then we need to provide default
14778 # value. By we need to know if files were specified by the user.
14784 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14785 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14793 *) # This is not an option, so the user has probably given explicit
14796 ac_need_defaults=false;;
14800 # Handling of the options.
14802 cat >>$CONFIG_STATUS <<\_ACEOF
14803 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14805 --version | --vers* | -V )
14806 echo "$ac_cs_version"; exit 0 ;;
14808 # Conflict between --help and --header
14809 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14810 Try \`$0 --help' for more information." >&5
14811 echo "$as_me: error: ambiguous option: $1
14812 Try \`$0 --help' for more information." >&2;}
14813 { (exit 1); exit 1; }; };;
14814 --help | --hel | -h )
14815 echo "$ac_cs_usage"; exit 0 ;;
14816 --debug | --d* | -d )
14818 --file | --fil | --fi | --f )
14820 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14821 ac_need_defaults=false;;
14822 --header | --heade | --head | --hea )
14824 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14825 ac_need_defaults=false;;
14826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14827 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14830 # This is an error.
14831 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14832 Try \`$0 --help' for more information." >&5
14833 echo "$as_me: error: unrecognized option: $1
14834 Try \`$0 --help' for more information." >&2;}
14835 { (exit 1); exit 1; }; } ;;
14837 *) ac_config_targets="$ac_config_targets $1" ;;
14843 ac_configure_extra_args=
14845 if $ac_cs_silent; then
14847 ac_configure_extra_args="$ac_configure_extra_args --silent"
14851 cat >>$CONFIG_STATUS <<_ACEOF
14852 if \$ac_cs_recheck; then
14853 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14854 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14859 cat >>$CONFIG_STATUS <<_ACEOF
14861 # INIT-COMMANDS section.
14864 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14865 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14867 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14868 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14869 LINGUAS="${LINGUAS-%UNSET%}"
14876 cat >>$CONFIG_STATUS <<\_ACEOF
14877 for ac_config_target in $ac_config_targets
14879 case "$ac_config_target" in
14880 # Handling of arguments.
14881 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14882 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14883 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14884 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14885 { (exit 1); exit 1; }; };;
14889 # If the user did not use the arguments to specify the items to instantiate,
14890 # then the envvar interface is used. Set only those that are not.
14891 # We use the long form for the default assignment because of an extremely
14892 # bizarre bug on SunOS 4.1.3.
14893 if $ac_need_defaults; then
14894 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14898 # Have a temporary directory for convenience. Make it in the build tree
14899 # simply because there is no reason to put it here, and in addition,
14900 # creating and moving files from /tmp can sometimes cause problems.
14901 # Create a temporary directory, and hook for its removal unless debugging.
14904 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14905 trap '{ (exit 1); exit 1; }' 1 2 13 15
14908 # Create a (secure) tmp directory for tmp files.
14911 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14912 test -n "$tmp" && test -d "$tmp"
14915 tmp=./confstat$$-$RANDOM
14916 (umask 077 && mkdir $tmp)
14919 echo "$me: cannot create a temporary directory in ." >&2
14920 { (exit 1); exit 1; }
14925 cat >>$CONFIG_STATUS <<_ACEOF
14928 # CONFIG_FILES section.
14931 # No need to generate the scripts if there are no CONFIG_FILES.
14932 # This happens for instance when ./config.status config.h
14933 if test -n "\$CONFIG_FILES"; then
14934 # Protect against being on the right side of a sed subst in config.status.
14935 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14936 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14937 s,@SHELL@,$SHELL,;t t
14938 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14939 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14940 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14941 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14942 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14943 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14944 s,@exec_prefix@,$exec_prefix,;t t
14945 s,@prefix@,$prefix,;t t
14946 s,@program_transform_name@,$program_transform_name,;t t
14947 s,@bindir@,$bindir,;t t
14948 s,@sbindir@,$sbindir,;t t
14949 s,@libexecdir@,$libexecdir,;t t
14950 s,@datadir@,$datadir,;t t
14951 s,@sysconfdir@,$sysconfdir,;t t
14952 s,@sharedstatedir@,$sharedstatedir,;t t
14953 s,@localstatedir@,$localstatedir,;t t
14954 s,@libdir@,$libdir,;t t
14955 s,@includedir@,$includedir,;t t
14956 s,@oldincludedir@,$oldincludedir,;t t
14957 s,@infodir@,$infodir,;t t
14958 s,@mandir@,$mandir,;t t
14959 s,@build_alias@,$build_alias,;t t
14960 s,@host_alias@,$host_alias,;t t
14961 s,@target_alias@,$target_alias,;t t
14962 s,@DEFS@,$DEFS,;t t
14963 s,@ECHO_C@,$ECHO_C,;t t
14964 s,@ECHO_N@,$ECHO_N,;t t
14965 s,@ECHO_T@,$ECHO_T,;t t
14966 s,@LIBS@,$LIBS,;t t
14967 s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14968 s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14969 s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14970 s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14971 s,@build@,$build,;t t
14972 s,@build_cpu@,$build_cpu,;t t
14973 s,@build_vendor@,$build_vendor,;t t
14974 s,@build_os@,$build_os,;t t
14975 s,@host@,$host,;t t
14976 s,@host_cpu@,$host_cpu,;t t
14977 s,@host_vendor@,$host_vendor,;t t
14978 s,@host_os@,$host_os,;t t
14980 s,@CFLAGS@,$CFLAGS,;t t
14981 s,@LDFLAGS@,$LDFLAGS,;t t
14982 s,@CPPFLAGS@,$CPPFLAGS,;t t
14983 s,@ac_ct_CC@,$ac_ct_CC,;t t
14984 s,@EXEEXT@,$EXEEXT,;t t
14985 s,@OBJEXT@,$OBJEXT,;t t
14988 s,@EGREP@,$EGREP,;t t
14989 s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
14990 s,@MAINTAINER_CMT@,$MAINTAINER_CMT,;t t
14991 s,@HTREE_CMT@,$HTREE_CMT,;t t
14992 s,@ELF_CMT@,$ELF_CMT,;t t
14993 s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14994 s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14995 s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14996 s,@LIB_EXT@,$LIB_EXT,;t t
14997 s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14998 s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14999 s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
15000 s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
15001 s,@IMAGER_CMT@,$IMAGER_CMT,;t t
15002 s,@RESIZER_CMT@,$RESIZER_CMT,;t t
15003 s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
15004 s,@FSCK_PROG@,$FSCK_PROG,;t t
15005 s,@FSCK_MAN@,$FSCK_MAN,;t t
15006 s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
15007 s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
15008 s,@DEVMAPPER_REQ@,$DEVMAPPER_REQ,;t t
15009 s,@DEVMAPPER_PC_LIBS@,$DEVMAPPER_PC_LIBS,;t t
15010 s,@DEVMAPPER_LIBS@,$DEVMAPPER_LIBS,;t t
15011 s,@STATIC_DEVMAPPER_LIBS@,$STATIC_DEVMAPPER_LIBS,;t t
15012 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
15013 s,@PACKAGE@,$PACKAGE,;t t
15014 s,@VERSION@,$VERSION,;t t
15015 s,@SET_MAKE@,$SET_MAKE,;t t
15016 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15017 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15018 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15019 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15020 s,@USE_NLS@,$USE_NLS,;t t
15021 s,@MSGFMT@,$MSGFMT,;t t
15022 s,@GMSGFMT@,$GMSGFMT,;t t
15023 s,@XGETTEXT@,$XGETTEXT,;t t
15024 s,@MSGMERGE@,$MSGMERGE,;t t
15025 s,@RANLIB@,$RANLIB,;t t
15026 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15027 s,@ALLOCA@,$ALLOCA,;t t
15028 s,@GLIBC21@,$GLIBC21,;t t
15029 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
15030 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
15031 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
15032 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
15033 s,@LIBICONV@,$LIBICONV,;t t
15034 s,@LTLIBICONV@,$LTLIBICONV,;t t
15035 s,@INTLBISON@,$INTLBISON,;t t
15036 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15037 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15038 s,@CATOBJEXT@,$CATOBJEXT,;t t
15039 s,@DATADIRNAME@,$DATADIRNAME,;t t
15040 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15041 s,@GENCAT@,$GENCAT,;t t
15042 s,@INTLOBJS@,$INTLOBJS,;t t
15043 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15044 s,@INTLLIBS@,$INTLLIBS,;t t
15045 s,@LIBINTL@,$LIBINTL,;t t
15046 s,@LTLIBINTL@,$LTLIBINTL,;t t
15047 s,@POSUB@,$POSUB,;t t
15048 s,@BINARY_TYPE@,$BINARY_TYPE,;t t
15050 s,@LN_S@,$LN_S,;t t
15054 s,@CHMOD@,$CHMOD,;t t
15057 s,@PERL@,$PERL,;t t
15058 s,@LDCONFIG@,$LDCONFIG,;t t
15060 s,@ac_ct_AR@,$ac_ct_AR,;t t
15061 s,@STRIP@,$STRIP,;t t
15062 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15063 s,@BUILD_CC@,$BUILD_CC,;t t
15064 s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
15065 s,@SIZEOF_INT@,$SIZEOF_INT,;t t
15066 s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
15067 s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
15068 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
15069 s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
15070 s,@LINUX_CMT@,$LINUX_CMT,;t t
15071 s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
15072 s,@UNIX_CMT@,$UNIX_CMT,;t t
15073 s,@root_prefix@,$root_prefix,;t t
15074 s,@root_bindir@,$root_bindir,;t t
15075 s,@root_sbindir@,$root_sbindir,;t t
15076 s,@root_libdir@,$root_libdir,;t t
15077 s,@root_sysconfdir@,$root_sysconfdir,;t t
15078 s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
15079 s,@SS_DIR@,$SS_DIR,;t t
15080 s,@ET_DIR@,$ET_DIR,;t t
15081 s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
15082 s,@INTL_FLAGS@,$INTL_FLAGS,;t t
15083 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15084 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
15085 s,@LIBOBJS@,$LIBOBJS,;t t
15086 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15087 /@MCONFIG@/r $MCONFIG
15089 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
15090 s,@MAKEFILE_ELF@,,;t t
15091 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
15092 s,@MAKEFILE_BSDLIB@,,;t t
15093 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
15094 s,@MAKEFILE_PROFILE@,,;t t
15095 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
15096 s,@MAKEFILE_CHECKER@,,;t t
15097 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
15098 s,@MAKEFILE_LIBRARY@,,;t t
15099 /@ASM_TYPES_HEADER@/r $ASM_TYPES_HEADER
15100 s,@ASM_TYPES_HEADER@,,;t t
15105 cat >>$CONFIG_STATUS <<\_ACEOF
15106 # Split the substitutions into bite-sized pieces for seds with
15107 # small command number limits, like on Digital OSF/1 and HP-UX.
15108 ac_max_sed_lines=48
15109 ac_sed_frag=1 # Number of current file.
15110 ac_beg=1 # First line for current file.
15111 ac_end=$ac_max_sed_lines # Line after last line for current file.
15114 while $ac_more_lines; do
15115 if test $ac_beg -gt 1; then
15116 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15118 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15120 if test ! -s $tmp/subs.frag; then
15121 ac_more_lines=false
15123 # The purpose of the label and of the branching condition is to
15124 # speed up the sed processing (if there are no `@' at all, there
15125 # is no need to browse any of the substitutions).
15126 # These are the two extra sed commands mentioned above.
15128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15129 if test -z "$ac_sed_cmds"; then
15130 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15132 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15134 ac_sed_frag=`expr $ac_sed_frag + 1`
15136 ac_end=`expr $ac_end + $ac_max_sed_lines`
15139 if test -z "$ac_sed_cmds"; then
15142 fi # test -n "$CONFIG_FILES"
15145 cat >>$CONFIG_STATUS <<\_ACEOF
15146 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15147 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15149 - | *:- | *:-:* ) # input from stdin
15151 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15153 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15154 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15155 * ) ac_file_in=$ac_file.in ;;
15158 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15159 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15161 X"$ac_file" : 'X\(//\)[^/]' \| \
15162 X"$ac_file" : 'X\(//\)$' \| \
15163 X"$ac_file" : 'X\(/\)' \| \
15164 . : '\(.\)' 2>/dev/null ||
15166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15168 /^X\(\/\/\)$/{ s//\1/; q; }
15169 /^X\(\/\).*/{ s//\1/; q; }
15171 { if $as_mkdir_p; then
15176 while test ! -d "$as_dir"; do
15177 as_dirs="$as_dir $as_dirs"
15178 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15180 X"$as_dir" : 'X\(//\)[^/]' \| \
15181 X"$as_dir" : 'X\(//\)$' \| \
15182 X"$as_dir" : 'X\(/\)' \| \
15183 . : '\(.\)' 2>/dev/null ||
15185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15187 /^X\(\/\/\)$/{ s//\1/; q; }
15188 /^X\(\/\).*/{ s//\1/; q; }
15191 test ! -n "$as_dirs" || mkdir $as_dirs
15192 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15193 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15194 { (exit 1); exit 1; }; }; }
15198 if test "$ac_dir" != .; then
15199 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15200 # A "../" for each directory in $ac_dir_suffix.
15201 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15203 ac_dir_suffix= ac_top_builddir=
15207 .) # No --srcdir option. We are building in place.
15209 if test -z "$ac_top_builddir"; then
15212 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15214 [\\/]* | ?:[\\/]* ) # Absolute path.
15215 ac_srcdir=$srcdir$ac_dir_suffix;
15216 ac_top_srcdir=$srcdir ;;
15217 *) # Relative path.
15218 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15219 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15222 # Do not use `cd foo && pwd` to compute absolute paths, because
15223 # the directories may not exist.
15225 .) ac_abs_builddir="$ac_dir";;
15228 .) ac_abs_builddir=`pwd`;;
15229 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15230 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15233 case $ac_abs_builddir in
15234 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15236 case ${ac_top_builddir}. in
15237 .) ac_abs_top_builddir=$ac_abs_builddir;;
15238 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15239 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15242 case $ac_abs_builddir in
15243 .) ac_abs_srcdir=$ac_srcdir;;
15246 .) ac_abs_srcdir=$ac_abs_builddir;;
15247 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15248 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15251 case $ac_abs_builddir in
15252 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15254 case $ac_top_srcdir in
15255 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15256 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15257 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15264 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15267 # Let's still pretend it is `configure' which instantiates (i.e., don't
15268 # use $as_me), people would be surprised to read:
15269 # /* config.h. Generated by config.status. */
15270 if test x"$ac_file" = x-; then
15273 configure_input="$ac_file. "
15275 configure_input=$configure_input"Generated from `echo $ac_file_in |
15276 sed 's,.*/,,'` by configure."
15278 # First look for the input files in the build tree, otherwise in the
15280 ac_file_inputs=`IFS=:
15281 for f in $ac_file_in; do
15283 -) echo $tmp/stdin ;;
15285 # Absolute (can't be DOS-style, as IFS=:)
15286 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15287 echo "$as_me: error: cannot find input file: $f" >&2;}
15288 { (exit 1); exit 1; }; }
15291 if test -f "$f"; then
15294 elif test -f "$srcdir/$f"; then
15299 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15300 echo "$as_me: error: cannot find input file: $f" >&2;}
15301 { (exit 1); exit 1; }; }
15304 done` || { (exit 1); exit 1; }
15306 if test x"$ac_file" != x-; then
15307 { echo "$as_me:$LINENO: creating $ac_file" >&5
15308 echo "$as_me: creating $ac_file" >&6;}
15312 cat >>$CONFIG_STATUS <<_ACEOF
15316 cat >>$CONFIG_STATUS <<\_ACEOF
15318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15319 s,@configure_input@,$configure_input,;t t
15320 s,@srcdir@,$ac_srcdir,;t t
15321 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15322 s,@top_srcdir@,$ac_top_srcdir,;t t
15323 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15324 s,@builddir@,$ac_builddir,;t t
15325 s,@abs_builddir@,$ac_abs_builddir,;t t
15326 s,@top_builddir@,$ac_top_builddir,;t t
15327 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15328 s,@INSTALL@,$ac_INSTALL,;t t
15329 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15331 if test x"$ac_file" != x-; then
15332 mv $tmp/out $ac_file
15340 cat >>$CONFIG_STATUS <<\_ACEOF
15343 # CONFIG_COMMANDS section.
15345 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15346 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15347 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15348 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15349 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15350 X"$ac_dest" : 'X\(//\)[^/]' \| \
15351 X"$ac_dest" : 'X\(//\)$' \| \
15352 X"$ac_dest" : 'X\(/\)' \| \
15353 . : '\(.\)' 2>/dev/null ||
15355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15357 /^X\(\/\/\)$/{ s//\1/; q; }
15358 /^X\(\/\).*/{ s//\1/; q; }
15360 { if $as_mkdir_p; then
15365 while test ! -d "$as_dir"; do
15366 as_dirs="$as_dir $as_dirs"
15367 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15369 X"$as_dir" : 'X\(//\)[^/]' \| \
15370 X"$as_dir" : 'X\(//\)$' \| \
15371 X"$as_dir" : 'X\(/\)' \| \
15372 . : '\(.\)' 2>/dev/null ||
15374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15376 /^X\(\/\/\)$/{ s//\1/; q; }
15377 /^X\(\/\).*/{ s//\1/; q; }
15380 test ! -n "$as_dirs" || mkdir $as_dirs
15381 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15382 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15383 { (exit 1); exit 1; }; }; }
15387 if test "$ac_dir" != .; then
15388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15389 # A "../" for each directory in $ac_dir_suffix.
15390 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15392 ac_dir_suffix= ac_top_builddir=
15396 .) # No --srcdir option. We are building in place.
15398 if test -z "$ac_top_builddir"; then
15401 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15403 [\\/]* | ?:[\\/]* ) # Absolute path.
15404 ac_srcdir=$srcdir$ac_dir_suffix;
15405 ac_top_srcdir=$srcdir ;;
15406 *) # Relative path.
15407 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15408 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15411 # Do not use `cd foo && pwd` to compute absolute paths, because
15412 # the directories may not exist.
15414 .) ac_abs_builddir="$ac_dir";;
15417 .) ac_abs_builddir=`pwd`;;
15418 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15419 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15422 case $ac_abs_builddir in
15423 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15425 case ${ac_top_builddir}. in
15426 .) ac_abs_top_builddir=$ac_abs_builddir;;
15427 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15428 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15431 case $ac_abs_builddir in
15432 .) ac_abs_srcdir=$ac_srcdir;;
15435 .) ac_abs_srcdir=$ac_abs_builddir;;
15436 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15437 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15440 case $ac_abs_builddir in
15441 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15443 case $ac_top_srcdir in
15444 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15445 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15446 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15451 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15452 echo "$as_me: executing $ac_dest commands" >&6;}
15455 for ac_file in $CONFIG_FILES; do
15456 # Support "outfile[:infile[:infile...]]"
15458 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15460 # PO directories have a Makefile.in generated from Makefile.in.in.
15461 case "$ac_file" in */Makefile.in)
15462 # Adjust a relative srcdir.
15463 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15464 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15465 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15466 # In autoconf-2.13 it is called $ac_given_srcdir.
15467 # In autoconf-2.50 it is called $srcdir.
15468 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15469 case "$ac_given_srcdir" in
15470 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15471 /*) top_srcdir="$ac_given_srcdir" ;;
15472 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15474 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15475 rm -f "$ac_dir/POTFILES"
15476 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15477 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15478 POMAKEFILEDEPS="POTFILES.in"
15479 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15480 # on $ac_dir but don't depend on user-specified configuration
15482 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15483 # The LINGUAS file contains the set of available languages.
15484 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15485 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15487 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15488 # Hide the ALL_LINGUAS assigment from automake.
15489 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15490 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15492 # The set of available languages was given in configure.in.
15493 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15496 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15497 # Compute UPDATEPOFILES
15498 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15499 # Compute DUMMYPOFILES
15500 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15502 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15503 case "$ac_given_srcdir" in
15505 *) srcdirpre='$(srcdir)/' ;;
15511 for lang in $ALL_LINGUAS; do
15512 POFILES="$POFILES $srcdirpre$lang.po"
15513 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15514 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15515 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15517 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15518 # environment variable.
15520 if test -n "$ALL_LINGUAS"; then
15521 for presentlang in $ALL_LINGUAS; do
15523 if test "%UNSET%" != "$LINGUAS"; then
15524 desiredlanguages="$LINGUAS"
15526 desiredlanguages="$ALL_LINGUAS"
15528 for desiredlang in $desiredlanguages; do
15529 # Use the presentlang catalog if desiredlang is
15530 # a. equal to presentlang, or
15531 # b. a variant of presentlang (because in this case,
15532 # presentlang can be used as a fallback for messages
15533 # which are not translated in the desiredlang catalog).
15534 case "$desiredlang" in
15535 "$presentlang"*) useit=yes;;
15538 if test $useit = yes; then
15539 INST_LINGUAS="$INST_LINGUAS $presentlang"
15544 if test -n "$INST_LINGUAS"; then
15545 for lang in $INST_LINGUAS; do
15546 CATALOGS="$CATALOGS $lang.gmo"
15549 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15550 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"
15551 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15552 if test -f "$f"; then
15554 *.orig | *.bak | *~) ;;
15555 *) cat "$f" >> "$ac_dir/Makefile" ;;
15567 cat >>$CONFIG_STATUS <<\_ACEOF
15569 { (exit 0); exit 0; }
15571 chmod +x $CONFIG_STATUS
15572 ac_clean_files=$ac_clean_files_save
15575 # configure is writing to config.log, and then calls config.status.
15576 # config.status does its own redirection, appending to config.log.
15577 # Unfortunately, on DOS this fails, as config.log is still kept open
15578 # by configure, so config.status won't be able to write to it; its
15579 # output is simply discarded. So we exec the FD to /dev/null,
15580 # effectively closing config.log, so it can be properly (re)opened and
15581 # appended to by config.status. When coming back to configure, we
15582 # need to make the FD available again.
15583 if test "$no_create" != yes; then
15585 ac_config_status_args=
15586 test "$silent" = yes &&
15587 ac_config_status_args="$ac_config_status_args --quiet"
15589 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15591 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15592 # would make configure fail if this is the last instruction.
15593 $ac_cs_success || { (exit 1); exit 1; }
15596 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi