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-dll-shlibs select DLL libraries"
29 --enable-elf-shlibs select ELF shared libraries"
31 --enable-bsd-shlibs select BSD shared libraries"
33 --enable-profile build profiling libraries"
35 --enable-checker build checker libraries"
37 --enable-jfs-debug enable journal debugging"
39 --disable-swapfs disable support of legacy byte-swapped filesystems"
41 --disable-debugfs disable support of debugfs program"
43 --disable-imager disable support of e2image program"
45 --disable-resizer disable support of e2resize program"
47 --enable-dynamic-e2fsck build e2fsck dynamically"
49 --enable-fsck build fsck wrapper program"
51 --enable-old-bitops Use old (non-standard but native) bitmask operations"
53 --enable-nls Turn on Native Language Support"
55 --with-included-gettext use the GNU gettext library included here"
57 --with-catgets use catgets functions if available"
59 # Initialize some variables set by options.
60 # The variables have the same names as the options, with
61 # dashes changed to underlines.
63 cache_file=./config.cache
72 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${exec_prefix}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
93 # Initialize some other variables.
96 SHELL=${CONFIG_SHELL-/bin/sh}
97 # Maximum number of lines to put in a shell here document.
104 # If the previous option needs an argument, assign it.
105 if test -n "$ac_prev"; then
106 eval "$ac_prev=\$ac_option"
112 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
116 # Accept the important Cygnus configure options, so we can diagnose typos.
120 -bindir | --bindir | --bindi | --bind | --bin | --bi)
122 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
123 bindir="$ac_optarg" ;;
125 -build | --build | --buil | --bui | --bu)
127 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
128 build="$ac_optarg" ;;
130 -cache-file | --cache-file | --cache-fil | --cache-fi \
131 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
132 ac_prev=cache_file ;;
133 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
134 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
135 cache_file="$ac_optarg" ;;
137 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
139 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
141 datadir="$ac_optarg" ;;
143 -disable-* | --disable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}=no" ;;
152 -enable-* | --enable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}='$ac_optarg'" ;;
165 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
166 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
167 | --exec | --exe | --ex)
168 ac_prev=exec_prefix ;;
169 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
170 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
171 | --exec=* | --exe=* | --ex=*)
172 exec_prefix="$ac_optarg" ;;
174 -gas | --gas | --ga | --g)
175 # Obsolete; use --with-gas.
178 -help | --help | --hel | --he)
179 # Omit some internal or obsolete options to make the list less imposing.
180 # This message is too long to be a string in the A/UX 3.1 sh.
182 Usage: configure [options] [host]
183 Options: [defaults in brackets after descriptions]
185 --cache-file=FILE cache test results in FILE
186 --help print this message
187 --no-create do not create output files
188 --quiet, --silent do not print \`checking...' messages
189 --version print the version of autoconf that created configure
190 Directory and file names:
191 --prefix=PREFIX install architecture-independent files in PREFIX
193 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
195 --bindir=DIR user executables in DIR [EPREFIX/bin]
196 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
197 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
198 --datadir=DIR read-only architecture-independent data in DIR
200 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
201 --sharedstatedir=DIR modifiable architecture-independent data in DIR
203 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
204 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
205 --includedir=DIR C header files in DIR [PREFIX/include]
206 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
207 --infodir=DIR info documentation in DIR [PREFIX/info]
208 --mandir=DIR man documentation in DIR [PREFIX/man]
209 --srcdir=DIR find the sources in DIR [configure dir or ..]
210 --program-prefix=PREFIX prepend PREFIX to installed program names
211 --program-suffix=SUFFIX append SUFFIX to installed program names
212 --program-transform-name=PROGRAM
213 run sed PROGRAM on installed program names
217 --build=BUILD configure for building on BUILD [BUILD=HOST]
218 --host=HOST configure for HOST [guessed]
219 --target=TARGET configure for TARGET [TARGET=HOST]
220 Features and packages:
221 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
222 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
223 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
224 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
225 --x-includes=DIR X include files are in DIR
226 --x-libraries=DIR X library files are in DIR
228 if test -n "$ac_help"; then
229 echo "--enable and --with options recognized:$ac_help"
233 -host | --host | --hos | --ho)
235 -host=* | --host=* | --hos=* | --ho=*)
238 -includedir | --includedir | --includedi | --included | --include \
239 | --includ | --inclu | --incl | --inc)
240 ac_prev=includedir ;;
241 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
242 | --includ=* | --inclu=* | --incl=* | --inc=*)
243 includedir="$ac_optarg" ;;
245 -infodir | --infodir | --infodi | --infod | --info | --inf)
247 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
248 infodir="$ac_optarg" ;;
250 -libdir | --libdir | --libdi | --libd)
252 -libdir=* | --libdir=* | --libdi=* | --libd=*)
253 libdir="$ac_optarg" ;;
255 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
256 | --libexe | --libex | --libe)
257 ac_prev=libexecdir ;;
258 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
259 | --libexe=* | --libex=* | --libe=*)
260 libexecdir="$ac_optarg" ;;
262 -localstatedir | --localstatedir | --localstatedi | --localstated \
263 | --localstate | --localstat | --localsta | --localst \
264 | --locals | --local | --loca | --loc | --lo)
265 ac_prev=localstatedir ;;
266 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
267 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
268 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
269 localstatedir="$ac_optarg" ;;
271 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
273 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
274 mandir="$ac_optarg" ;;
277 # Obsolete; use --without-fp.
280 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
284 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
285 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
288 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
289 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
290 | --oldin | --oldi | --old | --ol | --o)
291 ac_prev=oldincludedir ;;
292 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
293 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
294 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
295 oldincludedir="$ac_optarg" ;;
297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
300 prefix="$ac_optarg" ;;
302 -program-prefix | --program-prefix | --program-prefi | --program-pref \
303 | --program-pre | --program-pr | --program-p)
304 ac_prev=program_prefix ;;
305 -program-prefix=* | --program-prefix=* | --program-prefi=* \
306 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
307 program_prefix="$ac_optarg" ;;
309 -program-suffix | --program-suffix | --program-suffi | --program-suff \
310 | --program-suf | --program-su | --program-s)
311 ac_prev=program_suffix ;;
312 -program-suffix=* | --program-suffix=* | --program-suffi=* \
313 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
314 program_suffix="$ac_optarg" ;;
316 -program-transform-name | --program-transform-name \
317 | --program-transform-nam | --program-transform-na \
318 | --program-transform-n | --program-transform- \
319 | --program-transform | --program-transfor \
320 | --program-transfo | --program-transf \
321 | --program-trans | --program-tran \
322 | --progr-tra | --program-tr | --program-t)
323 ac_prev=program_transform_name ;;
324 -program-transform-name=* | --program-transform-name=* \
325 | --program-transform-nam=* | --program-transform-na=* \
326 | --program-transform-n=* | --program-transform-=* \
327 | --program-transform=* | --program-transfor=* \
328 | --program-transfo=* | --program-transf=* \
329 | --program-trans=* | --program-tran=* \
330 | --progr-tra=* | --program-tr=* | --program-t=*)
331 program_transform_name="$ac_optarg" ;;
333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
334 | -silent | --silent | --silen | --sile | --sil)
337 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
339 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
341 sbindir="$ac_optarg" ;;
343 -sharedstatedir | --sharedstatedir | --sharedstatedi \
344 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
345 | --sharedst | --shareds | --shared | --share | --shar \
347 ac_prev=sharedstatedir ;;
348 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
349 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
350 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
352 sharedstatedir="$ac_optarg" ;;
354 -site | --site | --sit)
356 -site=* | --site=* | --sit=*)
359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
362 srcdir="$ac_optarg" ;;
364 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
365 | --syscon | --sysco | --sysc | --sys | --sy)
366 ac_prev=sysconfdir ;;
367 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
368 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
369 sysconfdir="$ac_optarg" ;;
371 -target | --target | --targe | --targ | --tar | --ta | --t)
373 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
374 target="$ac_optarg" ;;
376 -v | -verbose | --verbose | --verbos | --verbo | --verb)
379 -version | --version | --versio | --versi | --vers)
380 echo "configure generated by autoconf version 2.13"
384 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 eval "with_${ac_package}='$ac_optarg'" ;;
396 -without-* | --without-*)
397 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}=no" ;;
406 # Obsolete; use --with-x.
409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
410 | --x-incl | --x-inc | --x-in | --x-i)
411 ac_prev=x_includes ;;
412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
414 x_includes="$ac_optarg" ;;
416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
418 ac_prev=x_libraries ;;
419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
421 x_libraries="$ac_optarg" ;;
423 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
427 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
428 echo "configure: warning: $ac_option: invalid host type" 1>&2
430 if test "x$nonopt" != xNONE; then
431 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439 if test -n "$ac_prev"; then
440 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
443 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
445 # File descriptor usage:
448 # 2 errors and warnings
449 # 3 some systems may open it to /dev/tty
450 # 4 used on the Kubota Titan
451 # 6 checking for... messages and results
452 # 5 compiler messages saved in config.log
453 if test "$silent" = yes; then
461 This file contains any messages produced by compilers while
462 running configure, to aid debugging if configure makes a mistake.
465 # Strip out --no-create and --no-recursion so they do not pile up.
466 # Also quote any args containing shell metacharacters.
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c) ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
476 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
477 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
482 # Only set these to C if already set. These must not be set unconditionally
483 # because not all systems understand e.g. LANG=C (notably SCO).
484 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
485 # Non-C LC_CTYPE values break the ctype check.
486 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
487 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
488 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
489 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
492 rm -rf conftest* confdefs.h
493 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
496 # A filename unique to this package, relative to the directory that
497 # configure is in, which we can look for to find out if srcdir is correct.
498 ac_unique_file=version.h
500 # Find the source files, if location was not specified.
501 if test -z "$srcdir"; then
502 ac_srcdir_defaulted=yes
503 # Try the directory containing this script, then its parent.
505 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
506 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
508 if test ! -r $srcdir/$ac_unique_file; then
512 ac_srcdir_defaulted=no
514 if test ! -r $srcdir/$ac_unique_file; then
515 if test "$ac_srcdir_defaulted" = yes; then
516 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
518 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
521 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
523 # Prefer explicitly selected file to automatically selected ones.
524 if test -z "$CONFIG_SITE"; then
525 if test "x$prefix" != xNONE; then
526 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
528 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
531 for ac_site_file in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
538 if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
542 echo "creating cache $cache_file"
547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548 ac_cpp='$CPP $CPPFLAGS'
549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551 cross_compiling=$ac_cv_prog_cc_cross
555 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564 ac_n= ac_c='\c' ac_t=
572 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
573 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
574 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
576 MONTH=`echo $DATE | awk -F- '{print $2}'`
577 YEAR=`echo $DATE | awk -F- '{print $3}'`
579 if expr $YEAR ">" 1900 > /dev/null ; then
581 elif expr $YEAR ">" 90 >/dev/null ; then
582 E2FSPROGS_YEAR=19$YEAR
584 E2FSPROGS_YEAR=20$YEAR
588 Jan) E2FSPROGS_MONTH="January" ;;
589 Feb) E2FSPROGS_MONTH="February" ;;
590 Mar) E2FSPROGS_MONTH="March" ;;
591 Apr) E2FSPROGS_MONTH="April" ;;
592 May) E2FSPROGS_MONTH="May" ;;
593 Jun) E2FSPROGS_MONTH="June" ;;
594 Jul) E2FSPROGS_MONTH="July" ;;
595 Aug) E2FSPROGS_MONTH="August" ;;
596 Sep) E2FSPROGS_MONTH="September" ;;
597 Oct) E2FSPROGS_MONTH="October" ;;
598 Nov) E2FSPROGS_MONTH="November" ;;
599 Dec) E2FSPROGS_MONTH="December" ;;
600 *) echo "Unknown month $MONTH??" ;;
603 unset DATE MONTH YEAR
604 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
605 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
610 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
611 if test -f $ac_dir/install-sh; then
613 ac_install_sh="$ac_aux_dir/install-sh -c"
615 elif test -f $ac_dir/install.sh; then
617 ac_install_sh="$ac_aux_dir/install.sh -c"
621 if test -z "$ac_aux_dir"; then
622 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
624 ac_config_guess=$ac_aux_dir/config.guess
625 ac_config_sub=$ac_aux_dir/config.sub
626 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
629 # Make sure we can run config.sub.
630 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
631 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
634 echo $ac_n "checking host system type""... $ac_c" 1>&6
635 echo "configure:636: checking host system type" >&5
638 case "$host_alias" in
642 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
643 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
645 *) host_alias=$nonopt ;;
649 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
650 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$host" 1>&6
655 # Check whether --with-cc or --without-cc was given.
656 if test "${with_cc+set}" = set; then
658 echo "$ac_t""CC=$withval" 1>&6
661 if test -z "$CC" ; then CC=cc; fi
662 echo "$ac_t""CC defaults to $CC" 1>&6
666 # Extract the first word of "gcc", so it can be a program name with args.
667 set dummy gcc; ac_word=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$CC"; then
674 ac_cv_prog_CC="$CC" # Let the user override the test.
676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
678 for ac_dir in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir=.
680 if test -f $ac_dir/$ac_word; then
689 if test -n "$CC"; then
690 echo "$ac_t""$CC" 1>&6
692 echo "$ac_t""no" 1>&6
695 if test -z "$CC"; then
696 # Extract the first word of "cc", so it can be a program name with args.
697 set dummy cc; ac_word=$2
698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
699 echo "configure:700: checking for $ac_word" >&5
700 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 if test -n "$CC"; then
704 ac_cv_prog_CC="$CC" # Let the user override the test.
706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
709 for ac_dir in $ac_dummy; do
710 test -z "$ac_dir" && ac_dir=.
711 if test -f $ac_dir/$ac_word; then
712 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
721 if test $ac_prog_rejected = yes; then
722 # We found a bogon in the path, so make sure we never use it.
723 set dummy $ac_cv_prog_CC
725 if test $# -gt 0; then
726 # We chose a different compiler from the bogus one.
727 # However, it has the same basename, so the bogon will be chosen
728 # first if we set CC to just the basename; use the full file name.
730 set dummy "$ac_dir/$ac_word" "$@"
738 if test -n "$CC"; then
739 echo "$ac_t""$CC" 1>&6
741 echo "$ac_t""no" 1>&6
744 if test -z "$CC"; then
747 # Extract the first word of "cl", so it can be a program name with args.
748 set dummy cl; ac_word=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 if test -n "$CC"; then
755 ac_cv_prog_CC="$CC" # Let the user override the test.
757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
759 for ac_dir in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir=.
761 if test -f $ac_dir/$ac_word; then
770 if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
773 echo "$ac_t""no" 1>&6
778 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
781 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
791 cat > conftest.$ac_ext << EOF
793 #line 794 "configure"
794 #include "confdefs.h"
798 if { (eval echo configure:799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
799 ac_cv_prog_cc_works=yes
800 # If we can't run a trivial program, we are probably using a cross compiler.
801 if (./conftest; exit) 2>/dev/null; then
802 ac_cv_prog_cc_cross=no
804 ac_cv_prog_cc_cross=yes
807 echo "configure: failed program was:" >&5
808 cat conftest.$ac_ext >&5
809 ac_cv_prog_cc_works=no
813 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
814 ac_cpp='$CPP $CPPFLAGS'
815 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
816 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
817 cross_compiling=$ac_cv_prog_cc_cross
819 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
820 if test $ac_cv_prog_cc_works = no; then
821 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
823 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
824 echo "configure:825: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
825 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
826 cross_compiling=$ac_cv_prog_cc_cross
828 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
829 echo "configure:830: checking whether we are using GNU C" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 cat > conftest.c <<EOF
838 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
845 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
847 if test $ac_cv_prog_gcc = yes; then
853 ac_test_CFLAGS="${CFLAGS+set}"
854 ac_save_CFLAGS="$CFLAGS"
856 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
857 echo "configure:858: checking whether ${CC-cc} accepts -g" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 echo 'void f(){}' > conftest.c
862 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
871 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
872 if test "$ac_test_CFLAGS" = set; then
873 CFLAGS="$ac_save_CFLAGS"
874 elif test $ac_cv_prog_cc_g = yes; then
875 if test "$GCC" = yes; then
881 if test "$GCC" = yes; then
888 # Check whether --with-linker or --without-linker was given.
889 if test "${with_linker+set}" = set; then
890 withval="$with_linker"
891 echo "$ac_t""LD=$withval" 1>&6
894 if test -z "$LD" ; then LD=$CC; fi
895 echo "$ac_t""LD defaults to $LD" 1>&6
899 # Check whether --with-ccopts or --without-ccopts was given.
900 if test "${with_ccopts+set}" = set; then
901 withval="$with_ccopts"
902 echo "$ac_t""CCOPTS is $withval" 1>&6
905 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
906 echo "configure:907: checking how to run the C preprocessor" >&5
907 # On Suns, sometimes $CPP names a directory.
908 if test -n "$CPP" && test -d "$CPP"; then
911 if test -z "$CPP"; then
912 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
915 # This must be in double quotes, not single quotes, because CPP may get
916 # substituted into the Makefile and "${CC-cc}" will confuse make.
918 # On the NeXT, cc -E runs the code through the compiler's parser,
919 # not just through cpp.
920 cat > conftest.$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
927 { (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
929 if test -z "$ac_err"; then
933 echo "configure: failed program was:" >&5
934 cat conftest.$ac_ext >&5
936 CPP="${CC-cc} -E -traditional-cpp"
937 cat > conftest.$ac_ext <<EOF
938 #line 939 "configure"
939 #include "confdefs.h"
943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
944 { (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
946 if test -z "$ac_err"; then
950 echo "configure: failed program was:" >&5
951 cat conftest.$ac_ext >&5
953 CPP="${CC-cc} -nologo -E"
954 cat > conftest.$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
961 { (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
963 if test -z "$ac_err"; then
967 echo "configure: failed program was:" >&5
968 cat conftest.$ac_ext >&5
977 ac_cv_prog_CPP="$CPP"
979 CPP="$ac_cv_prog_CPP"
981 ac_cv_prog_CPP="$CPP"
983 echo "$ac_t""$CPP" 1>&6
985 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
986 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
987 echo "configure:988: checking for linux/fs.h" >&5
988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 cat > conftest.$ac_ext <<EOF
992 #line 993 "configure"
993 #include "confdefs.h"
994 #include <linux/fs.h>
996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
997 { (eval echo configure:998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
999 if test -z "$ac_err"; then
1001 eval "ac_cv_header_$ac_safe=yes"
1004 echo "configure: failed program was:" >&5
1005 cat conftest.$ac_ext >&5
1007 eval "ac_cv_header_$ac_safe=no"
1011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1012 echo "$ac_t""yes" 1>&6
1015 echo "$ac_t""no" 1>&6
1019 if test "$linux_headers" != yes; then
1020 LINUX_INCLUDE='-I$(top_builddir)/include'
1026 # Check whether --with-ldopts or --without-ldopts was given.
1027 if test "${with_ldopts+set}" = set; then
1028 withval="$with_ldopts"
1029 echo "$ac_t""LDFLAGS is $withval" 1>&6
1035 # Check whether --with-root-prefix or --without-root-prefix was given.
1036 if test "${with_root_prefix+set}" = set; then
1037 withval="$with_root_prefix"
1038 root_prefix=$withval
1042 # Check whether --enable-compression or --disable-compression was given.
1043 if test "${enable_compression+set}" = set; then
1044 enableval="$enable_compression"
1045 if test "$enableval" = "no"
1047 echo "Disabling compression support"
1049 cat >> confdefs.h <<\EOF
1050 #define ENABLE_COMPRESSION 1
1053 echo "Enabling compression support"
1054 echo "WARNING: Compression support is experimental"
1058 echo "Disabling compression support by default"
1062 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1063 if test "${enable_dll_shlibs+set}" = set; then
1064 enableval="$enable_dll_shlibs"
1065 if test "$enableval" = "no"
1068 MAKEFILE_DLL=/dev/null
1069 echo "Disabling DLL shared libraries"
1072 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1075 echo "Enabling DLL shared libraries"
1079 MAKEFILE_DLL=/dev/null
1081 echo "Disabling DLL shared libraries by default"
1087 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1088 if test "${enable_elf_shlibs+set}" = set; then
1089 enableval="$enable_elf_shlibs"
1090 if test "$enableval" = "no"
1093 MAKEFILE_ELF=/dev/null
1094 echo "Disabling ELF shared libraries"
1097 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1100 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1105 echo "Enabling ELF shared libraries"
1109 MAKEFILE_ELF=/dev/null
1111 echo "Disabling ELF shared libraries by default"
1117 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1118 if test "${enable_bsd_shlibs+set}" = set; then
1119 enableval="$enable_bsd_shlibs"
1120 if test "$enableval" = "no"
1123 MAKEFILE_BSDLIB=/dev/null
1124 echo "Disabling BSD shared libraries"
1127 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1129 echo "Enabling BSD shared libraries"
1133 MAKEFILE_BSDLIB=/dev/null
1135 echo "Disabling BSD shared libraries by default"
1141 # Check whether --enable-profile or --disable-profile was given.
1142 if test "${enable_profile+set}" = set; then
1143 enableval="$enable_profile"
1144 if test "$enableval" = "no"
1147 MAKEFILE_PROFILE=/dev/null
1148 echo "Disabling profiling libraries"
1151 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1152 PROFILED_LIB_EXT=_p.a
1153 echo "Building profiling libraries"
1158 MAKEFILE_PROFILE=/dev/null
1159 echo "Disabling profiling libraries by default"
1165 # Check whether --enable-checker or --disable-checker was given.
1166 if test "${enable_checker+set}" = set; then
1167 enableval="$enable_checker"
1168 if test "$enableval" = "no"
1171 MAKEFILE_CHECKER=/dev/null
1172 echo "Disabling checker libraries"
1175 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1176 echo "Building checker libraries"
1181 MAKEFILE_CHECKER=/dev/null
1182 echo "Disabling checker libraries by default"
1191 # Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1192 if test "${enable_jfs_debug+set}" = set; then
1193 enableval="$enable_jfs_debug"
1194 if test "$enableval" = "no"
1196 echo "Disabling journal debugging"
1198 cat >> confdefs.h <<\EOF
1199 #define CONFIG_JBD_DEBUG 1
1202 echo "Enabling journal debugging"
1206 echo "Disabling journal debugging by default"
1210 # Check whether --enable-swapfs or --disable-swapfs was given.
1211 if test "${enable_swapfs+set}" = set; then
1212 enableval="$enable_swapfs"
1213 if test "$enableval" = "no"
1215 echo "Disabling swapfs support"
1217 cat >> confdefs.h <<\EOF
1218 #define ENABLE_SWAPFS 1
1221 echo "Enabling swapfs support"
1225 echo "Enabling swapfs support by default"
1226 cat >> confdefs.h <<\EOF
1227 #define ENABLE_SWAPFS 1
1233 # Check whether --enable-debugfs or --disable-debugfs was given.
1234 if test "${enable_debugfs+set}" = set; then
1235 enableval="$enable_debugfs"
1236 if test "$enableval" = "no"
1238 echo "Disabling debugfs support"
1242 echo "Enabling debugfs support"
1246 echo "Enabling debugfs support by default"
1252 # Check whether --enable-imager or --disable-imager was given.
1253 if test "${enable_imager+set}" = set; then
1254 enableval="$enable_imager"
1255 if test "$enableval" = "no"
1257 echo "Disabling e2image support"
1261 echo "Enabling e2image support"
1265 echo "Enabling e2image support by default"
1271 # Check whether --enable-resizer or --disable-resizer was given.
1272 if test "${enable_resizer+set}" = set; then
1273 enableval="$enable_resizer"
1274 if test "$enableval" = "no"
1276 echo "Disabling e2resize support"
1280 echo "Enabling e2resize support"
1284 echo "Enabling e2resize support by default"
1290 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1291 if test "${enable_dynamic_e2fsck+set}" = set; then
1292 enableval="$enable_dynamic_e2fsck"
1293 if test "$enableval" = "no"
1296 echo "Building e2fsck statically"
1299 echo "Building e2fsck dynamically"
1304 echo "Building e2fsck statically by default"
1309 # Check whether --enable-fsck or --disable-fsck was given.
1310 if test "${enable_fsck+set}" = set; then
1311 enableval="$enable_fsck"
1312 if test "$enableval" = "no"
1314 FSCK_PROG='' FSCK_MAN=''
1315 echo "Not building fsck wrapper"
1317 FSCK_PROG=fsck FSCK_MAN=fsck.8
1318 echo "Building fsck wrapper"
1324 FSCK_PROG='' FSCK_MAN=''
1325 echo "Not building fsck wrapper by default"
1328 FSCK_PROG=fsck FSCK_MAN=fsck.8
1329 echo "Building fsck wrapper by default"
1336 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1338 # Check whether --enable-old-bitops or --disable-old-bitops was given.
1339 if test "${enable_old_bitops+set}" = set; then
1340 enableval="$enable_old_bitops"
1341 if test "$enableval" = "no"
1343 echo "Using new (standard) bitmask operations"
1345 cat >> confdefs.h <<\EOF
1346 #define EXT2_OLD_BITOPS 1
1349 echo "Using old (native) bitmask operations"
1354 echo "Using standard bitmask operations by default"
1359 VERSION="$E2FSPROGS_VERSION"
1360 cat >> confdefs.h <<EOF
1361 #define PACKAGE "$PACKAGE"
1364 cat >> confdefs.h <<EOF
1365 #define VERSION "$VERSION"
1371 ALL_LINGUAS="it nyc tr"
1372 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1373 echo "configure:1374: checking whether ${MAKE-make} sets \${MAKE}" >&5
1374 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1375 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 cat > conftestmake <<\EOF
1380 @echo 'ac_maketemp="${MAKE}"'
1382 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1383 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1384 if test -n "$ac_maketemp"; then
1385 eval ac_cv_prog_make_${ac_make}_set=yes
1387 eval ac_cv_prog_make_${ac_make}_set=no
1391 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1392 echo "$ac_t""yes" 1>&6
1395 echo "$ac_t""no" 1>&6
1396 SET_MAKE="MAKE=${MAKE-make}"
1399 # Extract the first word of "ranlib", so it can be a program name with args.
1400 set dummy ranlib; ac_word=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 if test -n "$RANLIB"; then
1407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_RANLIB="ranlib"
1419 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1422 RANLIB="$ac_cv_prog_RANLIB"
1423 if test -n "$RANLIB"; then
1424 echo "$ac_t""$RANLIB" 1>&6
1426 echo "$ac_t""no" 1>&6
1429 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1430 echo "configure:1431: checking for POSIXized ISC" >&5
1431 if test -d /etc/conf/kconfig.d &&
1432 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1434 echo "$ac_t""yes" 1>&6
1435 ISC=yes # If later tests want to check for ISC.
1436 cat >> confdefs.h <<\EOF
1437 #define _POSIX_SOURCE 1
1440 if test "$GCC" = yes; then
1446 echo "$ac_t""no" 1>&6
1450 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1451 echo "configure:1452: checking for ANSI C header files" >&5
1452 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 cat > conftest.$ac_ext <<EOF
1456 #line 1457 "configure"
1457 #include "confdefs.h"
1463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1464 { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1466 if test -z "$ac_err"; then
1468 ac_cv_header_stdc=yes
1471 echo "configure: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1474 ac_cv_header_stdc=no
1478 if test $ac_cv_header_stdc = yes; then
1479 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1486 egrep "memchr" >/dev/null 2>&1; then
1490 ac_cv_header_stdc=no
1496 if test $ac_cv_header_stdc = yes; then
1497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1504 egrep "free" >/dev/null 2>&1; then
1508 ac_cv_header_stdc=no
1514 if test $ac_cv_header_stdc = yes; then
1515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1516 if test "$cross_compiling" = yes; then
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1523 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1524 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1526 int main () { int i; for (i = 0; i < 256; i++)
1527 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1531 if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1538 ac_cv_header_stdc=no
1546 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1547 if test $ac_cv_header_stdc = yes; then
1548 cat >> confdefs.h <<\EOF
1549 #define STDC_HEADERS 1
1554 echo $ac_n "checking for working const""... $ac_c" 1>&6
1555 echo "configure:1556: checking for working const" >&5
1556 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 cat > conftest.$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1565 /* Ultrix mips cc rejects this. */
1566 typedef int charset[2]; const charset x;
1567 /* SunOS 4.1.1 cc rejects this. */
1568 char const *const *ccp;
1570 /* NEC SVR4.0.2 mips cc rejects this. */
1571 struct point {int x, y;};
1572 static struct point const zero = {0,0};
1573 /* AIX XL C 1.02.0.0 rejects this.
1574 It does not let you subtract one const X* pointer from another in an arm
1575 of an if-expression whose if-part is not a constant expression */
1576 const char *g = "string";
1577 ccp = &g + (g ? g-g : 0);
1578 /* HPUX 7.0 cc rejects these. */
1581 ccp = (char const *const *) p;
1582 { /* SCO 3.2v4 cc rejects this. */
1584 char const *s = 0 ? (char *) 0 : (char const *) 0;
1588 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1590 const int *foo = &x[0];
1593 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1594 typedef const int *iptr;
1598 { /* AIX XL C 1.02.0.0 rejects this saying
1599 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1600 struct s { int j; const int *ap[3]; };
1601 struct s *b; b->j = 5;
1603 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1609 if { (eval echo configure:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1613 echo "configure: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1621 echo "$ac_t""$ac_cv_c_const" 1>&6
1622 if test $ac_cv_c_const = no; then
1623 cat >> confdefs.h <<\EOF
1629 echo $ac_n "checking for inline""... $ac_c" 1>&6
1630 echo "configure:1631: checking for inline" >&5
1631 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1635 for ac_kw in inline __inline__ __inline; do
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1644 if { (eval echo configure:1645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1646 ac_cv_c_inline=$ac_kw; break
1648 echo "configure: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1656 echo "$ac_t""$ac_cv_c_inline" 1>&6
1657 case "$ac_cv_c_inline" in
1659 no) cat >> confdefs.h <<\EOF
1663 *) cat >> confdefs.h <<EOF
1664 #define inline $ac_cv_c_inline
1669 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1670 echo "configure:1671: checking for off_t" >&5
1671 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 #include <sys/types.h>
1683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1684 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1686 ac_cv_type_off_t=yes
1694 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1695 if test $ac_cv_type_off_t = no; then
1696 cat >> confdefs.h <<\EOF
1702 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1703 echo "configure:1704: checking for size_t" >&5
1704 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1707 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 #include <sys/types.h>
1716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1717 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1719 ac_cv_type_size_t=yes
1722 ac_cv_type_size_t=no
1727 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1728 if test $ac_cv_type_size_t = no; then
1729 cat >> confdefs.h <<\EOF
1730 #define size_t unsigned
1735 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1736 # for constant arguments. Useless!
1737 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1738 echo "configure:1739: checking for working alloca.h" >&5
1739 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1747 char *p = alloca(2 * sizeof(int));
1750 if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1752 ac_cv_header_alloca_h=yes
1754 echo "configure: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1757 ac_cv_header_alloca_h=no
1762 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1763 if test $ac_cv_header_alloca_h = yes; then
1764 cat >> confdefs.h <<\EOF
1765 #define HAVE_ALLOCA_H 1
1770 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1771 echo "configure:1772: checking for alloca" >&5
1772 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1775 cat > conftest.$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1780 # define alloca __builtin_alloca
1783 # include <malloc.h>
1784 # define alloca _alloca
1787 # include <alloca.h>
1792 # ifndef alloca /* predefined by HP cc +Olibcalls */
1801 char *p = (char *) alloca(1);
1804 if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1806 ac_cv_func_alloca_works=yes
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 ac_cv_func_alloca_works=no
1816 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1817 if test $ac_cv_func_alloca_works = yes; then
1818 cat >> confdefs.h <<\EOF
1819 #define HAVE_ALLOCA 1
1824 if test $ac_cv_func_alloca_works = no; then
1825 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1826 # that cause trouble. Some versions do not even contain alloca or
1827 # contain a buggy version. If you still want to use their alloca,
1828 # use ar to extract alloca.o from them instead of compiling alloca.c.
1829 ALLOCA=alloca.${ac_objext}
1830 cat >> confdefs.h <<\EOF
1835 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1836 echo "configure:1837: checking whether alloca needs Cray hooks" >&5
1837 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #if defined(CRAY) && ! defined(CRAY2)
1850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1851 egrep "webecray" >/dev/null 2>&1; then
1862 echo "$ac_t""$ac_cv_os_cray" 1>&6
1863 if test $ac_cv_os_cray = yes; then
1864 for ac_func in _getb67 GETB67 getb67; do
1865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_func" >&5
1867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 /* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $ac_func(); below. */
1876 /* Override any gcc2 internal prototype to avoid an error. */
1877 /* We use char because int might match the return type of a gcc2
1878 builtin and then its argument prototype would still apply. */
1883 /* The GNU C library defines this for functions which it implements
1884 to always fail with ENOSYS. Some functions are actually named
1885 something starting with __ and the normal name is an alias. */
1886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1896 eval "ac_cv_func_$ac_func=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_func_$ac_func=no"
1906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1908 cat >> confdefs.h <<EOF
1909 #define CRAY_STACKSEG_END $ac_func
1914 echo "$ac_t""no" 1>&6
1920 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1921 echo "configure:1922: checking stack direction for C alloca" >&5
1922 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 if test "$cross_compiling" = yes; then
1926 ac_cv_c_stack_direction=0
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 find_stack_direction ()
1933 static char *addr = 0;
1938 return find_stack_direction ();
1941 return (&dummy > addr) ? 1 : -1;
1945 exit (find_stack_direction() < 0);
1948 if { (eval echo configure:1949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1950 ac_cv_c_stack_direction=1
1952 echo "configure: failed program was:" >&5
1953 cat conftest.$ac_ext >&5
1955 ac_cv_c_stack_direction=-1
1962 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1963 cat >> confdefs.h <<EOF
1964 #define STACK_DIRECTION $ac_cv_c_stack_direction
1969 for ac_hdr in unistd.h
1971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1973 echo "configure:1974: checking for $ac_hdr" >&5
1974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1983 { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1985 if test -z "$ac_err"; then
1987 eval "ac_cv_header_$ac_safe=yes"
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1993 eval "ac_cv_header_$ac_safe=no"
1997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1998 echo "$ac_t""yes" 1>&6
1999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2000 cat >> confdefs.h <<EOF
2001 #define $ac_tr_hdr 1
2005 echo "$ac_t""no" 1>&6
2009 for ac_func in getpagesize
2011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2012 echo "configure:2013: checking for $ac_func" >&5
2013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2019 /* System header to define __stub macros and hopefully few prototypes,
2020 which can conflict with char $ac_func(); below. */
2022 /* Override any gcc2 internal prototype to avoid an error. */
2023 /* We use char because int might match the return type of a gcc2
2024 builtin and then its argument prototype would still apply. */
2029 /* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2040 if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2042 eval "ac_cv_func_$ac_func=yes"
2044 echo "configure: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2047 eval "ac_cv_func_$ac_func=no"
2052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2053 echo "$ac_t""yes" 1>&6
2054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2055 cat >> confdefs.h <<EOF
2056 #define $ac_tr_func 1
2060 echo "$ac_t""no" 1>&6
2064 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2065 echo "configure:2066: checking for working mmap" >&5
2066 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 if test "$cross_compiling" = yes; then
2070 ac_cv_func_mmap_fixed_mapped=no
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2076 /* Thanks to Mike Haertel and Jim Avera for this test.
2077 Here is a matrix of mmap possibilities:
2078 mmap private not fixed
2079 mmap private fixed at somewhere currently unmapped
2080 mmap private fixed at somewhere already mapped
2081 mmap shared not fixed
2082 mmap shared fixed at somewhere currently unmapped
2083 mmap shared fixed at somewhere already mapped
2084 For private mappings, we should verify that changes cannot be read()
2085 back from the file, nor mmap's back from the file at a different
2086 address. (There have been systems where private was not correctly
2087 implemented like the infamous i386 svr4.0, and systems where the
2088 VM page cache was not coherent with the filesystem buffer cache
2089 like early versions of FreeBSD and possibly contemporary NetBSD.)
2090 For shared mappings, we should conversely verify that changes get
2091 propogated back to all the places they're supposed to be.
2093 Grep wants private fixed already mapped.
2094 The main things grep needs to know about mmap are:
2095 * does it exist and is it safe to write into the mmap'd area
2096 * how to use it (BSD variants) */
2097 #include <sys/types.h>
2099 #include <sys/mman.h>
2101 /* This mess was copied from the GNU getpagesize.h. */
2102 #ifndef HAVE_GETPAGESIZE
2103 # ifdef HAVE_UNISTD_H
2104 # include <unistd.h>
2107 /* Assume that all systems that can run configure have sys/param.h. */
2108 # ifndef HAVE_SYS_PARAM_H
2109 # define HAVE_SYS_PARAM_H 1
2112 # ifdef _SC_PAGESIZE
2113 # define getpagesize() sysconf(_SC_PAGESIZE)
2114 # else /* no _SC_PAGESIZE */
2115 # ifdef HAVE_SYS_PARAM_H
2116 # include <sys/param.h>
2117 # ifdef EXEC_PAGESIZE
2118 # define getpagesize() EXEC_PAGESIZE
2119 # else /* no EXEC_PAGESIZE */
2121 # define getpagesize() NBPG * CLSIZE
2124 # endif /* no CLSIZE */
2125 # else /* no NBPG */
2127 # define getpagesize() NBPC
2128 # else /* no NBPC */
2130 # define getpagesize() PAGESIZE
2131 # endif /* PAGESIZE */
2132 # endif /* no NBPC */
2133 # endif /* no NBPG */
2134 # endif /* no EXEC_PAGESIZE */
2135 # else /* no HAVE_SYS_PARAM_H */
2136 # define getpagesize() 8192 /* punt totally */
2137 # endif /* no HAVE_SYS_PARAM_H */
2138 # endif /* no _SC_PAGESIZE */
2140 #endif /* no HAVE_GETPAGESIZE */
2143 extern "C" { void *malloc(unsigned); }
2151 char *data, *data2, *data3;
2155 pagesize = getpagesize();
2158 * First, make a file with some known garbage in it.
2160 data = malloc(pagesize);
2163 for (i = 0; i < pagesize; ++i)
2164 *(data + i) = rand();
2166 fd = creat("conftestmmap", 0600);
2169 if (write(fd, data, pagesize) != pagesize)
2174 * Next, try to mmap the file at a fixed address which
2175 * already has something else allocated at it. If we can,
2176 * also make sure that we see the same garbage.
2178 fd = open("conftestmmap", O_RDWR);
2181 data2 = malloc(2 * pagesize);
2184 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2185 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2186 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2188 for (i = 0; i < pagesize; ++i)
2189 if (*(data + i) != *(data2 + i))
2193 * Finally, make sure that changes to the mapped area
2194 * do not percolate back to the file as seen by read().
2195 * (This is a bug on some variants of i386 svr4.0.)
2197 for (i = 0; i < pagesize; ++i)
2198 *(data2 + i) = *(data2 + i) + 1;
2199 data3 = malloc(pagesize);
2202 if (read(fd, data3, pagesize) != pagesize)
2204 for (i = 0; i < pagesize; ++i)
2205 if (*(data + i) != *(data3 + i))
2208 unlink("conftestmmap");
2213 if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2215 ac_cv_func_mmap_fixed_mapped=yes
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 ac_cv_func_mmap_fixed_mapped=no
2227 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2228 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2229 cat >> confdefs.h <<\EOF
2236 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2237 unistd.h sys/param.h
2239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2241 echo "configure:2242: checking for $ac_hdr" >&5
2242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2251 { (eval echo configure:2252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2253 if test -z "$ac_err"; then
2255 eval "ac_cv_header_$ac_safe=yes"
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2261 eval "ac_cv_header_$ac_safe=no"
2265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2266 echo "$ac_t""yes" 1>&6
2267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2268 cat >> confdefs.h <<EOF
2269 #define $ac_tr_hdr 1
2273 echo "$ac_t""no" 1>&6
2277 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2278 strdup __argz_count __argz_stringify __argz_next
2280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2281 echo "configure:2282: checking for $ac_func" >&5
2282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 /* System header to define __stub macros and hopefully few prototypes,
2289 which can conflict with char $ac_func(); below. */
2291 /* Override any gcc2 internal prototype to avoid an error. */
2292 /* We use char because int might match the return type of a gcc2
2293 builtin and then its argument prototype would still apply. */
2298 /* The GNU C library defines this for functions which it implements
2299 to always fail with ENOSYS. Some functions are actually named
2300 something starting with __ and the normal name is an alias. */
2301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2309 if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2311 eval "ac_cv_func_$ac_func=yes"
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2316 eval "ac_cv_func_$ac_func=no"
2321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2324 cat >> confdefs.h <<EOF
2325 #define $ac_tr_func 1
2329 echo "$ac_t""no" 1>&6
2334 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2335 for ac_func in stpcpy
2337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_func" >&5
2339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 /* System header to define __stub macros and hopefully few prototypes,
2346 which can conflict with char $ac_func(); below. */
2348 /* Override any gcc2 internal prototype to avoid an error. */
2349 /* We use char because int might match the return type of a gcc2
2350 builtin and then its argument prototype would still apply. */
2355 /* The GNU C library defines this for functions which it implements
2356 to always fail with ENOSYS. Some functions are actually named
2357 something starting with __ and the normal name is an alias. */
2358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 eval "ac_cv_func_$ac_func=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 eval "ac_cv_func_$ac_func=no"
2378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_func 1
2386 echo "$ac_t""no" 1>&6
2391 if test "${ac_cv_func_stpcpy}" = "yes"; then
2392 cat >> confdefs.h <<\EOF
2393 #define HAVE_STPCPY 1
2398 if test $ac_cv_header_locale_h = yes; then
2399 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2400 echo "configure:2401: checking for LC_MESSAGES" >&5
2401 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2412 if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2414 am_cv_val_LC_MESSAGES=yes
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2419 am_cv_val_LC_MESSAGES=no
2424 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2425 if test $am_cv_val_LC_MESSAGES = yes; then
2426 cat >> confdefs.h <<\EOF
2427 #define HAVE_LC_MESSAGES 1
2432 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2433 echo "configure:2434: checking whether NLS is requested" >&5
2434 # Check whether --enable-nls or --disable-nls was given.
2435 if test "${enable_nls+set}" = set; then
2436 enableval="$enable_nls"
2442 echo "$ac_t""$USE_NLS" 1>&6
2445 USE_INCLUDED_LIBINTL=no
2447 if test "$USE_NLS" = "yes"; then
2448 cat >> confdefs.h <<\EOF
2449 #define ENABLE_NLS 1
2452 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2453 echo "configure:2454: checking whether included gettext is requested" >&5
2454 # Check whether --with-included-gettext or --without-included-gettext was given.
2455 if test "${with_included_gettext+set}" = set; then
2456 withval="$with_included_gettext"
2457 nls_cv_force_use_gnu_gettext=$withval
2459 nls_cv_force_use_gnu_gettext=no
2462 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2464 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2465 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2467 nls_cv_header_libgt=
2470 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2471 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2472 echo "configure:2473: checking for libintl.h" >&5
2473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
2479 #include <libintl.h>
2481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484 if test -z "$ac_err"; then
2486 eval "ac_cv_header_$ac_safe=yes"
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2492 eval "ac_cv_header_$ac_safe=no"
2496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2499 echo "configure:2500: checking for gettext in libc" >&5
2500 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 #include <libintl.h>
2508 return (int) gettext ("")
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2513 gt_cv_func_gettext_libc=yes
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2518 gt_cv_func_gettext_libc=no
2523 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2525 if test "$gt_cv_func_gettext_libc" != "yes"; then
2526 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2527 echo "configure:2528: checking for bindtextdomain in -lintl" >&5
2528 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 ac_save_LIBS="$LIBS"
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 /* Override any gcc2 internal prototype to avoid an error. */
2538 /* We use char because int might match the return type of a gcc2
2539 builtin and then its argument prototype would still apply. */
2540 char bindtextdomain();
2546 if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2548 eval "ac_cv_lib_$ac_lib_var=yes"
2550 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2553 eval "ac_cv_lib_$ac_lib_var=no"
2556 LIBS="$ac_save_LIBS"
2559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2560 echo "$ac_t""yes" 1>&6
2561 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2562 echo "configure:2563: checking for gettext in libintl" >&5
2563 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2567 echo "configure:2568: checking for gettext in -lintl" >&5
2568 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 ac_save_LIBS="$LIBS"
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 /* Override any gcc2 internal prototype to avoid an error. */
2578 /* We use char because int might match the return type of a gcc2
2579 builtin and then its argument prototype would still apply. */
2586 if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2588 eval "ac_cv_lib_$ac_lib_var=yes"
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2593 eval "ac_cv_lib_$ac_lib_var=no"
2596 LIBS="$ac_save_LIBS"
2599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2600 echo "$ac_t""yes" 1>&6
2601 gt_cv_func_gettext_libintl=yes
2603 echo "$ac_t""no" 1>&6
2604 gt_cv_func_gettext_libintl=no
2609 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2611 echo "$ac_t""no" 1>&6
2616 if test "$gt_cv_func_gettext_libc" = "yes" \
2617 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2618 cat >> confdefs.h <<\EOF
2619 #define HAVE_GETTEXT 1
2622 # Extract the first word of "msgfmt", so it can be a program name with args.
2623 set dummy msgfmt; ac_word=$2
2624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2625 echo "configure:2626: checking for $ac_word" >&5
2626 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2631 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2635 for ac_dir in $PATH; do
2636 test -z "$ac_dir" && ac_dir=.
2637 if test -f $ac_dir/$ac_word; then
2638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2639 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2645 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2649 MSGFMT="$ac_cv_path_MSGFMT"
2650 if test -n "$MSGFMT"; then
2651 echo "$ac_t""$MSGFMT" 1>&6
2653 echo "$ac_t""no" 1>&6
2655 if test "$MSGFMT" != "no"; then
2656 for ac_func in dcgettext
2658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2659 echo "configure:2660: checking for $ac_func" >&5
2660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 /* System header to define __stub macros and hopefully few prototypes,
2667 which can conflict with char $ac_func(); below. */
2669 /* Override any gcc2 internal prototype to avoid an error. */
2670 /* We use char because int might match the return type of a gcc2
2671 builtin and then its argument prototype would still apply. */
2676 /* The GNU C library defines this for functions which it implements
2677 to always fail with ENOSYS. Some functions are actually named
2678 something starting with __ and the normal name is an alias. */
2679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2689 eval "ac_cv_func_$ac_func=yes"
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2694 eval "ac_cv_func_$ac_func=no"
2699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2700 echo "$ac_t""yes" 1>&6
2701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2702 cat >> confdefs.h <<EOF
2703 #define $ac_tr_func 1
2707 echo "$ac_t""no" 1>&6
2711 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2712 set dummy gmsgfmt; ac_word=$2
2713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2714 echo "configure:2715: checking for $ac_word" >&5
2715 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2720 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2723 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2728 for ac_dir in $ac_dummy; do
2729 test -z "$ac_dir" && ac_dir=.
2730 if test -f $ac_dir/$ac_word; then
2731 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2736 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2740 GMSGFMT="$ac_cv_path_GMSGFMT"
2741 if test -n "$GMSGFMT"; then
2742 echo "$ac_t""$GMSGFMT" 1>&6
2744 echo "$ac_t""no" 1>&6
2747 # Extract the first word of "xgettext", so it can be a program name with args.
2748 set dummy xgettext; ac_word=$2
2749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2750 echo "configure:2751: checking for $ac_word" >&5
2751 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2756 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2760 for ac_dir in $PATH; do
2761 test -z "$ac_dir" && ac_dir=.
2762 if test -f $ac_dir/$ac_word; then
2763 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2764 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2770 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2774 XGETTEXT="$ac_cv_path_XGETTEXT"
2775 if test -n "$XGETTEXT"; then
2776 echo "$ac_t""$XGETTEXT" 1>&6
2778 echo "$ac_t""no" 1>&6
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2786 extern int _nl_msg_cat_cntr;
2787 return _nl_msg_cat_cntr
2790 if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2807 echo "$ac_t""no" 1>&6
2811 if test "$CATOBJEXT" = "NONE"; then
2812 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2813 echo "configure:2814: checking whether catgets can be used" >&5
2814 # Check whether --with-catgets or --without-catgets was given.
2815 if test "${with_catgets+set}" = set; then
2816 withval="$with_catgets"
2817 nls_cv_use_catgets=$withval
2819 nls_cv_use_catgets=no
2822 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2824 if test "$nls_cv_use_catgets" = "yes"; then
2825 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2826 echo "configure:2827: checking for main in -li" >&5
2827 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 ac_save_LIBS="$LIBS"
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2841 if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2843 eval "ac_cv_lib_$ac_lib_var=yes"
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2848 eval "ac_cv_lib_$ac_lib_var=no"
2851 LIBS="$ac_save_LIBS"
2854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2857 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2858 cat >> confdefs.h <<EOF
2859 #define $ac_tr_lib 1
2865 echo "$ac_t""no" 1>&6
2868 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2869 echo "configure:2870: checking for catgets" >&5
2870 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* System header to define __stub macros and hopefully few prototypes,
2877 which can conflict with char catgets(); below. */
2879 /* Override any gcc2 internal prototype to avoid an error. */
2880 /* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2886 /* The GNU C library defines this for functions which it implements
2887 to always fail with ENOSYS. Some functions are actually named
2888 something starting with __ and the normal name is an alias. */
2889 #if defined (__stub_catgets) || defined (__stub___catgets)
2897 if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2899 eval "ac_cv_func_catgets=yes"
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 eval "ac_cv_func_catgets=no"
2909 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2910 echo "$ac_t""yes" 1>&6
2911 cat >> confdefs.h <<\EOF
2912 #define HAVE_CATGETS 1
2915 INTLOBJS="\$(CATOBJS)"
2916 # Extract the first word of "gencat", so it can be a program name with args.
2917 set dummy gencat; ac_word=$2
2918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2919 echo "configure:2920: checking for $ac_word" >&5
2920 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2925 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2928 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2933 for ac_dir in $ac_dummy; do
2934 test -z "$ac_dir" && ac_dir=.
2935 if test -f $ac_dir/$ac_word; then
2936 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2941 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2945 GENCAT="$ac_cv_path_GENCAT"
2946 if test -n "$GENCAT"; then
2947 echo "$ac_t""$GENCAT" 1>&6
2949 echo "$ac_t""no" 1>&6
2951 if test "$GENCAT" != "no"; then
2952 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2953 set dummy gmsgfmt; ac_word=$2
2954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2955 echo "configure:2956: checking for $ac_word" >&5
2956 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2961 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2964 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2969 for ac_dir in $ac_dummy; do
2970 test -z "$ac_dir" && ac_dir=.
2971 if test -f $ac_dir/$ac_word; then
2972 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2977 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2981 GMSGFMT="$ac_cv_path_GMSGFMT"
2982 if test -n "$GMSGFMT"; then
2983 echo "$ac_t""$GMSGFMT" 1>&6
2985 echo "$ac_t""no" 1>&6
2988 if test "$GMSGFMT" = "no"; then
2989 # Extract the first word of "msgfmt", so it can be a program name with args.
2990 set dummy msgfmt; ac_word=$2
2991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2992 echo "configure:2993: checking for $ac_word" >&5
2993 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2998 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3002 for ac_dir in $PATH; do
3003 test -z "$ac_dir" && ac_dir=.
3004 if test -f $ac_dir/$ac_word; then
3005 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3006 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3012 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3016 GMSGFMT="$ac_cv_path_GMSGFMT"
3017 if test -n "$GMSGFMT"; then
3018 echo "$ac_t""$GMSGFMT" 1>&6
3020 echo "$ac_t""no" 1>&6
3024 # Extract the first word of "xgettext", so it can be a program name with args.
3025 set dummy xgettext; 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_XGETTEXT'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3033 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3037 for ac_dir in $PATH; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3041 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3047 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3051 XGETTEXT="$ac_cv_path_XGETTEXT"
3052 if test -n "$XGETTEXT"; then
3053 echo "$ac_t""$XGETTEXT" 1>&6
3055 echo "$ac_t""no" 1>&6
3058 USE_INCLUDED_LIBINTL=yes
3062 INTLDEPS='$(top_builddir)/intl/libintl.a'
3064 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3065 nls_cv_header_intl=intl/libintl.h
3066 nls_cv_header_libgt=intl/libgettext.h
3069 echo "$ac_t""no" 1>&6
3075 if test "$CATOBJEXT" = "NONE"; then
3076 nls_cv_use_gnu_gettext=yes
3080 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3081 INTLOBJS="\$(GETTOBJS)"
3082 # Extract the first word of "msgfmt", so it can be a program name with args.
3083 set dummy msgfmt; ac_word=$2
3084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3085 echo "configure:3086: checking for $ac_word" >&5
3086 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3091 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3095 for ac_dir in $PATH; do
3096 test -z "$ac_dir" && ac_dir=.
3097 if test -f $ac_dir/$ac_word; then
3098 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3099 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3105 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3109 MSGFMT="$ac_cv_path_MSGFMT"
3110 if test -n "$MSGFMT"; then
3111 echo "$ac_t""$MSGFMT" 1>&6
3113 echo "$ac_t""no" 1>&6
3116 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3117 set dummy gmsgfmt; ac_word=$2
3118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3119 echo "configure:3120: checking for $ac_word" >&5
3120 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3125 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3128 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3133 for ac_dir in $ac_dummy; do
3134 test -z "$ac_dir" && ac_dir=.
3135 if test -f $ac_dir/$ac_word; then
3136 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3141 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3145 GMSGFMT="$ac_cv_path_GMSGFMT"
3146 if test -n "$GMSGFMT"; then
3147 echo "$ac_t""$GMSGFMT" 1>&6
3149 echo "$ac_t""no" 1>&6
3152 # Extract the first word of "xgettext", so it can be a program name with args.
3153 set dummy xgettext; ac_word=$2
3154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3155 echo "configure:3156: checking for $ac_word" >&5
3156 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3161 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3165 for ac_dir in $PATH; do
3166 test -z "$ac_dir" && ac_dir=.
3167 if test -f $ac_dir/$ac_word; then
3168 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3169 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3175 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3179 XGETTEXT="$ac_cv_path_XGETTEXT"
3180 if test -n "$XGETTEXT"; then
3181 echo "$ac_t""$XGETTEXT" 1>&6
3183 echo "$ac_t""no" 1>&6
3187 USE_INCLUDED_LIBINTL=yes
3191 INTLDEPS='$(top_builddir)/intl/libintl.a'
3193 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3194 nls_cv_header_intl=intl/libintl.h
3195 nls_cv_header_libgt=intl/libgettext.h
3198 if test "$XGETTEXT" != ":"; then
3199 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3202 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3207 # We need to process the po/ directory.
3211 nls_cv_header_intl=intl/libintl.h
3212 nls_cv_header_libgt=intl/libgettext.h
3218 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3219 # because some of the sources are only built for this goal.
3220 if test "$PACKAGE" = gettext; then
3222 USE_INCLUDED_LIBINTL=yes
3225 for lang in $ALL_LINGUAS; do
3226 GMOFILES="$GMOFILES $lang.gmo"
3227 POFILES="$POFILES $lang.po"
3243 if test "x$CATOBJEXT" != "x"; then
3244 if test "x$ALL_LINGUAS" = "x"; then
3247 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3248 echo "configure:3249: checking for catalogs to be installed" >&5
3250 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3251 case "$ALL_LINGUAS" in
3252 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3255 LINGUAS=$NEW_LINGUAS
3256 echo "$ac_t""$LINGUAS" 1>&6
3259 if test -n "$LINGUAS"; then
3260 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3264 if test $ac_cv_header_locale_h = yes; then
3265 INCLUDE_LOCALE_H="#include <locale.h>"
3268 /* The system does not provide the header <locale.h>. Take care yourself. */"
3272 test -d intl || mkdir intl
3273 if test "$CATOBJEXT" = ".cat"; then
3274 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3275 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3276 echo "configure:3277: checking for linux/version.h" >&5
3277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <linux/version.h>
3285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3286 { (eval echo configure:3287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3288 if test -z "$ac_err"; then
3290 eval "ac_cv_header_$ac_safe=yes"
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 eval "ac_cv_header_$ac_safe=no"
3300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3301 echo "$ac_t""yes" 1>&6
3304 echo "$ac_t""no" 1>&6
3309 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3311 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3312 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3314 if test "$PACKAGE" = "gettext"; then
3325 if test -n "$ac_aux_dir"; then
3326 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3328 if test -z "$MKINSTALLDIRS"; then
3329 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3336 test -d po || mkdir po
3337 if test "x$srcdir" != "x."; then
3338 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3339 posrcprefix="$srcdir/"
3341 posrcprefix="../$srcdir/"
3347 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3348 < $srcdir/po/POTFILES.in > po/POTFILES
3351 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3352 echo "configure:3353: checking whether ${MAKE-make} sets \${MAKE}" >&5
3353 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3354 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 cat > conftestmake <<\EOF
3359 @echo 'ac_maketemp="${MAKE}"'
3361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3362 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3363 if test -n "$ac_maketemp"; then
3364 eval ac_cv_prog_make_${ac_make}_set=yes
3366 eval ac_cv_prog_make_${ac_make}_set=no
3370 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3374 echo "$ac_t""no" 1>&6
3375 SET_MAKE="MAKE=${MAKE-make}"
3378 # Extract the first word of "ln", so it can be a program name with args.
3379 set dummy ln; ac_word=$2
3380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3381 echo "configure:3382: checking for $ac_word" >&5
3382 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3387 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3390 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3395 for ac_dir in $ac_dummy; do
3396 test -z "$ac_dir" && ac_dir=.
3397 if test -f $ac_dir/$ac_word; then
3398 ac_cv_path_LN="$ac_dir/$ac_word"
3403 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3408 if test -n "$LN"; then
3409 echo "$ac_t""$LN" 1>&6
3411 echo "$ac_t""no" 1>&6
3414 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3415 echo "configure:3416: checking whether ln -s works" >&5
3416 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3420 if ln -s X conftestdata 2>/dev/null
3423 ac_cv_prog_LN_S="ln -s"
3428 LN_S="$ac_cv_prog_LN_S"
3429 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3430 echo "$ac_t""yes" 1>&6
3432 echo "$ac_t""no" 1>&6
3435 # Extract the first word of "mv", so it can be a program name with args.
3436 set dummy mv; ac_word=$2
3437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3438 echo "configure:3439: checking for $ac_word" >&5
3439 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3444 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3447 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3452 for ac_dir in $ac_dummy; do
3453 test -z "$ac_dir" && ac_dir=.
3454 if test -f $ac_dir/$ac_word; then
3455 ac_cv_path_MV="$ac_dir/$ac_word"
3460 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3465 if test -n "$MV"; then
3466 echo "$ac_t""$MV" 1>&6
3468 echo "$ac_t""no" 1>&6
3471 # Extract the first word of "cp", so it can be a program name with args.
3472 set dummy cp; ac_word=$2
3473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3474 echo "configure:3475: checking for $ac_word" >&5
3475 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3480 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3483 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3488 for ac_dir in $ac_dummy; do
3489 test -z "$ac_dir" && ac_dir=.
3490 if test -f $ac_dir/$ac_word; then
3491 ac_cv_path_CP="$ac_dir/$ac_word"
3496 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3501 if test -n "$CP"; then
3502 echo "$ac_t""$CP" 1>&6
3504 echo "$ac_t""no" 1>&6
3507 # Extract the first word of "rm", so it can be a program name with args.
3508 set dummy rm; 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_RM'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3519 ac_cv_path_RM="$RM" # 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_RM="$ac_dir/$ac_word"
3532 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3537 if test -n "$RM"; then
3538 echo "$ac_t""$RM" 1>&6
3540 echo "$ac_t""no" 1>&6
3543 # Extract the first word of "chmod", so it can be a program name with args.
3544 set dummy chmod; 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_CHMOD'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3552 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3555 ac_cv_path_CHMOD="$CHMOD" # 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_CHMOD="$ac_dir/$ac_word"
3568 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3572 CHMOD="$ac_cv_path_CHMOD"
3573 if test -n "$CHMOD"; then
3574 echo "$ac_t""$CHMOD" 1>&6
3576 echo "$ac_t""no" 1>&6
3579 # Extract the first word of "awk", so it can be a program name with args.
3580 set dummy awk; 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_AWK'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3588 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3591 ac_cv_path_AWK="$AWK" # 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_AWK="$ac_dir/$ac_word"
3604 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3608 AWK="$ac_cv_path_AWK"
3609 if test -n "$AWK"; then
3610 echo "$ac_t""$AWK" 1>&6
3612 echo "$ac_t""no" 1>&6
3615 # Extract the first word of "sed", so it can be a program name with args.
3616 set dummy sed; 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_SED'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3624 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3627 ac_cv_path_SED="$SED" # 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_SED="$ac_dir/$ac_word"
3640 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3644 SED="$ac_cv_path_SED"
3645 if test -n "$SED"; then
3646 echo "$ac_t""$SED" 1>&6
3648 echo "$ac_t""no" 1>&6
3651 # Extract the first word of "perl", so it can be a program name with args.
3652 set dummy perl; 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_PERL'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3660 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3663 ac_cv_path_PERL="$PERL" # 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_PERL="$ac_dir/$ac_word"
3676 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3680 PERL="$ac_cv_path_PERL"
3681 if test -n "$PERL"; then
3682 echo "$ac_t""$PERL" 1>&6
3684 echo "$ac_t""no" 1>&6
3687 # Extract the first word of "ldconfig", so it can be a program name with args.
3688 set dummy ldconfig; 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_LDCONFIG'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3696 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3699 ac_cv_path_LDCONFIG="$LDCONFIG" # 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_LDCONFIG="$ac_dir/$ac_word"
3712 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3716 LDCONFIG="$ac_cv_path_LDCONFIG"
3717 if test -n "$LDCONFIG"; then
3718 echo "$ac_t""$LDCONFIG" 1>&6
3720 echo "$ac_t""no" 1>&6
3723 echo $ac_n "checking build system type""... $ac_c" 1>&6
3724 echo "configure:3725: checking build system type" >&5
3727 case "$build_alias" in
3730 NONE) build_alias=$host_alias ;;
3731 *) build_alias=$nonopt ;;
3735 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3736 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3737 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3738 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3739 echo "$ac_t""$build" 1>&6
3741 if test $host != $build; then
3742 ac_tool_prefix=${host_alias}-
3747 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}ar; ac_word=$2
3749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3750 echo "configure:3751: checking for $ac_word" >&5
3751 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 if test -n "$AR"; then
3755 ac_cv_prog_AR="$AR" # Let the user override the test.
3757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3759 for ac_dir in $ac_dummy; do
3760 test -z "$ac_dir" && ac_dir=.
3761 if test -f $ac_dir/$ac_word; then
3762 ac_cv_prog_AR="${ac_tool_prefix}ar"
3770 if test -n "$AR"; then
3771 echo "$ac_t""$AR" 1>&6
3773 echo "$ac_t""no" 1>&6
3777 if test -z "$ac_cv_prog_AR"; then
3778 if test -n "$ac_tool_prefix"; then
3779 # Extract the first word of "ar", so it can be a program name with args.
3780 set dummy ar; ac_word=$2
3781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3782 echo "configure:3783: checking for $ac_word" >&5
3783 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3786 if test -n "$AR"; then
3787 ac_cv_prog_AR="$AR" # Let the user override the test.
3789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3791 for ac_dir in $ac_dummy; do
3792 test -z "$ac_dir" && ac_dir=.
3793 if test -f $ac_dir/$ac_word; then
3799 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3803 if test -n "$AR"; then
3804 echo "$ac_t""$AR" 1>&6
3806 echo "$ac_t""no" 1>&6
3814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3817 echo "configure:3818: checking for $ac_word" >&5
3818 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 if test -n "$RANLIB"; then
3822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3826 for ac_dir in $ac_dummy; do
3827 test -z "$ac_dir" && ac_dir=.
3828 if test -f $ac_dir/$ac_word; then
3829 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3836 RANLIB="$ac_cv_prog_RANLIB"
3837 if test -n "$RANLIB"; then
3838 echo "$ac_t""$RANLIB" 1>&6
3840 echo "$ac_t""no" 1>&6
3844 if test -z "$ac_cv_prog_RANLIB"; then
3845 if test -n "$ac_tool_prefix"; then
3846 # Extract the first word of "ranlib", so it can be a program name with args.
3847 set dummy ranlib; ac_word=$2
3848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3849 echo "configure:3850: checking for $ac_word" >&5
3850 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 if test -n "$RANLIB"; then
3854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3858 for ac_dir in $ac_dummy; do
3859 test -z "$ac_dir" && ac_dir=.
3860 if test -f $ac_dir/$ac_word; then
3861 ac_cv_prog_RANLIB="ranlib"
3866 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3869 RANLIB="$ac_cv_prog_RANLIB"
3870 if test -n "$RANLIB"; then
3871 echo "$ac_t""$RANLIB" 1>&6
3873 echo "$ac_t""no" 1>&6
3881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}strip; ac_word=$2
3883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3884 echo "configure:3885: checking for $ac_word" >&5
3885 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 if test -n "$STRIP"; then
3889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3893 for ac_dir in $ac_dummy; do
3894 test -z "$ac_dir" && ac_dir=.
3895 if test -f $ac_dir/$ac_word; then
3896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3903 STRIP="$ac_cv_prog_STRIP"
3904 if test -n "$STRIP"; then
3905 echo "$ac_t""$STRIP" 1>&6
3907 echo "$ac_t""no" 1>&6
3911 if test -z "$ac_cv_prog_STRIP"; then
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "strip", so it can be a program name with args.
3914 set dummy strip; ac_word=$2
3915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3916 echo "configure:3917: checking for $ac_word" >&5
3917 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 if test -n "$STRIP"; then
3921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3925 for ac_dir in $ac_dummy; do
3926 test -z "$ac_dir" && ac_dir=.
3927 if test -f $ac_dir/$ac_word; then
3928 ac_cv_prog_STRIP="strip"
3933 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3936 STRIP="$ac_cv_prog_STRIP"
3937 if test -n "$STRIP"; then
3938 echo "$ac_t""$STRIP" 1>&6
3940 echo "$ac_t""no" 1>&6
3948 # Find a good install program. We prefer a C program (faster),
3949 # so one script is as good as another. But avoid the broken or
3950 # incompatible versions:
3951 # SysV /etc/install, /usr/sbin/install
3952 # SunOS /usr/etc/install
3953 # IRIX /sbin/install
3955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3958 # ./install, which can be erroneously created by make from ./install.sh.
3959 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3960 echo "configure:3961: checking for a BSD compatible install" >&5
3961 if test -z "$INSTALL"; then
3962 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3966 for ac_dir in $PATH; do
3967 # Account for people who put trailing slashes in PATH elements.
3969 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3971 # OSF1 and SCO ODT 3.0 have their own names for install.
3972 # Don't use installbsd from OSF since it installs stuff as root
3974 for ac_prog in ginstall scoinst install; do
3975 if test -f $ac_dir/$ac_prog; then
3976 if test $ac_prog = install &&
3977 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3978 # AIX install. It has an incompatible calling convention.
3981 ac_cv_path_install="$ac_dir/$ac_prog -c"
3992 if test "${ac_cv_path_install+set}" = set; then
3993 INSTALL="$ac_cv_path_install"
3995 # As a last resort, use the slow shell script. We don't cache a
3996 # path for INSTALL within a source directory, because that will
3997 # break other packages using the cache if that directory is
3998 # removed, or if the path is relative.
3999 INSTALL="$ac_install_sh"
4002 echo "$ac_t""$INSTALL" 1>&6
4004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4005 # It thinks the first close brace ends the variable substitution.
4006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4012 # See if we need a separate native compiler.
4013 if test $cross_compiling = no; then
4017 for ac_prog in gcc cc
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4022 echo "configure:4023: checking for $ac_word" >&5
4023 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4026 if test -n "$BUILD_CC"; then
4027 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4031 for ac_dir in $ac_dummy; do
4032 test -z "$ac_dir" && ac_dir=.
4033 if test -f $ac_dir/$ac_word; then
4034 ac_cv_prog_BUILD_CC="$ac_prog"
4041 BUILD_CC="$ac_cv_prog_BUILD_CC"
4042 if test -n "$BUILD_CC"; then
4043 echo "$ac_t""$BUILD_CC" 1>&6
4045 echo "$ac_t""no" 1>&6
4048 test -n "$BUILD_CC" && break
4052 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
4054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4056 echo "configure:4057: checking for $ac_hdr" >&5
4057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4066 { (eval echo configure:4067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4068 if test -z "$ac_err"; then
4070 eval "ac_cv_header_$ac_safe=yes"
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 eval "ac_cv_header_$ac_safe=no"
4080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4083 cat >> confdefs.h <<EOF
4084 #define $ac_tr_hdr 1
4088 echo "$ac_t""no" 1>&6
4092 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4093 echo "configure:4094: checking for vprintf" >&5
4094 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 cat > conftest.$ac_ext <<EOF
4098 #line 4099 "configure"
4099 #include "confdefs.h"
4100 /* System header to define __stub macros and hopefully few prototypes,
4101 which can conflict with char vprintf(); below. */
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4110 /* The GNU C library defines this for functions which it implements
4111 to always fail with ENOSYS. Some functions are actually named
4112 something starting with __ and the normal name is an alias. */
4113 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4121 if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4123 eval "ac_cv_func_vprintf=yes"
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4128 eval "ac_cv_func_vprintf=no"
4133 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 cat >> confdefs.h <<\EOF
4136 #define HAVE_VPRINTF 1
4140 echo "$ac_t""no" 1>&6
4143 if test "$ac_cv_func_vprintf" != yes; then
4144 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4145 echo "configure:4146: checking for _doprnt" >&5
4146 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 /* System header to define __stub macros and hopefully few prototypes,
4153 which can conflict with char _doprnt(); below. */
4155 /* Override any gcc2 internal prototype to avoid an error. */
4156 /* We use char because int might match the return type of a gcc2
4157 builtin and then its argument prototype would still apply. */
4162 /* The GNU C library defines this for functions which it implements
4163 to always fail with ENOSYS. Some functions are actually named
4164 something starting with __ and the normal name is an alias. */
4165 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4173 if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4175 eval "ac_cv_func__doprnt=yes"
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4180 eval "ac_cv_func__doprnt=no"
4185 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4186 echo "$ac_t""yes" 1>&6
4187 cat >> confdefs.h <<\EOF
4188 #define HAVE_DOPRNT 1
4192 echo "$ac_t""no" 1>&6
4197 echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
4198 echo "configure:4199: checking whether struct dirent has a d_namlen field" >&5
4199 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4205 #include <sys/types.h>
4208 struct dirent de; de.d_namlen = 0;
4211 if { (eval echo configure:4212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4213 e2fsprogs_cv_struct_d_namlen=yes
4215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4218 e2fsprogs_cv_struct_d_namlen=no
4223 echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4224 if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4225 cat >> confdefs.h <<\EOF
4226 #define HAVE_DIRENT_NAMLEN 1
4230 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4231 echo "configure:4232: checking whether llseek declared in unistd.h" >&5
4232 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4240 extern int llseek(int);
4243 if { (eval echo configure:4244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4245 e2fsprogs_cv_have_llseek_prototype=no
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4250 e2fsprogs_cv_have_llseek_prototype=yes
4255 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4256 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4257 cat >> confdefs.h <<\EOF
4258 #define HAVE_LLSEEK_PROTOTYPE 1
4262 echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
4263 echo "configure:4264: checking whether lseek64 declared in unistd.h" >&5
4264 if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4270 #define _LARGEFILE_SOURCE
4271 #define _LARGEFILE64_SOURCE
4274 extern int lseek64(int);
4277 if { (eval echo configure:4278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4279 e2fsprogs_cv_have_lseek64_prototype=no
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4284 e2fsprogs_cv_have_lseek64_prototype=yes
4289 echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4290 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4291 cat >> confdefs.h <<\EOF
4292 #define HAVE_LSEEK64_PROTOTYPE 1
4296 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4297 # if cross-compiling, with no cached values, just assume something common.
4298 ac_cv_sizeof_short=2
4301 ac_cv_sizeof_long_long=8
4302 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
4304 echo $ac_n "checking size of short""... $ac_c" 1>&6
4305 echo "configure:4306: checking size of short" >&5
4306 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 if test "$cross_compiling" = yes; then
4310 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4316 #include <sys/types.h>
4319 FILE *f=fopen("conftestval", "w");
4321 fprintf(f, "%d\n", sizeof(short));
4325 if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4327 ac_cv_sizeof_short=`cat conftestval`
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4332 ac_cv_sizeof_short=0
4338 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4339 cat >> confdefs.h <<EOF
4340 #define SIZEOF_SHORT $ac_cv_sizeof_short
4344 echo $ac_n "checking size of int""... $ac_c" 1>&6
4345 echo "configure:4346: checking size of int" >&5
4346 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 if test "$cross_compiling" = yes; then
4350 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4356 #include <sys/types.h>
4359 FILE *f=fopen("conftestval", "w");
4361 fprintf(f, "%d\n", sizeof(int));
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4367 ac_cv_sizeof_int=`cat conftestval`
4369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4378 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4379 cat >> confdefs.h <<EOF
4380 #define SIZEOF_INT $ac_cv_sizeof_int
4384 echo $ac_n "checking size of long""... $ac_c" 1>&6
4385 echo "configure:4386: checking size of long" >&5
4386 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 if test "$cross_compiling" = yes; then
4390 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4396 #include <sys/types.h>
4399 FILE *f=fopen("conftestval", "w");
4401 fprintf(f, "%d\n", sizeof(long));
4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4407 ac_cv_sizeof_long=`cat conftestval`
4409 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4418 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4419 cat >> confdefs.h <<EOF
4420 #define SIZEOF_LONG $ac_cv_sizeof_long
4424 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4425 echo "configure:4426: checking size of long long" >&5
4426 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4427 echo $ac_n "(cached) $ac_c" 1>&6
4429 if test "$cross_compiling" = yes; then
4430 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4436 #include <sys/types.h>
4439 FILE *f=fopen("conftestval", "w");
4441 fprintf(f, "%d\n", sizeof(long long));
4445 if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4447 ac_cv_sizeof_long_long=`cat conftestval`
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4452 ac_cv_sizeof_long_long=0
4458 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4459 cat >> confdefs.h <<EOF
4460 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4464 SIZEOF_SHORT=$ac_cv_sizeof_short
4465 SIZEOF_INT=$ac_cv_sizeof_int
4466 SIZEOF_LONG=$ac_cv_sizeof_long
4467 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4472 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4473 echo "configure:4474: checking whether byte ordering is bigendian" >&5
4474 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4477 ac_cv_c_bigendian=unknown
4478 # See if sys/param.h defines the BYTE_ORDER macro.
4479 cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4482 #include <sys/types.h>
4483 #include <sys/param.h>
4486 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4491 if { (eval echo configure:4492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4493 # It does; now see whether it defined to BIG_ENDIAN or not.
4494 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4497 #include <sys/types.h>
4498 #include <sys/param.h>
4501 #if BYTE_ORDER != BIG_ENDIAN
4506 if { (eval echo configure:4507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4508 ac_cv_c_bigendian=yes
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4513 ac_cv_c_bigendian=no
4517 echo "configure: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4521 if test $ac_cv_c_bigendian = unknown; then
4522 if test "$cross_compiling" = yes; then
4523 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4529 /* Are we little or big endian? From Harbison&Steele. */
4533 char c[sizeof (long)];
4536 exit (u.c[sizeof (long) - 1] == 1);
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4541 ac_cv_c_bigendian=no
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4546 ac_cv_c_bigendian=yes
4554 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4555 if test $ac_cv_c_bigendian = yes; then
4556 cat >> confdefs.h <<\EOF
4557 #define WORDS_BIGENDIAN 1
4562 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
4563 echo "configure:4564: checking whether struct stat has a st_flags field" >&5
4564 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4567 cat > conftest.$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4570 #include <sys/stat.h>
4572 struct stat stat; stat.st_flags = 0;
4575 if { (eval echo configure:4576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4577 e2fsprogs_cv_struct_st_flags=yes
4579 echo "configure: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4582 e2fsprogs_cv_struct_st_flags=no
4587 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4588 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
4589 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
4590 echo "configure:4591: checking whether st_flags field is useful" >&5
4591 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 cat > conftest.$ac_ext <<EOF
4595 #line 4596 "configure"
4596 #include "confdefs.h"
4597 #include <sys/stat.h>
4599 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4602 if { (eval echo configure:4603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4604 e2fsprogs_cv_struct_st_flags_immut=yes
4606 echo "configure: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4609 e2fsprogs_cv_struct_st_flags_immut=no
4614 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4615 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4616 cat >> confdefs.h <<\EOF
4617 #define HAVE_STAT_FLAGS 1
4622 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen
4624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_func" >&5
4626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 /* System header to define __stub macros and hopefully few prototypes,
4633 which can conflict with char $ac_func(); below. */
4635 /* Override any gcc2 internal prototype to avoid an error. */
4636 /* We use char because int might match the return type of a gcc2
4637 builtin and then its argument prototype would still apply. */
4642 /* The GNU C library defines this for functions which it implements
4643 to always fail with ENOSYS. Some functions are actually named
4644 something starting with __ and the normal name is an alias. */
4645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4653 if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4655 eval "ac_cv_func_$ac_func=yes"
4657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4660 eval "ac_cv_func_$ac_func=no"
4665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
4667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4668 cat >> confdefs.h <<EOF
4669 #define $ac_tr_func 1
4673 echo "$ac_t""no" 1>&6
4678 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4679 echo "configure:4680: checking for socket in -lsocket" >&5
4680 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4682 echo $ac_n "(cached) $ac_c" 1>&6
4684 ac_save_LIBS="$LIBS"
4685 LIBS="-lsocket $LIBS"
4686 cat > conftest.$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4689 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4698 if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4700 eval "ac_cv_lib_$ac_lib_var=yes"
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4705 eval "ac_cv_lib_$ac_lib_var=no"
4708 LIBS="$ac_save_LIBS"
4711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4712 echo "$ac_t""yes" 1>&6
4715 echo "$ac_t""no" 1>&6
4719 echo $ac_n "checking for optreset""... $ac_c" 1>&6
4720 echo "configure:4721: checking for optreset" >&5
4721 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730 egrep "optreset" >/dev/null 2>&1; then
4732 ac_cv_have_optreset=yes
4735 ac_cv_have_optreset=no
4740 echo "$ac_t""$ac_cv_have_optreset" 1>&6
4741 if test $ac_cv_have_optreset = yes; then
4742 cat >> confdefs.h <<\EOF
4743 #define HAVE_OPTRESET 1
4749 cat >> confdefs.h <<\EOF
4750 #define HAVE_EXT2_IOCTLS 1
4757 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4759 echo "On $host_os systems, root_prefix defaults to ''"
4765 if test "$prefix" = NONE ; then
4767 echo "On $host_os systems, prefix defaults to /usr"
4771 if test "$root_prefix" = NONE ; then
4772 if test "$prefix" = NONE ; then
4773 root_prefix="$ac_default_prefix"
4775 root_prefix="$prefix"
4779 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
4780 echo "configure:4781: checking whether linker accepts -static" >&5
4781 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4793 if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4795 ac_cv_e2fsprogs_use_static=yes
4797 echo "configure: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4800 ac_cv_e2fsprogs_use_static=no
4803 LDFLAGS=$SAVE_LDFLAGS
4808 ac_cv_e2fsprogs_use_static=no
4811 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
4813 if test $ac_cv_e2fsprogs_use_static = yes; then
4814 LDFLAG_STATIC=-static
4817 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4818 ET_DIR=`cd ${srcdir}/lib/et; pwd`
4821 if test "$cross_compiling" = yes ; then
4827 test -d lib || mkdir lib
4828 test -d include || mkdir include
4829 test -d include/linux || mkdir include/linux
4830 test -d include/asm || mkdir include/asm
4832 if test -d ${srcdir}/resize ; then
4833 rmakefile=resize/Makefile
4836 cat > confcache <<\EOF
4837 # This file is a shell script that caches the results of configure
4838 # tests run on this system so they can be shared between configure
4839 # scripts and configure runs. It is not useful on other systems.
4840 # If it contains results you don't want to keep, you may remove or edit it.
4842 # By default, configure uses ./config.cache as the cache file,
4843 # creating it if it does not exist already. You can give configure
4844 # the --cache-file=FILE option to use a different cache file; that is
4845 # what configure does when it calls configure scripts in
4846 # subdirectories, so they share the cache.
4847 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4848 # config.status only pays attention to the cache file if you give it the
4849 # --recheck option to rerun configure.
4852 # The following way of writing the cache mishandles newlines in values,
4853 # but we know of no workaround that is simple, portable, and efficient.
4854 # So, don't put newlines in cache variables' values.
4855 # Ultrix sh set writes to stderr and can't be redirected directly,
4856 # and sets the high bit in the cache file unless we assign to the vars.
4858 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4860 # `set' does not quote correctly, so add quotes (double-quote substitution
4861 # turns \\\\ into \\, and sed turns \\ into \).
4863 -e "s/'/'\\\\''/g" \
4864 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4867 # `set' quotes correctly as required by POSIX, so do not add quotes.
4868 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4871 if cmp -s $cache_file confcache; then
4874 if test -w $cache_file; then
4875 echo "updating cache $cache_file"
4876 cat confcache > $cache_file
4878 echo "not updating unwritable cache $cache_file"
4883 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4885 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4886 # Let make expand exec_prefix.
4887 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4889 # Any assignment to VPATH causes Sun make to only execute
4890 # the first set of double-colon rules, so remove it if not needed.
4891 # If there is a colon in the path, we need to keep it.
4892 if test "x$srcdir" = x.; then
4893 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4896 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4898 # Transform confdefs.h into DEFS.
4899 # Protect against shell expansion while executing Makefile rules.
4900 # Protect against Makefile macro expansion.
4901 cat > conftest.defs <<\EOF
4902 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4903 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4908 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4912 # Without the "./", some shells look in PATH for config.status.
4913 : ${CONFIG_STATUS=./config.status}
4915 echo creating $CONFIG_STATUS
4916 rm -f $CONFIG_STATUS
4917 cat > $CONFIG_STATUS <<EOF
4919 # Generated automatically by configure.
4920 # Run this file to recreate the current configuration.
4921 # This directory was configured as follows,
4922 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4924 # $0 $ac_configure_args
4926 # Compiler output produced by configure, useful for debugging
4927 # configure, is in ./config.log if it exists.
4929 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4932 case "\$ac_option" in
4933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4934 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4935 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4936 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4937 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4939 -help | --help | --hel | --he | --h)
4940 echo "\$ac_cs_usage"; exit 0 ;;
4941 *) echo "\$ac_cs_usage"; exit 1 ;;
4945 ac_given_srcdir=$srcdir
4946 ac_given_INSTALL="$INSTALL"
4948 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
4949 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4950 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
4951 tests/progs/Makefile $rmakefile doc/Makefile
4952 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4954 cat >> $CONFIG_STATUS <<EOF
4956 # Protect against being on the right side of a sed subst in config.status.
4957 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4958 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4962 s%@CFLAGS@%$CFLAGS%g
4963 s%@CPPFLAGS@%$CPPFLAGS%g
4964 s%@CXXFLAGS@%$CXXFLAGS%g
4965 s%@FFLAGS@%$FFLAGS%g
4967 s%@LDFLAGS@%$LDFLAGS%g
4969 s%@exec_prefix@%$exec_prefix%g
4970 s%@prefix@%$prefix%g
4971 s%@program_transform_name@%$program_transform_name%g
4972 s%@bindir@%$bindir%g
4973 s%@sbindir@%$sbindir%g
4974 s%@libexecdir@%$libexecdir%g
4975 s%@datadir@%$datadir%g
4976 s%@sysconfdir@%$sysconfdir%g
4977 s%@sharedstatedir@%$sharedstatedir%g
4978 s%@localstatedir@%$localstatedir%g
4979 s%@libdir@%$libdir%g
4980 s%@includedir@%$includedir%g
4981 s%@oldincludedir@%$oldincludedir%g
4982 s%@infodir@%$infodir%g
4983 s%@mandir@%$mandir%g
4984 /@MCONFIG@/r $MCONFIG
4986 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4987 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4988 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
4990 s%@host_alias@%$host_alias%g
4991 s%@host_cpu@%$host_cpu%g
4992 s%@host_vendor@%$host_vendor%g
4993 s%@host_os@%$host_os%g
4997 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
4998 s%@DLL_CMT@%$DLL_CMT%g
4999 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
5001 s%@ELF_CMT@%$ELF_CMT%g
5002 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
5004 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5005 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5006 s%@MAKEFILE_BSDLIB@%%g
5007 s%@PROFILE_CMT@%$PROFILE_CMT%g
5008 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5009 s%@MAKEFILE_PROFILE@%%g
5010 s%@CHECKER_CMT@%$CHECKER_CMT%g
5011 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5012 s%@MAKEFILE_CHECKER@%%g
5013 s%@LIB_EXT@%$LIB_EXT%g
5014 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5015 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
5016 s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5017 s%@IMAGER_CMT@%$IMAGER_CMT%g
5018 s%@RESIZER_CMT@%$RESIZER_CMT%g
5019 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5020 s%@FSCK_PROG@%$FSCK_PROG%g
5021 s%@FSCK_MAN@%$FSCK_MAN%g
5022 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5023 s%@MAKEFILE_LIBRARY@%%g
5024 s%@PACKAGE@%$PACKAGE%g
5025 s%@VERSION@%$VERSION%g
5026 s%@SET_MAKE@%$SET_MAKE%g
5027 s%@RANLIB@%$RANLIB%g
5028 s%@ALLOCA@%$ALLOCA%g
5029 s%@USE_NLS@%$USE_NLS%g
5030 s%@MSGFMT@%$MSGFMT%g
5031 s%@GMSGFMT@%$GMSGFMT%g
5032 s%@XGETTEXT@%$XGETTEXT%g
5033 s%@GENCAT@%$GENCAT%g
5034 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5035 s%@CATALOGS@%$CATALOGS%g
5036 s%@CATOBJEXT@%$CATOBJEXT%g
5037 s%@DATADIRNAME@%$DATADIRNAME%g
5038 s%@GMOFILES@%$GMOFILES%g
5039 s%@INSTOBJEXT@%$INSTOBJEXT%g
5040 s%@INTLDEPS@%$INTLDEPS%g
5041 s%@INTLLIBS@%$INTLLIBS%g
5042 s%@INTLOBJS@%$INTLOBJS%g
5043 s%@POFILES@%$POFILES%g
5045 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5047 s%@GT_YES@%$GT_YES%g
5048 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5050 s%@BINARY_TYPE@%$BINARY_TYPE%g
5060 s%@LDCONFIG@%$LDCONFIG%g
5062 s%@build_alias@%$build_alias%g
5063 s%@build_cpu@%$build_cpu%g
5064 s%@build_vendor@%$build_vendor%g
5065 s%@build_os@%$build_os%g
5068 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5069 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5070 s%@INSTALL_DATA@%$INSTALL_DATA%g
5071 s%@BUILD_CC@%$BUILD_CC%g
5072 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5073 s%@SIZEOF_INT@%$SIZEOF_INT%g
5074 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
5075 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
5076 s%@SOCKET_LIB@%$SOCKET_LIB%g
5077 s%@root_prefix@%$root_prefix%g
5078 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
5079 s%@SS_DIR@%$SS_DIR%g
5080 s%@ET_DIR@%$ET_DIR%g
5081 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5086 cat >> $CONFIG_STATUS <<\EOF
5088 # Split the substitutions into bite-sized pieces for seds with
5089 # small command number limits, like on Digital OSF/1 and HP-UX.
5090 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5091 ac_file=1 # Number of current file.
5092 ac_beg=1 # First line for current file.
5093 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5096 while $ac_more_lines; do
5097 if test $ac_beg -gt 1; then
5098 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5100 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5102 if test ! -s conftest.s$ac_file; then
5104 rm -f conftest.s$ac_file
5106 if test -z "$ac_sed_cmds"; then
5107 ac_sed_cmds="sed -f conftest.s$ac_file"
5109 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5111 ac_file=`expr $ac_file + 1`
5113 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5116 if test -z "$ac_sed_cmds"; then
5121 cat >> $CONFIG_STATUS <<EOF
5123 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
5124 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5125 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
5126 tests/progs/Makefile $rmakefile doc/Makefile
5127 intl/Makefile po/Makefile.in"}
5129 cat >> $CONFIG_STATUS <<\EOF
5130 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5131 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5133 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5134 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5135 *) ac_file_in="${ac_file}.in" ;;
5138 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5140 # Remove last slash and all that follows it. Not all systems have dirname.
5141 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5142 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5143 # The file is in a subdirectory.
5144 test ! -d "$ac_dir" && mkdir "$ac_dir"
5145 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5146 # A "../" for each directory in $ac_dir_suffix.
5147 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5149 ac_dir_suffix= ac_dots=
5152 case "$ac_given_srcdir" in
5154 if test -z "$ac_dots"; then top_srcdir=.
5155 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5156 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5158 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5159 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5162 case "$ac_given_INSTALL" in
5163 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5164 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5167 echo creating "$ac_file"
5169 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5171 *Makefile*) ac_comsub="1i\\
5172 # $configure_input" ;;
5176 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5178 s%@configure_input@%$configure_input%g
5179 s%@srcdir@%$srcdir%g
5180 s%@top_srcdir@%$top_srcdir%g
5181 s%@INSTALL@%$INSTALL%g
5182 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5188 cat >> $CONFIG_STATUS <<EOF
5189 ac_sources="$nls_cv_header_libgt"
5190 ac_dests="$nls_cv_header_intl"
5193 cat >> $CONFIG_STATUS <<\EOF
5194 srcdir=$ac_given_srcdir
5195 while test -n "$ac_sources"; do
5196 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5197 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5199 echo "linking $srcdir/$ac_source to $ac_dest"
5201 if test ! -r $srcdir/$ac_source; then
5202 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5206 # Make relative symlinks.
5207 # Remove last slash and all that follows it. Not all systems have dirname.
5208 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5209 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5210 # The dest file is in a subdirectory.
5211 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5212 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5213 # A "../" for each directory in $ac_dest_dir_suffix.
5214 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5216 ac_dest_dir_suffix= ac_dots=
5220 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5221 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5224 # Make a symlink if possible; otherwise try a hard link.
5225 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5226 ln $srcdir/$ac_source $ac_dest; then :
5228 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5232 cat >> $CONFIG_STATUS <<EOF
5236 cat >> $CONFIG_STATUS <<\EOF
5237 case "$CONFIG_FILES" in *po/Makefile.in*)
5238 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5243 chmod +x $CONFIG_STATUS
5244 rm -fr confdefs* $ac_clean_files
5245 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1