3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-cc=COMPILER select compiler to use"
17 --with-linker=LINKER select linker to use"
19 --with-ccopts=CCOPTS select compiler command line options"
21 --with-ldopts=LDOPTS select linker command line options"
23 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
25 --enable-compression enable EXPERIMENTAL compression support"
27 --enable-htree enable EXPERIMENTAL htree directory support"
29 --enable-htree-clear clear htree because we don't trust e2fsck"
31 --enable-old-evms use EVMS 1.0 ABI (instead of EVMS 1.1)"
33 --enable-dll-shlibs select DLL libraries"
35 --enable-elf-shlibs select ELF shared libraries"
37 --enable-bsd-shlibs select BSD shared libraries"
39 --enable-profile build profiling libraries"
41 --enable-checker build checker libraries"
43 --enable-jfs-debug enable journal debugging"
45 --disable-swapfs disable support of legacy byte-swapped filesystems"
47 --disable-debugfs disable support of debugfs program"
49 --disable-imager disable support of e2image program"
51 --disable-resizer disable support of e2resize program"
53 --enable-dynamic-e2fsck build e2fsck dynamically"
55 --enable-fsck build fsck wrapper program"
57 --enable-old-bitops Use old (non-standard but native) bitmask operations"
59 --enable-nls Turn on Native Language Support"
61 --with-included-gettext use the GNU gettext library included here"
63 --with-catgets use catgets functions if available"
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
69 cache_file=./config.cache
78 program_transform_name=s,x,x,
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
99 # Initialize some other variables.
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
118 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 # Accept the important Cygnus configure options, so we can diagnose typos.
126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129 bindir="$ac_optarg" ;;
131 -build | --build | --buil | --bui | --bu)
133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134 build="$ac_optarg" ;;
136 -cache-file | --cache-file | --cache-fil | --cache-fi \
137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138 ac_prev=cache_file ;;
139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141 cache_file="$ac_optarg" ;;
143 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147 datadir="$ac_optarg" ;;
149 -disable-* | --disable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* | --enable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173 | --exec | --exe | --ex)
174 ac_prev=exec_prefix ;;
175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177 | --exec=* | --exe=* | --ex=*)
178 exec_prefix="$ac_optarg" ;;
180 -gas | --gas | --ga | --g)
181 # Obsolete; use --with-gas.
184 -help | --help | --hel | --he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --version print the version of autoconf that created configure
196 Directory and file names:
197 --prefix=PREFIX install architecture-independent files in PREFIX
199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 --bindir=DIR user executables in DIR [EPREFIX/bin]
202 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
203 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
204 --datadir=DIR read-only architecture-independent data in DIR
206 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
207 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
210 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
211 --includedir=DIR C header files in DIR [PREFIX/include]
212 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
213 --infodir=DIR info documentation in DIR [PREFIX/info]
214 --mandir=DIR man documentation in DIR [PREFIX/man]
215 --srcdir=DIR find the sources in DIR [configure dir or ..]
216 --program-prefix=PREFIX prepend PREFIX to installed program names
217 --program-suffix=SUFFIX append SUFFIX to installed program names
218 --program-transform-name=PROGRAM
219 run sed PROGRAM on installed program names
223 --build=BUILD configure for building on BUILD [BUILD=HOST]
224 --host=HOST configure for HOST [guessed]
225 --target=TARGET configure for TARGET [TARGET=HOST]
226 Features and packages:
227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
231 --x-includes=DIR X include files are in DIR
232 --x-libraries=DIR X library files are in DIR
234 if test -n "$ac_help"; then
235 echo "--enable and --with options recognized:$ac_help"
239 -host | --host | --hos | --ho)
241 -host=* | --host=* | --hos=* | --ho=*)
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir="$ac_optarg" ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir="$ac_optarg" ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
259 libdir="$ac_optarg" ;;
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir="$ac_optarg" ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir="$ac_optarg" ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280 mandir="$ac_optarg" ;;
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir="$ac_optarg" ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306 prefix="$ac_optarg" ;;
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix="$ac_optarg" ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix="$ac_optarg" ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name="$ac_optarg" ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir="$ac_optarg" ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir="$ac_optarg" ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 srcdir="$ac_optarg" ;;
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir="$ac_optarg" ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target="$ac_optarg" ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers)
386 echo "configure generated by autoconf version 2.13"
390 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}='$ac_optarg'" ;;
402 -without-* | --without-*)
403 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
412 # Obsolete; use --with-x.
415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416 | --x-incl | --x-inc | --x-in | --x-i)
417 ac_prev=x_includes ;;
418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420 x_includes="$ac_optarg" ;;
422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424 ac_prev=x_libraries ;;
425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427 x_libraries="$ac_optarg" ;;
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 if test "x$nonopt" != xNONE; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445 if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451 # File descriptor usage:
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c) ;;
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 # Only set these to C if already set. These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=version.h
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508 ac_srcdir_defaulted=yes
509 # Try the directory containing this script, then its parent.
511 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514 if test ! -r $srcdir/$ac_unique_file; then
518 ac_srcdir_defaulted=no
520 if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE; then
532 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 for ac_site_file in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
548 echo "creating cache $cache_file"
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
570 ac_n= ac_c='\c' ac_t=
578 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
579 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
580 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
582 MONTH=`echo $DATE | awk -F- '{print $2}'`
583 YEAR=`echo $DATE | awk -F- '{print $3}'`
585 if expr $YEAR ">" 1900 > /dev/null ; then
587 elif expr $YEAR ">" 90 >/dev/null ; then
588 E2FSPROGS_YEAR=19$YEAR
590 E2FSPROGS_YEAR=20$YEAR
594 Jan) E2FSPROGS_MONTH="January" ;;
595 Feb) E2FSPROGS_MONTH="February" ;;
596 Mar) E2FSPROGS_MONTH="March" ;;
597 Apr) E2FSPROGS_MONTH="April" ;;
598 May) E2FSPROGS_MONTH="May" ;;
599 Jun) E2FSPROGS_MONTH="June" ;;
600 Jul) E2FSPROGS_MONTH="July" ;;
601 Aug) E2FSPROGS_MONTH="August" ;;
602 Sep) E2FSPROGS_MONTH="September" ;;
603 Oct) E2FSPROGS_MONTH="October" ;;
604 Nov) E2FSPROGS_MONTH="November" ;;
605 Dec) E2FSPROGS_MONTH="December" ;;
606 *) echo "Unknown month $MONTH??" ;;
609 unset DATE MONTH YEAR
610 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
611 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
616 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
617 if test -f $ac_dir/install-sh; then
619 ac_install_sh="$ac_aux_dir/install-sh -c"
621 elif test -f $ac_dir/install.sh; then
623 ac_install_sh="$ac_aux_dir/install.sh -c"
627 if test -z "$ac_aux_dir"; then
628 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
630 ac_config_guess=$ac_aux_dir/config.guess
631 ac_config_sub=$ac_aux_dir/config.sub
632 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
635 # Make sure we can run config.sub.
636 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
637 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
640 echo $ac_n "checking host system type""... $ac_c" 1>&6
641 echo "configure:642: checking host system type" >&5
644 case "$host_alias" in
648 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
649 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
651 *) host_alias=$nonopt ;;
655 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
656 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
657 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
658 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
659 echo "$ac_t""$host" 1>&6
661 # Check whether --with-cc or --without-cc was given.
662 if test "${with_cc+set}" = set; then
664 echo "$ac_t""CC=$withval" 1>&6
667 if test -z "$CC" ; then CC=cc; fi
668 echo "$ac_t""CC defaults to $CC" 1>&6
672 # Extract the first word of "gcc", so it can be a program name with args.
673 set dummy gcc; ac_word=$2
674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
675 echo "configure:676: checking for $ac_word" >&5
676 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
679 if test -n "$CC"; then
680 ac_cv_prog_CC="$CC" # Let the user override the test.
682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
684 for ac_dir in $ac_dummy; do
685 test -z "$ac_dir" && ac_dir=.
686 if test -f $ac_dir/$ac_word; then
695 if test -n "$CC"; then
696 echo "$ac_t""$CC" 1>&6
698 echo "$ac_t""no" 1>&6
701 if test -z "$CC"; then
702 # Extract the first word of "cc", so it can be a program name with args.
703 set dummy cc; ac_word=$2
704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
705 echo "configure:706: checking for $ac_word" >&5
706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 if test -n "$CC"; then
710 ac_cv_prog_CC="$CC" # Let the user override the test.
712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
715 for ac_dir in $ac_dummy; do
716 test -z "$ac_dir" && ac_dir=.
717 if test -f $ac_dir/$ac_word; then
718 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
727 if test $ac_prog_rejected = yes; then
728 # We found a bogon in the path, so make sure we never use it.
729 set dummy $ac_cv_prog_CC
731 if test $# -gt 0; then
732 # We chose a different compiler from the bogus one.
733 # However, it has the same basename, so the bogon will be chosen
734 # first if we set CC to just the basename; use the full file name.
736 set dummy "$ac_dir/$ac_word" "$@"
744 if test -n "$CC"; then
745 echo "$ac_t""$CC" 1>&6
747 echo "$ac_t""no" 1>&6
750 if test -z "$CC"; then
753 # Extract the first word of "cl", so it can be a program name with args.
754 set dummy cl; ac_word=$2
755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
756 echo "configure:757: checking for $ac_word" >&5
757 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
760 if test -n "$CC"; then
761 ac_cv_prog_CC="$CC" # Let the user override the test.
763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
765 for ac_dir in $ac_dummy; do
766 test -z "$ac_dir" && ac_dir=.
767 if test -f $ac_dir/$ac_word; then
776 if test -n "$CC"; then
777 echo "$ac_t""$CC" 1>&6
779 echo "$ac_t""no" 1>&6
784 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
787 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
788 echo "configure:789: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
792 ac_cpp='$CPP $CPPFLAGS'
793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
795 cross_compiling=$ac_cv_prog_cc_cross
797 cat > conftest.$ac_ext << EOF
799 #line 800 "configure"
800 #include "confdefs.h"
804 if { (eval echo configure:805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
805 ac_cv_prog_cc_works=yes
806 # If we can't run a trivial program, we are probably using a cross compiler.
807 if (./conftest; exit) 2>/dev/null; then
808 ac_cv_prog_cc_cross=no
810 ac_cv_prog_cc_cross=yes
813 echo "configure: failed program was:" >&5
814 cat conftest.$ac_ext >&5
815 ac_cv_prog_cc_works=no
819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
820 ac_cpp='$CPP $CPPFLAGS'
821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
823 cross_compiling=$ac_cv_prog_cc_cross
825 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
826 if test $ac_cv_prog_cc_works = no; then
827 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
829 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
830 echo "configure:831: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
831 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
832 cross_compiling=$ac_cv_prog_cc_cross
834 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
835 echo "configure:836: checking whether we are using GNU C" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 cat > conftest.c <<EOF
844 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
851 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
853 if test $ac_cv_prog_gcc = yes; then
859 ac_test_CFLAGS="${CFLAGS+set}"
860 ac_save_CFLAGS="$CFLAGS"
862 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
863 echo "configure:864: checking whether ${CC-cc} accepts -g" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 echo 'void f(){}' > conftest.c
868 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
877 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
878 if test "$ac_test_CFLAGS" = set; then
879 CFLAGS="$ac_save_CFLAGS"
880 elif test $ac_cv_prog_cc_g = yes; then
881 if test "$GCC" = yes; then
887 if test "$GCC" = yes; then
894 # Check whether --with-linker or --without-linker was given.
895 if test "${with_linker+set}" = set; then
896 withval="$with_linker"
897 echo "$ac_t""LD=$withval" 1>&6
900 if test -z "$LD" ; then LD=$CC; fi
901 echo "$ac_t""LD defaults to $LD" 1>&6
905 # Check whether --with-ccopts or --without-ccopts was given.
906 if test "${with_ccopts+set}" = set; then
907 withval="$with_ccopts"
908 echo "$ac_t""CCOPTS is $withval" 1>&6
911 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
912 echo "configure:913: checking how to run the C preprocessor" >&5
913 # On Suns, sometimes $CPP names a directory.
914 if test -n "$CPP" && test -d "$CPP"; then
917 if test -z "$CPP"; then
918 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 # This must be in double quotes, not single quotes, because CPP may get
922 # substituted into the Makefile and "${CC-cc}" will confuse make.
924 # On the NeXT, cc -E runs the code through the compiler's parser,
925 # not just through cpp.
926 cat > conftest.$ac_ext <<EOF
927 #line 928 "configure"
928 #include "confdefs.h"
932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
933 { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
935 if test -z "$ac_err"; then
939 echo "configure: failed program was:" >&5
940 cat conftest.$ac_ext >&5
942 CPP="${CC-cc} -E -traditional-cpp"
943 cat > conftest.$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
950 { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
952 if test -z "$ac_err"; then
956 echo "configure: failed program was:" >&5
957 cat conftest.$ac_ext >&5
959 CPP="${CC-cc} -nologo -E"
960 cat > conftest.$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
967 { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
969 if test -z "$ac_err"; then
973 echo "configure: failed program was:" >&5
974 cat conftest.$ac_ext >&5
983 ac_cv_prog_CPP="$CPP"
985 CPP="$ac_cv_prog_CPP"
987 ac_cv_prog_CPP="$CPP"
989 echo "$ac_t""$CPP" 1>&6
991 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
992 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
993 echo "configure:994: checking for linux/fs.h" >&5
994 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 cat > conftest.$ac_ext <<EOF
998 #line 999 "configure"
999 #include "confdefs.h"
1000 #include <linux/fs.h>
1002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1003 { (eval echo configure:1004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1005 if test -z "$ac_err"; then
1007 eval "ac_cv_header_$ac_safe=yes"
1010 echo "configure: failed program was:" >&5
1011 cat conftest.$ac_ext >&5
1013 eval "ac_cv_header_$ac_safe=no"
1017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1018 echo "$ac_t""yes" 1>&6
1021 echo "$ac_t""no" 1>&6
1025 if test "$linux_headers" != yes; then
1026 LINUX_INCLUDE='-I$(top_builddir)/include'
1032 # Check whether --with-ldopts or --without-ldopts was given.
1033 if test "${with_ldopts+set}" = set; then
1034 withval="$with_ldopts"
1035 echo "$ac_t""LDFLAGS is $withval" 1>&6
1041 # Check whether --with-root-prefix or --without-root-prefix was given.
1042 if test "${with_root_prefix+set}" = set; then
1043 withval="$with_root_prefix"
1044 root_prefix=$withval
1048 # Check whether --enable-compression or --disable-compression was given.
1049 if test "${enable_compression+set}" = set; then
1050 enableval="$enable_compression"
1051 if test "$enableval" = "no"
1053 echo "Disabling compression support"
1055 cat >> confdefs.h <<\EOF
1056 #define ENABLE_COMPRESSION 1
1059 echo "Enabling compression support"
1060 echo "WARNING: Compression support is experimental"
1064 echo "Disabling compression support by default"
1068 # Check whether --enable-htree or --disable-htree was given.
1069 if test "${enable_htree+set}" = set; then
1070 enableval="$enable_htree"
1071 if test "$enableval" = "no"
1074 echo "Disabling htree directory support"
1077 cat >> confdefs.h <<\EOF
1078 #define ENABLE_HTREE 1
1081 echo "Enabling htree directory support"
1082 echo "WARNING: htree support is experimental"
1087 echo "Disabling htree directory support by default"
1092 # Check whether --enable-htree-clear or --disable-htree-clear was given.
1093 if test "${enable_htree_clear+set}" = set; then
1094 enableval="$enable_htree_clear"
1095 if test "$enableval" = "no"
1098 echo "Disabling htree clearing"
1101 cat >> confdefs.h <<\EOF
1102 #define ENABLE_HTREE_CLEAR 1
1105 echo "Enabling htree clearing"
1110 echo "Disabling htree clearing by default"
1115 # Check whether --enable-old-evms or --disable-old-evms was given.
1116 if test "${enable_old_evms+set}" = set; then
1117 enableval="$enable_old_evms"
1118 if test "$enableval" = "no"
1120 echo "Using EVMS 1.1.0 ABI"
1122 cat >> confdefs.h <<\EOF
1123 #define ABI_EVMS_1_0 1
1126 echo "Enabling EVMS 1.0.0 ABI"
1130 echo "Using EVMS 1.1.0 ABI by default"
1134 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1135 if test "${enable_dll_shlibs+set}" = set; then
1136 enableval="$enable_dll_shlibs"
1137 if test "$enableval" = "no"
1140 MAKEFILE_DLL=/dev/null
1141 echo "Disabling DLL shared libraries"
1144 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1147 echo "Enabling DLL shared libraries"
1151 MAKEFILE_DLL=/dev/null
1153 echo "Disabling DLL shared libraries by default"
1159 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1160 if test "${enable_elf_shlibs+set}" = set; then
1161 enableval="$enable_elf_shlibs"
1162 if test "$enableval" = "no"
1165 MAKEFILE_ELF=/dev/null
1166 echo "Disabling ELF shared libraries"
1169 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1172 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1177 echo "Enabling ELF shared libraries"
1181 MAKEFILE_ELF=/dev/null
1183 echo "Disabling ELF shared libraries by default"
1189 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1190 if test "${enable_bsd_shlibs+set}" = set; then
1191 enableval="$enable_bsd_shlibs"
1192 if test "$enableval" = "no"
1195 MAKEFILE_BSDLIB=/dev/null
1196 echo "Disabling BSD shared libraries"
1199 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1201 echo "Enabling BSD shared libraries"
1205 MAKEFILE_BSDLIB=/dev/null
1207 echo "Disabling BSD shared libraries by default"
1213 # Check whether --enable-profile or --disable-profile was given.
1214 if test "${enable_profile+set}" = set; then
1215 enableval="$enable_profile"
1216 if test "$enableval" = "no"
1219 MAKEFILE_PROFILE=/dev/null
1220 echo "Disabling profiling libraries"
1223 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1224 PROFILED_LIB_EXT=_p.a
1225 echo "Building profiling libraries"
1230 MAKEFILE_PROFILE=/dev/null
1231 echo "Disabling profiling libraries by default"
1237 # Check whether --enable-checker or --disable-checker was given.
1238 if test "${enable_checker+set}" = set; then
1239 enableval="$enable_checker"
1240 if test "$enableval" = "no"
1243 MAKEFILE_CHECKER=/dev/null
1244 echo "Disabling checker libraries"
1247 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1248 echo "Building checker libraries"
1253 MAKEFILE_CHECKER=/dev/null
1254 echo "Disabling checker libraries by default"
1263 # Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1264 if test "${enable_jfs_debug+set}" = set; then
1265 enableval="$enable_jfs_debug"
1266 if test "$enableval" = "no"
1268 echo "Disabling journal debugging"
1270 cat >> confdefs.h <<\EOF
1271 #define CONFIG_JBD_DEBUG 1
1274 echo "Enabling journal debugging"
1278 echo "Disabling journal debugging by default"
1282 # Check whether --enable-swapfs or --disable-swapfs was given.
1283 if test "${enable_swapfs+set}" = set; then
1284 enableval="$enable_swapfs"
1285 if test "$enableval" = "no"
1287 echo "Disabling swapfs support"
1289 cat >> confdefs.h <<\EOF
1290 #define ENABLE_SWAPFS 1
1293 echo "Enabling swapfs support"
1297 echo "Enabling swapfs support by default"
1298 cat >> confdefs.h <<\EOF
1299 #define ENABLE_SWAPFS 1
1305 # Check whether --enable-debugfs or --disable-debugfs was given.
1306 if test "${enable_debugfs+set}" = set; then
1307 enableval="$enable_debugfs"
1308 if test "$enableval" = "no"
1310 echo "Disabling debugfs support"
1314 echo "Enabling debugfs support"
1318 echo "Enabling debugfs support by default"
1324 # Check whether --enable-imager or --disable-imager was given.
1325 if test "${enable_imager+set}" = set; then
1326 enableval="$enable_imager"
1327 if test "$enableval" = "no"
1329 echo "Disabling e2image support"
1333 echo "Enabling e2image support"
1337 echo "Enabling e2image support by default"
1343 # Check whether --enable-resizer or --disable-resizer was given.
1344 if test "${enable_resizer+set}" = set; then
1345 enableval="$enable_resizer"
1346 if test "$enableval" = "no"
1348 echo "Disabling e2resize support"
1352 echo "Enabling e2resize support"
1356 echo "Enabling e2resize support by default"
1362 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1363 if test "${enable_dynamic_e2fsck+set}" = set; then
1364 enableval="$enable_dynamic_e2fsck"
1365 if test "$enableval" = "no"
1368 echo "Building e2fsck statically"
1371 echo "Building e2fsck dynamically"
1376 echo "Building e2fsck statically by default"
1381 # Check whether --enable-fsck or --disable-fsck was given.
1382 if test "${enable_fsck+set}" = set; then
1383 enableval="$enable_fsck"
1384 if test "$enableval" = "no"
1386 FSCK_PROG='' FSCK_MAN=''
1387 echo "Not building fsck wrapper"
1389 FSCK_PROG=fsck FSCK_MAN=fsck.8
1390 echo "Building fsck wrapper"
1396 FSCK_PROG='' FSCK_MAN=''
1397 echo "Not building fsck wrapper by default"
1400 FSCK_PROG=fsck FSCK_MAN=fsck.8
1401 echo "Building fsck wrapper by default"
1408 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1410 # Check whether --enable-old-bitops or --disable-old-bitops was given.
1411 if test "${enable_old_bitops+set}" = set; then
1412 enableval="$enable_old_bitops"
1413 if test "$enableval" = "no"
1415 echo "Using new (standard) bitmask operations"
1417 cat >> confdefs.h <<\EOF
1418 #define EXT2_OLD_BITOPS 1
1421 echo "Using old (native) bitmask operations"
1426 echo "Using standard bitmask operations by default"
1431 VERSION="$E2FSPROGS_VERSION"
1432 cat >> confdefs.h <<EOF
1433 #define PACKAGE "$PACKAGE"
1436 cat >> confdefs.h <<EOF
1437 #define VERSION "$VERSION"
1443 ALL_LINGUAS="it nyc tr"
1444 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1445 echo "configure:1446: checking whether ${MAKE-make} sets \${MAKE}" >&5
1446 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1447 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1450 cat > conftestmake <<\EOF
1452 @echo 'ac_maketemp="${MAKE}"'
1454 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1455 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1456 if test -n "$ac_maketemp"; then
1457 eval ac_cv_prog_make_${ac_make}_set=yes
1459 eval ac_cv_prog_make_${ac_make}_set=no
1463 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1467 echo "$ac_t""no" 1>&6
1468 SET_MAKE="MAKE=${MAKE-make}"
1471 # Extract the first word of "ranlib", so it can be a program name with args.
1472 set dummy ranlib; ac_word=$2
1473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1474 echo "configure:1475: checking for $ac_word" >&5
1475 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1478 if test -n "$RANLIB"; then
1479 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1483 for ac_dir in $ac_dummy; do
1484 test -z "$ac_dir" && ac_dir=.
1485 if test -f $ac_dir/$ac_word; then
1486 ac_cv_prog_RANLIB="ranlib"
1491 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1494 RANLIB="$ac_cv_prog_RANLIB"
1495 if test -n "$RANLIB"; then
1496 echo "$ac_t""$RANLIB" 1>&6
1498 echo "$ac_t""no" 1>&6
1501 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1502 echo "configure:1503: checking for POSIXized ISC" >&5
1503 if test -d /etc/conf/kconfig.d &&
1504 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1506 echo "$ac_t""yes" 1>&6
1507 ISC=yes # If later tests want to check for ISC.
1508 cat >> confdefs.h <<\EOF
1509 #define _POSIX_SOURCE 1
1512 if test "$GCC" = yes; then
1518 echo "$ac_t""no" 1>&6
1522 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1523 echo "configure:1524: checking for ANSI C header files" >&5
1524 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 cat > conftest.$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1536 { (eval echo configure:1537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1538 if test -z "$ac_err"; then
1540 ac_cv_header_stdc=yes
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1546 ac_cv_header_stdc=no
1550 if test $ac_cv_header_stdc = yes; then
1551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1558 egrep "memchr" >/dev/null 2>&1; then
1562 ac_cv_header_stdc=no
1568 if test $ac_cv_header_stdc = yes; then
1569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1576 egrep "free" >/dev/null 2>&1; then
1580 ac_cv_header_stdc=no
1586 if test $ac_cv_header_stdc = yes; then
1587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1588 if test "$cross_compiling" = yes; then
1591 cat > conftest.$ac_ext <<EOF
1592 #line 1593 "configure"
1593 #include "confdefs.h"
1595 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1596 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1597 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1598 int main () { int i; for (i = 0; i < 256; i++)
1599 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1603 if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1610 ac_cv_header_stdc=no
1618 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1619 if test $ac_cv_header_stdc = yes; then
1620 cat >> confdefs.h <<\EOF
1621 #define STDC_HEADERS 1
1626 echo $ac_n "checking for working const""... $ac_c" 1>&6
1627 echo "configure:1628: checking for working const" >&5
1628 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1637 /* Ultrix mips cc rejects this. */
1638 typedef int charset[2]; const charset x;
1639 /* SunOS 4.1.1 cc rejects this. */
1640 char const *const *ccp;
1642 /* NEC SVR4.0.2 mips cc rejects this. */
1643 struct point {int x, y;};
1644 static struct point const zero = {0,0};
1645 /* AIX XL C 1.02.0.0 rejects this.
1646 It does not let you subtract one const X* pointer from another in an arm
1647 of an if-expression whose if-part is not a constant expression */
1648 const char *g = "string";
1649 ccp = &g + (g ? g-g : 0);
1650 /* HPUX 7.0 cc rejects these. */
1653 ccp = (char const *const *) p;
1654 { /* SCO 3.2v4 cc rejects this. */
1656 char const *s = 0 ? (char *) 0 : (char const *) 0;
1660 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1662 const int *foo = &x[0];
1665 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1666 typedef const int *iptr;
1670 { /* AIX XL C 1.02.0.0 rejects this saying
1671 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1672 struct s { int j; const int *ap[3]; };
1673 struct s *b; b->j = 5;
1675 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1681 if { (eval echo configure:1682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1693 echo "$ac_t""$ac_cv_c_const" 1>&6
1694 if test $ac_cv_c_const = no; then
1695 cat >> confdefs.h <<\EOF
1701 echo $ac_n "checking for inline""... $ac_c" 1>&6
1702 echo "configure:1703: checking for inline" >&5
1703 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1707 for ac_kw in inline __inline__ __inline; do
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1716 if { (eval echo configure:1717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1718 ac_cv_c_inline=$ac_kw; break
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1728 echo "$ac_t""$ac_cv_c_inline" 1>&6
1729 case "$ac_cv_c_inline" in
1731 no) cat >> confdefs.h <<\EOF
1735 *) cat >> confdefs.h <<EOF
1736 #define inline $ac_cv_c_inline
1741 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1742 echo "configure:1743: checking for off_t" >&5
1743 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 #include <sys/types.h>
1755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1756 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1758 ac_cv_type_off_t=yes
1766 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1767 if test $ac_cv_type_off_t = no; then
1768 cat >> confdefs.h <<\EOF
1774 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1775 echo "configure:1776: checking for size_t" >&5
1776 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 cat > conftest.$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1782 #include <sys/types.h>
1788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1789 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1791 ac_cv_type_size_t=yes
1794 ac_cv_type_size_t=no
1799 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1800 if test $ac_cv_type_size_t = no; then
1801 cat >> confdefs.h <<\EOF
1802 #define size_t unsigned
1807 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1808 # for constant arguments. Useless!
1809 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1810 echo "configure:1811: checking for working alloca.h" >&5
1811 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1819 char *p = alloca(2 * sizeof(int));
1822 if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1824 ac_cv_header_alloca_h=yes
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 ac_cv_header_alloca_h=no
1834 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1835 if test $ac_cv_header_alloca_h = yes; then
1836 cat >> confdefs.h <<\EOF
1837 #define HAVE_ALLOCA_H 1
1842 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1843 echo "configure:1844: checking for alloca" >&5
1844 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 cat > conftest.$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1852 # define alloca __builtin_alloca
1855 # include <malloc.h>
1856 # define alloca _alloca
1859 # include <alloca.h>
1864 # ifndef alloca /* predefined by HP cc +Olibcalls */
1873 char *p = (char *) alloca(1);
1876 if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1878 ac_cv_func_alloca_works=yes
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1883 ac_cv_func_alloca_works=no
1888 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1889 if test $ac_cv_func_alloca_works = yes; then
1890 cat >> confdefs.h <<\EOF
1891 #define HAVE_ALLOCA 1
1896 if test $ac_cv_func_alloca_works = no; then
1897 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1898 # that cause trouble. Some versions do not even contain alloca or
1899 # contain a buggy version. If you still want to use their alloca,
1900 # use ar to extract alloca.o from them instead of compiling alloca.c.
1901 ALLOCA=alloca.${ac_objext}
1902 cat >> confdefs.h <<\EOF
1907 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1908 echo "configure:1909: checking whether alloca needs Cray hooks" >&5
1909 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1915 #if defined(CRAY) && ! defined(CRAY2)
1922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1923 egrep "webecray" >/dev/null 2>&1; then
1934 echo "$ac_t""$ac_cv_os_cray" 1>&6
1935 if test $ac_cv_os_cray = yes; then
1936 for ac_func in _getb67 GETB67 getb67; do
1937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_func" >&5
1939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $ac_func(); below. */
1948 /* Override any gcc2 internal prototype to avoid an error. */
1949 /* We use char because int might match the return type of a gcc2
1950 builtin and then its argument prototype would still apply. */
1955 /* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1968 eval "ac_cv_func_$ac_func=yes"
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1973 eval "ac_cv_func_$ac_func=no"
1978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1979 echo "$ac_t""yes" 1>&6
1980 cat >> confdefs.h <<EOF
1981 #define CRAY_STACKSEG_END $ac_func
1986 echo "$ac_t""no" 1>&6
1992 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1993 echo "configure:1994: checking stack direction for C alloca" >&5
1994 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 if test "$cross_compiling" = yes; then
1998 ac_cv_c_stack_direction=0
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2003 find_stack_direction ()
2005 static char *addr = 0;
2010 return find_stack_direction ();
2013 return (&dummy > addr) ? 1 : -1;
2017 exit (find_stack_direction() < 0);
2020 if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2022 ac_cv_c_stack_direction=1
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2027 ac_cv_c_stack_direction=-1
2034 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2035 cat >> confdefs.h <<EOF
2036 #define STACK_DIRECTION $ac_cv_c_stack_direction
2041 for ac_hdr in unistd.h
2043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2045 echo "configure:2046: checking for $ac_hdr" >&5
2046 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2055 { (eval echo configure:2056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2057 if test -z "$ac_err"; then
2059 eval "ac_cv_header_$ac_safe=yes"
2062 echo "configure: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2065 eval "ac_cv_header_$ac_safe=no"
2069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2070 echo "$ac_t""yes" 1>&6
2071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2072 cat >> confdefs.h <<EOF
2073 #define $ac_tr_hdr 1
2077 echo "$ac_t""no" 1>&6
2081 for ac_func in getpagesize
2083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_func" >&5
2085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* System header to define __stub macros and hopefully few prototypes,
2092 which can conflict with char $ac_func(); below. */
2094 /* Override any gcc2 internal prototype to avoid an error. */
2095 /* We use char because int might match the return type of a gcc2
2096 builtin and then its argument prototype would still apply. */
2101 /* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2112 if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2114 eval "ac_cv_func_$ac_func=yes"
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2119 eval "ac_cv_func_$ac_func=no"
2124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2125 echo "$ac_t""yes" 1>&6
2126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2127 cat >> confdefs.h <<EOF
2128 #define $ac_tr_func 1
2132 echo "$ac_t""no" 1>&6
2136 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2137 echo "configure:2138: checking for working mmap" >&5
2138 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 if test "$cross_compiling" = yes; then
2142 ac_cv_func_mmap_fixed_mapped=no
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2148 /* Thanks to Mike Haertel and Jim Avera for this test.
2149 Here is a matrix of mmap possibilities:
2150 mmap private not fixed
2151 mmap private fixed at somewhere currently unmapped
2152 mmap private fixed at somewhere already mapped
2153 mmap shared not fixed
2154 mmap shared fixed at somewhere currently unmapped
2155 mmap shared fixed at somewhere already mapped
2156 For private mappings, we should verify that changes cannot be read()
2157 back from the file, nor mmap's back from the file at a different
2158 address. (There have been systems where private was not correctly
2159 implemented like the infamous i386 svr4.0, and systems where the
2160 VM page cache was not coherent with the filesystem buffer cache
2161 like early versions of FreeBSD and possibly contemporary NetBSD.)
2162 For shared mappings, we should conversely verify that changes get
2163 propogated back to all the places they're supposed to be.
2165 Grep wants private fixed already mapped.
2166 The main things grep needs to know about mmap are:
2167 * does it exist and is it safe to write into the mmap'd area
2168 * how to use it (BSD variants) */
2169 #include <sys/types.h>
2171 #include <sys/mman.h>
2173 /* This mess was copied from the GNU getpagesize.h. */
2174 #ifndef HAVE_GETPAGESIZE
2175 # ifdef HAVE_UNISTD_H
2176 # include <unistd.h>
2179 /* Assume that all systems that can run configure have sys/param.h. */
2180 # ifndef HAVE_SYS_PARAM_H
2181 # define HAVE_SYS_PARAM_H 1
2184 # ifdef _SC_PAGESIZE
2185 # define getpagesize() sysconf(_SC_PAGESIZE)
2186 # else /* no _SC_PAGESIZE */
2187 # ifdef HAVE_SYS_PARAM_H
2188 # include <sys/param.h>
2189 # ifdef EXEC_PAGESIZE
2190 # define getpagesize() EXEC_PAGESIZE
2191 # else /* no EXEC_PAGESIZE */
2193 # define getpagesize() NBPG * CLSIZE
2196 # endif /* no CLSIZE */
2197 # else /* no NBPG */
2199 # define getpagesize() NBPC
2200 # else /* no NBPC */
2202 # define getpagesize() PAGESIZE
2203 # endif /* PAGESIZE */
2204 # endif /* no NBPC */
2205 # endif /* no NBPG */
2206 # endif /* no EXEC_PAGESIZE */
2207 # else /* no HAVE_SYS_PARAM_H */
2208 # define getpagesize() 8192 /* punt totally */
2209 # endif /* no HAVE_SYS_PARAM_H */
2210 # endif /* no _SC_PAGESIZE */
2212 #endif /* no HAVE_GETPAGESIZE */
2215 extern "C" { void *malloc(unsigned); }
2223 char *data, *data2, *data3;
2227 pagesize = getpagesize();
2230 * First, make a file with some known garbage in it.
2232 data = malloc(pagesize);
2235 for (i = 0; i < pagesize; ++i)
2236 *(data + i) = rand();
2238 fd = creat("conftestmmap", 0600);
2241 if (write(fd, data, pagesize) != pagesize)
2246 * Next, try to mmap the file at a fixed address which
2247 * already has something else allocated at it. If we can,
2248 * also make sure that we see the same garbage.
2250 fd = open("conftestmmap", O_RDWR);
2253 data2 = malloc(2 * pagesize);
2256 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2257 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2258 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2260 for (i = 0; i < pagesize; ++i)
2261 if (*(data + i) != *(data2 + i))
2265 * Finally, make sure that changes to the mapped area
2266 * do not percolate back to the file as seen by read().
2267 * (This is a bug on some variants of i386 svr4.0.)
2269 for (i = 0; i < pagesize; ++i)
2270 *(data2 + i) = *(data2 + i) + 1;
2271 data3 = malloc(pagesize);
2274 if (read(fd, data3, pagesize) != pagesize)
2276 for (i = 0; i < pagesize; ++i)
2277 if (*(data + i) != *(data3 + i))
2280 unlink("conftestmmap");
2285 if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2287 ac_cv_func_mmap_fixed_mapped=yes
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2292 ac_cv_func_mmap_fixed_mapped=no
2299 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2300 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2301 cat >> confdefs.h <<\EOF
2308 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2309 unistd.h sys/param.h
2311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_hdr" >&5
2314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2323 { (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2325 if test -z "$ac_err"; then
2327 eval "ac_cv_header_$ac_safe=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2333 eval "ac_cv_header_$ac_safe=no"
2337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2340 cat >> confdefs.h <<EOF
2341 #define $ac_tr_hdr 1
2345 echo "$ac_t""no" 1>&6
2349 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2350 strdup __argz_count __argz_stringify __argz_next
2352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_func" >&5
2354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 /* System header to define __stub macros and hopefully few prototypes,
2361 which can conflict with char $ac_func(); below. */
2363 /* Override any gcc2 internal prototype to avoid an error. */
2364 /* We use char because int might match the return type of a gcc2
2365 builtin and then its argument prototype would still apply. */
2370 /* The GNU C library defines this for functions which it implements
2371 to always fail with ENOSYS. Some functions are actually named
2372 something starting with __ and the normal name is an alias. */
2373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2383 eval "ac_cv_func_$ac_func=yes"
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 eval "ac_cv_func_$ac_func=no"
2393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2394 echo "$ac_t""yes" 1>&6
2395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2396 cat >> confdefs.h <<EOF
2397 #define $ac_tr_func 1
2401 echo "$ac_t""no" 1>&6
2406 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2407 for ac_func in stpcpy
2409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_func" >&5
2411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 /* System header to define __stub macros and hopefully few prototypes,
2418 which can conflict with char $ac_func(); below. */
2420 /* Override any gcc2 internal prototype to avoid an error. */
2421 /* We use char because int might match the return type of a gcc2
2422 builtin and then its argument prototype would still apply. */
2427 /* The GNU C library defines this for functions which it implements
2428 to always fail with ENOSYS. Some functions are actually named
2429 something starting with __ and the normal name is an alias. */
2430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2438 if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2440 eval "ac_cv_func_$ac_func=yes"
2442 echo "configure: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2445 eval "ac_cv_func_$ac_func=no"
2450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2453 cat >> confdefs.h <<EOF
2454 #define $ac_tr_func 1
2458 echo "$ac_t""no" 1>&6
2463 if test "${ac_cv_func_stpcpy}" = "yes"; then
2464 cat >> confdefs.h <<\EOF
2465 #define HAVE_STPCPY 1
2470 if test $ac_cv_header_locale_h = yes; then
2471 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2472 echo "configure:2473: checking for LC_MESSAGES" >&5
2473 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2486 am_cv_val_LC_MESSAGES=yes
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 am_cv_val_LC_MESSAGES=no
2496 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2497 if test $am_cv_val_LC_MESSAGES = yes; then
2498 cat >> confdefs.h <<\EOF
2499 #define HAVE_LC_MESSAGES 1
2504 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2505 echo "configure:2506: checking whether NLS is requested" >&5
2506 # Check whether --enable-nls or --disable-nls was given.
2507 if test "${enable_nls+set}" = set; then
2508 enableval="$enable_nls"
2514 echo "$ac_t""$USE_NLS" 1>&6
2517 USE_INCLUDED_LIBINTL=no
2519 if test "$USE_NLS" = "yes"; then
2520 cat >> confdefs.h <<\EOF
2521 #define ENABLE_NLS 1
2524 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2525 echo "configure:2526: checking whether included gettext is requested" >&5
2526 # Check whether --with-included-gettext or --without-included-gettext was given.
2527 if test "${with_included_gettext+set}" = set; then
2528 withval="$with_included_gettext"
2529 nls_cv_force_use_gnu_gettext=$withval
2531 nls_cv_force_use_gnu_gettext=no
2534 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2536 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2537 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2539 nls_cv_header_libgt=
2542 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2544 echo "configure:2545: checking for libintl.h" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2551 #include <libintl.h>
2553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2558 eval "ac_cv_header_$ac_safe=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2564 eval "ac_cv_header_$ac_safe=no"
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2571 echo "configure:2572: checking for gettext in libc" >&5
2572 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 #include <libintl.h>
2580 return (int) gettext ("")
2583 if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2585 gt_cv_func_gettext_libc=yes
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2590 gt_cv_func_gettext_libc=no
2595 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2597 if test "$gt_cv_func_gettext_libc" != "yes"; then
2598 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2599 echo "configure:2600: checking for bindtextdomain in -lintl" >&5
2600 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 ac_save_LIBS="$LIBS"
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 /* Override any gcc2 internal prototype to avoid an error. */
2610 /* We use char because int might match the return type of a gcc2
2611 builtin and then its argument prototype would still apply. */
2612 char bindtextdomain();
2618 if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2620 eval "ac_cv_lib_$ac_lib_var=yes"
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2625 eval "ac_cv_lib_$ac_lib_var=no"
2628 LIBS="$ac_save_LIBS"
2631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2632 echo "$ac_t""yes" 1>&6
2633 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2634 echo "configure:2635: checking for gettext in libintl" >&5
2635 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2639 echo "configure:2640: checking for gettext in -lintl" >&5
2640 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 ac_save_LIBS="$LIBS"
2646 cat > conftest.$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2649 /* Override any gcc2 internal prototype to avoid an error. */
2650 /* We use char because int might match the return type of a gcc2
2651 builtin and then its argument prototype would still apply. */
2658 if { (eval echo configure:2659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2660 eval "ac_cv_lib_$ac_lib_var=yes"
2662 echo "configure: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2665 eval "ac_cv_lib_$ac_lib_var=no"
2668 LIBS="$ac_save_LIBS"
2671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2672 echo "$ac_t""yes" 1>&6
2673 gt_cv_func_gettext_libintl=yes
2675 echo "$ac_t""no" 1>&6
2676 gt_cv_func_gettext_libintl=no
2681 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2683 echo "$ac_t""no" 1>&6
2688 if test "$gt_cv_func_gettext_libc" = "yes" \
2689 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2690 cat >> confdefs.h <<\EOF
2691 #define HAVE_GETTEXT 1
2694 # Extract the first word of "msgfmt", so it can be a program name with args.
2695 set dummy msgfmt; ac_word=$2
2696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_word" >&5
2698 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2703 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2707 for ac_dir in $PATH; do
2708 test -z "$ac_dir" && ac_dir=.
2709 if test -f $ac_dir/$ac_word; then
2710 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2711 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2717 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2721 MSGFMT="$ac_cv_path_MSGFMT"
2722 if test -n "$MSGFMT"; then
2723 echo "$ac_t""$MSGFMT" 1>&6
2725 echo "$ac_t""no" 1>&6
2727 if test "$MSGFMT" != "no"; then
2728 for ac_func in dcgettext
2730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2731 echo "configure:2732: checking for $ac_func" >&5
2732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2738 /* System header to define __stub macros and hopefully few prototypes,
2739 which can conflict with char $ac_func(); below. */
2741 /* Override any gcc2 internal prototype to avoid an error. */
2742 /* We use char because int might match the return type of a gcc2
2743 builtin and then its argument prototype would still apply. */
2748 /* The GNU C library defines this for functions which it implements
2749 to always fail with ENOSYS. Some functions are actually named
2750 something starting with __ and the normal name is an alias. */
2751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2759 if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2761 eval "ac_cv_func_$ac_func=yes"
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 eval "ac_cv_func_$ac_func=no"
2771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2774 cat >> confdefs.h <<EOF
2775 #define $ac_tr_func 1
2779 echo "$ac_t""no" 1>&6
2783 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2784 set dummy gmsgfmt; ac_word=$2
2785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2786 echo "configure:2787: checking for $ac_word" >&5
2787 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2792 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2795 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2803 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2808 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2812 GMSGFMT="$ac_cv_path_GMSGFMT"
2813 if test -n "$GMSGFMT"; then
2814 echo "$ac_t""$GMSGFMT" 1>&6
2816 echo "$ac_t""no" 1>&6
2819 # Extract the first word of "xgettext", so it can be a program name with args.
2820 set dummy xgettext; ac_word=$2
2821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2822 echo "configure:2823: checking for $ac_word" >&5
2823 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2828 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2832 for ac_dir in $PATH; do
2833 test -z "$ac_dir" && ac_dir=.
2834 if test -f $ac_dir/$ac_word; then
2835 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2836 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2842 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2846 XGETTEXT="$ac_cv_path_XGETTEXT"
2847 if test -n "$XGETTEXT"; then
2848 echo "$ac_t""$XGETTEXT" 1>&6
2850 echo "$ac_t""no" 1>&6
2853 cat > conftest.$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2858 extern int _nl_msg_cat_cntr;
2859 return _nl_msg_cat_cntr
2862 if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2867 echo "configure: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2879 echo "$ac_t""no" 1>&6
2883 if test "$CATOBJEXT" = "NONE"; then
2884 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2885 echo "configure:2886: checking whether catgets can be used" >&5
2886 # Check whether --with-catgets or --without-catgets was given.
2887 if test "${with_catgets+set}" = set; then
2888 withval="$with_catgets"
2889 nls_cv_use_catgets=$withval
2891 nls_cv_use_catgets=no
2894 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2896 if test "$nls_cv_use_catgets" = "yes"; then
2897 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2898 echo "configure:2899: checking for main in -li" >&5
2899 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2900 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 ac_save_LIBS="$LIBS"
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2913 if { (eval echo configure:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2915 eval "ac_cv_lib_$ac_lib_var=yes"
2917 echo "configure: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2920 eval "ac_cv_lib_$ac_lib_var=no"
2923 LIBS="$ac_save_LIBS"
2926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2927 echo "$ac_t""yes" 1>&6
2928 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2929 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2930 cat >> confdefs.h <<EOF
2931 #define $ac_tr_lib 1
2937 echo "$ac_t""no" 1>&6
2940 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2941 echo "configure:2942: checking for catgets" >&5
2942 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2948 /* System header to define __stub macros and hopefully few prototypes,
2949 which can conflict with char catgets(); below. */
2951 /* Override any gcc2 internal prototype to avoid an error. */
2952 /* We use char because int might match the return type of a gcc2
2953 builtin and then its argument prototype would still apply. */
2958 /* The GNU C library defines this for functions which it implements
2959 to always fail with ENOSYS. Some functions are actually named
2960 something starting with __ and the normal name is an alias. */
2961 #if defined (__stub_catgets) || defined (__stub___catgets)
2969 if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2971 eval "ac_cv_func_catgets=yes"
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 eval "ac_cv_func_catgets=no"
2981 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2982 echo "$ac_t""yes" 1>&6
2983 cat >> confdefs.h <<\EOF
2984 #define HAVE_CATGETS 1
2987 INTLOBJS="\$(CATOBJS)"
2988 # Extract the first word of "gencat", so it can be a program name with args.
2989 set dummy gencat; ac_word=$2
2990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2991 echo "configure:2992: checking for $ac_word" >&5
2992 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2997 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3000 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3005 for ac_dir in $ac_dummy; do
3006 test -z "$ac_dir" && ac_dir=.
3007 if test -f $ac_dir/$ac_word; then
3008 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3013 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3017 GENCAT="$ac_cv_path_GENCAT"
3018 if test -n "$GENCAT"; then
3019 echo "$ac_t""$GENCAT" 1>&6
3021 echo "$ac_t""no" 1>&6
3023 if test "$GENCAT" != "no"; then
3024 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3025 set dummy gmsgfmt; ac_word=$2
3026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_word" >&5
3028 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3033 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3036 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3041 for ac_dir in $ac_dummy; do
3042 test -z "$ac_dir" && ac_dir=.
3043 if test -f $ac_dir/$ac_word; then
3044 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3049 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3053 GMSGFMT="$ac_cv_path_GMSGFMT"
3054 if test -n "$GMSGFMT"; then
3055 echo "$ac_t""$GMSGFMT" 1>&6
3057 echo "$ac_t""no" 1>&6
3060 if test "$GMSGFMT" = "no"; then
3061 # Extract the first word of "msgfmt", so it can be a program name with args.
3062 set dummy msgfmt; ac_word=$2
3063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3064 echo "configure:3065: checking for $ac_word" >&5
3065 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3070 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3074 for ac_dir in $PATH; do
3075 test -z "$ac_dir" && ac_dir=.
3076 if test -f $ac_dir/$ac_word; then
3077 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3078 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3084 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3088 GMSGFMT="$ac_cv_path_GMSGFMT"
3089 if test -n "$GMSGFMT"; then
3090 echo "$ac_t""$GMSGFMT" 1>&6
3092 echo "$ac_t""no" 1>&6
3096 # Extract the first word of "xgettext", so it can be a program name with args.
3097 set dummy xgettext; ac_word=$2
3098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3099 echo "configure:3100: checking for $ac_word" >&5
3100 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3105 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3109 for ac_dir in $PATH; do
3110 test -z "$ac_dir" && ac_dir=.
3111 if test -f $ac_dir/$ac_word; then
3112 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3113 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3119 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3123 XGETTEXT="$ac_cv_path_XGETTEXT"
3124 if test -n "$XGETTEXT"; then
3125 echo "$ac_t""$XGETTEXT" 1>&6
3127 echo "$ac_t""no" 1>&6
3130 USE_INCLUDED_LIBINTL=yes
3134 INTLDEPS='$(top_builddir)/intl/libintl.a'
3136 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3137 nls_cv_header_intl=intl/libintl.h
3138 nls_cv_header_libgt=intl/libgettext.h
3141 echo "$ac_t""no" 1>&6
3147 if test "$CATOBJEXT" = "NONE"; then
3148 nls_cv_use_gnu_gettext=yes
3152 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3153 INTLOBJS="\$(GETTOBJS)"
3154 # Extract the first word of "msgfmt", so it can be a program name with args.
3155 set dummy msgfmt; ac_word=$2
3156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3157 echo "configure:3158: checking for $ac_word" >&5
3158 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3163 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3167 for ac_dir in $PATH; do
3168 test -z "$ac_dir" && ac_dir=.
3169 if test -f $ac_dir/$ac_word; then
3170 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3171 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3177 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3181 MSGFMT="$ac_cv_path_MSGFMT"
3182 if test -n "$MSGFMT"; then
3183 echo "$ac_t""$MSGFMT" 1>&6
3185 echo "$ac_t""no" 1>&6
3188 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3189 set dummy gmsgfmt; ac_word=$2
3190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3191 echo "configure:3192: checking for $ac_word" >&5
3192 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3197 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3200 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3205 for ac_dir in $ac_dummy; do
3206 test -z "$ac_dir" && ac_dir=.
3207 if test -f $ac_dir/$ac_word; then
3208 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3213 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3217 GMSGFMT="$ac_cv_path_GMSGFMT"
3218 if test -n "$GMSGFMT"; then
3219 echo "$ac_t""$GMSGFMT" 1>&6
3221 echo "$ac_t""no" 1>&6
3224 # Extract the first word of "xgettext", so it can be a program name with args.
3225 set dummy xgettext; ac_word=$2
3226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_word" >&5
3228 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3233 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3237 for ac_dir in $PATH; do
3238 test -z "$ac_dir" && ac_dir=.
3239 if test -f $ac_dir/$ac_word; then
3240 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3241 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3247 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3251 XGETTEXT="$ac_cv_path_XGETTEXT"
3252 if test -n "$XGETTEXT"; then
3253 echo "$ac_t""$XGETTEXT" 1>&6
3255 echo "$ac_t""no" 1>&6
3259 USE_INCLUDED_LIBINTL=yes
3263 INTLDEPS='$(top_builddir)/intl/libintl.a'
3265 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3266 nls_cv_header_intl=intl/libintl.h
3267 nls_cv_header_libgt=intl/libgettext.h
3270 if test "$XGETTEXT" != ":"; then
3271 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3274 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3279 # We need to process the po/ directory.
3283 nls_cv_header_intl=intl/libintl.h
3284 nls_cv_header_libgt=intl/libgettext.h
3290 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3291 # because some of the sources are only built for this goal.
3292 if test "$PACKAGE" = gettext; then
3294 USE_INCLUDED_LIBINTL=yes
3297 for lang in $ALL_LINGUAS; do
3298 GMOFILES="$GMOFILES $lang.gmo"
3299 POFILES="$POFILES $lang.po"
3315 if test "x$CATOBJEXT" != "x"; then
3316 if test "x$ALL_LINGUAS" = "x"; then
3319 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3320 echo "configure:3321: checking for catalogs to be installed" >&5
3322 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3323 case "$ALL_LINGUAS" in
3324 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3327 LINGUAS=$NEW_LINGUAS
3328 echo "$ac_t""$LINGUAS" 1>&6
3331 if test -n "$LINGUAS"; then
3332 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3336 if test $ac_cv_header_locale_h = yes; then
3337 INCLUDE_LOCALE_H="#include <locale.h>"
3340 /* The system does not provide the header <locale.h>. Take care yourself. */"
3344 test -d intl || mkdir intl
3345 if test "$CATOBJEXT" = ".cat"; then
3346 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3347 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3348 echo "configure:3349: checking for linux/version.h" >&5
3349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #include <linux/version.h>
3357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3358 { (eval echo configure:3359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3360 if test -z "$ac_err"; then
3362 eval "ac_cv_header_$ac_safe=yes"
3365 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3368 eval "ac_cv_header_$ac_safe=no"
3372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3373 echo "$ac_t""yes" 1>&6
3376 echo "$ac_t""no" 1>&6
3381 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3383 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3384 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3386 if test "$PACKAGE" = "gettext"; then
3397 if test -n "$ac_aux_dir"; then
3398 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3400 if test -z "$MKINSTALLDIRS"; then
3401 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3408 test -d po || mkdir po
3409 if test "x$srcdir" != "x."; then
3410 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3411 posrcprefix="$srcdir/"
3413 posrcprefix="../$srcdir/"
3419 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3420 < $srcdir/po/POTFILES.in > po/POTFILES
3423 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3424 echo "configure:3425: checking whether ${MAKE-make} sets \${MAKE}" >&5
3425 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3426 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3429 cat > conftestmake <<\EOF
3431 @echo 'ac_maketemp="${MAKE}"'
3433 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3434 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3435 if test -n "$ac_maketemp"; then
3436 eval ac_cv_prog_make_${ac_make}_set=yes
3438 eval ac_cv_prog_make_${ac_make}_set=no
3442 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3443 echo "$ac_t""yes" 1>&6
3446 echo "$ac_t""no" 1>&6
3447 SET_MAKE="MAKE=${MAKE-make}"
3450 # Extract the first word of "ln", so it can be a program name with args.
3451 set dummy ln; ac_word=$2
3452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3453 echo "configure:3454: checking for $ac_word" >&5
3454 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3459 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3462 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3467 for ac_dir in $ac_dummy; do
3468 test -z "$ac_dir" && ac_dir=.
3469 if test -f $ac_dir/$ac_word; then
3470 ac_cv_path_LN="$ac_dir/$ac_word"
3475 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3480 if test -n "$LN"; then
3481 echo "$ac_t""$LN" 1>&6
3483 echo "$ac_t""no" 1>&6
3486 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3487 echo "configure:3488: checking whether ln -s works" >&5
3488 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3492 if ln -s X conftestdata 2>/dev/null
3495 ac_cv_prog_LN_S="ln -s"
3500 LN_S="$ac_cv_prog_LN_S"
3501 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3502 echo "$ac_t""yes" 1>&6
3504 echo "$ac_t""no" 1>&6
3507 # Extract the first word of "mv", so it can be a program name with args.
3508 set dummy mv; ac_word=$2
3509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_word" >&5
3511 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3519 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3524 for ac_dir in $ac_dummy; do
3525 test -z "$ac_dir" && ac_dir=.
3526 if test -f $ac_dir/$ac_word; then
3527 ac_cv_path_MV="$ac_dir/$ac_word"
3532 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3537 if test -n "$MV"; then
3538 echo "$ac_t""$MV" 1>&6
3540 echo "$ac_t""no" 1>&6
3543 # Extract the first word of "cp", so it can be a program name with args.
3544 set dummy cp; ac_word=$2
3545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3546 echo "configure:3547: checking for $ac_word" >&5
3547 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3552 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3555 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3560 for ac_dir in $ac_dummy; do
3561 test -z "$ac_dir" && ac_dir=.
3562 if test -f $ac_dir/$ac_word; then
3563 ac_cv_path_CP="$ac_dir/$ac_word"
3568 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3573 if test -n "$CP"; then
3574 echo "$ac_t""$CP" 1>&6
3576 echo "$ac_t""no" 1>&6
3579 # Extract the first word of "rm", so it can be a program name with args.
3580 set dummy rm; ac_word=$2
3581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3582 echo "configure:3583: checking for $ac_word" >&5
3583 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3588 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3591 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3596 for ac_dir in $ac_dummy; do
3597 test -z "$ac_dir" && ac_dir=.
3598 if test -f $ac_dir/$ac_word; then
3599 ac_cv_path_RM="$ac_dir/$ac_word"
3604 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3609 if test -n "$RM"; then
3610 echo "$ac_t""$RM" 1>&6
3612 echo "$ac_t""no" 1>&6
3615 # Extract the first word of "chmod", so it can be a program name with args.
3616 set dummy chmod; ac_word=$2
3617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3618 echo "configure:3619: checking for $ac_word" >&5
3619 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3624 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3627 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3632 for ac_dir in $ac_dummy; do
3633 test -z "$ac_dir" && ac_dir=.
3634 if test -f $ac_dir/$ac_word; then
3635 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3640 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3644 CHMOD="$ac_cv_path_CHMOD"
3645 if test -n "$CHMOD"; then
3646 echo "$ac_t""$CHMOD" 1>&6
3648 echo "$ac_t""no" 1>&6
3651 # Extract the first word of "awk", so it can be a program name with args.
3652 set dummy awk; ac_word=$2
3653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3654 echo "configure:3655: checking for $ac_word" >&5
3655 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3660 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3663 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3668 for ac_dir in $ac_dummy; do
3669 test -z "$ac_dir" && ac_dir=.
3670 if test -f $ac_dir/$ac_word; then
3671 ac_cv_path_AWK="$ac_dir/$ac_word"
3676 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3680 AWK="$ac_cv_path_AWK"
3681 if test -n "$AWK"; then
3682 echo "$ac_t""$AWK" 1>&6
3684 echo "$ac_t""no" 1>&6
3687 # Extract the first word of "sed", so it can be a program name with args.
3688 set dummy sed; ac_word=$2
3689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3690 echo "configure:3691: checking for $ac_word" >&5
3691 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3696 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3699 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3704 for ac_dir in $ac_dummy; do
3705 test -z "$ac_dir" && ac_dir=.
3706 if test -f $ac_dir/$ac_word; then
3707 ac_cv_path_SED="$ac_dir/$ac_word"
3712 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3716 SED="$ac_cv_path_SED"
3717 if test -n "$SED"; then
3718 echo "$ac_t""$SED" 1>&6
3720 echo "$ac_t""no" 1>&6
3723 # Extract the first word of "perl", so it can be a program name with args.
3724 set dummy perl; ac_word=$2
3725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3726 echo "configure:3727: checking for $ac_word" >&5
3727 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3732 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3735 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3740 for ac_dir in $ac_dummy; do
3741 test -z "$ac_dir" && ac_dir=.
3742 if test -f $ac_dir/$ac_word; then
3743 ac_cv_path_PERL="$ac_dir/$ac_word"
3748 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3752 PERL="$ac_cv_path_PERL"
3753 if test -n "$PERL"; then
3754 echo "$ac_t""$PERL" 1>&6
3756 echo "$ac_t""no" 1>&6
3759 # Extract the first word of "ldconfig", so it can be a program name with args.
3760 set dummy ldconfig; ac_word=$2
3761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3762 echo "configure:3763: checking for $ac_word" >&5
3763 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3768 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3771 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3776 for ac_dir in $ac_dummy; do
3777 test -z "$ac_dir" && ac_dir=.
3778 if test -f $ac_dir/$ac_word; then
3779 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3784 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3788 LDCONFIG="$ac_cv_path_LDCONFIG"
3789 if test -n "$LDCONFIG"; then
3790 echo "$ac_t""$LDCONFIG" 1>&6
3792 echo "$ac_t""no" 1>&6
3795 echo $ac_n "checking build system type""... $ac_c" 1>&6
3796 echo "configure:3797: checking build system type" >&5
3799 case "$build_alias" in
3802 NONE) build_alias=$host_alias ;;
3803 *) build_alias=$nonopt ;;
3807 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3808 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3809 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3810 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3811 echo "$ac_t""$build" 1>&6
3813 if test $host != $build; then
3814 ac_tool_prefix=${host_alias}-
3819 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3820 set dummy ${ac_tool_prefix}ar; ac_word=$2
3821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3822 echo "configure:3823: checking for $ac_word" >&5
3823 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 if test -n "$AR"; then
3827 ac_cv_prog_AR="$AR" # Let the user override the test.
3829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3831 for ac_dir in $ac_dummy; do
3832 test -z "$ac_dir" && ac_dir=.
3833 if test -f $ac_dir/$ac_word; then
3834 ac_cv_prog_AR="${ac_tool_prefix}ar"
3842 if test -n "$AR"; then
3843 echo "$ac_t""$AR" 1>&6
3845 echo "$ac_t""no" 1>&6
3849 if test -z "$ac_cv_prog_AR"; then
3850 if test -n "$ac_tool_prefix"; then
3851 # Extract the first word of "ar", so it can be a program name with args.
3852 set dummy ar; ac_word=$2
3853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3854 echo "configure:3855: checking for $ac_word" >&5
3855 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 if test -n "$AR"; then
3859 ac_cv_prog_AR="$AR" # Let the user override the test.
3861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3863 for ac_dir in $ac_dummy; do
3864 test -z "$ac_dir" && ac_dir=.
3865 if test -f $ac_dir/$ac_word; then
3871 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3875 if test -n "$AR"; then
3876 echo "$ac_t""$AR" 1>&6
3878 echo "$ac_t""no" 1>&6
3886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3889 echo "configure:3890: checking for $ac_word" >&5
3890 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3891 echo $ac_n "(cached) $ac_c" 1>&6
3893 if test -n "$RANLIB"; then
3894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3898 for ac_dir in $ac_dummy; do
3899 test -z "$ac_dir" && ac_dir=.
3900 if test -f $ac_dir/$ac_word; then
3901 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3908 RANLIB="$ac_cv_prog_RANLIB"
3909 if test -n "$RANLIB"; then
3910 echo "$ac_t""$RANLIB" 1>&6
3912 echo "$ac_t""no" 1>&6
3916 if test -z "$ac_cv_prog_RANLIB"; then
3917 if test -n "$ac_tool_prefix"; then
3918 # Extract the first word of "ranlib", so it can be a program name with args.
3919 set dummy ranlib; ac_word=$2
3920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3921 echo "configure:3922: checking for $ac_word" >&5
3922 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 if test -n "$RANLIB"; then
3926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3930 for ac_dir in $ac_dummy; do
3931 test -z "$ac_dir" && ac_dir=.
3932 if test -f $ac_dir/$ac_word; then
3933 ac_cv_prog_RANLIB="ranlib"
3938 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3941 RANLIB="$ac_cv_prog_RANLIB"
3942 if test -n "$RANLIB"; then
3943 echo "$ac_t""$RANLIB" 1>&6
3945 echo "$ac_t""no" 1>&6
3953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3954 set dummy ${ac_tool_prefix}strip; ac_word=$2
3955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3956 echo "configure:3957: checking for $ac_word" >&5
3957 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3960 if test -n "$STRIP"; then
3961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3965 for ac_dir in $ac_dummy; do
3966 test -z "$ac_dir" && ac_dir=.
3967 if test -f $ac_dir/$ac_word; then
3968 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3975 STRIP="$ac_cv_prog_STRIP"
3976 if test -n "$STRIP"; then
3977 echo "$ac_t""$STRIP" 1>&6
3979 echo "$ac_t""no" 1>&6
3983 if test -z "$ac_cv_prog_STRIP"; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "strip", so it can be a program name with args.
3986 set dummy strip; ac_word=$2
3987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3988 echo "configure:3989: checking for $ac_word" >&5
3989 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 if test -n "$STRIP"; then
3993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3997 for ac_dir in $ac_dummy; do
3998 test -z "$ac_dir" && ac_dir=.
3999 if test -f $ac_dir/$ac_word; then
4000 ac_cv_prog_STRIP="strip"
4005 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4008 STRIP="$ac_cv_prog_STRIP"
4009 if test -n "$STRIP"; then
4010 echo "$ac_t""$STRIP" 1>&6
4012 echo "$ac_t""no" 1>&6
4020 # Find a good install program. We prefer a C program (faster),
4021 # so one script is as good as another. But avoid the broken or
4022 # incompatible versions:
4023 # SysV /etc/install, /usr/sbin/install
4024 # SunOS /usr/etc/install
4025 # IRIX /sbin/install
4027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4030 # ./install, which can be erroneously created by make from ./install.sh.
4031 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4032 echo "configure:4033: checking for a BSD compatible install" >&5
4033 if test -z "$INSTALL"; then
4034 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4037 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4038 for ac_dir in $PATH; do
4039 # Account for people who put trailing slashes in PATH elements.
4041 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4043 # OSF1 and SCO ODT 3.0 have their own names for install.
4044 # Don't use installbsd from OSF since it installs stuff as root
4046 for ac_prog in ginstall scoinst install; do
4047 if test -f $ac_dir/$ac_prog; then
4048 if test $ac_prog = install &&
4049 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4050 # AIX install. It has an incompatible calling convention.
4053 ac_cv_path_install="$ac_dir/$ac_prog -c"
4064 if test "${ac_cv_path_install+set}" = set; then
4065 INSTALL="$ac_cv_path_install"
4067 # As a last resort, use the slow shell script. We don't cache a
4068 # path for INSTALL within a source directory, because that will
4069 # break other packages using the cache if that directory is
4070 # removed, or if the path is relative.
4071 INSTALL="$ac_install_sh"
4074 echo "$ac_t""$INSTALL" 1>&6
4076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4077 # It thinks the first close brace ends the variable substitution.
4078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4084 # See if we need a separate native compiler.
4085 if test $cross_compiling = no; then
4089 for ac_prog in gcc cc
4091 # Extract the first word of "$ac_prog", so it can be a program name with args.
4092 set dummy $ac_prog; ac_word=$2
4093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4094 echo "configure:4095: checking for $ac_word" >&5
4095 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 if test -n "$BUILD_CC"; then
4099 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4103 for ac_dir in $ac_dummy; do
4104 test -z "$ac_dir" && ac_dir=.
4105 if test -f $ac_dir/$ac_word; then
4106 ac_cv_prog_BUILD_CC="$ac_prog"
4113 BUILD_CC="$ac_cv_prog_BUILD_CC"
4114 if test -n "$BUILD_CC"; then
4115 echo "$ac_t""$BUILD_CC" 1>&6
4117 echo "$ac_t""no" 1>&6
4120 test -n "$BUILD_CC" && break
4124 for ac_hdr in stdlib.h unistd.h stdarg.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/mount.h sys/sockio.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
4126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_hdr" >&5
4129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4138 { (eval echo configure:4139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4140 if test -z "$ac_err"; then
4142 eval "ac_cv_header_$ac_safe=yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4148 eval "ac_cv_header_$ac_safe=no"
4152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4153 echo "$ac_t""yes" 1>&6
4154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4155 cat >> confdefs.h <<EOF
4156 #define $ac_tr_hdr 1
4160 echo "$ac_t""no" 1>&6
4164 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4165 echo "configure:4166: checking for vprintf" >&5
4166 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 cat > conftest.$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4172 /* System header to define __stub macros and hopefully few prototypes,
4173 which can conflict with char vprintf(); below. */
4175 /* Override any gcc2 internal prototype to avoid an error. */
4176 /* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */
4182 /* The GNU C library defines this for functions which it implements
4183 to always fail with ENOSYS. Some functions are actually named
4184 something starting with __ and the normal name is an alias. */
4185 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4195 eval "ac_cv_func_vprintf=yes"
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4200 eval "ac_cv_func_vprintf=no"
4205 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4206 echo "$ac_t""yes" 1>&6
4207 cat >> confdefs.h <<\EOF
4208 #define HAVE_VPRINTF 1
4212 echo "$ac_t""no" 1>&6
4215 if test "$ac_cv_func_vprintf" != yes; then
4216 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4217 echo "configure:4218: checking for _doprnt" >&5
4218 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 /* System header to define __stub macros and hopefully few prototypes,
4225 which can conflict with char _doprnt(); below. */
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4234 /* The GNU C library defines this for functions which it implements
4235 to always fail with ENOSYS. Some functions are actually named
4236 something starting with __ and the normal name is an alias. */
4237 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4247 eval "ac_cv_func__doprnt=yes"
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 eval "ac_cv_func__doprnt=no"
4257 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4258 echo "$ac_t""yes" 1>&6
4259 cat >> confdefs.h <<\EOF
4260 #define HAVE_DOPRNT 1
4264 echo "$ac_t""no" 1>&6
4269 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4270 echo "configure:4271: checking whether llseek declared in unistd.h" >&5
4271 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4274 cat > conftest.$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4279 extern int llseek(int);
4282 if { (eval echo configure:4283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4284 e2fsprogs_cv_have_llseek_prototype=no
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4289 e2fsprogs_cv_have_llseek_prototype=yes
4294 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4295 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4296 cat >> confdefs.h <<\EOF
4297 #define HAVE_LLSEEK_PROTOTYPE 1
4301 echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
4302 echo "configure:4303: checking whether lseek64 declared in unistd.h" >&5
4303 if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 #define _LARGEFILE_SOURCE
4310 #define _LARGEFILE64_SOURCE
4313 extern int lseek64(int);
4316 if { (eval echo configure:4317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4318 e2fsprogs_cv_have_lseek64_prototype=no
4320 echo "configure: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4323 e2fsprogs_cv_have_lseek64_prototype=yes
4328 echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4329 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4330 cat >> confdefs.h <<\EOF
4331 #define HAVE_LSEEK64_PROTOTYPE 1
4335 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4336 # if cross-compiling, with no cached values, just assume something common.
4337 ac_cv_sizeof_short=2
4340 ac_cv_sizeof_long_long=8
4341 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
4343 echo $ac_n "checking size of short""... $ac_c" 1>&6
4344 echo "configure:4345: checking size of short" >&5
4345 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 if test "$cross_compiling" = yes; then
4349 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4355 #include <sys/types.h>
4358 FILE *f=fopen("conftestval", "w");
4360 fprintf(f, "%d\n", sizeof(short));
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4366 ac_cv_sizeof_short=`cat conftestval`
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 ac_cv_sizeof_short=0
4377 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4378 cat >> confdefs.h <<EOF
4379 #define SIZEOF_SHORT $ac_cv_sizeof_short
4383 echo $ac_n "checking size of int""... $ac_c" 1>&6
4384 echo "configure:4385: checking size of int" >&5
4385 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4388 if test "$cross_compiling" = yes; then
4389 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4391 cat > conftest.$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4395 #include <sys/types.h>
4398 FILE *f=fopen("conftestval", "w");
4400 fprintf(f, "%d\n", sizeof(int));
4404 if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4406 ac_cv_sizeof_int=`cat conftestval`
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4417 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4418 cat >> confdefs.h <<EOF
4419 #define SIZEOF_INT $ac_cv_sizeof_int
4423 echo $ac_n "checking size of long""... $ac_c" 1>&6
4424 echo "configure:4425: checking size of long" >&5
4425 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 if test "$cross_compiling" = yes; then
4429 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4431 cat > conftest.$ac_ext <<EOF
4432 #line 4433 "configure"
4433 #include "confdefs.h"
4435 #include <sys/types.h>
4438 FILE *f=fopen("conftestval", "w");
4440 fprintf(f, "%d\n", sizeof(long));
4444 if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4446 ac_cv_sizeof_long=`cat conftestval`
4448 echo "configure: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4457 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4458 cat >> confdefs.h <<EOF
4459 #define SIZEOF_LONG $ac_cv_sizeof_long
4463 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4464 echo "configure:4465: checking size of long long" >&5
4465 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4468 if test "$cross_compiling" = yes; then
4469 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4475 #include <sys/types.h>
4478 FILE *f=fopen("conftestval", "w");
4480 fprintf(f, "%d\n", sizeof(long long));
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4486 ac_cv_sizeof_long_long=`cat conftestval`
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 ac_cv_sizeof_long_long=0
4497 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4498 cat >> confdefs.h <<EOF
4499 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4503 SIZEOF_SHORT=$ac_cv_sizeof_short
4504 SIZEOF_INT=$ac_cv_sizeof_int
4505 SIZEOF_LONG=$ac_cv_sizeof_long
4506 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4511 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4512 echo "configure:4513: checking whether byte ordering is bigendian" >&5
4513 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 ac_cv_c_bigendian=unknown
4517 # See if sys/param.h defines the BYTE_ORDER macro.
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4521 #include <sys/types.h>
4522 #include <sys/param.h>
4525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4530 if { (eval echo configure:4531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4532 # It does; now see whether it defined to BIG_ENDIAN or not.
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4536 #include <sys/types.h>
4537 #include <sys/param.h>
4540 #if BYTE_ORDER != BIG_ENDIAN
4545 if { (eval echo configure:4546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4547 ac_cv_c_bigendian=yes
4549 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5
4552 ac_cv_c_bigendian=no
4556 echo "configure: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4560 if test $ac_cv_c_bigendian = unknown; then
4561 if test "$cross_compiling" = yes; then
4562 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4568 /* Are we little or big endian? From Harbison&Steele. */
4572 char c[sizeof (long)];
4575 exit (u.c[sizeof (long) - 1] == 1);
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4580 ac_cv_c_bigendian=no
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4585 ac_cv_c_bigendian=yes
4593 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4594 if test $ac_cv_c_bigendian = yes; then
4595 cat >> confdefs.h <<\EOF
4596 #define WORDS_BIGENDIAN 1
4601 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
4602 echo "configure:4603: checking whether struct stat has a st_flags field" >&5
4603 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 #include <sys/stat.h>
4611 struct stat stat; stat.st_flags = 0;
4614 if { (eval echo configure:4615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4616 e2fsprogs_cv_struct_st_flags=yes
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 e2fsprogs_cv_struct_st_flags=no
4626 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4627 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
4628 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
4629 echo "configure:4630: checking whether st_flags field is useful" >&5
4630 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 #include <sys/stat.h>
4638 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4641 if { (eval echo configure:4642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4643 e2fsprogs_cv_struct_st_flags_immut=yes
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 e2fsprogs_cv_struct_st_flags_immut=no
4653 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4654 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4655 cat >> confdefs.h <<\EOF
4656 #define HAVE_STAT_FLAGS 1
4661 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf pathconf
4663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4664 echo "configure:4665: checking for $ac_func" >&5
4665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 /* System header to define __stub macros and hopefully few prototypes,
4672 which can conflict with char $ac_func(); below. */
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4681 /* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4694 eval "ac_cv_func_$ac_func=yes"
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4699 eval "ac_cv_func_$ac_func=no"
4704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4707 cat >> confdefs.h <<EOF
4708 #define $ac_tr_func 1
4712 echo "$ac_t""no" 1>&6
4717 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4718 echo "configure:4719: checking for socket in -lsocket" >&5
4719 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 ac_save_LIBS="$LIBS"
4724 LIBS="-lsocket $LIBS"
4725 cat > conftest.$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4728 /* Override any gcc2 internal prototype to avoid an error. */
4729 /* We use char because int might match the return type of a gcc2
4730 builtin and then its argument prototype would still apply. */
4737 if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4739 eval "ac_cv_lib_$ac_lib_var=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4744 eval "ac_cv_lib_$ac_lib_var=no"
4747 LIBS="$ac_save_LIBS"
4750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4751 echo "$ac_t""yes" 1>&6
4754 echo "$ac_t""no" 1>&6
4758 echo $ac_n "checking for optreset""... $ac_c" 1>&6
4759 echo "configure:4760: checking for optreset" >&5
4760 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 cat > conftest.$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769 egrep "optreset" >/dev/null 2>&1; then
4771 ac_cv_have_optreset=yes
4774 ac_cv_have_optreset=no
4779 echo "$ac_t""$ac_cv_have_optreset" 1>&6
4780 if test $ac_cv_have_optreset = yes; then
4781 cat >> confdefs.h <<\EOF
4782 #define HAVE_OPTRESET 1
4788 cat >> confdefs.h <<\EOF
4789 #define HAVE_EXT2_IOCTLS 1
4796 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4798 echo "On $host_os systems, root_prefix defaults to ''"
4804 if test "$prefix" = NONE ; then
4806 echo "On $host_os systems, prefix defaults to /usr"
4807 if test "$mandir" = '${prefix}/man' ; then
4808 echo "...and mandir defaults to /usr/share/man"
4809 mandir=/usr/share/man
4814 if test "$root_prefix" = NONE ; then
4815 if test "$prefix" = NONE ; then
4816 root_prefix="$ac_default_prefix"
4818 root_prefix="$prefix"
4821 root_sbindir=$sbindir
4823 root_sysconfdir=$sysconfdir
4825 root_bindir='${root_prefix}/bin'
4826 root_sbindir='${root_prefix}/sbin'
4827 root_libdir='${root_prefix}/lib'
4828 root_sysconfdir='${root_prefix}/etc'
4835 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
4836 echo "configure:4837: checking whether linker accepts -static" >&5
4837 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4849 if { (eval echo configure:4850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4851 ac_cv_e2fsprogs_use_static=yes
4853 echo "configure: failed program was:" >&5
4854 cat conftest.$ac_ext >&5
4856 ac_cv_e2fsprogs_use_static=no
4859 LDFLAGS=$SAVE_LDFLAGS
4864 ac_cv_e2fsprogs_use_static=no
4867 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
4869 if test $ac_cv_e2fsprogs_use_static = yes; then
4870 LDFLAG_STATIC=-static
4873 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4874 ET_DIR=`cd ${srcdir}/lib/et; pwd`
4877 if test "$cross_compiling" = yes ; then
4883 test -d lib || mkdir lib
4884 test -d include || mkdir include
4885 test -d include/linux || mkdir include/linux
4886 test -d include/asm || mkdir include/asm
4888 if test -d ${srcdir}/resize ; then
4889 rmakefile=resize/Makefile
4892 cat > confcache <<\EOF
4893 # This file is a shell script that caches the results of configure
4894 # tests run on this system so they can be shared between configure
4895 # scripts and configure runs. It is not useful on other systems.
4896 # If it contains results you don't want to keep, you may remove or edit it.
4898 # By default, configure uses ./config.cache as the cache file,
4899 # creating it if it does not exist already. You can give configure
4900 # the --cache-file=FILE option to use a different cache file; that is
4901 # what configure does when it calls configure scripts in
4902 # subdirectories, so they share the cache.
4903 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4904 # config.status only pays attention to the cache file if you give it the
4905 # --recheck option to rerun configure.
4908 # The following way of writing the cache mishandles newlines in values,
4909 # but we know of no workaround that is simple, portable, and efficient.
4910 # So, don't put newlines in cache variables' values.
4911 # Ultrix sh set writes to stderr and can't be redirected directly,
4912 # and sets the high bit in the cache file unless we assign to the vars.
4914 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4916 # `set' does not quote correctly, so add quotes (double-quote substitution
4917 # turns \\\\ into \\, and sed turns \\ into \).
4919 -e "s/'/'\\\\''/g" \
4920 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4923 # `set' quotes correctly as required by POSIX, so do not add quotes.
4924 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4927 if cmp -s $cache_file confcache; then
4930 if test -w $cache_file; then
4931 echo "updating cache $cache_file"
4932 cat confcache > $cache_file
4934 echo "not updating unwritable cache $cache_file"
4939 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4942 # Let make expand exec_prefix.
4943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4945 # Any assignment to VPATH causes Sun make to only execute
4946 # the first set of double-colon rules, so remove it if not needed.
4947 # If there is a colon in the path, we need to keep it.
4948 if test "x$srcdir" = x.; then
4949 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4952 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4954 # Transform confdefs.h into DEFS.
4955 # Protect against shell expansion while executing Makefile rules.
4956 # Protect against Makefile macro expansion.
4957 cat > conftest.defs <<\EOF
4958 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4959 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4964 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4968 # Without the "./", some shells look in PATH for config.status.
4969 : ${CONFIG_STATUS=./config.status}
4971 echo creating $CONFIG_STATUS
4972 rm -f $CONFIG_STATUS
4973 cat > $CONFIG_STATUS <<EOF
4975 # Generated automatically by configure.
4976 # Run this file to recreate the current configuration.
4977 # This directory was configured as follows,
4978 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4980 # $0 $ac_configure_args
4982 # Compiler output produced by configure, useful for debugging
4983 # configure, is in ./config.log if it exists.
4985 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4988 case "\$ac_option" in
4989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4990 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4991 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4992 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4993 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4995 -help | --help | --hel | --he | --h)
4996 echo "\$ac_cs_usage"; exit 0 ;;
4997 *) echo "\$ac_cs_usage"; exit 1 ;;
5001 ac_given_srcdir=$srcdir
5002 ac_given_INSTALL="$INSTALL"
5004 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
5005 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5007 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5008 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
5009 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5011 cat >> $CONFIG_STATUS <<EOF
5013 # Protect against being on the right side of a sed subst in config.status.
5014 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5015 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5019 s%@CFLAGS@%$CFLAGS%g
5020 s%@CPPFLAGS@%$CPPFLAGS%g
5021 s%@CXXFLAGS@%$CXXFLAGS%g
5022 s%@FFLAGS@%$FFLAGS%g
5024 s%@LDFLAGS@%$LDFLAGS%g
5026 s%@exec_prefix@%$exec_prefix%g
5027 s%@prefix@%$prefix%g
5028 s%@program_transform_name@%$program_transform_name%g
5029 s%@bindir@%$bindir%g
5030 s%@sbindir@%$sbindir%g
5031 s%@libexecdir@%$libexecdir%g
5032 s%@datadir@%$datadir%g
5033 s%@sysconfdir@%$sysconfdir%g
5034 s%@sharedstatedir@%$sharedstatedir%g
5035 s%@localstatedir@%$localstatedir%g
5036 s%@libdir@%$libdir%g
5037 s%@includedir@%$includedir%g
5038 s%@oldincludedir@%$oldincludedir%g
5039 s%@infodir@%$infodir%g
5040 s%@mandir@%$mandir%g
5041 /@MCONFIG@/r $MCONFIG
5043 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5044 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
5045 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
5047 s%@host_alias@%$host_alias%g
5048 s%@host_cpu@%$host_cpu%g
5049 s%@host_vendor@%$host_vendor%g
5050 s%@host_os@%$host_os%g
5054 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
5055 s%@HTREE_CMT@%$HTREE_CMT%g
5056 s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
5057 s%@DLL_CMT@%$DLL_CMT%g
5058 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
5060 s%@ELF_CMT@%$ELF_CMT%g
5061 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
5063 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5064 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5065 s%@MAKEFILE_BSDLIB@%%g
5066 s%@PROFILE_CMT@%$PROFILE_CMT%g
5067 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5068 s%@MAKEFILE_PROFILE@%%g
5069 s%@CHECKER_CMT@%$CHECKER_CMT%g
5070 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5071 s%@MAKEFILE_CHECKER@%%g
5072 s%@LIB_EXT@%$LIB_EXT%g
5073 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5074 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
5075 s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5076 s%@IMAGER_CMT@%$IMAGER_CMT%g
5077 s%@RESIZER_CMT@%$RESIZER_CMT%g
5078 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5079 s%@FSCK_PROG@%$FSCK_PROG%g
5080 s%@FSCK_MAN@%$FSCK_MAN%g
5081 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5082 s%@MAKEFILE_LIBRARY@%%g
5083 s%@PACKAGE@%$PACKAGE%g
5084 s%@VERSION@%$VERSION%g
5085 s%@SET_MAKE@%$SET_MAKE%g
5086 s%@RANLIB@%$RANLIB%g
5087 s%@ALLOCA@%$ALLOCA%g
5088 s%@USE_NLS@%$USE_NLS%g
5089 s%@MSGFMT@%$MSGFMT%g
5090 s%@GMSGFMT@%$GMSGFMT%g
5091 s%@XGETTEXT@%$XGETTEXT%g
5092 s%@GENCAT@%$GENCAT%g
5093 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5094 s%@CATALOGS@%$CATALOGS%g
5095 s%@CATOBJEXT@%$CATOBJEXT%g
5096 s%@DATADIRNAME@%$DATADIRNAME%g
5097 s%@GMOFILES@%$GMOFILES%g
5098 s%@INSTOBJEXT@%$INSTOBJEXT%g
5099 s%@INTLDEPS@%$INTLDEPS%g
5100 s%@INTLLIBS@%$INTLLIBS%g
5101 s%@INTLOBJS@%$INTLOBJS%g
5102 s%@POFILES@%$POFILES%g
5104 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5106 s%@GT_YES@%$GT_YES%g
5107 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5109 s%@BINARY_TYPE@%$BINARY_TYPE%g
5119 s%@LDCONFIG@%$LDCONFIG%g
5121 s%@build_alias@%$build_alias%g
5122 s%@build_cpu@%$build_cpu%g
5123 s%@build_vendor@%$build_vendor%g
5124 s%@build_os@%$build_os%g
5127 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5128 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5129 s%@INSTALL_DATA@%$INSTALL_DATA%g
5130 s%@BUILD_CC@%$BUILD_CC%g
5131 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5132 s%@SIZEOF_INT@%$SIZEOF_INT%g
5133 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
5134 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
5135 s%@SOCKET_LIB@%$SOCKET_LIB%g
5136 s%@root_prefix@%$root_prefix%g
5137 s%@root_bindir@%$root_bindir%g
5138 s%@root_sbindir@%$root_sbindir%g
5139 s%@root_libdir@%$root_libdir%g
5140 s%@root_sysconfdir@%$root_sysconfdir%g
5141 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
5142 s%@SS_DIR@%$SS_DIR%g
5143 s%@ET_DIR@%$ET_DIR%g
5144 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5149 cat >> $CONFIG_STATUS <<\EOF
5151 # Split the substitutions into bite-sized pieces for seds with
5152 # small command number limits, like on Digital OSF/1 and HP-UX.
5153 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5154 ac_file=1 # Number of current file.
5155 ac_beg=1 # First line for current file.
5156 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5159 while $ac_more_lines; do
5160 if test $ac_beg -gt 1; then
5161 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5163 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5165 if test ! -s conftest.s$ac_file; then
5167 rm -f conftest.s$ac_file
5169 if test -z "$ac_sed_cmds"; then
5170 ac_sed_cmds="sed -f conftest.s$ac_file"
5172 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5174 ac_file=`expr $ac_file + 1`
5176 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5179 if test -z "$ac_sed_cmds"; then
5184 cat >> $CONFIG_STATUS <<EOF
5186 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
5187 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5189 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5190 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
5191 intl/Makefile po/Makefile.in"}
5193 cat >> $CONFIG_STATUS <<\EOF
5194 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5195 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5197 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5198 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5199 *) ac_file_in="${ac_file}.in" ;;
5202 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5204 # Remove last slash and all that follows it. Not all systems have dirname.
5205 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5206 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5207 # The file is in a subdirectory.
5208 test ! -d "$ac_dir" && mkdir "$ac_dir"
5209 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5210 # A "../" for each directory in $ac_dir_suffix.
5211 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5213 ac_dir_suffix= ac_dots=
5216 case "$ac_given_srcdir" in
5218 if test -z "$ac_dots"; then top_srcdir=.
5219 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5220 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5222 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5223 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5226 case "$ac_given_INSTALL" in
5227 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5228 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5231 echo creating "$ac_file"
5233 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5235 *Makefile*) ac_comsub="1i\\
5236 # $configure_input" ;;
5240 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5242 s%@configure_input@%$configure_input%g
5243 s%@srcdir@%$srcdir%g
5244 s%@top_srcdir@%$top_srcdir%g
5245 s%@INSTALL@%$INSTALL%g
5246 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5252 cat >> $CONFIG_STATUS <<EOF
5253 ac_sources="$nls_cv_header_libgt"
5254 ac_dests="$nls_cv_header_intl"
5257 cat >> $CONFIG_STATUS <<\EOF
5258 srcdir=$ac_given_srcdir
5259 while test -n "$ac_sources"; do
5260 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5261 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5263 echo "linking $srcdir/$ac_source to $ac_dest"
5265 if test ! -r $srcdir/$ac_source; then
5266 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5270 # Make relative symlinks.
5271 # Remove last slash and all that follows it. Not all systems have dirname.
5272 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5273 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5274 # The dest file is in a subdirectory.
5275 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5276 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5277 # A "../" for each directory in $ac_dest_dir_suffix.
5278 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5280 ac_dest_dir_suffix= ac_dots=
5284 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5285 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5288 # Make a symlink if possible; otherwise try a hard link.
5289 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5290 ln $srcdir/$ac_source $ac_dest; then :
5292 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5296 cat >> $CONFIG_STATUS <<EOF
5300 cat >> $CONFIG_STATUS <<\EOF
5301 case "$CONFIG_FILES" in *po/Makefile.in*)
5302 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5307 chmod +x $CONFIG_STATUS
5308 rm -fr confdefs* $ac_clean_files
5309 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1