3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-cc=COMPILER select compiler to use"
17 --with-linker=LINKER select linker to use"
19 --with-ccopts=CCOPTS select compiler command line options"
21 --with-ldopts=LDOPTS select linker command line options"
23 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
25 --enable-compression enable EXPERIMENTAL compression support"
27 --enable-dll-shlibs select DLL libraries"
29 --enable-elf-shlibs select ELF shared libraries"
31 --enable-bsd-shlibs select BSD shared libraries"
33 --enable-jfs-debug enable journal debugging"
35 --disable-swapfs disable support of legacy byte-swapped filesystems"
37 --enable-nls Turn on Native Language Support"
39 --with-included-gettext use the GNU gettext library included here"
41 --with-catgets use catgets functions if available"
43 --enable-profile build profiling libraries"
45 --enable-checker build checker libraries"
47 --enable-dynamic-e2fsck build e2fsck dynamically"
49 --enable-fsck build fsck wrapper program"
51 --enable-old-bitops Use old (non-standard but native) bitmask operations"
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file=./config.cache
66 program_transform_name=s,x,x,
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
87 # Initialize some other variables.
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 # Accept the important Cygnus configure options, so we can diagnose typos.
114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
119 -build | --build | --buil | --bui | --bu)
121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122 build="$ac_optarg" ;;
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135 datadir="$ac_optarg" ;;
137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
227 -host | --host | --hos | --ho)
229 -host=* | --host=* | --hos=* | --ho=*)
232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
244 -libdir | --libdir | --libdi | --libd)
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
271 # Obsolete; use --without-fp.
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335 sbindir="$ac_optarg" ;;
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346 sharedstatedir="$ac_optarg" ;;
348 -site | --site | --sit)
350 -site=* | --site=* | --sit=*)
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
365 -target | --target | --targe | --targ | --tar | --ta | --t)
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 -version | --version | --versio | --versi | --vers)
374 echo "configure generated by autoconf version 2.13"
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=version.h
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
566 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
567 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
568 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
570 MONTH=`echo $DATE | awk -F- '{print $2}'`
571 YEAR=`echo $DATE | awk -F- '{print $3}'`
573 if expr $YEAR ">" 1900 > /dev/null ; then
575 elif expr $YEAR ">" 90 >/dev/null ; then
576 E2FSPROGS_YEAR=19$YEAR
578 E2FSPROGS_YEAR=20$YEAR
582 Jan) E2FSPROGS_MONTH="January" ;;
583 Feb) E2FSPROGS_MONTH="February" ;;
584 Mar) E2FSPROGS_MONTH="March" ;;
585 Apr) E2FSPROGS_MONTH="April" ;;
586 May) E2FSPROGS_MONTH="May" ;;
587 Jun) E2FSPROGS_MONTH="June" ;;
588 Jul) E2FSPROGS_MONTH="July" ;;
589 Aug) E2FSPROGS_MONTH="August" ;;
590 Sep) E2FSPROGS_MONTH="September" ;;
591 Oct) E2FSPROGS_MONTH="October" ;;
592 Nov) E2FSPROGS_MONTH="November" ;;
593 Dec) E2FSPROGS_MONTH="December" ;;
594 *) echo "Unknown month $MONTH??" ;;
597 unset DATE MONTH YEAR
598 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
599 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
605 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
606 if test -f $ac_dir/install-sh; then
608 ac_install_sh="$ac_aux_dir/install-sh -c"
610 elif test -f $ac_dir/install.sh; then
612 ac_install_sh="$ac_aux_dir/install.sh -c"
616 if test -z "$ac_aux_dir"; then
617 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
619 ac_config_guess=$ac_aux_dir/config.guess
620 ac_config_sub=$ac_aux_dir/config.sub
621 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
624 # Make sure we can run config.sub.
625 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
626 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
629 echo $ac_n "checking host system type""... $ac_c" 1>&6
630 echo "configure:631: checking host system type" >&5
633 case "$host_alias" in
637 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
638 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
640 *) host_alias=$nonopt ;;
644 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
645 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
646 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
647 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
648 echo "$ac_t""$host" 1>&6
650 # Check whether --with-cc or --without-cc was given.
651 if test "${with_cc+set}" = set; then
653 echo "$ac_t""CC=$withval" 1>&6
656 if test -z "$CC" ; then CC=cc; fi
657 echo "$ac_t""CC defaults to $CC" 1>&6
661 # Extract the first word of "gcc", so it can be a program name with args.
662 set dummy gcc; ac_word=$2
663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
664 echo "configure:665: checking for $ac_word" >&5
665 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
668 if test -n "$CC"; then
669 ac_cv_prog_CC="$CC" # Let the user override the test.
671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
673 for ac_dir in $ac_dummy; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
684 if test -n "$CC"; then
685 echo "$ac_t""$CC" 1>&6
687 echo "$ac_t""no" 1>&6
690 if test -z "$CC"; then
691 # Extract the first word of "cc", so it can be a program name with args.
692 set dummy cc; ac_word=$2
693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
694 echo "configure:695: checking for $ac_word" >&5
695 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 if test -n "$CC"; then
699 ac_cv_prog_CC="$CC" # Let the user override the test.
701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
704 for ac_dir in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
716 if test $ac_prog_rejected = yes; then
717 # We found a bogon in the path, so make sure we never use it.
718 set dummy $ac_cv_prog_CC
720 if test $# -gt 0; then
721 # We chose a different compiler from the bogus one.
722 # However, it has the same basename, so the bogon will be chosen
723 # first if we set CC to just the basename; use the full file name.
725 set dummy "$ac_dir/$ac_word" "$@"
733 if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
736 echo "$ac_t""no" 1>&6
739 if test -z "$CC"; then
742 # Extract the first word of "cl", so it can be a program name with args.
743 set dummy cl; ac_word=$2
744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
745 echo "configure:746: checking for $ac_word" >&5
746 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 if test -n "$CC"; then
750 ac_cv_prog_CC="$CC" # Let the user override the test.
752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
754 for ac_dir in $ac_dummy; do
755 test -z "$ac_dir" && ac_dir=.
756 if test -f $ac_dir/$ac_word; then
765 if test -n "$CC"; then
766 echo "$ac_t""$CC" 1>&6
768 echo "$ac_t""no" 1>&6
773 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
777 echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
781 ac_cpp='$CPP $CPPFLAGS'
782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784 cross_compiling=$ac_cv_prog_cc_cross
786 cat > conftest.$ac_ext << EOF
788 #line 789 "configure"
789 #include "confdefs.h"
793 if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
794 ac_cv_prog_cc_works=yes
795 # If we can't run a trivial program, we are probably using a cross compiler.
796 if (./conftest; exit) 2>/dev/null; then
797 ac_cv_prog_cc_cross=no
799 ac_cv_prog_cc_cross=yes
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
804 ac_cv_prog_cc_works=no
808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
809 ac_cpp='$CPP $CPPFLAGS'
810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
812 cross_compiling=$ac_cv_prog_cc_cross
814 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
815 if test $ac_cv_prog_cc_works = no; then
816 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
819 echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
820 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
821 cross_compiling=$ac_cv_prog_cc_cross
823 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
824 echo "configure:825: checking whether we are using GNU C" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 cat > conftest.c <<EOF
833 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
840 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
842 if test $ac_cv_prog_gcc = yes; then
848 ac_test_CFLAGS="${CFLAGS+set}"
849 ac_save_CFLAGS="$CFLAGS"
851 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
852 echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
853 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
856 echo 'void f(){}' > conftest.c
857 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
866 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
867 if test "$ac_test_CFLAGS" = set; then
868 CFLAGS="$ac_save_CFLAGS"
869 elif test $ac_cv_prog_cc_g = yes; then
870 if test "$GCC" = yes; then
876 if test "$GCC" = yes; then
883 # Check whether --with-linker or --without-linker was given.
884 if test "${with_linker+set}" = set; then
885 withval="$with_linker"
886 echo "$ac_t""LD=$withval" 1>&6
889 if test -z "$LD" ; then LD=$CC; fi
890 echo "$ac_t""LD defaults to $LD" 1>&6
894 # Check whether --with-ccopts or --without-ccopts was given.
895 if test "${with_ccopts+set}" = set; then
896 withval="$with_ccopts"
897 echo "$ac_t""CCOPTS is $withval" 1>&6
900 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
901 echo "configure:902: checking how to run the C preprocessor" >&5
902 # On Suns, sometimes $CPP names a directory.
903 if test -n "$CPP" && test -d "$CPP"; then
906 if test -z "$CPP"; then
907 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 # This must be in double quotes, not single quotes, because CPP may get
911 # substituted into the Makefile and "${CC-cc}" will confuse make.
913 # On the NeXT, cc -E runs the code through the compiler's parser,
914 # not just through cpp.
915 cat > conftest.$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
922 { (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
924 if test -z "$ac_err"; then
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
931 CPP="${CC-cc} -E -traditional-cpp"
932 cat > conftest.$ac_ext <<EOF
933 #line 934 "configure"
934 #include "confdefs.h"
938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
939 { (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
941 if test -z "$ac_err"; then
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
948 CPP="${CC-cc} -nologo -E"
949 cat > conftest.$ac_ext <<EOF
950 #line 951 "configure"
951 #include "confdefs.h"
955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
956 { (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
958 if test -z "$ac_err"; then
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
972 ac_cv_prog_CPP="$CPP"
974 CPP="$ac_cv_prog_CPP"
976 ac_cv_prog_CPP="$CPP"
978 echo "$ac_t""$CPP" 1>&6
980 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
981 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
982 echo "configure:983: checking for linux/fs.h" >&5
983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 cat > conftest.$ac_ext <<EOF
987 #line 988 "configure"
988 #include "confdefs.h"
989 #include <linux/fs.h>
991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
992 { (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
994 if test -z "$ac_err"; then
996 eval "ac_cv_header_$ac_safe=yes"
999 echo "configure: failed program was:" >&5
1000 cat conftest.$ac_ext >&5
1002 eval "ac_cv_header_$ac_safe=no"
1006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1007 echo "$ac_t""yes" 1>&6
1010 echo "$ac_t""no" 1>&6
1014 if test "$linux_headers" != yes; then
1015 LINUX_INCLUDE='-I$(top_builddir)/include'
1021 # Check whether --with-ldopts or --without-ldopts was given.
1022 if test "${with_ldopts+set}" = set; then
1023 withval="$with_ldopts"
1024 echo "$ac_t""LDFLAGS is $withval" 1>&6
1030 # Check whether --with-root-prefix or --without-root-prefix was given.
1031 if test "${with_root_prefix+set}" = set; then
1032 withval="$with_root_prefix"
1033 root_prefix=$withval
1037 # Check whether --enable-compression or --disable-compression was given.
1038 if test "${enable_compression+set}" = set; then
1039 enableval="$enable_compression"
1040 if test "$enableval" = "no"
1042 echo "Disabling compression support"
1044 cat >> confdefs.h <<\EOF
1045 #define ENABLE_COMPRESSION 1
1048 echo "Enabling compression support"
1049 echo "WARNING: Compression support is experimental"
1053 echo "Disabling compression support by default"
1057 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1058 if test "${enable_dll_shlibs+set}" = set; then
1059 enableval="$enable_dll_shlibs"
1060 if test "$enableval" = "no"
1063 MAKEFILE_DLL=/dev/null
1064 echo "Disabling DLL shared libraries"
1067 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1070 echo "Enabling DLL shared libraries"
1074 MAKEFILE_DLL=/dev/null
1076 echo "Disabling DLL shared libraries by default"
1082 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1083 if test "${enable_elf_shlibs+set}" = set; then
1084 enableval="$enable_elf_shlibs"
1085 if test "$enableval" = "no"
1088 MAKEFILE_ELF=/dev/null
1089 echo "Disabling ELF shared libraries"
1092 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1095 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1100 echo "Enabling ELF shared libraries"
1104 MAKEFILE_ELF=/dev/null
1106 echo "Disabling ELF shared libraries by default"
1112 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1113 if test "${enable_bsd_shlibs+set}" = set; then
1114 enableval="$enable_bsd_shlibs"
1115 if test "$enableval" = "no"
1118 MAKEFILE_BSDLIB=/dev/null
1119 echo "Disabling BSD shared libraries"
1122 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1124 echo "Enabling BSD shared libraries"
1128 MAKEFILE_BSDLIB=/dev/null
1130 echo "Disabling BSD shared libraries by default"
1136 # Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1137 if test "${enable_jfs_debug+set}" = set; then
1138 enableval="$enable_jfs_debug"
1139 if test "$enableval" = "no"
1141 echo "Disabling journal debugging"
1143 cat >> confdefs.h <<\EOF
1147 echo "Enabling journal debugging"
1151 echo "Disabling journal debugging by default"
1155 # Check whether --enable-swapfs or --disable-swapfs was given.
1156 if test "${enable_swapfs+set}" = set; then
1157 enableval="$enable_swapfs"
1158 if test "$enableval" = "no"
1160 echo "Disabling swapfs support"
1163 cat >> confdefs.h <<\EOF
1164 #define ENABLE_SWAPFS 1
1168 echo "Enabling swapfs support"
1172 echo "Enabling swapfs support by default"
1173 cat >> confdefs.h <<\EOF
1174 #define ENABLE_SWAPFS 1
1183 VERSION="$E2FSPROGS_VERSION"
1184 cat >> confdefs.h <<EOF
1185 #define PACKAGE "$PACKAGE"
1188 cat >> confdefs.h <<EOF
1189 #define VERSION "$VERSION"
1195 ALL_LINGUAS="it nyc"
1196 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether ${MAKE-make} sets \${MAKE}" >&5
1198 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1199 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 cat > conftestmake <<\EOF
1204 @echo 'ac_maketemp="${MAKE}"'
1206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1207 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1208 if test -n "$ac_maketemp"; then
1209 eval ac_cv_prog_make_${ac_make}_set=yes
1211 eval ac_cv_prog_make_${ac_make}_set=no
1215 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1216 echo "$ac_t""yes" 1>&6
1219 echo "$ac_t""no" 1>&6
1220 SET_MAKE="MAKE=${MAKE-make}"
1223 # Extract the first word of "ranlib", so it can be a program name with args.
1224 set dummy ranlib; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 if test -n "$RANLIB"; then
1231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_RANLIB="ranlib"
1243 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1246 RANLIB="$ac_cv_prog_RANLIB"
1247 if test -n "$RANLIB"; then
1248 echo "$ac_t""$RANLIB" 1>&6
1250 echo "$ac_t""no" 1>&6
1253 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1254 echo "configure:1255: checking for POSIXized ISC" >&5
1255 if test -d /etc/conf/kconfig.d &&
1256 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1258 echo "$ac_t""yes" 1>&6
1259 ISC=yes # If later tests want to check for ISC.
1260 cat >> confdefs.h <<\EOF
1261 #define _POSIX_SOURCE 1
1264 if test "$GCC" = yes; then
1270 echo "$ac_t""no" 1>&6
1274 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1275 echo "configure:1276: checking for ANSI C header files" >&5
1276 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1288 { (eval echo configure:1289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1290 if test -z "$ac_err"; then
1292 ac_cv_header_stdc=yes
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1298 ac_cv_header_stdc=no
1302 if test $ac_cv_header_stdc = yes; then
1303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1310 egrep "memchr" >/dev/null 2>&1; then
1314 ac_cv_header_stdc=no
1320 if test $ac_cv_header_stdc = yes; then
1321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1328 egrep "free" >/dev/null 2>&1; then
1332 ac_cv_header_stdc=no
1338 if test $ac_cv_header_stdc = yes; then
1339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1340 if test "$cross_compiling" = yes; then
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1347 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1348 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1350 int main () { int i; for (i = 0; i < 256; i++)
1351 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1355 if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1359 echo "configure: failed program was:" >&5
1360 cat conftest.$ac_ext >&5
1362 ac_cv_header_stdc=no
1370 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1371 if test $ac_cv_header_stdc = yes; then
1372 cat >> confdefs.h <<\EOF
1373 #define STDC_HEADERS 1
1378 echo $ac_n "checking for working const""... $ac_c" 1>&6
1379 echo "configure:1380: checking for working const" >&5
1380 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1389 /* Ultrix mips cc rejects this. */
1390 typedef int charset[2]; const charset x;
1391 /* SunOS 4.1.1 cc rejects this. */
1392 char const *const *ccp;
1394 /* NEC SVR4.0.2 mips cc rejects this. */
1395 struct point {int x, y;};
1396 static struct point const zero = {0,0};
1397 /* AIX XL C 1.02.0.0 rejects this.
1398 It does not let you subtract one const X* pointer from another in an arm
1399 of an if-expression whose if-part is not a constant expression */
1400 const char *g = "string";
1401 ccp = &g + (g ? g-g : 0);
1402 /* HPUX 7.0 cc rejects these. */
1405 ccp = (char const *const *) p;
1406 { /* SCO 3.2v4 cc rejects this. */
1408 char const *s = 0 ? (char *) 0 : (char const *) 0;
1412 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1414 const int *foo = &x[0];
1417 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1418 typedef const int *iptr;
1422 { /* AIX XL C 1.02.0.0 rejects this saying
1423 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1424 struct s { int j; const int *ap[3]; };
1425 struct s *b; b->j = 5;
1427 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1433 if { (eval echo configure:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1445 echo "$ac_t""$ac_cv_c_const" 1>&6
1446 if test $ac_cv_c_const = no; then
1447 cat >> confdefs.h <<\EOF
1453 echo $ac_n "checking for inline""... $ac_c" 1>&6
1454 echo "configure:1455: checking for inline" >&5
1455 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1459 for ac_kw in inline __inline__ __inline; do
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1468 if { (eval echo configure:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1470 ac_cv_c_inline=$ac_kw; break
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1480 echo "$ac_t""$ac_cv_c_inline" 1>&6
1481 case "$ac_cv_c_inline" in
1483 no) cat >> confdefs.h <<\EOF
1487 *) cat >> confdefs.h <<EOF
1488 #define inline $ac_cv_c_inline
1493 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1494 echo "configure:1495: checking for off_t" >&5
1495 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 #include <sys/types.h>
1507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1508 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1510 ac_cv_type_off_t=yes
1518 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1519 if test $ac_cv_type_off_t = no; then
1520 cat >> confdefs.h <<\EOF
1526 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1527 echo "configure:1528: checking for size_t" >&5
1528 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 cat > conftest.$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1534 #include <sys/types.h>
1540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1541 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1543 ac_cv_type_size_t=yes
1546 ac_cv_type_size_t=no
1551 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1552 if test $ac_cv_type_size_t = no; then
1553 cat >> confdefs.h <<\EOF
1554 #define size_t unsigned
1559 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1560 # for constant arguments. Useless!
1561 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1562 echo "configure:1563: checking for working alloca.h" >&5
1563 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1571 char *p = alloca(2 * sizeof(int));
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576 ac_cv_header_alloca_h=yes
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1581 ac_cv_header_alloca_h=no
1586 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1587 if test $ac_cv_header_alloca_h = yes; then
1588 cat >> confdefs.h <<\EOF
1589 #define HAVE_ALLOCA_H 1
1594 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1595 echo "configure:1596: checking for alloca" >&5
1596 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 cat > conftest.$ac_ext <<EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1604 # define alloca __builtin_alloca
1607 # include <malloc.h>
1608 # define alloca _alloca
1611 # include <alloca.h>
1616 # ifndef alloca /* predefined by HP cc +Olibcalls */
1625 char *p = (char *) alloca(1);
1628 if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1630 ac_cv_func_alloca_works=yes
1632 echo "configure: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1635 ac_cv_func_alloca_works=no
1640 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1641 if test $ac_cv_func_alloca_works = yes; then
1642 cat >> confdefs.h <<\EOF
1643 #define HAVE_ALLOCA 1
1648 if test $ac_cv_func_alloca_works = no; then
1649 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1650 # that cause trouble. Some versions do not even contain alloca or
1651 # contain a buggy version. If you still want to use their alloca,
1652 # use ar to extract alloca.o from them instead of compiling alloca.c.
1653 ALLOCA=alloca.${ac_objext}
1654 cat >> confdefs.h <<\EOF
1659 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1660 echo "configure:1661: checking whether alloca needs Cray hooks" >&5
1661 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 cat > conftest.$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1667 #if defined(CRAY) && ! defined(CRAY2)
1674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1675 egrep "webecray" >/dev/null 2>&1; then
1686 echo "$ac_t""$ac_cv_os_cray" 1>&6
1687 if test $ac_cv_os_cray = yes; then
1688 for ac_func in _getb67 GETB67 getb67; do
1689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_func" >&5
1691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1697 /* System header to define __stub macros and hopefully few prototypes,
1698 which can conflict with char $ac_func(); below. */
1700 /* Override any gcc2 internal prototype to avoid an error. */
1701 /* We use char because int might match the return type of a gcc2
1702 builtin and then its argument prototype would still apply. */
1707 /* The GNU C library defines this for functions which it implements
1708 to always fail with ENOSYS. Some functions are actually named
1709 something starting with __ and the normal name is an alias. */
1710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1718 if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1720 eval "ac_cv_func_$ac_func=yes"
1722 echo "configure: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1725 eval "ac_cv_func_$ac_func=no"
1730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1731 echo "$ac_t""yes" 1>&6
1732 cat >> confdefs.h <<EOF
1733 #define CRAY_STACKSEG_END $ac_func
1738 echo "$ac_t""no" 1>&6
1744 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1745 echo "configure:1746: checking stack direction for C alloca" >&5
1746 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 if test "$cross_compiling" = yes; then
1750 ac_cv_c_stack_direction=0
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1755 find_stack_direction ()
1757 static char *addr = 0;
1762 return find_stack_direction ();
1765 return (&dummy > addr) ? 1 : -1;
1769 exit (find_stack_direction() < 0);
1772 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1774 ac_cv_c_stack_direction=1
1776 echo "configure: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1779 ac_cv_c_stack_direction=-1
1786 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1787 cat >> confdefs.h <<EOF
1788 #define STACK_DIRECTION $ac_cv_c_stack_direction
1793 for ac_hdr in unistd.h
1795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_hdr" >&5
1798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1807 { (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1809 if test -z "$ac_err"; then
1811 eval "ac_cv_header_$ac_safe=yes"
1814 echo "configure: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1817 eval "ac_cv_header_$ac_safe=no"
1821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1822 echo "$ac_t""yes" 1>&6
1823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1824 cat >> confdefs.h <<EOF
1825 #define $ac_tr_hdr 1
1829 echo "$ac_t""no" 1>&6
1833 for ac_func in getpagesize
1835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_func" >&5
1837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $ac_func(); below. */
1846 /* Override any gcc2 internal prototype to avoid an error. */
1847 /* We use char because int might match the return type of a gcc2
1848 builtin and then its argument prototype would still apply. */
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1864 if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1866 eval "ac_cv_func_$ac_func=yes"
1868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1871 eval "ac_cv_func_$ac_func=no"
1876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1877 echo "$ac_t""yes" 1>&6
1878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1879 cat >> confdefs.h <<EOF
1880 #define $ac_tr_func 1
1884 echo "$ac_t""no" 1>&6
1888 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1889 echo "configure:1890: checking for working mmap" >&5
1890 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1893 if test "$cross_compiling" = yes; then
1894 ac_cv_func_mmap_fixed_mapped=no
1896 cat > conftest.$ac_ext <<EOF
1897 #line 1898 "configure"
1898 #include "confdefs.h"
1900 /* Thanks to Mike Haertel and Jim Avera for this test.
1901 Here is a matrix of mmap possibilities:
1902 mmap private not fixed
1903 mmap private fixed at somewhere currently unmapped
1904 mmap private fixed at somewhere already mapped
1905 mmap shared not fixed
1906 mmap shared fixed at somewhere currently unmapped
1907 mmap shared fixed at somewhere already mapped
1908 For private mappings, we should verify that changes cannot be read()
1909 back from the file, nor mmap's back from the file at a different
1910 address. (There have been systems where private was not correctly
1911 implemented like the infamous i386 svr4.0, and systems where the
1912 VM page cache was not coherent with the filesystem buffer cache
1913 like early versions of FreeBSD and possibly contemporary NetBSD.)
1914 For shared mappings, we should conversely verify that changes get
1915 propogated back to all the places they're supposed to be.
1917 Grep wants private fixed already mapped.
1918 The main things grep needs to know about mmap are:
1919 * does it exist and is it safe to write into the mmap'd area
1920 * how to use it (BSD variants) */
1921 #include <sys/types.h>
1923 #include <sys/mman.h>
1925 /* This mess was copied from the GNU getpagesize.h. */
1926 #ifndef HAVE_GETPAGESIZE
1927 # ifdef HAVE_UNISTD_H
1928 # include <unistd.h>
1931 /* Assume that all systems that can run configure have sys/param.h. */
1932 # ifndef HAVE_SYS_PARAM_H
1933 # define HAVE_SYS_PARAM_H 1
1936 # ifdef _SC_PAGESIZE
1937 # define getpagesize() sysconf(_SC_PAGESIZE)
1938 # else /* no _SC_PAGESIZE */
1939 # ifdef HAVE_SYS_PARAM_H
1940 # include <sys/param.h>
1941 # ifdef EXEC_PAGESIZE
1942 # define getpagesize() EXEC_PAGESIZE
1943 # else /* no EXEC_PAGESIZE */
1945 # define getpagesize() NBPG * CLSIZE
1948 # endif /* no CLSIZE */
1949 # else /* no NBPG */
1951 # define getpagesize() NBPC
1952 # else /* no NBPC */
1954 # define getpagesize() PAGESIZE
1955 # endif /* PAGESIZE */
1956 # endif /* no NBPC */
1957 # endif /* no NBPG */
1958 # endif /* no EXEC_PAGESIZE */
1959 # else /* no HAVE_SYS_PARAM_H */
1960 # define getpagesize() 8192 /* punt totally */
1961 # endif /* no HAVE_SYS_PARAM_H */
1962 # endif /* no _SC_PAGESIZE */
1964 #endif /* no HAVE_GETPAGESIZE */
1967 extern "C" { void *malloc(unsigned); }
1975 char *data, *data2, *data3;
1979 pagesize = getpagesize();
1982 * First, make a file with some known garbage in it.
1984 data = malloc(pagesize);
1987 for (i = 0; i < pagesize; ++i)
1988 *(data + i) = rand();
1990 fd = creat("conftestmmap", 0600);
1993 if (write(fd, data, pagesize) != pagesize)
1998 * Next, try to mmap the file at a fixed address which
1999 * already has something else allocated at it. If we can,
2000 * also make sure that we see the same garbage.
2002 fd = open("conftestmmap", O_RDWR);
2005 data2 = malloc(2 * pagesize);
2008 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2009 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2010 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2012 for (i = 0; i < pagesize; ++i)
2013 if (*(data + i) != *(data2 + i))
2017 * Finally, make sure that changes to the mapped area
2018 * do not percolate back to the file as seen by read().
2019 * (This is a bug on some variants of i386 svr4.0.)
2021 for (i = 0; i < pagesize; ++i)
2022 *(data2 + i) = *(data2 + i) + 1;
2023 data3 = malloc(pagesize);
2026 if (read(fd, data3, pagesize) != pagesize)
2028 for (i = 0; i < pagesize; ++i)
2029 if (*(data + i) != *(data3 + i))
2032 unlink("conftestmmap");
2037 if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2039 ac_cv_func_mmap_fixed_mapped=yes
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 ac_cv_func_mmap_fixed_mapped=no
2051 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2052 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2053 cat >> confdefs.h <<\EOF
2060 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2061 unistd.h sys/param.h
2063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2065 echo "configure:2066: checking for $ac_hdr" >&5
2066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2075 { (eval echo configure:2076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2077 if test -z "$ac_err"; then
2079 eval "ac_cv_header_$ac_safe=yes"
2082 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2085 eval "ac_cv_header_$ac_safe=no"
2089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2090 echo "$ac_t""yes" 1>&6
2091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2092 cat >> confdefs.h <<EOF
2093 #define $ac_tr_hdr 1
2097 echo "$ac_t""no" 1>&6
2101 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2102 strdup __argz_count __argz_stringify __argz_next
2104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2105 echo "configure:2106: checking for $ac_func" >&5
2106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 /* System header to define __stub macros and hopefully few prototypes,
2113 which can conflict with char $ac_func(); below. */
2115 /* Override any gcc2 internal prototype to avoid an error. */
2116 /* We use char because int might match the return type of a gcc2
2117 builtin and then its argument prototype would still apply. */
2122 /* The GNU C library defines this for functions which it implements
2123 to always fail with ENOSYS. Some functions are actually named
2124 something starting with __ and the normal name is an alias. */
2125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2133 if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2135 eval "ac_cv_func_$ac_func=yes"
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2140 eval "ac_cv_func_$ac_func=no"
2145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2148 cat >> confdefs.h <<EOF
2149 #define $ac_tr_func 1
2153 echo "$ac_t""no" 1>&6
2158 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2159 for ac_func in stpcpy
2161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_func" >&5
2163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 /* System header to define __stub macros and hopefully few prototypes,
2170 which can conflict with char $ac_func(); below. */
2172 /* Override any gcc2 internal prototype to avoid an error. */
2173 /* We use char because int might match the return type of a gcc2
2174 builtin and then its argument prototype would still apply. */
2179 /* The GNU C library defines this for functions which it implements
2180 to always fail with ENOSYS. Some functions are actually named
2181 something starting with __ and the normal name is an alias. */
2182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2190 if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2192 eval "ac_cv_func_$ac_func=yes"
2194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2197 eval "ac_cv_func_$ac_func=no"
2202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2203 echo "$ac_t""yes" 1>&6
2204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2205 cat >> confdefs.h <<EOF
2206 #define $ac_tr_func 1
2210 echo "$ac_t""no" 1>&6
2215 if test "${ac_cv_func_stpcpy}" = "yes"; then
2216 cat >> confdefs.h <<\EOF
2217 #define HAVE_STPCPY 1
2222 if test $ac_cv_header_locale_h = yes; then
2223 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2224 echo "configure:2225: checking for LC_MESSAGES" >&5
2225 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2236 if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2238 am_cv_val_LC_MESSAGES=yes
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2243 am_cv_val_LC_MESSAGES=no
2248 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2249 if test $am_cv_val_LC_MESSAGES = yes; then
2250 cat >> confdefs.h <<\EOF
2251 #define HAVE_LC_MESSAGES 1
2256 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2257 echo "configure:2258: checking whether NLS is requested" >&5
2258 # Check whether --enable-nls or --disable-nls was given.
2259 if test "${enable_nls+set}" = set; then
2260 enableval="$enable_nls"
2266 echo "$ac_t""$USE_NLS" 1>&6
2269 USE_INCLUDED_LIBINTL=no
2271 if test "$USE_NLS" = "yes"; then
2272 cat >> confdefs.h <<\EOF
2273 #define ENABLE_NLS 1
2276 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2277 echo "configure:2278: checking whether included gettext is requested" >&5
2278 # Check whether --with-included-gettext or --without-included-gettext was given.
2279 if test "${with_included_gettext+set}" = set; then
2280 withval="$with_included_gettext"
2281 nls_cv_force_use_gnu_gettext=$withval
2283 nls_cv_force_use_gnu_gettext=no
2286 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2288 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2289 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2291 nls_cv_header_libgt=
2294 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2295 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2296 echo "configure:2297: checking for libintl.h" >&5
2297 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 #include <libintl.h>
2305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2306 { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2308 if test -z "$ac_err"; then
2310 eval "ac_cv_header_$ac_safe=yes"
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2316 eval "ac_cv_header_$ac_safe=no"
2320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2321 echo "$ac_t""yes" 1>&6
2322 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2323 echo "configure:2324: checking for gettext in libc" >&5
2324 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 #include <libintl.h>
2332 return (int) gettext ("")
2335 if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2337 gt_cv_func_gettext_libc=yes
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2342 gt_cv_func_gettext_libc=no
2347 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2349 if test "$gt_cv_func_gettext_libc" != "yes"; then
2350 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2351 echo "configure:2352: checking for bindtextdomain in -lintl" >&5
2352 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 ac_save_LIBS="$LIBS"
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2361 /* Override any gcc2 internal prototype to avoid an error. */
2362 /* We use char because int might match the return type of a gcc2
2363 builtin and then its argument prototype would still apply. */
2364 char bindtextdomain();
2370 if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372 eval "ac_cv_lib_$ac_lib_var=yes"
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2377 eval "ac_cv_lib_$ac_lib_var=no"
2380 LIBS="$ac_save_LIBS"
2383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2386 echo "configure:2387: checking for gettext in libintl" >&5
2387 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2391 echo "configure:2392: checking for gettext in -lintl" >&5
2392 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 ac_save_LIBS="$LIBS"
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401 /* Override any gcc2 internal prototype to avoid an error. */
2402 /* We use char because int might match the return type of a gcc2
2403 builtin and then its argument prototype would still apply. */
2410 if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2412 eval "ac_cv_lib_$ac_lib_var=yes"
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2417 eval "ac_cv_lib_$ac_lib_var=no"
2420 LIBS="$ac_save_LIBS"
2423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2425 gt_cv_func_gettext_libintl=yes
2427 echo "$ac_t""no" 1>&6
2428 gt_cv_func_gettext_libintl=no
2433 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2435 echo "$ac_t""no" 1>&6
2440 if test "$gt_cv_func_gettext_libc" = "yes" \
2441 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2442 cat >> confdefs.h <<\EOF
2443 #define HAVE_GETTEXT 1
2446 # Extract the first word of "msgfmt", so it can be a program name with args.
2447 set dummy msgfmt; ac_word=$2
2448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2449 echo "configure:2450: checking for $ac_word" >&5
2450 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2455 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2459 for ac_dir in $PATH; do
2460 test -z "$ac_dir" && ac_dir=.
2461 if test -f $ac_dir/$ac_word; then
2462 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2463 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2469 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2473 MSGFMT="$ac_cv_path_MSGFMT"
2474 if test -n "$MSGFMT"; then
2475 echo "$ac_t""$MSGFMT" 1>&6
2477 echo "$ac_t""no" 1>&6
2479 if test "$MSGFMT" != "no"; then
2480 for ac_func in dcgettext
2482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2483 echo "configure:2484: checking for $ac_func" >&5
2484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 /* System header to define __stub macros and hopefully few prototypes,
2491 which can conflict with char $ac_func(); below. */
2493 /* Override any gcc2 internal prototype to avoid an error. */
2494 /* We use char because int might match the return type of a gcc2
2495 builtin and then its argument prototype would still apply. */
2500 /* The GNU C library defines this for functions which it implements
2501 to always fail with ENOSYS. Some functions are actually named
2502 something starting with __ and the normal name is an alias. */
2503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2511 if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2513 eval "ac_cv_func_$ac_func=yes"
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2518 eval "ac_cv_func_$ac_func=no"
2523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2526 cat >> confdefs.h <<EOF
2527 #define $ac_tr_func 1
2531 echo "$ac_t""no" 1>&6
2535 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2536 set dummy gmsgfmt; ac_word=$2
2537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2538 echo "configure:2539: checking for $ac_word" >&5
2539 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2544 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2547 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2552 for ac_dir in $ac_dummy; do
2553 test -z "$ac_dir" && ac_dir=.
2554 if test -f $ac_dir/$ac_word; then
2555 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2560 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2564 GMSGFMT="$ac_cv_path_GMSGFMT"
2565 if test -n "$GMSGFMT"; then
2566 echo "$ac_t""$GMSGFMT" 1>&6
2568 echo "$ac_t""no" 1>&6
2571 # Extract the first word of "xgettext", so it can be a program name with args.
2572 set dummy xgettext; ac_word=$2
2573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_word" >&5
2575 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2580 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2584 for ac_dir in $PATH; do
2585 test -z "$ac_dir" && ac_dir=.
2586 if test -f $ac_dir/$ac_word; then
2587 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2588 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2594 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2598 XGETTEXT="$ac_cv_path_XGETTEXT"
2599 if test -n "$XGETTEXT"; then
2600 echo "$ac_t""$XGETTEXT" 1>&6
2602 echo "$ac_t""no" 1>&6
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2610 extern int _nl_msg_cat_cntr;
2611 return _nl_msg_cat_cntr
2614 if { (eval echo configure:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2619 echo "configure: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2631 echo "$ac_t""no" 1>&6
2635 if test "$CATOBJEXT" = "NONE"; then
2636 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2637 echo "configure:2638: checking whether catgets can be used" >&5
2638 # Check whether --with-catgets or --without-catgets was given.
2639 if test "${with_catgets+set}" = set; then
2640 withval="$with_catgets"
2641 nls_cv_use_catgets=$withval
2643 nls_cv_use_catgets=no
2646 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2648 if test "$nls_cv_use_catgets" = "yes"; then
2649 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2650 echo "configure:2651: checking for main in -li" >&5
2651 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 ac_save_LIBS="$LIBS"
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2665 if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2667 eval "ac_cv_lib_$ac_lib_var=yes"
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 eval "ac_cv_lib_$ac_lib_var=no"
2675 LIBS="$ac_save_LIBS"
2678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2681 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2682 cat >> confdefs.h <<EOF
2683 #define $ac_tr_lib 1
2689 echo "$ac_t""no" 1>&6
2692 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2693 echo "configure:2694: checking for catgets" >&5
2694 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2700 /* System header to define __stub macros and hopefully few prototypes,
2701 which can conflict with char catgets(); below. */
2703 /* Override any gcc2 internal prototype to avoid an error. */
2704 /* We use char because int might match the return type of a gcc2
2705 builtin and then its argument prototype would still apply. */
2710 /* The GNU C library defines this for functions which it implements
2711 to always fail with ENOSYS. Some functions are actually named
2712 something starting with __ and the normal name is an alias. */
2713 #if defined (__stub_catgets) || defined (__stub___catgets)
2721 if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2723 eval "ac_cv_func_catgets=yes"
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2728 eval "ac_cv_func_catgets=no"
2733 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2734 echo "$ac_t""yes" 1>&6
2735 cat >> confdefs.h <<\EOF
2736 #define HAVE_CATGETS 1
2739 INTLOBJS="\$(CATOBJS)"
2740 # Extract the first word of "gencat", so it can be a program name with args.
2741 set dummy gencat; ac_word=$2
2742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_word" >&5
2744 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2749 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2752 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2757 for ac_dir in $ac_dummy; do
2758 test -z "$ac_dir" && ac_dir=.
2759 if test -f $ac_dir/$ac_word; then
2760 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2765 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2769 GENCAT="$ac_cv_path_GENCAT"
2770 if test -n "$GENCAT"; then
2771 echo "$ac_t""$GENCAT" 1>&6
2773 echo "$ac_t""no" 1>&6
2775 if test "$GENCAT" != "no"; then
2776 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2777 set dummy gmsgfmt; ac_word=$2
2778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_word" >&5
2780 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2785 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2788 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2793 for ac_dir in $ac_dummy; do
2794 test -z "$ac_dir" && ac_dir=.
2795 if test -f $ac_dir/$ac_word; then
2796 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2801 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2805 GMSGFMT="$ac_cv_path_GMSGFMT"
2806 if test -n "$GMSGFMT"; then
2807 echo "$ac_t""$GMSGFMT" 1>&6
2809 echo "$ac_t""no" 1>&6
2812 if test "$GMSGFMT" = "no"; then
2813 # Extract the first word of "msgfmt", so it can be a program name with args.
2814 set dummy msgfmt; ac_word=$2
2815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_word" >&5
2817 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2822 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2826 for ac_dir in $PATH; do
2827 test -z "$ac_dir" && ac_dir=.
2828 if test -f $ac_dir/$ac_word; then
2829 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2830 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2836 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2840 GMSGFMT="$ac_cv_path_GMSGFMT"
2841 if test -n "$GMSGFMT"; then
2842 echo "$ac_t""$GMSGFMT" 1>&6
2844 echo "$ac_t""no" 1>&6
2848 # Extract the first word of "xgettext", so it can be a program name with args.
2849 set dummy xgettext; ac_word=$2
2850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2851 echo "configure:2852: checking for $ac_word" >&5
2852 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2857 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2861 for ac_dir in $PATH; do
2862 test -z "$ac_dir" && ac_dir=.
2863 if test -f $ac_dir/$ac_word; then
2864 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2865 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2871 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2875 XGETTEXT="$ac_cv_path_XGETTEXT"
2876 if test -n "$XGETTEXT"; then
2877 echo "$ac_t""$XGETTEXT" 1>&6
2879 echo "$ac_t""no" 1>&6
2882 USE_INCLUDED_LIBINTL=yes
2886 INTLDEPS='$(top_builddir)/intl/libintl.a'
2888 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2889 nls_cv_header_intl=intl/libintl.h
2890 nls_cv_header_libgt=intl/libgettext.h
2893 echo "$ac_t""no" 1>&6
2899 if test "$CATOBJEXT" = "NONE"; then
2900 nls_cv_use_gnu_gettext=yes
2904 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2905 INTLOBJS="\$(GETTOBJS)"
2906 # Extract the first word of "msgfmt", so it can be a program name with args.
2907 set dummy msgfmt; ac_word=$2
2908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2909 echo "configure:2910: checking for $ac_word" >&5
2910 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2915 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2919 for ac_dir in $PATH; do
2920 test -z "$ac_dir" && ac_dir=.
2921 if test -f $ac_dir/$ac_word; then
2922 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2923 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2929 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2933 MSGFMT="$ac_cv_path_MSGFMT"
2934 if test -n "$MSGFMT"; then
2935 echo "$ac_t""$MSGFMT" 1>&6
2937 echo "$ac_t""no" 1>&6
2940 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2941 set dummy gmsgfmt; ac_word=$2
2942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_word" >&5
2944 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2949 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2952 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2957 for ac_dir in $ac_dummy; do
2958 test -z "$ac_dir" && ac_dir=.
2959 if test -f $ac_dir/$ac_word; then
2960 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2965 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2969 GMSGFMT="$ac_cv_path_GMSGFMT"
2970 if test -n "$GMSGFMT"; then
2971 echo "$ac_t""$GMSGFMT" 1>&6
2973 echo "$ac_t""no" 1>&6
2976 # Extract the first word of "xgettext", so it can be a program name with args.
2977 set dummy xgettext; ac_word=$2
2978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_word" >&5
2980 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2985 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2989 for ac_dir in $PATH; do
2990 test -z "$ac_dir" && ac_dir=.
2991 if test -f $ac_dir/$ac_word; then
2992 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2993 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2999 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3003 XGETTEXT="$ac_cv_path_XGETTEXT"
3004 if test -n "$XGETTEXT"; then
3005 echo "$ac_t""$XGETTEXT" 1>&6
3007 echo "$ac_t""no" 1>&6
3011 USE_INCLUDED_LIBINTL=yes
3015 INTLDEPS='$(top_builddir)/intl/libintl.a'
3017 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3018 nls_cv_header_intl=intl/libintl.h
3019 nls_cv_header_libgt=intl/libgettext.h
3022 if test "$XGETTEXT" != ":"; then
3023 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3026 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3031 # We need to process the po/ directory.
3035 nls_cv_header_intl=intl/libintl.h
3036 nls_cv_header_libgt=intl/libgettext.h
3042 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3043 # because some of the sources are only built for this goal.
3044 if test "$PACKAGE" = gettext; then
3046 USE_INCLUDED_LIBINTL=yes
3049 for lang in $ALL_LINGUAS; do
3050 GMOFILES="$GMOFILES $lang.gmo"
3051 POFILES="$POFILES $lang.po"
3067 if test "x$CATOBJEXT" != "x"; then
3068 if test "x$ALL_LINGUAS" = "x"; then
3071 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3072 echo "configure:3073: checking for catalogs to be installed" >&5
3074 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3075 case "$ALL_LINGUAS" in
3076 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3079 LINGUAS=$NEW_LINGUAS
3080 echo "$ac_t""$LINGUAS" 1>&6
3083 if test -n "$LINGUAS"; then
3084 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3088 if test $ac_cv_header_locale_h = yes; then
3089 INCLUDE_LOCALE_H="#include <locale.h>"
3092 /* The system does not provide the header <locale.h>. Take care yourself. */"
3096 test -d intl || mkdir intl
3097 if test "$CATOBJEXT" = ".cat"; then
3098 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3099 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3100 echo "configure:3101: checking for linux/version.h" >&5
3101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3107 #include <linux/version.h>
3109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3110 { (eval echo configure:3111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3112 if test -z "$ac_err"; then
3114 eval "ac_cv_header_$ac_safe=yes"
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3120 eval "ac_cv_header_$ac_safe=no"
3124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3125 echo "$ac_t""yes" 1>&6
3128 echo "$ac_t""no" 1>&6
3133 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3135 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3136 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3138 if test "$PACKAGE" = "gettext"; then
3149 if test -n "$ac_aux_dir"; then
3150 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3152 if test -z "$MKINSTALLDIRS"; then
3153 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3160 test -d po || mkdir po
3161 if test "x$srcdir" != "x."; then
3162 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3163 posrcprefix="$srcdir/"
3165 posrcprefix="../$srcdir/"
3171 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3172 < $srcdir/po/POTFILES.in > po/POTFILES
3174 # Check whether --enable-profile or --disable-profile was given.
3175 if test "${enable_profile+set}" = set; then
3176 enableval="$enable_profile"
3177 if test "$enableval" = "no"
3180 MAKEFILE_PROFILE=/dev/null
3181 echo "Disabling profiling libraries"
3184 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3185 PROFILED_LIB_EXT=_p.a
3186 echo "Building profiling libraries"
3191 MAKEFILE_PROFILE=/dev/null
3192 echo "Disabling profiling libraries by default"
3198 # Check whether --enable-checker or --disable-checker was given.
3199 if test "${enable_checker+set}" = set; then
3200 enableval="$enable_checker"
3201 if test "$enableval" = "no"
3204 MAKEFILE_CHECKER=/dev/null
3205 echo "Disabling checker libraries"
3208 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3209 echo "Building checker libraries"
3214 MAKEFILE_CHECKER=/dev/null
3215 echo "Disabling checker libraries by default"
3224 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3225 if test "${enable_dynamic_e2fsck+set}" = set; then
3226 enableval="$enable_dynamic_e2fsck"
3227 if test "$enableval" = "no"
3230 echo "Building e2fsck statically"
3233 echo "Building e2fsck dynamically"
3238 echo "Building e2fsck statically by default"
3243 # Check whether --enable-fsck or --disable-fsck was given.
3244 if test "${enable_fsck+set}" = set; then
3245 enableval="$enable_fsck"
3246 if test "$enableval" = "no"
3248 FSCK_PROG='' FSCK_MAN=''
3249 echo "Not building fsck wrapper"
3251 FSCK_PROG=fsck FSCK_MAN=fsck.8
3252 echo "Building fsck wrapper"
3258 FSCK_PROG='' FSCK_MAN=''
3259 echo "Not building fsck wrapper by default"
3262 FSCK_PROG=fsck FSCK_MAN=fsck.8
3263 echo "Building fsck wrapper by default"
3270 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3272 # Check whether --enable-old-bitops or --disable-old-bitops was given.
3273 if test "${enable_old_bitops+set}" = set; then
3274 enableval="$enable_old_bitops"
3275 if test "$enableval" = "no"
3277 echo "Using new (standard) bitmask operations"
3279 cat >> confdefs.h <<\EOF
3280 #define EXT2_OLD_BITOPS 1
3283 echo "Using old (native) bitmask operations"
3288 echo "Using standard bitmask operations by default"
3293 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3294 echo "configure:3295: checking whether ${MAKE-make} sets \${MAKE}" >&5
3295 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3296 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 cat > conftestmake <<\EOF
3301 @echo 'ac_maketemp="${MAKE}"'
3303 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3304 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3305 if test -n "$ac_maketemp"; then
3306 eval ac_cv_prog_make_${ac_make}_set=yes
3308 eval ac_cv_prog_make_${ac_make}_set=no
3312 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3313 echo "$ac_t""yes" 1>&6
3316 echo "$ac_t""no" 1>&6
3317 SET_MAKE="MAKE=${MAKE-make}"
3320 # Extract the first word of "ln", so it can be a program name with args.
3321 set dummy ln; ac_word=$2
3322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3323 echo "configure:3324: checking for $ac_word" >&5
3324 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3329 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3332 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3337 for ac_dir in $ac_dummy; do
3338 test -z "$ac_dir" && ac_dir=.
3339 if test -f $ac_dir/$ac_word; then
3340 ac_cv_path_LN="$ac_dir/$ac_word"
3345 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3350 if test -n "$LN"; then
3351 echo "$ac_t""$LN" 1>&6
3353 echo "$ac_t""no" 1>&6
3356 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3357 echo "configure:3358: checking whether ln -s works" >&5
3358 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3362 if ln -s X conftestdata 2>/dev/null
3365 ac_cv_prog_LN_S="ln -s"
3370 LN_S="$ac_cv_prog_LN_S"
3371 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3372 echo "$ac_t""yes" 1>&6
3374 echo "$ac_t""no" 1>&6
3377 # Extract the first word of "mv", so it can be a program name with args.
3378 set dummy mv; ac_word=$2
3379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3380 echo "configure:3381: checking for $ac_word" >&5
3381 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3386 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3389 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3394 for ac_dir in $ac_dummy; do
3395 test -z "$ac_dir" && ac_dir=.
3396 if test -f $ac_dir/$ac_word; then
3397 ac_cv_path_MV="$ac_dir/$ac_word"
3402 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3407 if test -n "$MV"; then
3408 echo "$ac_t""$MV" 1>&6
3410 echo "$ac_t""no" 1>&6
3413 # Extract the first word of "cp", so it can be a program name with args.
3414 set dummy cp; ac_word=$2
3415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3416 echo "configure:3417: checking for $ac_word" >&5
3417 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3422 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3425 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3430 for ac_dir in $ac_dummy; do
3431 test -z "$ac_dir" && ac_dir=.
3432 if test -f $ac_dir/$ac_word; then
3433 ac_cv_path_CP="$ac_dir/$ac_word"
3438 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3443 if test -n "$CP"; then
3444 echo "$ac_t""$CP" 1>&6
3446 echo "$ac_t""no" 1>&6
3449 # Extract the first word of "rm", so it can be a program name with args.
3450 set dummy rm; ac_word=$2
3451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3452 echo "configure:3453: checking for $ac_word" >&5
3453 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3458 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3461 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3466 for ac_dir in $ac_dummy; do
3467 test -z "$ac_dir" && ac_dir=.
3468 if test -f $ac_dir/$ac_word; then
3469 ac_cv_path_RM="$ac_dir/$ac_word"
3474 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3479 if test -n "$RM"; then
3480 echo "$ac_t""$RM" 1>&6
3482 echo "$ac_t""no" 1>&6
3485 # Extract the first word of "chmod", so it can be a program name with args.
3486 set dummy chmod; ac_word=$2
3487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3488 echo "configure:3489: checking for $ac_word" >&5
3489 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3494 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3497 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3502 for ac_dir in $ac_dummy; do
3503 test -z "$ac_dir" && ac_dir=.
3504 if test -f $ac_dir/$ac_word; then
3505 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3510 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3514 CHMOD="$ac_cv_path_CHMOD"
3515 if test -n "$CHMOD"; then
3516 echo "$ac_t""$CHMOD" 1>&6
3518 echo "$ac_t""no" 1>&6
3521 # Extract the first word of "awk", so it can be a program name with args.
3522 set dummy awk; ac_word=$2
3523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3524 echo "configure:3525: checking for $ac_word" >&5
3525 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3530 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3533 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3538 for ac_dir in $ac_dummy; do
3539 test -z "$ac_dir" && ac_dir=.
3540 if test -f $ac_dir/$ac_word; then
3541 ac_cv_path_AWK="$ac_dir/$ac_word"
3546 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3550 AWK="$ac_cv_path_AWK"
3551 if test -n "$AWK"; then
3552 echo "$ac_t""$AWK" 1>&6
3554 echo "$ac_t""no" 1>&6
3557 # Extract the first word of "sed", so it can be a program name with args.
3558 set dummy sed; ac_word=$2
3559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3560 echo "configure:3561: checking for $ac_word" >&5
3561 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3566 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3569 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3574 for ac_dir in $ac_dummy; do
3575 test -z "$ac_dir" && ac_dir=.
3576 if test -f $ac_dir/$ac_word; then
3577 ac_cv_path_SED="$ac_dir/$ac_word"
3582 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3586 SED="$ac_cv_path_SED"
3587 if test -n "$SED"; then
3588 echo "$ac_t""$SED" 1>&6
3590 echo "$ac_t""no" 1>&6
3593 # Extract the first word of "perl", so it can be a program name with args.
3594 set dummy perl; ac_word=$2
3595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3596 echo "configure:3597: checking for $ac_word" >&5
3597 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3602 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3605 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3610 for ac_dir in $ac_dummy; do
3611 test -z "$ac_dir" && ac_dir=.
3612 if test -f $ac_dir/$ac_word; then
3613 ac_cv_path_PERL="$ac_dir/$ac_word"
3618 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3622 PERL="$ac_cv_path_PERL"
3623 if test -n "$PERL"; then
3624 echo "$ac_t""$PERL" 1>&6
3626 echo "$ac_t""no" 1>&6
3629 # Extract the first word of "ldconfig", so it can be a program name with args.
3630 set dummy ldconfig; ac_word=$2
3631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3632 echo "configure:3633: checking for $ac_word" >&5
3633 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3638 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3641 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3646 for ac_dir in $ac_dummy; do
3647 test -z "$ac_dir" && ac_dir=.
3648 if test -f $ac_dir/$ac_word; then
3649 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3654 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3658 LDCONFIG="$ac_cv_path_LDCONFIG"
3659 if test -n "$LDCONFIG"; then
3660 echo "$ac_t""$LDCONFIG" 1>&6
3662 echo "$ac_t""no" 1>&6
3665 echo $ac_n "checking build system type""... $ac_c" 1>&6
3666 echo "configure:3667: checking build system type" >&5
3669 case "$build_alias" in
3672 NONE) build_alias=$host_alias ;;
3673 *) build_alias=$nonopt ;;
3677 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3678 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3679 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3680 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3681 echo "$ac_t""$build" 1>&6
3683 if test $host != $build; then
3684 ac_tool_prefix=${host_alias}-
3689 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3690 set dummy ${ac_tool_prefix}ar; ac_word=$2
3691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3692 echo "configure:3693: checking for $ac_word" >&5
3693 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 if test -n "$AR"; then
3697 ac_cv_prog_AR="$AR" # Let the user override the test.
3699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3701 for ac_dir in $ac_dummy; do
3702 test -z "$ac_dir" && ac_dir=.
3703 if test -f $ac_dir/$ac_word; then
3704 ac_cv_prog_AR="${ac_tool_prefix}ar"
3712 if test -n "$AR"; then
3713 echo "$ac_t""$AR" 1>&6
3715 echo "$ac_t""no" 1>&6
3719 if test -z "$ac_cv_prog_AR"; then
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "ar", so it can be a program name with args.
3722 set dummy ar; ac_word=$2
3723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3724 echo "configure:3725: checking for $ac_word" >&5
3725 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 if test -n "$AR"; then
3729 ac_cv_prog_AR="$AR" # Let the user override the test.
3731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3733 for ac_dir in $ac_dummy; do
3734 test -z "$ac_dir" && ac_dir=.
3735 if test -f $ac_dir/$ac_word; then
3741 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3745 if test -n "$AR"; then
3746 echo "$ac_t""$AR" 1>&6
3748 echo "$ac_t""no" 1>&6
3756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_word" >&5
3760 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 if test -n "$RANLIB"; then
3764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3768 for ac_dir in $ac_dummy; do
3769 test -z "$ac_dir" && ac_dir=.
3770 if test -f $ac_dir/$ac_word; then
3771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3778 RANLIB="$ac_cv_prog_RANLIB"
3779 if test -n "$RANLIB"; then
3780 echo "$ac_t""$RANLIB" 1>&6
3782 echo "$ac_t""no" 1>&6
3786 if test -z "$ac_cv_prog_RANLIB"; then
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "ranlib", so it can be a program name with args.
3789 set dummy ranlib; ac_word=$2
3790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3791 echo "configure:3792: checking for $ac_word" >&5
3792 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 if test -n "$RANLIB"; then
3796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3800 for ac_dir in $ac_dummy; do
3801 test -z "$ac_dir" && ac_dir=.
3802 if test -f $ac_dir/$ac_word; then
3803 ac_cv_prog_RANLIB="ranlib"
3808 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3811 RANLIB="$ac_cv_prog_RANLIB"
3812 if test -n "$RANLIB"; then
3813 echo "$ac_t""$RANLIB" 1>&6
3815 echo "$ac_t""no" 1>&6
3823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3824 set dummy ${ac_tool_prefix}strip; ac_word=$2
3825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_word" >&5
3827 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 if test -n "$STRIP"; then
3831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3835 for ac_dir in $ac_dummy; do
3836 test -z "$ac_dir" && ac_dir=.
3837 if test -f $ac_dir/$ac_word; then
3838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3845 STRIP="$ac_cv_prog_STRIP"
3846 if test -n "$STRIP"; then
3847 echo "$ac_t""$STRIP" 1>&6
3849 echo "$ac_t""no" 1>&6
3853 if test -z "$ac_cv_prog_STRIP"; then
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "strip", so it can be a program name with args.
3856 set dummy strip; ac_word=$2
3857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3858 echo "configure:3859: checking for $ac_word" >&5
3859 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 if test -n "$STRIP"; then
3863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3867 for ac_dir in $ac_dummy; do
3868 test -z "$ac_dir" && ac_dir=.
3869 if test -f $ac_dir/$ac_word; then
3870 ac_cv_prog_STRIP="strip"
3875 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3878 STRIP="$ac_cv_prog_STRIP"
3879 if test -n "$STRIP"; then
3880 echo "$ac_t""$STRIP" 1>&6
3882 echo "$ac_t""no" 1>&6
3890 # Find a good install program. We prefer a C program (faster),
3891 # so one script is as good as another. But avoid the broken or
3892 # incompatible versions:
3893 # SysV /etc/install, /usr/sbin/install
3894 # SunOS /usr/etc/install
3895 # IRIX /sbin/install
3897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900 # ./install, which can be erroneously created by make from ./install.sh.
3901 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3902 echo "configure:3903: checking for a BSD compatible install" >&5
3903 if test -z "$INSTALL"; then
3904 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3908 for ac_dir in $PATH; do
3909 # Account for people who put trailing slashes in PATH elements.
3911 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3913 # OSF1 and SCO ODT 3.0 have their own names for install.
3914 # Don't use installbsd from OSF since it installs stuff as root
3916 for ac_prog in ginstall scoinst install; do
3917 if test -f $ac_dir/$ac_prog; then
3918 if test $ac_prog = install &&
3919 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3920 # AIX install. It has an incompatible calling convention.
3923 ac_cv_path_install="$ac_dir/$ac_prog -c"
3934 if test "${ac_cv_path_install+set}" = set; then
3935 INSTALL="$ac_cv_path_install"
3937 # As a last resort, use the slow shell script. We don't cache a
3938 # path for INSTALL within a source directory, because that will
3939 # break other packages using the cache if that directory is
3940 # removed, or if the path is relative.
3941 INSTALL="$ac_install_sh"
3944 echo "$ac_t""$INSTALL" 1>&6
3946 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3947 # It thinks the first close brace ends the variable substitution.
3948 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3950 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3952 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3954 # See if we need a separate native compiler.
3955 if test $cross_compiling = no; then
3959 for ac_prog in gcc cc
3961 # Extract the first word of "$ac_prog", so it can be a program name with args.
3962 set dummy $ac_prog; ac_word=$2
3963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3964 echo "configure:3965: checking for $ac_word" >&5
3965 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 if test -n "$BUILD_CC"; then
3969 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3973 for ac_dir in $ac_dummy; do
3974 test -z "$ac_dir" && ac_dir=.
3975 if test -f $ac_dir/$ac_word; then
3976 ac_cv_prog_BUILD_CC="$ac_prog"
3983 BUILD_CC="$ac_cv_prog_BUILD_CC"
3984 if test -n "$BUILD_CC"; then
3985 echo "$ac_t""$BUILD_CC" 1>&6
3987 echo "$ac_t""no" 1>&6
3990 test -n "$BUILD_CC" && break
3994 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
3996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3998 echo "configure:3999: checking for $ac_hdr" >&5
3999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4008 { (eval echo configure:4009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4010 if test -z "$ac_err"; then
4012 eval "ac_cv_header_$ac_safe=yes"
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4018 eval "ac_cv_header_$ac_safe=no"
4022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4023 echo "$ac_t""yes" 1>&6
4024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4025 cat >> confdefs.h <<EOF
4026 #define $ac_tr_hdr 1
4030 echo "$ac_t""no" 1>&6
4034 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4035 echo "configure:4036: checking for vprintf" >&5
4036 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 /* System header to define __stub macros and hopefully few prototypes,
4043 which can conflict with char vprintf(); below. */
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 /* We use char because int might match the return type of a gcc2
4047 builtin and then its argument prototype would still apply. */
4052 /* The GNU C library defines this for functions which it implements
4053 to always fail with ENOSYS. Some functions are actually named
4054 something starting with __ and the normal name is an alias. */
4055 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4065 eval "ac_cv_func_vprintf=yes"
4067 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4070 eval "ac_cv_func_vprintf=no"
4075 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4076 echo "$ac_t""yes" 1>&6
4077 cat >> confdefs.h <<\EOF
4078 #define HAVE_VPRINTF 1
4082 echo "$ac_t""no" 1>&6
4085 if test "$ac_cv_func_vprintf" != yes; then
4086 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4087 echo "configure:4088: checking for _doprnt" >&5
4088 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 /* System header to define __stub macros and hopefully few prototypes,
4095 which can conflict with char _doprnt(); below. */
4097 /* Override any gcc2 internal prototype to avoid an error. */
4098 /* We use char because int might match the return type of a gcc2
4099 builtin and then its argument prototype would still apply. */
4104 /* The GNU C library defines this for functions which it implements
4105 to always fail with ENOSYS. Some functions are actually named
4106 something starting with __ and the normal name is an alias. */
4107 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4115 if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4117 eval "ac_cv_func__doprnt=yes"
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4122 eval "ac_cv_func__doprnt=no"
4127 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4129 cat >> confdefs.h <<\EOF
4130 #define HAVE_DOPRNT 1
4134 echo "$ac_t""no" 1>&6
4139 echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
4140 echo "configure:4141: checking whether struct dirent has a d_namlen field" >&5
4141 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4144 cat > conftest.$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4147 #include <sys/types.h>
4150 struct dirent de; de.d_namlen = 0;
4153 if { (eval echo configure:4154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4155 e2fsprogs_cv_struct_d_namlen=yes
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4160 e2fsprogs_cv_struct_d_namlen=no
4165 echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4166 if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4167 cat >> confdefs.h <<\EOF
4168 #define HAVE_DIRENT_NAMLEN 1
4172 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4173 echo "configure:4174: checking whether llseek declared in unistd.h" >&5
4174 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+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 extern int llseek(int);
4185 if { (eval echo configure:4186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4187 e2fsprogs_cv_have_llseek_prototype=no
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4192 e2fsprogs_cv_have_llseek_prototype=yes
4197 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4198 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4199 cat >> confdefs.h <<\EOF
4200 #define HAVE_LLSEEK_PROTOTYPE 1
4204 echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
4205 echo "configure:4206: checking whether lseek64 declared in unistd.h" >&5
4206 if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 #define _LARGEFILE_SOURCE
4213 #define _LARGEFILE64_SOURCE
4216 extern int lseek64(int);
4219 if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4221 e2fsprogs_cv_have_lseek64_prototype=no
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 e2fsprogs_cv_have_lseek64_prototype=yes
4231 echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4232 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4233 cat >> confdefs.h <<\EOF
4234 #define HAVE_LSEEK64_PROTOTYPE 1
4238 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4239 # if cross-compiling, with no cached values, just assume something common.
4240 ac_cv_sizeof_short=2
4243 ac_cv_sizeof_long_long=8
4244 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
4246 echo $ac_n "checking size of short""... $ac_c" 1>&6
4247 echo "configure:4248: checking size of short" >&5
4248 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4251 if test "$cross_compiling" = yes; then
4252 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4258 #include <sys/types.h>
4261 FILE *f=fopen("conftestval", "w");
4263 fprintf(f, "%d\n", sizeof(short));
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4269 ac_cv_sizeof_short=`cat conftestval`
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4274 ac_cv_sizeof_short=0
4280 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4281 cat >> confdefs.h <<EOF
4282 #define SIZEOF_SHORT $ac_cv_sizeof_short
4286 echo $ac_n "checking size of int""... $ac_c" 1>&6
4287 echo "configure:4288: checking size of int" >&5
4288 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 if test "$cross_compiling" = yes; then
4292 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4294 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4298 #include <sys/types.h>
4301 FILE *f=fopen("conftestval", "w");
4303 fprintf(f, "%d\n", sizeof(int));
4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4309 ac_cv_sizeof_int=`cat conftestval`
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4320 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4321 cat >> confdefs.h <<EOF
4322 #define SIZEOF_INT $ac_cv_sizeof_int
4326 echo $ac_n "checking size of long""... $ac_c" 1>&6
4327 echo "configure:4328: checking size of long" >&5
4328 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 if test "$cross_compiling" = yes; then
4332 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4338 #include <sys/types.h>
4341 FILE *f=fopen("conftestval", "w");
4343 fprintf(f, "%d\n", sizeof(long));
4347 if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4349 ac_cv_sizeof_long=`cat conftestval`
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4360 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4361 cat >> confdefs.h <<EOF
4362 #define SIZEOF_LONG $ac_cv_sizeof_long
4366 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4367 echo "configure:4368: checking size of long long" >&5
4368 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4371 if test "$cross_compiling" = yes; then
4372 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4378 #include <sys/types.h>
4381 FILE *f=fopen("conftestval", "w");
4383 fprintf(f, "%d\n", sizeof(long long));
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4389 ac_cv_sizeof_long_long=`cat conftestval`
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 ac_cv_sizeof_long_long=0
4400 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4401 cat >> confdefs.h <<EOF
4402 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4406 SIZEOF_SHORT=$ac_cv_sizeof_short
4407 SIZEOF_INT=$ac_cv_sizeof_int
4408 SIZEOF_LONG=$ac_cv_sizeof_long
4409 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4414 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4415 echo "configure:4416: checking whether byte ordering is bigendian" >&5
4416 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 ac_cv_c_bigendian=unknown
4420 # See if sys/param.h defines the BYTE_ORDER macro.
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 #include <sys/types.h>
4425 #include <sys/param.h>
4428 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4433 if { (eval echo configure:4434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4435 # It does; now see whether it defined to BIG_ENDIAN or not.
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4439 #include <sys/types.h>
4440 #include <sys/param.h>
4443 #if BYTE_ORDER != BIG_ENDIAN
4448 if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4450 ac_cv_c_bigendian=yes
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4455 ac_cv_c_bigendian=no
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4463 if test $ac_cv_c_bigendian = unknown; then
4464 if test "$cross_compiling" = yes; then
4465 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4467 cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4471 /* Are we little or big endian? From Harbison&Steele. */
4475 char c[sizeof (long)];
4478 exit (u.c[sizeof (long) - 1] == 1);
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4483 ac_cv_c_bigendian=no
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4488 ac_cv_c_bigendian=yes
4496 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4497 if test $ac_cv_c_bigendian = yes; then
4498 cat >> confdefs.h <<\EOF
4499 #define WORDS_BIGENDIAN 1
4504 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
4505 echo "configure:4506: checking whether struct stat has a st_flags field" >&5
4506 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 #include <sys/stat.h>
4514 struct stat stat; stat.st_flags = 0;
4517 if { (eval echo configure:4518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4519 e2fsprogs_cv_struct_st_flags=yes
4521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4524 e2fsprogs_cv_struct_st_flags=no
4529 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4530 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
4531 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
4532 echo "configure:4533: checking whether st_flags field is useful" >&5
4533 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 #include <sys/stat.h>
4541 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4544 if { (eval echo configure:4545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4546 e2fsprogs_cv_struct_st_flags_immut=yes
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4551 e2fsprogs_cv_struct_st_flags_immut=no
4556 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4557 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4558 cat >> confdefs.h <<\EOF
4559 #define HAVE_STAT_FLAGS 1
4564 for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
4566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4567 echo "configure:4568: checking for $ac_func" >&5
4568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4574 /* System header to define __stub macros and hopefully few prototypes,
4575 which can conflict with char $ac_func(); below. */
4577 /* Override any gcc2 internal prototype to avoid an error. */
4578 /* We use char because int might match the return type of a gcc2
4579 builtin and then its argument prototype would still apply. */
4584 /* The GNU C library defines this for functions which it implements
4585 to always fail with ENOSYS. Some functions are actually named
4586 something starting with __ and the normal name is an alias. */
4587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 eval "ac_cv_func_$ac_func=yes"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4602 eval "ac_cv_func_$ac_func=no"
4607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4608 echo "$ac_t""yes" 1>&6
4609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4610 cat >> confdefs.h <<EOF
4611 #define $ac_tr_func 1
4615 echo "$ac_t""no" 1>&6
4620 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4621 echo "configure:4622: checking for socket in -lsocket" >&5
4622 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 ac_save_LIBS="$LIBS"
4627 LIBS="-lsocket $LIBS"
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4631 /* Override any gcc2 internal prototype to avoid an error. */
4632 /* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4642 eval "ac_cv_lib_$ac_lib_var=yes"
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 eval "ac_cv_lib_$ac_lib_var=no"
4650 LIBS="$ac_save_LIBS"
4653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4654 echo "$ac_t""yes" 1>&6
4657 echo "$ac_t""no" 1>&6
4661 echo $ac_n "checking for optreset""... $ac_c" 1>&6
4662 echo "configure:4663: checking for optreset" >&5
4663 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4666 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4672 egrep "optreset" >/dev/null 2>&1; then
4674 ac_cv_have_optreset=yes
4677 ac_cv_have_optreset=no
4682 echo "$ac_t""$ac_cv_have_optreset" 1>&6
4683 if test $ac_cv_have_optreset = yes; then
4684 cat >> confdefs.h <<\EOF
4685 #define HAVE_OPTRESET 1
4691 cat >> confdefs.h <<\EOF
4692 #define HAVE_EXT2_IOCTLS 1
4699 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4701 echo "On $host_os systems, root_prefix defaults to ''"
4707 if test "$prefix" = NONE ; then
4709 echo "On $host_os systems, prefix defaults to /usr"
4713 if test "$root_prefix" = NONE ; then
4714 if test "$prefix" = NONE ; then
4715 root_prefix="$ac_default_prefix"
4717 root_prefix="$prefix"
4721 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
4722 echo "configure:4723: checking whether linker accepts -static" >&5
4723 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4726 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4735 if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4737 ac_cv_e2fsprogs_use_static=yes
4739 echo "configure: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4742 ac_cv_e2fsprogs_use_static=no
4745 LDFLAGS=$SAVE_LDFLAGS
4750 ac_cv_e2fsprogs_use_static=no
4753 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
4755 if test $ac_cv_e2fsprogs_use_static = yes; then
4756 LDFLAG_STATIC=-static
4759 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4760 ET_DIR=`cd ${srcdir}/lib/et; pwd`
4763 if test "$cross_compiling" = yes ; then
4769 test -d lib || mkdir lib
4770 test -d include || mkdir include
4771 test -d include/linux || mkdir include/linux
4772 test -d include/asm || mkdir include/asm
4774 if test -d ${srcdir}/resize ; then
4775 rmakefile=resize/Makefile
4778 cat > confcache <<\EOF
4779 # This file is a shell script that caches the results of configure
4780 # tests run on this system so they can be shared between configure
4781 # scripts and configure runs. It is not useful on other systems.
4782 # If it contains results you don't want to keep, you may remove or edit it.
4784 # By default, configure uses ./config.cache as the cache file,
4785 # creating it if it does not exist already. You can give configure
4786 # the --cache-file=FILE option to use a different cache file; that is
4787 # what configure does when it calls configure scripts in
4788 # subdirectories, so they share the cache.
4789 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4790 # config.status only pays attention to the cache file if you give it the
4791 # --recheck option to rerun configure.
4794 # The following way of writing the cache mishandles newlines in values,
4795 # but we know of no workaround that is simple, portable, and efficient.
4796 # So, don't put newlines in cache variables' values.
4797 # Ultrix sh set writes to stderr and can't be redirected directly,
4798 # and sets the high bit in the cache file unless we assign to the vars.
4800 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4802 # `set' does not quote correctly, so add quotes (double-quote substitution
4803 # turns \\\\ into \\, and sed turns \\ into \).
4805 -e "s/'/'\\\\''/g" \
4806 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4809 # `set' quotes correctly as required by POSIX, so do not add quotes.
4810 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4813 if cmp -s $cache_file confcache; then
4816 if test -w $cache_file; then
4817 echo "updating cache $cache_file"
4818 cat confcache > $cache_file
4820 echo "not updating unwritable cache $cache_file"
4825 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4828 # Let make expand exec_prefix.
4829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4831 # Any assignment to VPATH causes Sun make to only execute
4832 # the first set of double-colon rules, so remove it if not needed.
4833 # If there is a colon in the path, we need to keep it.
4834 if test "x$srcdir" = x.; then
4835 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4838 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4840 # Transform confdefs.h into DEFS.
4841 # Protect against shell expansion while executing Makefile rules.
4842 # Protect against Makefile macro expansion.
4843 cat > conftest.defs <<\EOF
4844 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4845 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4850 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4854 # Without the "./", some shells look in PATH for config.status.
4855 : ${CONFIG_STATUS=./config.status}
4857 echo creating $CONFIG_STATUS
4858 rm -f $CONFIG_STATUS
4859 cat > $CONFIG_STATUS <<EOF
4861 # Generated automatically by configure.
4862 # Run this file to recreate the current configuration.
4863 # This directory was configured as follows,
4864 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4866 # $0 $ac_configure_args
4868 # Compiler output produced by configure, useful for debugging
4869 # configure, is in ./config.log if it exists.
4871 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4874 case "\$ac_option" in
4875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4876 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4877 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4878 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4879 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4881 -help | --help | --hel | --he | --h)
4882 echo "\$ac_cs_usage"; exit 0 ;;
4883 *) echo "\$ac_cs_usage"; exit 1 ;;
4887 ac_given_srcdir=$srcdir
4888 ac_given_INSTALL="$INSTALL"
4890 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
4891 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4892 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
4893 tests/progs/Makefile $rmakefile doc/Makefile
4894 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4896 cat >> $CONFIG_STATUS <<EOF
4898 # Protect against being on the right side of a sed subst in config.status.
4899 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4900 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4904 s%@CFLAGS@%$CFLAGS%g
4905 s%@CPPFLAGS@%$CPPFLAGS%g
4906 s%@CXXFLAGS@%$CXXFLAGS%g
4907 s%@FFLAGS@%$FFLAGS%g
4909 s%@LDFLAGS@%$LDFLAGS%g
4911 s%@exec_prefix@%$exec_prefix%g
4912 s%@prefix@%$prefix%g
4913 s%@program_transform_name@%$program_transform_name%g
4914 s%@bindir@%$bindir%g
4915 s%@sbindir@%$sbindir%g
4916 s%@libexecdir@%$libexecdir%g
4917 s%@datadir@%$datadir%g
4918 s%@sysconfdir@%$sysconfdir%g
4919 s%@sharedstatedir@%$sharedstatedir%g
4920 s%@localstatedir@%$localstatedir%g
4921 s%@libdir@%$libdir%g
4922 s%@includedir@%$includedir%g
4923 s%@oldincludedir@%$oldincludedir%g
4924 s%@infodir@%$infodir%g
4925 s%@mandir@%$mandir%g
4926 /@MCONFIG@/r $MCONFIG
4928 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4929 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4930 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
4932 s%@host_alias@%$host_alias%g
4933 s%@host_cpu@%$host_cpu%g
4934 s%@host_vendor@%$host_vendor%g
4935 s%@host_os@%$host_os%g
4939 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
4940 s%@DLL_CMT@%$DLL_CMT%g
4941 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
4943 s%@ELF_CMT@%$ELF_CMT%g
4944 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
4946 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4947 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4948 s%@MAKEFILE_BSDLIB@%%g
4949 s%@SWAPFS_CMT@%$SWAPFS_CMT%g
4950 s%@PACKAGE@%$PACKAGE%g
4951 s%@VERSION@%$VERSION%g
4952 s%@SET_MAKE@%$SET_MAKE%g
4953 s%@RANLIB@%$RANLIB%g
4954 s%@ALLOCA@%$ALLOCA%g
4955 s%@USE_NLS@%$USE_NLS%g
4956 s%@MSGFMT@%$MSGFMT%g
4957 s%@GMSGFMT@%$GMSGFMT%g
4958 s%@XGETTEXT@%$XGETTEXT%g
4959 s%@GENCAT@%$GENCAT%g
4960 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4961 s%@CATALOGS@%$CATALOGS%g
4962 s%@CATOBJEXT@%$CATOBJEXT%g
4963 s%@DATADIRNAME@%$DATADIRNAME%g
4964 s%@GMOFILES@%$GMOFILES%g
4965 s%@INSTOBJEXT@%$INSTOBJEXT%g
4966 s%@INTLDEPS@%$INTLDEPS%g
4967 s%@INTLLIBS@%$INTLLIBS%g
4968 s%@INTLOBJS@%$INTLOBJS%g
4969 s%@POFILES@%$POFILES%g
4971 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4973 s%@GT_YES@%$GT_YES%g
4974 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4976 s%@PROFILE_CMT@%$PROFILE_CMT%g
4977 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4978 s%@MAKEFILE_PROFILE@%%g
4979 s%@CHECKER_CMT@%$CHECKER_CMT%g
4980 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4981 s%@MAKEFILE_CHECKER@%%g
4982 s%@LIB_EXT@%$LIB_EXT%g
4983 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4984 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
4985 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
4986 s%@FSCK_PROG@%$FSCK_PROG%g
4987 s%@FSCK_MAN@%$FSCK_MAN%g
4988 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4989 s%@MAKEFILE_LIBRARY@%%g
4990 s%@BINARY_TYPE@%$BINARY_TYPE%g
5000 s%@LDCONFIG@%$LDCONFIG%g
5002 s%@build_alias@%$build_alias%g
5003 s%@build_cpu@%$build_cpu%g
5004 s%@build_vendor@%$build_vendor%g
5005 s%@build_os@%$build_os%g
5008 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5009 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5010 s%@INSTALL_DATA@%$INSTALL_DATA%g
5011 s%@BUILD_CC@%$BUILD_CC%g
5012 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5013 s%@SIZEOF_INT@%$SIZEOF_INT%g
5014 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
5015 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
5016 s%@SOCKET_LIB@%$SOCKET_LIB%g
5017 s%@root_prefix@%$root_prefix%g
5018 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
5019 s%@SS_DIR@%$SS_DIR%g
5020 s%@ET_DIR@%$ET_DIR%g
5021 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5026 cat >> $CONFIG_STATUS <<\EOF
5028 # Split the substitutions into bite-sized pieces for seds with
5029 # small command number limits, like on Digital OSF/1 and HP-UX.
5030 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5031 ac_file=1 # Number of current file.
5032 ac_beg=1 # First line for current file.
5033 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5036 while $ac_more_lines; do
5037 if test $ac_beg -gt 1; then
5038 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5040 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5042 if test ! -s conftest.s$ac_file; then
5044 rm -f conftest.s$ac_file
5046 if test -z "$ac_sed_cmds"; then
5047 ac_sed_cmds="sed -f conftest.s$ac_file"
5049 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5051 ac_file=`expr $ac_file + 1`
5053 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5056 if test -z "$ac_sed_cmds"; then
5061 cat >> $CONFIG_STATUS <<EOF
5063 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
5064 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5065 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
5066 tests/progs/Makefile $rmakefile doc/Makefile
5067 intl/Makefile po/Makefile.in"}
5069 cat >> $CONFIG_STATUS <<\EOF
5070 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5073 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5074 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5075 *) ac_file_in="${ac_file}.in" ;;
5078 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5080 # Remove last slash and all that follows it. Not all systems have dirname.
5081 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5083 # The file is in a subdirectory.
5084 test ! -d "$ac_dir" && mkdir "$ac_dir"
5085 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5086 # A "../" for each directory in $ac_dir_suffix.
5087 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5089 ac_dir_suffix= ac_dots=
5092 case "$ac_given_srcdir" in
5094 if test -z "$ac_dots"; then top_srcdir=.
5095 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5096 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5098 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5099 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5102 case "$ac_given_INSTALL" in
5103 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5104 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5107 echo creating "$ac_file"
5109 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5111 *Makefile*) ac_comsub="1i\\
5112 # $configure_input" ;;
5116 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5118 s%@configure_input@%$configure_input%g
5119 s%@srcdir@%$srcdir%g
5120 s%@top_srcdir@%$top_srcdir%g
5121 s%@INSTALL@%$INSTALL%g
5122 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5128 cat >> $CONFIG_STATUS <<EOF
5129 ac_sources="$nls_cv_header_libgt"
5130 ac_dests="$nls_cv_header_intl"
5133 cat >> $CONFIG_STATUS <<\EOF
5134 srcdir=$ac_given_srcdir
5135 while test -n "$ac_sources"; do
5136 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5137 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5139 echo "linking $srcdir/$ac_source to $ac_dest"
5141 if test ! -r $srcdir/$ac_source; then
5142 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5146 # Make relative symlinks.
5147 # Remove last slash and all that follows it. Not all systems have dirname.
5148 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5149 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5150 # The dest file is in a subdirectory.
5151 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5152 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5153 # A "../" for each directory in $ac_dest_dir_suffix.
5154 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5156 ac_dest_dir_suffix= ac_dots=
5160 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5161 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5164 # Make a symlink if possible; otherwise try a hard link.
5165 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5166 ln $srcdir/$ac_source $ac_dest; then :
5168 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5172 cat >> $CONFIG_STATUS <<EOF
5176 cat >> $CONFIG_STATUS <<\EOF
5177 case "$CONFIG_FILES" in *po/Makefile.in*)
5178 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5183 chmod +x $CONFIG_STATUS
5184 rm -fr confdefs* $ac_clean_files
5185 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1