3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-cc=COMPILER select compiler to use"
17 --with-linker=LINKER select linker to use"
19 --with-ccopts=CCOPTS select compiler command line options"
21 --with-ldopts=LDOPTS select linker command line options"
23 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
25 --enable-compression enable EXPERIMENTAL compression support"
27 --enable-htree enable EXPERIMENTAL htree directory support"
29 --enable-htree-clear clear htree because we don't trust e2fsck"
31 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)"
33 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.1)"
35 --enable-dll-shlibs select DLL libraries"
37 --enable-elf-shlibs select ELF shared libraries"
39 --enable-bsd-shlibs select BSD shared libraries"
41 --enable-profile build profiling libraries"
43 --enable-checker build checker libraries"
45 --enable-jbd-debug enable journal debugging"
47 --enable-blkid-debug enable blkid debugging"
49 --disable-swapfs disable support of legacy byte-swapped filesystems"
51 --disable-debugfs disable support of debugfs program"
53 --disable-imager disable support of e2image program"
55 --disable-resizer disable support of e2resize program"
57 --enable-dynamic-e2fsck build e2fsck dynamically"
59 --enable-fsck build fsck wrapper program"
61 --enable-old-bitops Use old (non-standard but native) bitmask operations"
63 --enable-nls Turn on Native Language Support"
65 --with-included-gettext use the GNU gettext library included here"
67 --with-catgets use catgets functions if available"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file=./config.cache
82 program_transform_name=s,x,x,
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
243 -host | --host | --hos | --ho)
245 -host=* | --host=* | --hos=* | --ho=*)
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
287 # Obsolete; use --without-fp.
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
366 -site=* | --site=* | --sit=*)
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=version.h
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
552 echo "creating cache $cache_file"
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='\c' ac_t=
582 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
583 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
584 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
586 MONTH=`echo $DATE | awk -F- '{print $2}'`
587 YEAR=`echo $DATE | awk -F- '{print $3}'`
589 if expr $YEAR ">" 1900 > /dev/null ; then
591 elif expr $YEAR ">" 90 >/dev/null ; then
592 E2FSPROGS_YEAR=19$YEAR
594 E2FSPROGS_YEAR=20$YEAR
598 Jan) E2FSPROGS_MONTH="January" ;;
599 Feb) E2FSPROGS_MONTH="February" ;;
600 Mar) E2FSPROGS_MONTH="March" ;;
601 Apr) E2FSPROGS_MONTH="April" ;;
602 May) E2FSPROGS_MONTH="May" ;;
603 Jun) E2FSPROGS_MONTH="June" ;;
604 Jul) E2FSPROGS_MONTH="July" ;;
605 Aug) E2FSPROGS_MONTH="August" ;;
606 Sep) E2FSPROGS_MONTH="September" ;;
607 Oct) E2FSPROGS_MONTH="October" ;;
608 Nov) E2FSPROGS_MONTH="November" ;;
609 Dec) E2FSPROGS_MONTH="December" ;;
610 *) echo "Unknown month $MONTH??" ;;
613 unset DATE MONTH YEAR
614 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
615 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
620 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
621 if test -f $ac_dir/install-sh; then
623 ac_install_sh="$ac_aux_dir/install-sh -c"
625 elif test -f $ac_dir/install.sh; then
627 ac_install_sh="$ac_aux_dir/install.sh -c"
631 if test -z "$ac_aux_dir"; then
632 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
634 ac_config_guess=$ac_aux_dir/config.guess
635 ac_config_sub=$ac_aux_dir/config.sub
636 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
639 # Make sure we can run config.sub.
640 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
641 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
644 echo $ac_n "checking host system type""... $ac_c" 1>&6
645 echo "configure:646: checking host system type" >&5
648 case "$host_alias" in
652 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
653 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
655 *) host_alias=$nonopt ;;
659 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
660 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
663 echo "$ac_t""$host" 1>&6
665 # Check whether --with-cc or --without-cc was given.
666 if test "${with_cc+set}" = set; then
668 echo "$ac_t""CC=$withval" 1>&6
671 if test -z "$CC" ; then CC=cc; fi
672 echo "$ac_t""CC defaults to $CC" 1>&6
676 # Extract the first word of "gcc", so it can be a program name with args.
677 set dummy gcc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
688 for ac_dir in $ac_dummy; do
689 test -z "$ac_dir" && ac_dir=.
690 if test -f $ac_dir/$ac_word; then
699 if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
702 echo "$ac_t""no" 1>&6
705 if test -z "$CC"; then
706 # Extract the first word of "cc", so it can be a program name with args.
707 set dummy cc; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
719 for ac_dir in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir=.
721 if test -f $ac_dir/$ac_word; then
722 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
731 if test $ac_prog_rejected = yes; then
732 # We found a bogon in the path, so make sure we never use it.
733 set dummy $ac_cv_prog_CC
735 if test $# -gt 0; then
736 # We chose a different compiler from the bogus one.
737 # However, it has the same basename, so the bogon will be chosen
738 # first if we set CC to just the basename; use the full file name.
740 set dummy "$ac_dir/$ac_word" "$@"
748 if test -n "$CC"; then
749 echo "$ac_t""$CC" 1>&6
751 echo "$ac_t""no" 1>&6
754 if test -z "$CC"; then
757 # Extract the first word of "cl", so it can be a program name with args.
758 set dummy cl; ac_word=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 echo "configure:761: checking for $ac_word" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 if test -n "$CC"; then
765 ac_cv_prog_CC="$CC" # Let the user override the test.
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
769 for ac_dir in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir=.
771 if test -f $ac_dir/$ac_word; then
780 if test -n "$CC"; then
781 echo "$ac_t""$CC" 1>&6
783 echo "$ac_t""no" 1>&6
788 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
791 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
792 echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
796 ac_cpp='$CPP $CPPFLAGS'
797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
799 cross_compiling=$ac_cv_prog_cc_cross
801 cat > conftest.$ac_ext << EOF
803 #line 804 "configure"
804 #include "confdefs.h"
808 if { (eval echo configure:809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
809 ac_cv_prog_cc_works=yes
810 # If we can't run a trivial program, we are probably using a cross compiler.
811 if (./conftest; exit) 2>/dev/null; then
812 ac_cv_prog_cc_cross=no
814 ac_cv_prog_cc_cross=yes
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
819 ac_cv_prog_cc_works=no
823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
824 ac_cpp='$CPP $CPPFLAGS'
825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
827 cross_compiling=$ac_cv_prog_cc_cross
829 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
830 if test $ac_cv_prog_cc_works = no; then
831 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
833 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
834 echo "configure:835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
835 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
836 cross_compiling=$ac_cv_prog_cc_cross
838 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
839 echo "configure:840: checking whether we are using GNU C" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 cat > conftest.c <<EOF
848 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
855 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
857 if test $ac_cv_prog_gcc = yes; then
863 ac_test_CFLAGS="${CFLAGS+set}"
864 ac_save_CFLAGS="$CFLAGS"
866 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
867 echo "configure:868: checking whether ${CC-cc} accepts -g" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 echo 'void f(){}' > conftest.c
872 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
881 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
882 if test "$ac_test_CFLAGS" = set; then
883 CFLAGS="$ac_save_CFLAGS"
884 elif test $ac_cv_prog_cc_g = yes; then
885 if test "$GCC" = yes; then
891 if test "$GCC" = yes; then
898 # Check whether --with-linker or --without-linker was given.
899 if test "${with_linker+set}" = set; then
900 withval="$with_linker"
901 echo "$ac_t""LD=$withval" 1>&6
904 if test -z "$LD" ; then LD=$CC; fi
905 echo "$ac_t""LD defaults to $LD" 1>&6
909 # Check whether --with-ccopts or --without-ccopts was given.
910 if test "${with_ccopts+set}" = set; then
911 withval="$with_ccopts"
912 echo "$ac_t""CCOPTS is $withval" 1>&6
915 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
916 echo "configure:917: checking how to run the C preprocessor" >&5
917 # On Suns, sometimes $CPP names a directory.
918 if test -n "$CPP" && test -d "$CPP"; then
921 if test -z "$CPP"; then
922 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 # This must be in double quotes, not single quotes, because CPP may get
926 # substituted into the Makefile and "${CC-cc}" will confuse make.
928 # On the NeXT, cc -E runs the code through the compiler's parser,
929 # not just through cpp.
930 cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939 if test -z "$ac_err"; then
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
946 CPP="${CC-cc} -E -traditional-cpp"
947 cat > conftest.$ac_ext <<EOF
948 #line 949 "configure"
949 #include "confdefs.h"
953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
954 { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
956 if test -z "$ac_err"; then
960 echo "configure: failed program was:" >&5
961 cat conftest.$ac_ext >&5
963 CPP="${CC-cc} -nologo -E"
964 cat > conftest.$ac_ext <<EOF
965 #line 966 "configure"
966 #include "confdefs.h"
970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
971 { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
973 if test -z "$ac_err"; then
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
987 ac_cv_prog_CPP="$CPP"
989 CPP="$ac_cv_prog_CPP"
991 ac_cv_prog_CPP="$CPP"
993 echo "$ac_t""$CPP" 1>&6
995 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
996 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
997 echo "configure:998: checking for linux/fs.h" >&5
998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 cat > conftest.$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1004 #include <linux/fs.h>
1006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1007 { (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1009 if test -z "$ac_err"; then
1011 eval "ac_cv_header_$ac_safe=yes"
1014 echo "configure: failed program was:" >&5
1015 cat conftest.$ac_ext >&5
1017 eval "ac_cv_header_$ac_safe=no"
1021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1022 echo "$ac_t""yes" 1>&6
1025 echo "$ac_t""no" 1>&6
1029 if test "$linux_headers" != yes; then
1030 LINUX_INCLUDE='-I$(top_builddir)/include'
1036 # Check whether --with-ldopts or --without-ldopts was given.
1037 if test "${with_ldopts+set}" = set; then
1038 withval="$with_ldopts"
1039 echo "$ac_t""LDFLAGS is $withval" 1>&6
1045 # Check whether --with-root-prefix or --without-root-prefix was given.
1046 if test "${with_root_prefix+set}" = set; then
1047 withval="$with_root_prefix"
1048 root_prefix=$withval
1052 # Check whether --enable-compression or --disable-compression was given.
1053 if test "${enable_compression+set}" = set; then
1054 enableval="$enable_compression"
1055 if test "$enableval" = "no"
1057 echo "Disabling compression support"
1059 cat >> confdefs.h <<\EOF
1060 #define ENABLE_COMPRESSION 1
1063 echo "Enabling compression support"
1064 echo "WARNING: Compression support is experimental"
1068 echo "Disabling compression support by default"
1072 # Check whether --enable-htree or --disable-htree was given.
1073 if test "${enable_htree+set}" = set; then
1074 enableval="$enable_htree"
1075 if test "$enableval" = "no"
1078 echo "Disabling htree directory support"
1081 cat >> confdefs.h <<\EOF
1082 #define ENABLE_HTREE 1
1085 echo "Enabling htree directory support"
1090 cat >> confdefs.h <<\EOF
1091 #define ENABLE_HTREE 1
1094 echo "Enabling htree directory support by default"
1099 # Check whether --enable-htree-clear or --disable-htree-clear was given.
1100 if test "${enable_htree_clear+set}" = set; then
1101 enableval="$enable_htree_clear"
1102 if test "$enableval" = "no"
1105 echo "Disabling htree clearing"
1108 cat >> confdefs.h <<\EOF
1109 #define ENABLE_HTREE_CLEAR 1
1112 echo "Enabling htree clearing"
1117 echo "Disabling htree clearing by default"
1123 # Check whether --enable-evms-10 or --disable-evms-10 was given.
1124 if test "${enable_evms_10+set}" = set; then
1125 enableval="$enable_evms_10"
1126 if test "$enableval" != "no"
1129 echo "Enabling EVMS 1.0.0 ABI"
1134 # Check whether --enable-evms-11 or --disable-evms-11 was given.
1135 if test "${enable_evms_11+set}" = set; then
1136 enableval="$enable_evms_11"
1137 if test "$enableval" != "no"
1140 echo "Enabling EVMS 1.1.0 ABI"
1145 if test "$EVMS_ABI_CODE" = "120"
1147 echo "Using EVMS 1.2.0 ABI by default"
1150 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1151 if test "${enable_dll_shlibs+set}" = set; then
1152 enableval="$enable_dll_shlibs"
1153 if test "$enableval" = "no"
1156 MAKEFILE_DLL=/dev/null
1157 echo "Disabling DLL shared libraries"
1160 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1163 echo "Enabling DLL shared libraries"
1167 MAKEFILE_DLL=/dev/null
1169 echo "Disabling DLL shared libraries by default"
1175 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1176 if test "${enable_elf_shlibs+set}" = set; then
1177 enableval="$enable_elf_shlibs"
1178 if test "$enableval" = "no"
1181 MAKEFILE_ELF=/dev/null
1182 echo "Disabling ELF shared libraries"
1185 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1188 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1193 echo "Enabling ELF shared libraries"
1197 MAKEFILE_ELF=/dev/null
1199 echo "Disabling ELF shared libraries by default"
1205 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1206 if test "${enable_bsd_shlibs+set}" = set; then
1207 enableval="$enable_bsd_shlibs"
1208 if test "$enableval" = "no"
1211 MAKEFILE_BSDLIB=/dev/null
1212 echo "Disabling BSD shared libraries"
1215 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1219 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
1223 echo "Enabling BSD shared libraries"
1227 MAKEFILE_BSDLIB=/dev/null
1229 echo "Disabling BSD shared libraries by default"
1235 # Check whether --enable-profile or --disable-profile was given.
1236 if test "${enable_profile+set}" = set; then
1237 enableval="$enable_profile"
1238 if test "$enableval" = "no"
1241 MAKEFILE_PROFILE=/dev/null
1242 echo "Disabling profiling libraries"
1245 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1246 PROFILED_LIB_EXT=_p.a
1247 echo "Building profiling libraries"
1252 MAKEFILE_PROFILE=/dev/null
1253 echo "Disabling profiling libraries by default"
1259 # Check whether --enable-checker or --disable-checker was given.
1260 if test "${enable_checker+set}" = set; then
1261 enableval="$enable_checker"
1262 if test "$enableval" = "no"
1265 MAKEFILE_CHECKER=/dev/null
1266 echo "Disabling checker libraries"
1269 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1270 echo "Building checker libraries"
1275 MAKEFILE_CHECKER=/dev/null
1276 echo "Disabling checker libraries by default"
1285 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1286 if test "${enable_jbd_debug+set}" = set; then
1287 enableval="$enable_jbd_debug"
1288 if test "$enableval" = "no"
1290 echo "Disabling journal debugging"
1292 cat >> confdefs.h <<\EOF
1293 #define CONFIG_JBD_DEBUG 1
1296 echo "Enabling journal debugging"
1300 echo "Disabling journal debugging by default"
1304 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1305 if test "${enable_blkid_debug+set}" = set; then
1306 enableval="$enable_blkid_debug"
1307 if test "$enableval" = "no"
1309 echo "Disabling blkid debugging"
1311 cat >> confdefs.h <<\EOF
1312 #define CONFIG_BLKID_DEBUG 1
1315 echo "Enabling blkid debugging"
1319 echo "Disabling blkid debugging by default"
1323 # Check whether --enable-swapfs or --disable-swapfs was given.
1324 if test "${enable_swapfs+set}" = set; then
1325 enableval="$enable_swapfs"
1326 if test "$enableval" = "no"
1329 echo "Disabling swapfs support"
1332 cat >> confdefs.h <<\EOF
1333 #define ENABLE_SWAPFS 1
1336 echo "Enabling swapfs support"
1341 echo "Enabling swapfs support by default"
1342 cat >> confdefs.h <<\EOF
1343 #define ENABLE_SWAPFS 1
1350 # Check whether --enable-debugfs or --disable-debugfs was given.
1351 if test "${enable_debugfs+set}" = set; then
1352 enableval="$enable_debugfs"
1353 if test "$enableval" = "no"
1355 echo "Disabling debugfs support"
1359 echo "Enabling debugfs support"
1363 echo "Enabling debugfs support by default"
1369 # Check whether --enable-imager or --disable-imager was given.
1370 if test "${enable_imager+set}" = set; then
1371 enableval="$enable_imager"
1372 if test "$enableval" = "no"
1374 echo "Disabling e2image support"
1378 echo "Enabling e2image support"
1382 echo "Enabling e2image support by default"
1388 # Check whether --enable-resizer or --disable-resizer was given.
1389 if test "${enable_resizer+set}" = set; then
1390 enableval="$enable_resizer"
1391 if test "$enableval" = "no"
1393 echo "Disabling e2resize support"
1397 echo "Enabling e2resize support"
1401 echo "Enabling e2resize support by default"
1407 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1408 if test "${enable_dynamic_e2fsck+set}" = set; then
1409 enableval="$enable_dynamic_e2fsck"
1410 if test "$enableval" = "no"
1413 echo "Building e2fsck statically"
1416 echo "Building e2fsck dynamically"
1421 echo "Building e2fsck statically by default"
1426 # Check whether --enable-fsck or --disable-fsck was given.
1427 if test "${enable_fsck+set}" = set; then
1428 enableval="$enable_fsck"
1429 if test "$enableval" = "no"
1431 FSCK_PROG='' FSCK_MAN=''
1432 echo "Not building fsck wrapper"
1434 FSCK_PROG=fsck FSCK_MAN=fsck.8
1435 echo "Building fsck wrapper"
1441 FSCK_PROG='' FSCK_MAN=''
1442 echo "Not building fsck wrapper by default"
1445 FSCK_PROG=fsck FSCK_MAN=fsck.8
1446 echo "Building fsck wrapper by default"
1453 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1455 # Check whether --enable-old-bitops or --disable-old-bitops was given.
1456 if test "${enable_old_bitops+set}" = set; then
1457 enableval="$enable_old_bitops"
1458 if test "$enableval" = "no"
1460 echo "Using new (standard) bitmask operations"
1462 cat >> confdefs.h <<\EOF
1463 #define EXT2_OLD_BITOPS 1
1466 echo "Using old (native) bitmask operations"
1471 echo "Using standard bitmask operations by default"
1476 VERSION="$E2FSPROGS_VERSION"
1477 cat >> confdefs.h <<EOF
1478 #define PACKAGE "$PACKAGE"
1481 cat >> confdefs.h <<EOF
1482 #define VERSION "$VERSION"
1488 ALL_LINGUAS="it nyc tr de de-utf"
1489 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1490 echo "configure:1491: checking whether ${MAKE-make} sets \${MAKE}" >&5
1491 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1492 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 cat > conftestmake <<\EOF
1497 @echo 'ac_maketemp="${MAKE}"'
1499 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1500 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1501 if test -n "$ac_maketemp"; then
1502 eval ac_cv_prog_make_${ac_make}_set=yes
1504 eval ac_cv_prog_make_${ac_make}_set=no
1508 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1509 echo "$ac_t""yes" 1>&6
1512 echo "$ac_t""no" 1>&6
1513 SET_MAKE="MAKE=${MAKE-make}"
1516 # Extract the first word of "ranlib", so it can be a program name with args.
1517 set dummy ranlib; ac_word=$2
1518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1519 echo "configure:1520: checking for $ac_word" >&5
1520 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 if test -n "$RANLIB"; then
1524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1528 for ac_dir in $ac_dummy; do
1529 test -z "$ac_dir" && ac_dir=.
1530 if test -f $ac_dir/$ac_word; then
1531 ac_cv_prog_RANLIB="ranlib"
1536 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1539 RANLIB="$ac_cv_prog_RANLIB"
1540 if test -n "$RANLIB"; then
1541 echo "$ac_t""$RANLIB" 1>&6
1543 echo "$ac_t""no" 1>&6
1546 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1547 echo "configure:1548: checking for POSIXized ISC" >&5
1548 if test -d /etc/conf/kconfig.d &&
1549 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1551 echo "$ac_t""yes" 1>&6
1552 ISC=yes # If later tests want to check for ISC.
1553 cat >> confdefs.h <<\EOF
1554 #define _POSIX_SOURCE 1
1557 if test "$GCC" = yes; then
1563 echo "$ac_t""no" 1>&6
1567 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1568 echo "configure:1569: checking for ANSI C header files" >&5
1569 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1581 { (eval echo configure:1582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1583 if test -z "$ac_err"; then
1585 ac_cv_header_stdc=yes
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1591 ac_cv_header_stdc=no
1595 if test $ac_cv_header_stdc = yes; then
1596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1597 cat > conftest.$ac_ext <<EOF
1598 #line 1599 "configure"
1599 #include "confdefs.h"
1602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1603 egrep "memchr" >/dev/null 2>&1; then
1607 ac_cv_header_stdc=no
1613 if test $ac_cv_header_stdc = yes; then
1614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1615 cat > conftest.$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1621 egrep "free" >/dev/null 2>&1; then
1625 ac_cv_header_stdc=no
1631 if test $ac_cv_header_stdc = yes; then
1632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1633 if test "$cross_compiling" = yes; then
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1640 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1641 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1643 int main () { int i; for (i = 0; i < 256; i++)
1644 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1648 if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1655 ac_cv_header_stdc=no
1663 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1664 if test $ac_cv_header_stdc = yes; then
1665 cat >> confdefs.h <<\EOF
1666 #define STDC_HEADERS 1
1671 echo $ac_n "checking for working const""... $ac_c" 1>&6
1672 echo "configure:1673: checking for working const" >&5
1673 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 cat > conftest.$ac_ext <<EOF
1677 #line 1678 "configure"
1678 #include "confdefs.h"
1682 /* Ultrix mips cc rejects this. */
1683 typedef int charset[2]; const charset x;
1684 /* SunOS 4.1.1 cc rejects this. */
1685 char const *const *ccp;
1687 /* NEC SVR4.0.2 mips cc rejects this. */
1688 struct point {int x, y;};
1689 static struct point const zero = {0,0};
1690 /* AIX XL C 1.02.0.0 rejects this.
1691 It does not let you subtract one const X* pointer from another in an arm
1692 of an if-expression whose if-part is not a constant expression */
1693 const char *g = "string";
1694 ccp = &g + (g ? g-g : 0);
1695 /* HPUX 7.0 cc rejects these. */
1698 ccp = (char const *const *) p;
1699 { /* SCO 3.2v4 cc rejects this. */
1701 char const *s = 0 ? (char *) 0 : (char const *) 0;
1705 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1707 const int *foo = &x[0];
1710 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1711 typedef const int *iptr;
1715 { /* AIX XL C 1.02.0.0 rejects this saying
1716 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1717 struct s { int j; const int *ap[3]; };
1718 struct s *b; b->j = 5;
1720 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1726 if { (eval echo configure:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1738 echo "$ac_t""$ac_cv_c_const" 1>&6
1739 if test $ac_cv_c_const = no; then
1740 cat >> confdefs.h <<\EOF
1746 echo $ac_n "checking for inline""... $ac_c" 1>&6
1747 echo "configure:1748: checking for inline" >&5
1748 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1752 for ac_kw in inline __inline__ __inline; do
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1761 if { (eval echo configure:1762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1763 ac_cv_c_inline=$ac_kw; break
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1773 echo "$ac_t""$ac_cv_c_inline" 1>&6
1774 case "$ac_cv_c_inline" in
1776 no) cat >> confdefs.h <<\EOF
1780 *) cat >> confdefs.h <<EOF
1781 #define inline $ac_cv_c_inline
1786 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1787 echo "configure:1788: checking for off_t" >&5
1788 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 cat > conftest.$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1794 #include <sys/types.h>
1800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1801 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1803 ac_cv_type_off_t=yes
1811 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1812 if test $ac_cv_type_off_t = no; then
1813 cat >> confdefs.h <<\EOF
1819 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1820 echo "configure:1821: checking for size_t" >&5
1821 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 #include <sys/types.h>
1833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1834 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1836 ac_cv_type_size_t=yes
1839 ac_cv_type_size_t=no
1844 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1845 if test $ac_cv_type_size_t = no; then
1846 cat >> confdefs.h <<\EOF
1847 #define size_t unsigned
1852 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1853 # for constant arguments. Useless!
1854 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1855 echo "configure:1856: checking for working alloca.h" >&5
1856 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1864 char *p = alloca(2 * sizeof(int));
1867 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1869 ac_cv_header_alloca_h=yes
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1874 ac_cv_header_alloca_h=no
1879 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1880 if test $ac_cv_header_alloca_h = yes; then
1881 cat >> confdefs.h <<\EOF
1882 #define HAVE_ALLOCA_H 1
1887 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1888 echo "configure:1889: checking for alloca" >&5
1889 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1897 # define alloca __builtin_alloca
1900 # include <malloc.h>
1901 # define alloca _alloca
1904 # include <alloca.h>
1909 # ifndef alloca /* predefined by HP cc +Olibcalls */
1918 char *p = (char *) alloca(1);
1921 if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1923 ac_cv_func_alloca_works=yes
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1928 ac_cv_func_alloca_works=no
1933 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1934 if test $ac_cv_func_alloca_works = yes; then
1935 cat >> confdefs.h <<\EOF
1936 #define HAVE_ALLOCA 1
1941 if test $ac_cv_func_alloca_works = no; then
1942 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1943 # that cause trouble. Some versions do not even contain alloca or
1944 # contain a buggy version. If you still want to use their alloca,
1945 # use ar to extract alloca.o from them instead of compiling alloca.c.
1946 ALLOCA=alloca.${ac_objext}
1947 cat >> confdefs.h <<\EOF
1952 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether alloca needs Cray hooks" >&5
1954 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1960 #if defined(CRAY) && ! defined(CRAY2)
1967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1968 egrep "webecray" >/dev/null 2>&1; then
1979 echo "$ac_t""$ac_cv_os_cray" 1>&6
1980 if test $ac_cv_os_cray = yes; then
1981 for ac_func in _getb67 GETB67 getb67; do
1982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1983 echo "configure:1984: checking for $ac_func" >&5
1984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 /* System header to define __stub macros and hopefully few prototypes,
1991 which can conflict with char $ac_func(); below. */
1993 /* Override any gcc2 internal prototype to avoid an error. */
1994 /* We use char because int might match the return type of a gcc2
1995 builtin and then its argument prototype would still apply. */
2000 /* The GNU C library defines this for functions which it implements
2001 to always fail with ENOSYS. Some functions are actually named
2002 something starting with __ and the normal name is an alias. */
2003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2011 if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2013 eval "ac_cv_func_$ac_func=yes"
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2018 eval "ac_cv_func_$ac_func=no"
2023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2024 echo "$ac_t""yes" 1>&6
2025 cat >> confdefs.h <<EOF
2026 #define CRAY_STACKSEG_END $ac_func
2031 echo "$ac_t""no" 1>&6
2037 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2038 echo "configure:2039: checking stack direction for C alloca" >&5
2039 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 if test "$cross_compiling" = yes; then
2043 ac_cv_c_stack_direction=0
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2048 find_stack_direction ()
2050 static char *addr = 0;
2055 return find_stack_direction ();
2058 return (&dummy > addr) ? 1 : -1;
2062 exit (find_stack_direction() < 0);
2065 if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2067 ac_cv_c_stack_direction=1
2069 echo "configure: failed program was:" >&5
2070 cat conftest.$ac_ext >&5
2072 ac_cv_c_stack_direction=-1
2079 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2080 cat >> confdefs.h <<EOF
2081 #define STACK_DIRECTION $ac_cv_c_stack_direction
2086 for ac_hdr in unistd.h
2088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2090 echo "configure:2091: checking for $ac_hdr" >&5
2091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2100 { (eval echo configure:2101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2102 if test -z "$ac_err"; then
2104 eval "ac_cv_header_$ac_safe=yes"
2107 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2110 eval "ac_cv_header_$ac_safe=no"
2114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2117 cat >> confdefs.h <<EOF
2118 #define $ac_tr_hdr 1
2122 echo "$ac_t""no" 1>&6
2126 for ac_func in getpagesize
2128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_func" >&5
2130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 /* System header to define __stub macros and hopefully few prototypes,
2137 which can conflict with char $ac_func(); below. */
2139 /* Override any gcc2 internal prototype to avoid an error. */
2140 /* We use char because int might match the return type of a gcc2
2141 builtin and then its argument prototype would still apply. */
2146 /* The GNU C library defines this for functions which it implements
2147 to always fail with ENOSYS. Some functions are actually named
2148 something starting with __ and the normal name is an alias. */
2149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2159 eval "ac_cv_func_$ac_func=yes"
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2164 eval "ac_cv_func_$ac_func=no"
2169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2172 cat >> confdefs.h <<EOF
2173 #define $ac_tr_func 1
2177 echo "$ac_t""no" 1>&6
2181 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2182 echo "configure:2183: checking for working mmap" >&5
2183 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 if test "$cross_compiling" = yes; then
2187 ac_cv_func_mmap_fixed_mapped=no
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2193 /* Thanks to Mike Haertel and Jim Avera for this test.
2194 Here is a matrix of mmap possibilities:
2195 mmap private not fixed
2196 mmap private fixed at somewhere currently unmapped
2197 mmap private fixed at somewhere already mapped
2198 mmap shared not fixed
2199 mmap shared fixed at somewhere currently unmapped
2200 mmap shared fixed at somewhere already mapped
2201 For private mappings, we should verify that changes cannot be read()
2202 back from the file, nor mmap's back from the file at a different
2203 address. (There have been systems where private was not correctly
2204 implemented like the infamous i386 svr4.0, and systems where the
2205 VM page cache was not coherent with the filesystem buffer cache
2206 like early versions of FreeBSD and possibly contemporary NetBSD.)
2207 For shared mappings, we should conversely verify that changes get
2208 propogated back to all the places they're supposed to be.
2210 Grep wants private fixed already mapped.
2211 The main things grep needs to know about mmap are:
2212 * does it exist and is it safe to write into the mmap'd area
2213 * how to use it (BSD variants) */
2214 #include <sys/types.h>
2216 #include <sys/mman.h>
2218 /* This mess was copied from the GNU getpagesize.h. */
2219 #ifndef HAVE_GETPAGESIZE
2220 # ifdef HAVE_UNISTD_H
2221 # include <unistd.h>
2224 /* Assume that all systems that can run configure have sys/param.h. */
2225 # ifndef HAVE_SYS_PARAM_H
2226 # define HAVE_SYS_PARAM_H 1
2229 # ifdef _SC_PAGESIZE
2230 # define getpagesize() sysconf(_SC_PAGESIZE)
2231 # else /* no _SC_PAGESIZE */
2232 # ifdef HAVE_SYS_PARAM_H
2233 # include <sys/param.h>
2234 # ifdef EXEC_PAGESIZE
2235 # define getpagesize() EXEC_PAGESIZE
2236 # else /* no EXEC_PAGESIZE */
2238 # define getpagesize() NBPG * CLSIZE
2241 # endif /* no CLSIZE */
2242 # else /* no NBPG */
2244 # define getpagesize() NBPC
2245 # else /* no NBPC */
2247 # define getpagesize() PAGESIZE
2248 # endif /* PAGESIZE */
2249 # endif /* no NBPC */
2250 # endif /* no NBPG */
2251 # endif /* no EXEC_PAGESIZE */
2252 # else /* no HAVE_SYS_PARAM_H */
2253 # define getpagesize() 8192 /* punt totally */
2254 # endif /* no HAVE_SYS_PARAM_H */
2255 # endif /* no _SC_PAGESIZE */
2257 #endif /* no HAVE_GETPAGESIZE */
2260 extern "C" { void *malloc(unsigned); }
2268 char *data, *data2, *data3;
2272 pagesize = getpagesize();
2275 * First, make a file with some known garbage in it.
2277 data = malloc(pagesize);
2280 for (i = 0; i < pagesize; ++i)
2281 *(data + i) = rand();
2283 fd = creat("conftestmmap", 0600);
2286 if (write(fd, data, pagesize) != pagesize)
2291 * Next, try to mmap the file at a fixed address which
2292 * already has something else allocated at it. If we can,
2293 * also make sure that we see the same garbage.
2295 fd = open("conftestmmap", O_RDWR);
2298 data2 = malloc(2 * pagesize);
2301 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2302 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2303 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2305 for (i = 0; i < pagesize; ++i)
2306 if (*(data + i) != *(data2 + i))
2310 * Finally, make sure that changes to the mapped area
2311 * do not percolate back to the file as seen by read().
2312 * (This is a bug on some variants of i386 svr4.0.)
2314 for (i = 0; i < pagesize; ++i)
2315 *(data2 + i) = *(data2 + i) + 1;
2316 data3 = malloc(pagesize);
2319 if (read(fd, data3, pagesize) != pagesize)
2321 for (i = 0; i < pagesize; ++i)
2322 if (*(data + i) != *(data3 + i))
2325 unlink("conftestmmap");
2330 if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2332 ac_cv_func_mmap_fixed_mapped=yes
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2337 ac_cv_func_mmap_fixed_mapped=no
2344 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2345 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2346 cat >> confdefs.h <<\EOF
2353 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2354 unistd.h sys/param.h
2356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2358 echo "configure:2359: checking for $ac_hdr" >&5
2359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 cat > conftest.$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2368 { (eval echo configure:2369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2370 if test -z "$ac_err"; then
2372 eval "ac_cv_header_$ac_safe=yes"
2375 echo "configure: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2378 eval "ac_cv_header_$ac_safe=no"
2382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2385 cat >> confdefs.h <<EOF
2386 #define $ac_tr_hdr 1
2390 echo "$ac_t""no" 1>&6
2394 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2395 strdup __argz_count __argz_stringify __argz_next
2397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_func" >&5
2399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 /* System header to define __stub macros and hopefully few prototypes,
2406 which can conflict with char $ac_func(); below. */
2408 /* Override any gcc2 internal prototype to avoid an error. */
2409 /* We use char because int might match the return type of a gcc2
2410 builtin and then its argument prototype would still apply. */
2415 /* The GNU C library defines this for functions which it implements
2416 to always fail with ENOSYS. Some functions are actually named
2417 something starting with __ and the normal name is an alias. */
2418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2426 if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2428 eval "ac_cv_func_$ac_func=yes"
2430 echo "configure: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2433 eval "ac_cv_func_$ac_func=no"
2438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2439 echo "$ac_t""yes" 1>&6
2440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2441 cat >> confdefs.h <<EOF
2442 #define $ac_tr_func 1
2446 echo "$ac_t""no" 1>&6
2451 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2452 for ac_func in stpcpy
2454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_func" >&5
2456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 /* System header to define __stub macros and hopefully few prototypes,
2463 which can conflict with char $ac_func(); below. */
2465 /* Override any gcc2 internal prototype to avoid an error. */
2466 /* We use char because int might match the return type of a gcc2
2467 builtin and then its argument prototype would still apply. */
2472 /* The GNU C library defines this for functions which it implements
2473 to always fail with ENOSYS. Some functions are actually named
2474 something starting with __ and the normal name is an alias. */
2475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2485 eval "ac_cv_func_$ac_func=yes"
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 eval "ac_cv_func_$ac_func=no"
2495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2498 cat >> confdefs.h <<EOF
2499 #define $ac_tr_func 1
2503 echo "$ac_t""no" 1>&6
2508 if test "${ac_cv_func_stpcpy}" = "yes"; then
2509 cat >> confdefs.h <<\EOF
2510 #define HAVE_STPCPY 1
2515 if test $ac_cv_header_locale_h = yes; then
2516 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2517 echo "configure:2518: checking for LC_MESSAGES" >&5
2518 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2531 am_cv_val_LC_MESSAGES=yes
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2536 am_cv_val_LC_MESSAGES=no
2541 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2542 if test $am_cv_val_LC_MESSAGES = yes; then
2543 cat >> confdefs.h <<\EOF
2544 #define HAVE_LC_MESSAGES 1
2549 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2550 echo "configure:2551: checking whether NLS is requested" >&5
2551 # Check whether --enable-nls or --disable-nls was given.
2552 if test "${enable_nls+set}" = set; then
2553 enableval="$enable_nls"
2559 echo "$ac_t""$USE_NLS" 1>&6
2562 USE_INCLUDED_LIBINTL=no
2564 if test "$USE_NLS" = "yes"; then
2565 cat >> confdefs.h <<\EOF
2566 #define ENABLE_NLS 1
2569 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2570 echo "configure:2571: checking whether included gettext is requested" >&5
2571 # Check whether --with-included-gettext or --without-included-gettext was given.
2572 if test "${with_included_gettext+set}" = set; then
2573 withval="$with_included_gettext"
2574 nls_cv_force_use_gnu_gettext=$withval
2576 nls_cv_force_use_gnu_gettext=no
2579 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2581 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2582 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2584 nls_cv_header_libgt=
2587 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2588 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2589 echo "configure:2590: checking for libintl.h" >&5
2590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 #include <libintl.h>
2598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2599 { (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2601 if test -z "$ac_err"; then
2603 eval "ac_cv_header_$ac_safe=yes"
2606 echo "configure: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2609 eval "ac_cv_header_$ac_safe=no"
2613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2616 echo "configure:2617: checking for gettext in libc" >&5
2617 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2623 #include <libintl.h>
2625 return (int) gettext ("")
2628 if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2630 gt_cv_func_gettext_libc=yes
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2635 gt_cv_func_gettext_libc=no
2640 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2642 if test "$gt_cv_func_gettext_libc" != "yes"; then
2643 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2644 echo "configure:2645: checking for bindtextdomain in -lintl" >&5
2645 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2649 ac_save_LIBS="$LIBS"
2651 cat > conftest.$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2654 /* Override any gcc2 internal prototype to avoid an error. */
2655 /* We use char because int might match the return type of a gcc2
2656 builtin and then its argument prototype would still apply. */
2657 char bindtextdomain();
2663 if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2665 eval "ac_cv_lib_$ac_lib_var=yes"
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 eval "ac_cv_lib_$ac_lib_var=no"
2673 LIBS="$ac_save_LIBS"
2676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2677 echo "$ac_t""yes" 1>&6
2678 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2679 echo "configure:2680: checking for gettext in libintl" >&5
2680 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2684 echo "configure:2685: checking for gettext in -lintl" >&5
2685 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2689 ac_save_LIBS="$LIBS"
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 /* Override any gcc2 internal prototype to avoid an error. */
2695 /* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2703 if { (eval echo configure:2704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2705 eval "ac_cv_lib_$ac_lib_var=yes"
2707 echo "configure: failed program was:" >&5
2708 cat conftest.$ac_ext >&5
2710 eval "ac_cv_lib_$ac_lib_var=no"
2713 LIBS="$ac_save_LIBS"
2716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2717 echo "$ac_t""yes" 1>&6
2718 gt_cv_func_gettext_libintl=yes
2720 echo "$ac_t""no" 1>&6
2721 gt_cv_func_gettext_libintl=no
2726 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2728 echo "$ac_t""no" 1>&6
2733 if test "$gt_cv_func_gettext_libc" = "yes" \
2734 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2735 cat >> confdefs.h <<\EOF
2736 #define HAVE_GETTEXT 1
2739 # Extract the first word of "msgfmt", so it can be a program name with args.
2740 set dummy msgfmt; ac_word=$2
2741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_word" >&5
2743 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2748 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2752 for ac_dir in $PATH; do
2753 test -z "$ac_dir" && ac_dir=.
2754 if test -f $ac_dir/$ac_word; then
2755 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2756 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2762 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2766 MSGFMT="$ac_cv_path_MSGFMT"
2767 if test -n "$MSGFMT"; then
2768 echo "$ac_t""$MSGFMT" 1>&6
2770 echo "$ac_t""no" 1>&6
2772 if test "$MSGFMT" != "no"; then
2773 for ac_func in dcgettext
2775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $ac_func" >&5
2777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2783 /* System header to define __stub macros and hopefully few prototypes,
2784 which can conflict with char $ac_func(); below. */
2786 /* Override any gcc2 internal prototype to avoid an error. */
2787 /* We use char because int might match the return type of a gcc2
2788 builtin and then its argument prototype would still apply. */
2793 /* The GNU C library defines this for functions which it implements
2794 to always fail with ENOSYS. Some functions are actually named
2795 something starting with __ and the normal name is an alias. */
2796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2804 if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2806 eval "ac_cv_func_$ac_func=yes"
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2811 eval "ac_cv_func_$ac_func=no"
2816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2819 cat >> confdefs.h <<EOF
2820 #define $ac_tr_func 1
2824 echo "$ac_t""no" 1>&6
2828 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2829 set dummy gmsgfmt; ac_word=$2
2830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2831 echo "configure:2832: checking for $ac_word" >&5
2832 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2837 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2840 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2845 for ac_dir in $ac_dummy; do
2846 test -z "$ac_dir" && ac_dir=.
2847 if test -f $ac_dir/$ac_word; then
2848 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2853 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2857 GMSGFMT="$ac_cv_path_GMSGFMT"
2858 if test -n "$GMSGFMT"; then
2859 echo "$ac_t""$GMSGFMT" 1>&6
2861 echo "$ac_t""no" 1>&6
2864 # Extract the first word of "xgettext", so it can be a program name with args.
2865 set dummy xgettext; ac_word=$2
2866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_word" >&5
2868 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2873 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2877 for ac_dir in $PATH; do
2878 test -z "$ac_dir" && ac_dir=.
2879 if test -f $ac_dir/$ac_word; then
2880 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2881 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2887 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2891 XGETTEXT="$ac_cv_path_XGETTEXT"
2892 if test -n "$XGETTEXT"; then
2893 echo "$ac_t""$XGETTEXT" 1>&6
2895 echo "$ac_t""no" 1>&6
2898 cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2903 extern int _nl_msg_cat_cntr;
2904 return _nl_msg_cat_cntr
2907 if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2924 echo "$ac_t""no" 1>&6
2928 if test "$CATOBJEXT" = "NONE"; then
2929 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2930 echo "configure:2931: checking whether catgets can be used" >&5
2931 # Check whether --with-catgets or --without-catgets was given.
2932 if test "${with_catgets+set}" = set; then
2933 withval="$with_catgets"
2934 nls_cv_use_catgets=$withval
2936 nls_cv_use_catgets=no
2939 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2941 if test "$nls_cv_use_catgets" = "yes"; then
2942 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2943 echo "configure:2944: checking for main in -li" >&5
2944 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 ac_save_LIBS="$LIBS"
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2958 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2960 eval "ac_cv_lib_$ac_lib_var=yes"
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2965 eval "ac_cv_lib_$ac_lib_var=no"
2968 LIBS="$ac_save_LIBS"
2971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2972 echo "$ac_t""yes" 1>&6
2973 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2974 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2975 cat >> confdefs.h <<EOF
2976 #define $ac_tr_lib 1
2982 echo "$ac_t""no" 1>&6
2985 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2986 echo "configure:2987: checking for catgets" >&5
2987 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 /* System header to define __stub macros and hopefully few prototypes,
2994 which can conflict with char catgets(); below. */
2996 /* Override any gcc2 internal prototype to avoid an error. */
2997 /* We use char because int might match the return type of a gcc2
2998 builtin and then its argument prototype would still apply. */
3003 /* The GNU C library defines this for functions which it implements
3004 to always fail with ENOSYS. Some functions are actually named
3005 something starting with __ and the normal name is an alias. */
3006 #if defined (__stub_catgets) || defined (__stub___catgets)
3014 if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3016 eval "ac_cv_func_catgets=yes"
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3021 eval "ac_cv_func_catgets=no"
3026 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3027 echo "$ac_t""yes" 1>&6
3028 cat >> confdefs.h <<\EOF
3029 #define HAVE_CATGETS 1
3032 INTLOBJS="\$(CATOBJS)"
3033 # Extract the first word of "gencat", so it can be a program name with args.
3034 set dummy gencat; ac_word=$2
3035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3036 echo "configure:3037: checking for $ac_word" >&5
3037 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3042 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3045 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3050 for ac_dir in $ac_dummy; do
3051 test -z "$ac_dir" && ac_dir=.
3052 if test -f $ac_dir/$ac_word; then
3053 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3058 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3062 GENCAT="$ac_cv_path_GENCAT"
3063 if test -n "$GENCAT"; then
3064 echo "$ac_t""$GENCAT" 1>&6
3066 echo "$ac_t""no" 1>&6
3068 if test "$GENCAT" != "no"; then
3069 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3070 set dummy gmsgfmt; ac_word=$2
3071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3072 echo "configure:3073: checking for $ac_word" >&5
3073 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3078 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3081 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3086 for ac_dir in $ac_dummy; do
3087 test -z "$ac_dir" && ac_dir=.
3088 if test -f $ac_dir/$ac_word; then
3089 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3094 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3098 GMSGFMT="$ac_cv_path_GMSGFMT"
3099 if test -n "$GMSGFMT"; then
3100 echo "$ac_t""$GMSGFMT" 1>&6
3102 echo "$ac_t""no" 1>&6
3105 if test "$GMSGFMT" = "no"; then
3106 # Extract the first word of "msgfmt", so it can be a program name with args.
3107 set dummy msgfmt; ac_word=$2
3108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_word" >&5
3110 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3115 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3119 for ac_dir in $PATH; do
3120 test -z "$ac_dir" && ac_dir=.
3121 if test -f $ac_dir/$ac_word; then
3122 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3123 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3129 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3133 GMSGFMT="$ac_cv_path_GMSGFMT"
3134 if test -n "$GMSGFMT"; then
3135 echo "$ac_t""$GMSGFMT" 1>&6
3137 echo "$ac_t""no" 1>&6
3141 # Extract the first word of "xgettext", so it can be a program name with args.
3142 set dummy xgettext; ac_word=$2
3143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_word" >&5
3145 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3150 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3154 for ac_dir in $PATH; do
3155 test -z "$ac_dir" && ac_dir=.
3156 if test -f $ac_dir/$ac_word; then
3157 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3158 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3164 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3168 XGETTEXT="$ac_cv_path_XGETTEXT"
3169 if test -n "$XGETTEXT"; then
3170 echo "$ac_t""$XGETTEXT" 1>&6
3172 echo "$ac_t""no" 1>&6
3175 USE_INCLUDED_LIBINTL=yes
3179 INTLDEPS='$(top_builddir)/intl/libintl.a'
3181 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3182 nls_cv_header_intl=intl/libintl.h
3183 nls_cv_header_libgt=intl/libgettext.h
3186 echo "$ac_t""no" 1>&6
3192 if test "$CATOBJEXT" = "NONE"; then
3193 nls_cv_use_gnu_gettext=yes
3197 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3198 INTLOBJS="\$(GETTOBJS)"
3199 # Extract the first word of "msgfmt", so it can be a program name with args.
3200 set dummy msgfmt; ac_word=$2
3201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3202 echo "configure:3203: checking for $ac_word" >&5
3203 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3208 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3212 for ac_dir in $PATH; do
3213 test -z "$ac_dir" && ac_dir=.
3214 if test -f $ac_dir/$ac_word; then
3215 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3216 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3222 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3226 MSGFMT="$ac_cv_path_MSGFMT"
3227 if test -n "$MSGFMT"; then
3228 echo "$ac_t""$MSGFMT" 1>&6
3230 echo "$ac_t""no" 1>&6
3233 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3234 set dummy gmsgfmt; ac_word=$2
3235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_word" >&5
3237 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3242 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3245 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3250 for ac_dir in $ac_dummy; do
3251 test -z "$ac_dir" && ac_dir=.
3252 if test -f $ac_dir/$ac_word; then
3253 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3258 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3262 GMSGFMT="$ac_cv_path_GMSGFMT"
3263 if test -n "$GMSGFMT"; then
3264 echo "$ac_t""$GMSGFMT" 1>&6
3266 echo "$ac_t""no" 1>&6
3269 # Extract the first word of "xgettext", so it can be a program name with args.
3270 set dummy xgettext; ac_word=$2
3271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3272 echo "configure:3273: checking for $ac_word" >&5
3273 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3278 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3282 for ac_dir in $PATH; do
3283 test -z "$ac_dir" && ac_dir=.
3284 if test -f $ac_dir/$ac_word; then
3285 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3286 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3292 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3296 XGETTEXT="$ac_cv_path_XGETTEXT"
3297 if test -n "$XGETTEXT"; then
3298 echo "$ac_t""$XGETTEXT" 1>&6
3300 echo "$ac_t""no" 1>&6
3304 USE_INCLUDED_LIBINTL=yes
3308 INTLDEPS='$(top_builddir)/intl/libintl.a'
3310 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3311 nls_cv_header_intl=intl/libintl.h
3312 nls_cv_header_libgt=intl/libgettext.h
3315 if test "$XGETTEXT" != ":"; then
3316 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3319 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3324 # We need to process the po/ directory.
3328 nls_cv_header_intl=intl/libintl.h
3329 nls_cv_header_libgt=intl/libgettext.h
3335 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3336 # because some of the sources are only built for this goal.
3337 if test "$PACKAGE" = gettext; then
3339 USE_INCLUDED_LIBINTL=yes
3342 for lang in $ALL_LINGUAS; do
3343 GMOFILES="$GMOFILES $lang.gmo"
3344 POFILES="$POFILES $lang.po"
3360 if test "x$CATOBJEXT" != "x"; then
3361 if test "x$ALL_LINGUAS" = "x"; then
3364 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3365 echo "configure:3366: checking for catalogs to be installed" >&5
3367 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3368 case "$ALL_LINGUAS" in
3369 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3372 LINGUAS=$NEW_LINGUAS
3373 echo "$ac_t""$LINGUAS" 1>&6
3376 if test -n "$LINGUAS"; then
3377 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3381 if test $ac_cv_header_locale_h = yes; then
3382 INCLUDE_LOCALE_H="#include <locale.h>"
3385 /* The system does not provide the header <locale.h>. Take care yourself. */"
3389 test -d intl || mkdir intl
3390 if test "$CATOBJEXT" = ".cat"; then
3391 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3392 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3393 echo "configure:3394: checking for linux/version.h" >&5
3394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <linux/version.h>
3402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3403 { (eval echo configure:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3405 if test -z "$ac_err"; then
3407 eval "ac_cv_header_$ac_safe=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3413 eval "ac_cv_header_$ac_safe=no"
3417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3418 echo "$ac_t""yes" 1>&6
3421 echo "$ac_t""no" 1>&6
3426 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3428 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3429 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3431 if test "$PACKAGE" = "gettext"; then
3442 if test -n "$ac_aux_dir"; then
3443 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3445 if test -z "$MKINSTALLDIRS"; then
3446 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3453 test -d po || mkdir po
3454 if test "x$srcdir" != "x."; then
3455 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3456 posrcprefix="$srcdir/"
3458 posrcprefix="../$srcdir/"
3464 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3465 < $srcdir/po/POTFILES.in > po/POTFILES
3468 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3469 echo "configure:3470: checking whether ${MAKE-make} sets \${MAKE}" >&5
3470 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3471 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3474 cat > conftestmake <<\EOF
3476 @echo 'ac_maketemp="${MAKE}"'
3478 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3479 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3480 if test -n "$ac_maketemp"; then
3481 eval ac_cv_prog_make_${ac_make}_set=yes
3483 eval ac_cv_prog_make_${ac_make}_set=no
3487 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3491 echo "$ac_t""no" 1>&6
3492 SET_MAKE="MAKE=${MAKE-make}"
3495 # Extract the first word of "ln", so it can be a program name with args.
3496 set dummy ln; ac_word=$2
3497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3498 echo "configure:3499: checking for $ac_word" >&5
3499 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3504 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3507 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3512 for ac_dir in $ac_dummy; do
3513 test -z "$ac_dir" && ac_dir=.
3514 if test -f $ac_dir/$ac_word; then
3515 ac_cv_path_LN="$ac_dir/$ac_word"
3520 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3525 if test -n "$LN"; then
3526 echo "$ac_t""$LN" 1>&6
3528 echo "$ac_t""no" 1>&6
3531 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3532 echo "configure:3533: checking whether ln -s works" >&5
3533 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3537 if ln -s X conftestdata 2>/dev/null
3540 ac_cv_prog_LN_S="ln -s"
3545 LN_S="$ac_cv_prog_LN_S"
3546 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3547 echo "$ac_t""yes" 1>&6
3549 echo "$ac_t""no" 1>&6
3552 # Extract the first word of "mv", so it can be a program name with args.
3553 set dummy mv; ac_word=$2
3554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $ac_word" >&5
3556 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3561 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3564 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3569 for ac_dir in $ac_dummy; do
3570 test -z "$ac_dir" && ac_dir=.
3571 if test -f $ac_dir/$ac_word; then
3572 ac_cv_path_MV="$ac_dir/$ac_word"
3577 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3582 if test -n "$MV"; then
3583 echo "$ac_t""$MV" 1>&6
3585 echo "$ac_t""no" 1>&6
3588 # Extract the first word of "cp", so it can be a program name with args.
3589 set dummy cp; ac_word=$2
3590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3591 echo "configure:3592: checking for $ac_word" >&5
3592 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3597 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3600 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3605 for ac_dir in $ac_dummy; do
3606 test -z "$ac_dir" && ac_dir=.
3607 if test -f $ac_dir/$ac_word; then
3608 ac_cv_path_CP="$ac_dir/$ac_word"
3613 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3618 if test -n "$CP"; then
3619 echo "$ac_t""$CP" 1>&6
3621 echo "$ac_t""no" 1>&6
3624 # Extract the first word of "rm", so it can be a program name with args.
3625 set dummy rm; ac_word=$2
3626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3627 echo "configure:3628: checking for $ac_word" >&5
3628 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3633 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3636 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3641 for ac_dir in $ac_dummy; do
3642 test -z "$ac_dir" && ac_dir=.
3643 if test -f $ac_dir/$ac_word; then
3644 ac_cv_path_RM="$ac_dir/$ac_word"
3649 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3654 if test -n "$RM"; then
3655 echo "$ac_t""$RM" 1>&6
3657 echo "$ac_t""no" 1>&6
3660 # Extract the first word of "chmod", so it can be a program name with args.
3661 set dummy chmod; ac_word=$2
3662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3663 echo "configure:3664: checking for $ac_word" >&5
3664 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3669 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3672 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3677 for ac_dir in $ac_dummy; do
3678 test -z "$ac_dir" && ac_dir=.
3679 if test -f $ac_dir/$ac_word; then
3680 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3685 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3689 CHMOD="$ac_cv_path_CHMOD"
3690 if test -n "$CHMOD"; then
3691 echo "$ac_t""$CHMOD" 1>&6
3693 echo "$ac_t""no" 1>&6
3696 # Extract the first word of "awk", so it can be a program name with args.
3697 set dummy awk; ac_word=$2
3698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3699 echo "configure:3700: checking for $ac_word" >&5
3700 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3705 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3708 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3713 for ac_dir in $ac_dummy; do
3714 test -z "$ac_dir" && ac_dir=.
3715 if test -f $ac_dir/$ac_word; then
3716 ac_cv_path_AWK="$ac_dir/$ac_word"
3721 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3725 AWK="$ac_cv_path_AWK"
3726 if test -n "$AWK"; then
3727 echo "$ac_t""$AWK" 1>&6
3729 echo "$ac_t""no" 1>&6
3732 # Extract the first word of "sed", so it can be a program name with args.
3733 set dummy sed; ac_word=$2
3734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3735 echo "configure:3736: checking for $ac_word" >&5
3736 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3741 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3744 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3749 for ac_dir in $ac_dummy; do
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/$ac_word; then
3752 ac_cv_path_SED="$ac_dir/$ac_word"
3757 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3761 SED="$ac_cv_path_SED"
3762 if test -n "$SED"; then
3763 echo "$ac_t""$SED" 1>&6
3765 echo "$ac_t""no" 1>&6
3768 # Extract the first word of "perl", so it can be a program name with args.
3769 set dummy perl; ac_word=$2
3770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3771 echo "configure:3772: checking for $ac_word" >&5
3772 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3777 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3780 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3785 for ac_dir in $ac_dummy; do
3786 test -z "$ac_dir" && ac_dir=.
3787 if test -f $ac_dir/$ac_word; then
3788 ac_cv_path_PERL="$ac_dir/$ac_word"
3793 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3797 PERL="$ac_cv_path_PERL"
3798 if test -n "$PERL"; then
3799 echo "$ac_t""$PERL" 1>&6
3801 echo "$ac_t""no" 1>&6
3804 # Extract the first word of "ldconfig", so it can be a program name with args.
3805 set dummy ldconfig; ac_word=$2
3806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3807 echo "configure:3808: checking for $ac_word" >&5
3808 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3813 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3816 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3821 for ac_dir in $ac_dummy; do
3822 test -z "$ac_dir" && ac_dir=.
3823 if test -f $ac_dir/$ac_word; then
3824 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3829 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3833 LDCONFIG="$ac_cv_path_LDCONFIG"
3834 if test -n "$LDCONFIG"; then
3835 echo "$ac_t""$LDCONFIG" 1>&6
3837 echo "$ac_t""no" 1>&6
3840 echo $ac_n "checking build system type""... $ac_c" 1>&6
3841 echo "configure:3842: checking build system type" >&5
3844 case "$build_alias" in
3847 NONE) build_alias=$host_alias ;;
3848 *) build_alias=$nonopt ;;
3852 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3853 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3854 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3855 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3856 echo "$ac_t""$build" 1>&6
3858 if test $host != $build; then
3859 ac_tool_prefix=${host_alias}-
3864 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3865 set dummy ${ac_tool_prefix}ar; ac_word=$2
3866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3867 echo "configure:3868: checking for $ac_word" >&5
3868 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 if test -n "$AR"; then
3872 ac_cv_prog_AR="$AR" # Let the user override the test.
3874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3876 for ac_dir in $ac_dummy; do
3877 test -z "$ac_dir" && ac_dir=.
3878 if test -f $ac_dir/$ac_word; then
3879 ac_cv_prog_AR="${ac_tool_prefix}ar"
3887 if test -n "$AR"; then
3888 echo "$ac_t""$AR" 1>&6
3890 echo "$ac_t""no" 1>&6
3894 if test -z "$ac_cv_prog_AR"; then
3895 if test -n "$ac_tool_prefix"; then
3896 # Extract the first word of "ar", so it can be a program name with args.
3897 set dummy ar; ac_word=$2
3898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3899 echo "configure:3900: checking for $ac_word" >&5
3900 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 if test -n "$AR"; then
3904 ac_cv_prog_AR="$AR" # Let the user override the test.
3906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3908 for ac_dir in $ac_dummy; do
3909 test -z "$ac_dir" && ac_dir=.
3910 if test -f $ac_dir/$ac_word; then
3916 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3920 if test -n "$AR"; then
3921 echo "$ac_t""$AR" 1>&6
3923 echo "$ac_t""no" 1>&6
3931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3932 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3934 echo "configure:3935: checking for $ac_word" >&5
3935 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 if test -n "$RANLIB"; then
3939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3953 RANLIB="$ac_cv_prog_RANLIB"
3954 if test -n "$RANLIB"; then
3955 echo "$ac_t""$RANLIB" 1>&6
3957 echo "$ac_t""no" 1>&6
3961 if test -z "$ac_cv_prog_RANLIB"; then
3962 if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "ranlib", so it can be a program name with args.
3964 set dummy ranlib; ac_word=$2
3965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3966 echo "configure:3967: checking for $ac_word" >&5
3967 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 if test -n "$RANLIB"; then
3971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3975 for ac_dir in $ac_dummy; do
3976 test -z "$ac_dir" && ac_dir=.
3977 if test -f $ac_dir/$ac_word; then
3978 ac_cv_prog_RANLIB="ranlib"
3983 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3986 RANLIB="$ac_cv_prog_RANLIB"
3987 if test -n "$RANLIB"; then
3988 echo "$ac_t""$RANLIB" 1>&6
3990 echo "$ac_t""no" 1>&6
3998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3999 set dummy ${ac_tool_prefix}strip; ac_word=$2
4000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4001 echo "configure:4002: checking for $ac_word" >&5
4002 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4005 if test -n "$STRIP"; then
4006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4010 for ac_dir in $ac_dummy; do
4011 test -z "$ac_dir" && ac_dir=.
4012 if test -f $ac_dir/$ac_word; then
4013 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4020 STRIP="$ac_cv_prog_STRIP"
4021 if test -n "$STRIP"; then
4022 echo "$ac_t""$STRIP" 1>&6
4024 echo "$ac_t""no" 1>&6
4028 if test -z "$ac_cv_prog_STRIP"; then
4029 if test -n "$ac_tool_prefix"; then
4030 # Extract the first word of "strip", so it can be a program name with args.
4031 set dummy strip; ac_word=$2
4032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4033 echo "configure:4034: checking for $ac_word" >&5
4034 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4037 if test -n "$STRIP"; then
4038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4042 for ac_dir in $ac_dummy; do
4043 test -z "$ac_dir" && ac_dir=.
4044 if test -f $ac_dir/$ac_word; then
4045 ac_cv_prog_STRIP="strip"
4050 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4053 STRIP="$ac_cv_prog_STRIP"
4054 if test -n "$STRIP"; then
4055 echo "$ac_t""$STRIP" 1>&6
4057 echo "$ac_t""no" 1>&6
4065 # Find a good install program. We prefer a C program (faster),
4066 # so one script is as good as another. But avoid the broken or
4067 # incompatible versions:
4068 # SysV /etc/install, /usr/sbin/install
4069 # SunOS /usr/etc/install
4070 # IRIX /sbin/install
4072 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4073 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4074 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4075 # ./install, which can be erroneously created by make from ./install.sh.
4076 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4077 echo "configure:4078: checking for a BSD compatible install" >&5
4078 if test -z "$INSTALL"; then
4079 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4083 for ac_dir in $PATH; do
4084 # Account for people who put trailing slashes in PATH elements.
4086 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4088 # OSF1 and SCO ODT 3.0 have their own names for install.
4089 # Don't use installbsd from OSF since it installs stuff as root
4091 for ac_prog in ginstall scoinst install; do
4092 if test -f $ac_dir/$ac_prog; then
4093 if test $ac_prog = install &&
4094 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4095 # AIX install. It has an incompatible calling convention.
4098 ac_cv_path_install="$ac_dir/$ac_prog -c"
4109 if test "${ac_cv_path_install+set}" = set; then
4110 INSTALL="$ac_cv_path_install"
4112 # As a last resort, use the slow shell script. We don't cache a
4113 # path for INSTALL within a source directory, because that will
4114 # break other packages using the cache if that directory is
4115 # removed, or if the path is relative.
4116 INSTALL="$ac_install_sh"
4119 echo "$ac_t""$INSTALL" 1>&6
4121 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4122 # It thinks the first close brace ends the variable substitution.
4123 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4125 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4127 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4129 # See if we need a separate native compiler.
4130 if test $cross_compiling = no; then
4134 for ac_prog in gcc cc
4136 # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4139 echo "configure:4140: checking for $ac_word" >&5
4140 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4143 if test -n "$BUILD_CC"; then
4144 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4148 for ac_dir in $ac_dummy; do
4149 test -z "$ac_dir" && ac_dir=.
4150 if test -f $ac_dir/$ac_word; then
4151 ac_cv_prog_BUILD_CC="$ac_prog"
4158 BUILD_CC="$ac_cv_prog_BUILD_CC"
4159 if test -n "$BUILD_CC"; then
4160 echo "$ac_t""$BUILD_CC" 1>&6
4162 echo "$ac_t""no" 1>&6
4165 test -n "$BUILD_CC" && break
4169 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
4171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4173 echo "configure:4174: checking for $ac_hdr" >&5
4174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4183 { (eval echo configure:4184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4185 if test -z "$ac_err"; then
4187 eval "ac_cv_header_$ac_safe=yes"
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4193 eval "ac_cv_header_$ac_safe=no"
4197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4198 echo "$ac_t""yes" 1>&6
4199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4200 cat >> confdefs.h <<EOF
4201 #define $ac_tr_hdr 1
4205 echo "$ac_t""no" 1>&6
4209 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4210 echo "configure:4211: checking for vprintf" >&5
4211 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 /* System header to define __stub macros and hopefully few prototypes,
4218 which can conflict with char vprintf(); below. */
4220 /* Override any gcc2 internal prototype to avoid an error. */
4221 /* We use char because int might match the return type of a gcc2
4222 builtin and then its argument prototype would still apply. */
4227 /* The GNU C library defines this for functions which it implements
4228 to always fail with ENOSYS. Some functions are actually named
4229 something starting with __ and the normal name is an alias. */
4230 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4240 eval "ac_cv_func_vprintf=yes"
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 eval "ac_cv_func_vprintf=no"
4250 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4251 echo "$ac_t""yes" 1>&6
4252 cat >> confdefs.h <<\EOF
4253 #define HAVE_VPRINTF 1
4257 echo "$ac_t""no" 1>&6
4260 if test "$ac_cv_func_vprintf" != yes; then
4261 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4262 echo "configure:4263: checking for _doprnt" >&5
4263 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 /* System header to define __stub macros and hopefully few prototypes,
4270 which can conflict with char _doprnt(); below. */
4272 /* Override any gcc2 internal prototype to avoid an error. */
4273 /* We use char because int might match the return type of a gcc2
4274 builtin and then its argument prototype would still apply. */
4279 /* The GNU C library defines this for functions which it implements
4280 to always fail with ENOSYS. Some functions are actually named
4281 something starting with __ and the normal name is an alias. */
4282 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4292 eval "ac_cv_func__doprnt=yes"
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 eval "ac_cv_func__doprnt=no"
4302 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4304 cat >> confdefs.h <<\EOF
4305 #define HAVE_DOPRNT 1
4309 echo "$ac_t""no" 1>&6
4314 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4315 echo "configure:4316: checking whether llseek declared in unistd.h" >&5
4316 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4324 extern int llseek(int);
4327 if { (eval echo configure:4328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4329 e2fsprogs_cv_have_llseek_prototype=no
4331 echo "configure: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4334 e2fsprogs_cv_have_llseek_prototype=yes
4339 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4340 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4341 cat >> confdefs.h <<\EOF
4342 #define HAVE_LLSEEK_PROTOTYPE 1
4346 echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
4347 echo "configure:4348: checking whether lseek64 declared in unistd.h" >&5
4348 if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4354 #define _LARGEFILE_SOURCE
4355 #define _LARGEFILE64_SOURCE
4358 extern int lseek64(int);
4361 if { (eval echo configure:4362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4363 e2fsprogs_cv_have_lseek64_prototype=no
4365 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4368 e2fsprogs_cv_have_lseek64_prototype=yes
4373 echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4374 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4375 cat >> confdefs.h <<\EOF
4376 #define HAVE_LSEEK64_PROTOTYPE 1
4380 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4381 # if cross-compiling, with no cached values, just assume something common.
4382 ac_cv_sizeof_short=2
4385 ac_cv_sizeof_long_long=8
4386 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
4388 echo $ac_n "checking size of short""... $ac_c" 1>&6
4389 echo "configure:4390: checking size of short" >&5
4390 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 if test "$cross_compiling" = yes; then
4394 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4396 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4400 #include <sys/types.h>
4403 FILE *f=fopen("conftestval", "w");
4405 fprintf(f, "%d\n", sizeof(short));
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4411 ac_cv_sizeof_short=`cat conftestval`
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4416 ac_cv_sizeof_short=0
4422 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4423 cat >> confdefs.h <<EOF
4424 #define SIZEOF_SHORT $ac_cv_sizeof_short
4428 echo $ac_n "checking size of int""... $ac_c" 1>&6
4429 echo "configure:4430: checking size of int" >&5
4430 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4433 if test "$cross_compiling" = yes; then
4434 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4440 #include <sys/types.h>
4443 FILE *f=fopen("conftestval", "w");
4445 fprintf(f, "%d\n", sizeof(int));
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4451 ac_cv_sizeof_int=`cat conftestval`
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4462 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4463 cat >> confdefs.h <<EOF
4464 #define SIZEOF_INT $ac_cv_sizeof_int
4468 echo $ac_n "checking size of long""... $ac_c" 1>&6
4469 echo "configure:4470: checking size of long" >&5
4470 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 if test "$cross_compiling" = yes; then
4474 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4476 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4480 #include <sys/types.h>
4483 FILE *f=fopen("conftestval", "w");
4485 fprintf(f, "%d\n", sizeof(long));
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4491 ac_cv_sizeof_long=`cat conftestval`
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4502 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4503 cat >> confdefs.h <<EOF
4504 #define SIZEOF_LONG $ac_cv_sizeof_long
4508 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4509 echo "configure:4510: checking size of long long" >&5
4510 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4513 if test "$cross_compiling" = yes; then
4514 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4520 #include <sys/types.h>
4523 FILE *f=fopen("conftestval", "w");
4525 fprintf(f, "%d\n", sizeof(long long));
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4531 ac_cv_sizeof_long_long=`cat conftestval`
4533 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4536 ac_cv_sizeof_long_long=0
4542 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4543 cat >> confdefs.h <<EOF
4544 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4548 SIZEOF_SHORT=$ac_cv_sizeof_short
4549 SIZEOF_INT=$ac_cv_sizeof_int
4550 SIZEOF_LONG=$ac_cv_sizeof_long
4551 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4556 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4557 echo "configure:4558: checking whether byte ordering is bigendian" >&5
4558 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 ac_cv_c_bigendian=unknown
4562 # See if sys/param.h defines the BYTE_ORDER macro.
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 #include <sys/types.h>
4567 #include <sys/param.h>
4570 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4575 if { (eval echo configure:4576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4577 # It does; now see whether it defined to BIG_ENDIAN or not.
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 #include <sys/types.h>
4582 #include <sys/param.h>
4585 #if BYTE_ORDER != BIG_ENDIAN
4590 if { (eval echo configure:4591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4592 ac_cv_c_bigendian=yes
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4597 ac_cv_c_bigendian=no
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4605 if test $ac_cv_c_bigendian = unknown; then
4606 if test "$cross_compiling" = yes; then
4607 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4613 /* Are we little or big endian? From Harbison&Steele. */
4617 char c[sizeof (long)];
4620 exit (u.c[sizeof (long) - 1] == 1);
4623 if { (eval echo configure:4624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4625 ac_cv_c_bigendian=no
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4630 ac_cv_c_bigendian=yes
4638 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4639 if test $ac_cv_c_bigendian = yes; then
4640 cat >> confdefs.h <<\EOF
4641 #define WORDS_BIGENDIAN 1
4646 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
4647 echo "configure:4648: checking whether struct stat has a st_flags field" >&5
4648 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 #include <sys/stat.h>
4656 struct stat stat; stat.st_flags = 0;
4659 if { (eval echo configure:4660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4661 e2fsprogs_cv_struct_st_flags=yes
4663 echo "configure: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4666 e2fsprogs_cv_struct_st_flags=no
4671 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4672 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
4673 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
4674 echo "configure:4675: checking whether st_flags field is useful" >&5
4675 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 #include <sys/stat.h>
4683 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4686 if { (eval echo configure:4687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4688 e2fsprogs_cv_struct_st_flags_immut=yes
4690 echo "configure: failed program was:" >&5
4691 cat conftest.$ac_ext >&5
4693 e2fsprogs_cv_struct_st_flags_immut=no
4698 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4699 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4700 cat >> confdefs.h <<\EOF
4701 #define HAVE_STAT_FLAGS 1
4706 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf pathconf
4708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4709 echo "configure:4710: checking for $ac_func" >&5
4710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4713 cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4716 /* System header to define __stub macros and hopefully few prototypes,
4717 which can conflict with char $ac_func(); below. */
4719 /* Override any gcc2 internal prototype to avoid an error. */
4720 /* We use char because int might match the return type of a gcc2
4721 builtin and then its argument prototype would still apply. */
4726 /* The GNU C library defines this for functions which it implements
4727 to always fail with ENOSYS. Some functions are actually named
4728 something starting with __ and the normal name is an alias. */
4729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4737 if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4739 eval "ac_cv_func_$ac_func=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4744 eval "ac_cv_func_$ac_func=no"
4749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4750 echo "$ac_t""yes" 1>&6
4751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4752 cat >> confdefs.h <<EOF
4753 #define $ac_tr_func 1
4757 echo "$ac_t""no" 1>&6
4762 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4763 echo "configure:4764: checking for socket in -lsocket" >&5
4764 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 ac_save_LIBS="$LIBS"
4769 LIBS="-lsocket $LIBS"
4770 cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 /* We use char because int might match the return type of a gcc2
4775 builtin and then its argument prototype would still apply. */
4782 if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4784 eval "ac_cv_lib_$ac_lib_var=yes"
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4789 eval "ac_cv_lib_$ac_lib_var=no"
4792 LIBS="$ac_save_LIBS"
4795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4796 echo "$ac_t""yes" 1>&6
4799 echo "$ac_t""no" 1>&6
4804 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4805 echo "configure:4806: checking for dlopen in -ldl" >&5
4806 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4810 ac_save_LIBS="$LIBS"
4812 cat > conftest.$ac_ext <<EOF
4813 #line 4814 "configure"
4814 #include "confdefs.h"
4815 /* Override any gcc2 internal prototype to avoid an error. */
4816 /* We use char because int might match the return type of a gcc2
4817 builtin and then its argument prototype would still apply. */
4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4826 eval "ac_cv_lib_$ac_lib_var=yes"
4828 echo "configure: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4831 eval "ac_cv_lib_$ac_lib_var=no"
4834 LIBS="$ac_save_LIBS"
4837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4838 echo "$ac_t""yes" 1>&6
4840 cat >> confdefs.h <<\EOF
4841 #define HAVE_DLOPEN 1
4845 echo "$ac_t""no" 1>&6
4849 echo $ac_n "checking for optreset""... $ac_c" 1>&6
4850 echo "configure:4851: checking for optreset" >&5
4851 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860 egrep "optreset" >/dev/null 2>&1; then
4862 ac_cv_have_optreset=yes
4865 ac_cv_have_optreset=no
4870 echo "$ac_t""$ac_cv_have_optreset" 1>&6
4871 if test $ac_cv_have_optreset = yes; then
4872 cat >> confdefs.h <<\EOF
4873 #define HAVE_OPTRESET 1
4879 cat >> confdefs.h <<\EOF
4880 #define HAVE_EXT2_IOCTLS 1
4894 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4896 echo "On $host_os systems, root_prefix defaults to ''"
4902 if test "$prefix" = NONE ; then
4904 echo "On $host_os systems, prefix defaults to /usr"
4905 if test "$mandir" = '${prefix}/man' ; then
4906 echo "...and mandir defaults to /usr/share/man"
4907 mandir=/usr/share/man
4912 if test "$root_prefix" = NONE ; then
4913 if test "$prefix" = NONE ; then
4914 root_prefix="$ac_default_prefix"
4916 root_prefix="$prefix"
4919 root_sbindir=$sbindir
4921 root_sysconfdir=$sysconfdir
4923 root_bindir='${root_prefix}/bin'
4924 root_sbindir='${root_prefix}/sbin'
4925 root_libdir='${root_prefix}/lib'
4926 root_sysconfdir='${root_prefix}/etc'
4933 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
4934 echo "configure:4935: checking whether linker accepts -static" >&5
4935 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4939 cat > conftest.$ac_ext <<EOF
4940 #line 4941 "configure"
4941 #include "confdefs.h"
4947 if { (eval echo configure:4948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4949 ac_cv_e2fsprogs_use_static=yes
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 ac_cv_e2fsprogs_use_static=no
4957 LDFLAGS=$SAVE_LDFLAGS
4962 ac_cv_e2fsprogs_use_static=no
4965 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
4967 if test $ac_cv_e2fsprogs_use_static = yes; then
4968 LDFLAG_STATIC=-static
4971 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4972 ET_DIR=`cd ${srcdir}/lib/et; pwd`
4975 if test "$cross_compiling" = yes ; then
4981 test -d lib || mkdir lib
4982 test -d include || mkdir include
4983 test -d include/linux || mkdir include/linux
4984 test -d include/asm || mkdir include/asm
4985 for i in MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile \
4986 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
4987 lib/uuid/Makefile lib/uuid/uuid_types.h \
4988 lib/blkid/Makefile lib/blkid/blkid_types.h \
4989 lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
4990 debugfs/Makefile tests/Makefile tests/progs/Makefile \
4991 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
4992 if test -d `dirname ${srcdir}/$i` ; then
4993 outlist="$outlist $i"
4997 cat > confcache <<\EOF
4998 # This file is a shell script that caches the results of configure
4999 # tests run on this system so they can be shared between configure
5000 # scripts and configure runs. It is not useful on other systems.
5001 # If it contains results you don't want to keep, you may remove or edit it.
5003 # By default, configure uses ./config.cache as the cache file,
5004 # creating it if it does not exist already. You can give configure
5005 # the --cache-file=FILE option to use a different cache file; that is
5006 # what configure does when it calls configure scripts in
5007 # subdirectories, so they share the cache.
5008 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5009 # config.status only pays attention to the cache file if you give it the
5010 # --recheck option to rerun configure.
5013 # The following way of writing the cache mishandles newlines in values,
5014 # but we know of no workaround that is simple, portable, and efficient.
5015 # So, don't put newlines in cache variables' values.
5016 # Ultrix sh set writes to stderr and can't be redirected directly,
5017 # and sets the high bit in the cache file unless we assign to the vars.
5019 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5021 # `set' does not quote correctly, so add quotes (double-quote substitution
5022 # turns \\\\ into \\, and sed turns \\ into \).
5024 -e "s/'/'\\\\''/g" \
5025 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5028 # `set' quotes correctly as required by POSIX, so do not add quotes.
5029 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5032 if cmp -s $cache_file confcache; then
5035 if test -w $cache_file; then
5036 echo "updating cache $cache_file"
5037 cat confcache > $cache_file
5039 echo "not updating unwritable cache $cache_file"
5044 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5047 # Let make expand exec_prefix.
5048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5050 # Any assignment to VPATH causes Sun make to only execute
5051 # the first set of double-colon rules, so remove it if not needed.
5052 # If there is a colon in the path, we need to keep it.
5053 if test "x$srcdir" = x.; then
5054 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5057 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5059 # Transform confdefs.h into DEFS.
5060 # Protect against shell expansion while executing Makefile rules.
5061 # Protect against Makefile macro expansion.
5062 cat > conftest.defs <<\EOF
5063 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
5064 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
5069 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
5073 # Without the "./", some shells look in PATH for config.status.
5074 : ${CONFIG_STATUS=./config.status}
5076 echo creating $CONFIG_STATUS
5077 rm -f $CONFIG_STATUS
5078 cat > $CONFIG_STATUS <<EOF
5080 # Generated automatically by configure.
5081 # Run this file to recreate the current configuration.
5082 # This directory was configured as follows,
5083 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5085 # $0 $ac_configure_args
5087 # Compiler output produced by configure, useful for debugging
5088 # configure, is in ./config.log if it exists.
5090 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5093 case "\$ac_option" in
5094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5095 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5096 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5097 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5098 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5100 -help | --help | --hel | --he | --h)
5101 echo "\$ac_cs_usage"; exit 0 ;;
5102 *) echo "\$ac_cs_usage"; exit 1 ;;
5106 ac_given_srcdir=$srcdir
5107 ac_given_INSTALL="$INSTALL"
5109 trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5111 cat >> $CONFIG_STATUS <<EOF
5113 # Protect against being on the right side of a sed subst in config.status.
5114 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5115 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5119 s%@CFLAGS@%$CFLAGS%g
5120 s%@CPPFLAGS@%$CPPFLAGS%g
5121 s%@CXXFLAGS@%$CXXFLAGS%g
5122 s%@FFLAGS@%$FFLAGS%g
5124 s%@LDFLAGS@%$LDFLAGS%g
5126 s%@exec_prefix@%$exec_prefix%g
5127 s%@prefix@%$prefix%g
5128 s%@program_transform_name@%$program_transform_name%g
5129 s%@bindir@%$bindir%g
5130 s%@sbindir@%$sbindir%g
5131 s%@libexecdir@%$libexecdir%g
5132 s%@datadir@%$datadir%g
5133 s%@sysconfdir@%$sysconfdir%g
5134 s%@sharedstatedir@%$sharedstatedir%g
5135 s%@localstatedir@%$localstatedir%g
5136 s%@libdir@%$libdir%g
5137 s%@includedir@%$includedir%g
5138 s%@oldincludedir@%$oldincludedir%g
5139 s%@infodir@%$infodir%g
5140 s%@mandir@%$mandir%g
5141 /@MCONFIG@/r $MCONFIG
5143 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5144 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
5145 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
5147 s%@host_alias@%$host_alias%g
5148 s%@host_cpu@%$host_cpu%g
5149 s%@host_vendor@%$host_vendor%g
5150 s%@host_os@%$host_os%g
5154 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
5155 s%@HTREE_CMT@%$HTREE_CMT%g
5156 s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
5157 s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
5158 s%@DLL_CMT@%$DLL_CMT%g
5159 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
5161 s%@ELF_CMT@%$ELF_CMT%g
5162 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
5164 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5165 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5166 s%@MAKEFILE_BSDLIB@%%g
5167 s%@PROFILE_CMT@%$PROFILE_CMT%g
5168 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5169 s%@MAKEFILE_PROFILE@%%g
5170 s%@CHECKER_CMT@%$CHECKER_CMT%g
5171 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5172 s%@MAKEFILE_CHECKER@%%g
5173 s%@LIB_EXT@%$LIB_EXT%g
5174 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5175 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
5176 s%@SWAPFS_CMT@%$SWAPFS_CMT%g
5177 s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5178 s%@IMAGER_CMT@%$IMAGER_CMT%g
5179 s%@RESIZER_CMT@%$RESIZER_CMT%g
5180 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5181 s%@FSCK_PROG@%$FSCK_PROG%g
5182 s%@FSCK_MAN@%$FSCK_MAN%g
5183 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5184 s%@MAKEFILE_LIBRARY@%%g
5185 s%@PACKAGE@%$PACKAGE%g
5186 s%@VERSION@%$VERSION%g
5187 s%@SET_MAKE@%$SET_MAKE%g
5188 s%@RANLIB@%$RANLIB%g
5189 s%@ALLOCA@%$ALLOCA%g
5190 s%@USE_NLS@%$USE_NLS%g
5191 s%@MSGFMT@%$MSGFMT%g
5192 s%@GMSGFMT@%$GMSGFMT%g
5193 s%@XGETTEXT@%$XGETTEXT%g
5194 s%@GENCAT@%$GENCAT%g
5195 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5196 s%@CATALOGS@%$CATALOGS%g
5197 s%@CATOBJEXT@%$CATOBJEXT%g
5198 s%@DATADIRNAME@%$DATADIRNAME%g
5199 s%@GMOFILES@%$GMOFILES%g
5200 s%@INSTOBJEXT@%$INSTOBJEXT%g
5201 s%@INTLDEPS@%$INTLDEPS%g
5202 s%@INTLLIBS@%$INTLLIBS%g
5203 s%@INTLOBJS@%$INTLOBJS%g
5204 s%@POFILES@%$POFILES%g
5206 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5208 s%@GT_YES@%$GT_YES%g
5209 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5211 s%@BINARY_TYPE@%$BINARY_TYPE%g
5221 s%@LDCONFIG@%$LDCONFIG%g
5223 s%@build_alias@%$build_alias%g
5224 s%@build_cpu@%$build_cpu%g
5225 s%@build_vendor@%$build_vendor%g
5226 s%@build_os@%$build_os%g
5229 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5230 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5231 s%@INSTALL_DATA@%$INSTALL_DATA%g
5232 s%@BUILD_CC@%$BUILD_CC%g
5233 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5234 s%@SIZEOF_INT@%$SIZEOF_INT%g
5235 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
5236 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
5237 s%@SOCKET_LIB@%$SOCKET_LIB%g
5238 s%@DLOPEN_LIB@%$DLOPEN_LIB%g
5239 s%@LINUX_CMT@%$LINUX_CMT%g
5240 s%@root_prefix@%$root_prefix%g
5241 s%@root_bindir@%$root_bindir%g
5242 s%@root_sbindir@%$root_sbindir%g
5243 s%@root_libdir@%$root_libdir%g
5244 s%@root_sysconfdir@%$root_sysconfdir%g
5245 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
5246 s%@SS_DIR@%$SS_DIR%g
5247 s%@ET_DIR@%$ET_DIR%g
5248 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5253 cat >> $CONFIG_STATUS <<\EOF
5255 # Split the substitutions into bite-sized pieces for seds with
5256 # small command number limits, like on Digital OSF/1 and HP-UX.
5257 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5258 ac_file=1 # Number of current file.
5259 ac_beg=1 # First line for current file.
5260 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5263 while $ac_more_lines; do
5264 if test $ac_beg -gt 1; then
5265 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5267 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5269 if test ! -s conftest.s$ac_file; then
5271 rm -f conftest.s$ac_file
5273 if test -z "$ac_sed_cmds"; then
5274 ac_sed_cmds="sed -f conftest.s$ac_file"
5276 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5278 ac_file=`expr $ac_file + 1`
5280 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5283 if test -z "$ac_sed_cmds"; then
5288 cat >> $CONFIG_STATUS <<EOF
5290 CONFIG_FILES=\${CONFIG_FILES-"$outlist"}
5292 cat >> $CONFIG_STATUS <<\EOF
5293 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5296 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5297 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5298 *) ac_file_in="${ac_file}.in" ;;
5301 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5303 # Remove last slash and all that follows it. Not all systems have dirname.
5304 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5305 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5306 # The file is in a subdirectory.
5307 test ! -d "$ac_dir" && mkdir "$ac_dir"
5308 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5309 # A "../" for each directory in $ac_dir_suffix.
5310 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5312 ac_dir_suffix= ac_dots=
5315 case "$ac_given_srcdir" in
5317 if test -z "$ac_dots"; then top_srcdir=.
5318 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5319 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5321 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5322 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5325 case "$ac_given_INSTALL" in
5326 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5327 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5330 echo creating "$ac_file"
5332 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5334 *Makefile*) ac_comsub="1i\\
5335 # $configure_input" ;;
5339 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5341 s%@configure_input@%$configure_input%g
5342 s%@srcdir@%$srcdir%g
5343 s%@top_srcdir@%$top_srcdir%g
5344 s%@INSTALL@%$INSTALL%g
5345 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5351 cat >> $CONFIG_STATUS <<EOF
5352 ac_sources="$nls_cv_header_libgt"
5353 ac_dests="$nls_cv_header_intl"
5356 cat >> $CONFIG_STATUS <<\EOF
5357 srcdir=$ac_given_srcdir
5358 while test -n "$ac_sources"; do
5359 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5360 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5362 echo "linking $srcdir/$ac_source to $ac_dest"
5364 if test ! -r $srcdir/$ac_source; then
5365 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5369 # Make relative symlinks.
5370 # Remove last slash and all that follows it. Not all systems have dirname.
5371 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5372 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5373 # The dest file is in a subdirectory.
5374 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5375 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5376 # A "../" for each directory in $ac_dest_dir_suffix.
5377 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5379 ac_dest_dir_suffix= ac_dots=
5383 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5384 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5387 # Make a symlink if possible; otherwise try a hard link.
5388 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5389 ln $srcdir/$ac_source $ac_dest; then :
5391 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5395 cat >> $CONFIG_STATUS <<EOF
5399 cat >> $CONFIG_STATUS <<\EOF
5400 case "$CONFIG_FILES" in *po/Makefile.in*)
5401 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5406 chmod +x $CONFIG_STATUS
5407 rm -fr confdefs* $ac_clean_files
5408 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1