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 --enable-nls Turn on Native Language Support"
37 --with-included-gettext use the GNU gettext library included here"
39 --with-catgets use catgets functions if available"
41 --enable-profile build profiling libraries"
43 --enable-checker build checker libraries"
45 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
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
899 CFLAGS="$CFLAGS $withval"
904 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
905 echo "configure:906: checking how to run the C preprocessor" >&5
906 # On Suns, sometimes $CPP names a directory.
907 if test -n "$CPP" && test -d "$CPP"; then
910 if test -z "$CPP"; then
911 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
914 # This must be in double quotes, not single quotes, because CPP may get
915 # substituted into the Makefile and "${CC-cc}" will confuse make.
917 # On the NeXT, cc -E runs the code through the compiler's parser,
918 # not just through cpp.
919 cat > conftest.$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
926 { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
928 if test -z "$ac_err"; then
932 echo "configure: failed program was:" >&5
933 cat conftest.$ac_ext >&5
935 CPP="${CC-cc} -E -traditional-cpp"
936 cat > conftest.$ac_ext <<EOF
937 #line 938 "configure"
938 #include "confdefs.h"
942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
943 { (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
945 if test -z "$ac_err"; then
949 echo "configure: failed program was:" >&5
950 cat conftest.$ac_ext >&5
952 CPP="${CC-cc} -nologo -E"
953 cat > conftest.$ac_ext <<EOF
954 #line 955 "configure"
955 #include "confdefs.h"
959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
960 { (eval echo configure:961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
962 if test -z "$ac_err"; then
966 echo "configure: failed program was:" >&5
967 cat conftest.$ac_ext >&5
976 ac_cv_prog_CPP="$CPP"
978 CPP="$ac_cv_prog_CPP"
980 ac_cv_prog_CPP="$CPP"
982 echo "$ac_t""$CPP" 1>&6
984 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
985 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
986 echo "configure:987: checking for linux/fs.h" >&5
987 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 cat > conftest.$ac_ext <<EOF
991 #line 992 "configure"
992 #include "confdefs.h"
993 #include <linux/fs.h>
995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
996 { (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
998 if test -z "$ac_err"; then
1000 eval "ac_cv_header_$ac_safe=yes"
1003 echo "configure: failed program was:" >&5
1004 cat conftest.$ac_ext >&5
1006 eval "ac_cv_header_$ac_safe=no"
1010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1011 echo "$ac_t""yes" 1>&6
1014 echo "$ac_t""no" 1>&6
1018 if test "$linux_headers" != yes; then
1019 LINUX_INCLUDE='-I$(top_builddir)/include'
1025 # Check whether --with-ldopts or --without-ldopts was given.
1026 if test "${with_ldopts+set}" = set; then
1027 withval="$with_ldopts"
1028 echo "$ac_t""LDFLAGS is $withval" 1>&6
1034 # Check whether --with-root-prefix or --without-root-prefix was given.
1035 if test "${with_root_prefix+set}" = set; then
1036 withval="$with_root_prefix"
1037 root_prefix=$withval
1041 # Check whether --enable-compression or --disable-compression was given.
1042 if test "${enable_compression+set}" = set; then
1043 enableval="$enable_compression"
1044 if test "$enableval" = "no"
1046 echo "Disabling compression support"
1048 cat >> confdefs.h <<\EOF
1049 #define ENABLE_COMPRESSION 1
1052 echo "Enabling compression support"
1053 echo "WARNING: Compression support is experimental"
1057 echo "Disabling compression support by default"
1061 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1062 if test "${enable_dll_shlibs+set}" = set; then
1063 enableval="$enable_dll_shlibs"
1064 if test "$enableval" = "no"
1067 MAKEFILE_DLL=/dev/null
1068 echo "Disabling DLL shared libraries"
1071 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1074 echo "Enabling DLL shared libraries"
1078 MAKEFILE_DLL=/dev/null
1080 echo "Disabling DLL shared libraries by default"
1086 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1087 if test "${enable_elf_shlibs+set}" = set; then
1088 enableval="$enable_elf_shlibs"
1089 if test "$enableval" = "no"
1092 MAKEFILE_ELF=/dev/null
1093 echo "Disabling ELF shared libraries"
1096 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1099 echo "Enabling ELF shared libraries"
1103 MAKEFILE_ELF=/dev/null
1105 echo "Disabling ELF shared libraries by default"
1111 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1112 if test "${enable_bsd_shlibs+set}" = set; then
1113 enableval="$enable_bsd_shlibs"
1114 if test "$enableval" = "no"
1117 MAKEFILE_BSDLIB=/dev/null
1118 echo "Disabling BSD shared libraries"
1121 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1123 echo "Enabling BSD shared libraries"
1127 MAKEFILE_BSDLIB=/dev/null
1129 echo "Disabling BSD shared libraries by default"
1135 # Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1136 if test "${enable_jfs_debug+set}" = set; then
1137 enableval="$enable_jfs_debug"
1138 if test "$enableval" = "no"
1140 echo "Disabling journal debugging"
1142 cat >> confdefs.h <<\EOF
1146 echo "Enabling journal debugging"
1150 echo "Disabling journal debugging by default"
1155 VERSION="$E2FSPROGS_VERSION"
1156 cat >> confdefs.h <<EOF
1157 #define PACKAGE "$PACKAGE"
1160 cat >> confdefs.h <<EOF
1161 #define VERSION "$VERSION"
1167 ALL_LINGUAS="it nyc"
1168 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether ${MAKE-make} sets \${MAKE}" >&5
1170 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1171 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 cat > conftestmake <<\EOF
1176 @echo 'ac_maketemp="${MAKE}"'
1178 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1179 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1180 if test -n "$ac_maketemp"; then
1181 eval ac_cv_prog_make_${ac_make}_set=yes
1183 eval ac_cv_prog_make_${ac_make}_set=no
1187 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1188 echo "$ac_t""yes" 1>&6
1191 echo "$ac_t""no" 1>&6
1192 SET_MAKE="MAKE=${MAKE-make}"
1195 # Extract the first word of "ranlib", so it can be a program name with args.
1196 set dummy ranlib; ac_word=$2
1197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1198 echo "configure:1199: checking for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 if test -n "$RANLIB"; then
1203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_RANLIB="ranlib"
1215 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1218 RANLIB="$ac_cv_prog_RANLIB"
1219 if test -n "$RANLIB"; then
1220 echo "$ac_t""$RANLIB" 1>&6
1222 echo "$ac_t""no" 1>&6
1225 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1226 echo "configure:1227: checking for POSIXized ISC" >&5
1227 if test -d /etc/conf/kconfig.d &&
1228 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1230 echo "$ac_t""yes" 1>&6
1231 ISC=yes # If later tests want to check for ISC.
1232 cat >> confdefs.h <<\EOF
1233 #define _POSIX_SOURCE 1
1236 if test "$GCC" = yes; then
1242 echo "$ac_t""no" 1>&6
1246 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1247 echo "configure:1248: checking for ANSI C header files" >&5
1248 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 cat > conftest.$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1260 { (eval echo configure:1261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1262 if test -z "$ac_err"; then
1264 ac_cv_header_stdc=yes
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1270 ac_cv_header_stdc=no
1274 if test $ac_cv_header_stdc = yes; then
1275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1282 egrep "memchr" >/dev/null 2>&1; then
1286 ac_cv_header_stdc=no
1292 if test $ac_cv_header_stdc = yes; then
1293 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1300 egrep "free" >/dev/null 2>&1; then
1304 ac_cv_header_stdc=no
1310 if test $ac_cv_header_stdc = yes; then
1311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1312 if test "$cross_compiling" = yes; then
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1319 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1320 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1322 int main () { int i; for (i = 0; i < 256; i++)
1323 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1327 if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1334 ac_cv_header_stdc=no
1342 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1343 if test $ac_cv_header_stdc = yes; then
1344 cat >> confdefs.h <<\EOF
1345 #define STDC_HEADERS 1
1350 echo $ac_n "checking for working const""... $ac_c" 1>&6
1351 echo "configure:1352: checking for working const" >&5
1352 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 cat > conftest.$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1361 /* Ultrix mips cc rejects this. */
1362 typedef int charset[2]; const charset x;
1363 /* SunOS 4.1.1 cc rejects this. */
1364 char const *const *ccp;
1366 /* NEC SVR4.0.2 mips cc rejects this. */
1367 struct point {int x, y;};
1368 static struct point const zero = {0,0};
1369 /* AIX XL C 1.02.0.0 rejects this.
1370 It does not let you subtract one const X* pointer from another in an arm
1371 of an if-expression whose if-part is not a constant expression */
1372 const char *g = "string";
1373 ccp = &g + (g ? g-g : 0);
1374 /* HPUX 7.0 cc rejects these. */
1377 ccp = (char const *const *) p;
1378 { /* SCO 3.2v4 cc rejects this. */
1380 char const *s = 0 ? (char *) 0 : (char const *) 0;
1384 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1386 const int *foo = &x[0];
1389 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1390 typedef const int *iptr;
1394 { /* AIX XL C 1.02.0.0 rejects this saying
1395 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1396 struct s { int j; const int *ap[3]; };
1397 struct s *b; b->j = 5;
1399 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1405 if { (eval echo configure:1406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1409 echo "configure: failed program was:" >&5
1410 cat conftest.$ac_ext >&5
1417 echo "$ac_t""$ac_cv_c_const" 1>&6
1418 if test $ac_cv_c_const = no; then
1419 cat >> confdefs.h <<\EOF
1425 echo $ac_n "checking for inline""... $ac_c" 1>&6
1426 echo "configure:1427: checking for inline" >&5
1427 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1431 for ac_kw in inline __inline__ __inline; do
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1440 if { (eval echo configure:1441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1442 ac_cv_c_inline=$ac_kw; break
1444 echo "configure: failed program was:" >&5
1445 cat conftest.$ac_ext >&5
1452 echo "$ac_t""$ac_cv_c_inline" 1>&6
1453 case "$ac_cv_c_inline" in
1455 no) cat >> confdefs.h <<\EOF
1459 *) cat >> confdefs.h <<EOF
1460 #define inline $ac_cv_c_inline
1465 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1466 echo "configure:1467: checking for off_t" >&5
1467 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 #include <sys/types.h>
1479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1480 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1482 ac_cv_type_off_t=yes
1490 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1491 if test $ac_cv_type_off_t = no; then
1492 cat >> confdefs.h <<\EOF
1498 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1499 echo "configure:1500: checking for size_t" >&5
1500 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1506 #include <sys/types.h>
1512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1513 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1515 ac_cv_type_size_t=yes
1518 ac_cv_type_size_t=no
1523 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1524 if test $ac_cv_type_size_t = no; then
1525 cat >> confdefs.h <<\EOF
1526 #define size_t unsigned
1531 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1532 # for constant arguments. Useless!
1533 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1534 echo "configure:1535: checking for working alloca.h" >&5
1535 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1543 char *p = alloca(2 * sizeof(int));
1546 if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1548 ac_cv_header_alloca_h=yes
1550 echo "configure: failed program was:" >&5
1551 cat conftest.$ac_ext >&5
1553 ac_cv_header_alloca_h=no
1558 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1559 if test $ac_cv_header_alloca_h = yes; then
1560 cat >> confdefs.h <<\EOF
1561 #define HAVE_ALLOCA_H 1
1566 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1567 echo "configure:1568: checking for alloca" >&5
1568 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1576 # define alloca __builtin_alloca
1579 # include <malloc.h>
1580 # define alloca _alloca
1583 # include <alloca.h>
1588 # ifndef alloca /* predefined by HP cc +Olibcalls */
1597 char *p = (char *) alloca(1);
1600 if { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1602 ac_cv_func_alloca_works=yes
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1607 ac_cv_func_alloca_works=no
1612 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1613 if test $ac_cv_func_alloca_works = yes; then
1614 cat >> confdefs.h <<\EOF
1615 #define HAVE_ALLOCA 1
1620 if test $ac_cv_func_alloca_works = no; then
1621 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1622 # that cause trouble. Some versions do not even contain alloca or
1623 # contain a buggy version. If you still want to use their alloca,
1624 # use ar to extract alloca.o from them instead of compiling alloca.c.
1625 ALLOCA=alloca.${ac_objext}
1626 cat >> confdefs.h <<\EOF
1631 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1632 echo "configure:1633: checking whether alloca needs Cray hooks" >&5
1633 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1639 #if defined(CRAY) && ! defined(CRAY2)
1646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1647 egrep "webecray" >/dev/null 2>&1; then
1658 echo "$ac_t""$ac_cv_os_cray" 1>&6
1659 if test $ac_cv_os_cray = yes; then
1660 for ac_func in _getb67 GETB67 getb67; do
1661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1662 echo "configure:1663: checking for $ac_func" >&5
1663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1666 cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1669 /* System header to define __stub macros and hopefully few prototypes,
1670 which can conflict with char $ac_func(); below. */
1672 /* Override any gcc2 internal prototype to avoid an error. */
1673 /* We use char because int might match the return type of a gcc2
1674 builtin and then its argument prototype would still apply. */
1679 /* The GNU C library defines this for functions which it implements
1680 to always fail with ENOSYS. Some functions are actually named
1681 something starting with __ and the normal name is an alias. */
1682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1690 if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1692 eval "ac_cv_func_$ac_func=yes"
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1697 eval "ac_cv_func_$ac_func=no"
1702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1703 echo "$ac_t""yes" 1>&6
1704 cat >> confdefs.h <<EOF
1705 #define CRAY_STACKSEG_END $ac_func
1710 echo "$ac_t""no" 1>&6
1716 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1717 echo "configure:1718: checking stack direction for C alloca" >&5
1718 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 if test "$cross_compiling" = yes; then
1722 ac_cv_c_stack_direction=0
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1727 find_stack_direction ()
1729 static char *addr = 0;
1734 return find_stack_direction ();
1737 return (&dummy > addr) ? 1 : -1;
1741 exit (find_stack_direction() < 0);
1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1746 ac_cv_c_stack_direction=1
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 ac_cv_c_stack_direction=-1
1758 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1759 cat >> confdefs.h <<EOF
1760 #define STACK_DIRECTION $ac_cv_c_stack_direction
1765 for ac_hdr in unistd.h
1767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1769 echo "configure:1770: checking for $ac_hdr" >&5
1770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1779 { (eval echo configure:1780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1781 if test -z "$ac_err"; then
1783 eval "ac_cv_header_$ac_safe=yes"
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1789 eval "ac_cv_header_$ac_safe=no"
1793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1796 cat >> confdefs.h <<EOF
1797 #define $ac_tr_hdr 1
1801 echo "$ac_t""no" 1>&6
1805 for ac_func in getpagesize
1807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1808 echo "configure:1809: checking for $ac_func" >&5
1809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $ac_func(); below. */
1818 /* Override any gcc2 internal prototype to avoid an error. */
1819 /* We use char because int might match the return type of a gcc2
1820 builtin and then its argument prototype would still apply. */
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1838 eval "ac_cv_func_$ac_func=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 eval "ac_cv_func_$ac_func=no"
1848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1849 echo "$ac_t""yes" 1>&6
1850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1851 cat >> confdefs.h <<EOF
1852 #define $ac_tr_func 1
1856 echo "$ac_t""no" 1>&6
1860 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1861 echo "configure:1862: checking for working mmap" >&5
1862 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 if test "$cross_compiling" = yes; then
1866 ac_cv_func_mmap_fixed_mapped=no
1868 cat > conftest.$ac_ext <<EOF
1869 #line 1870 "configure"
1870 #include "confdefs.h"
1872 /* Thanks to Mike Haertel and Jim Avera for this test.
1873 Here is a matrix of mmap possibilities:
1874 mmap private not fixed
1875 mmap private fixed at somewhere currently unmapped
1876 mmap private fixed at somewhere already mapped
1877 mmap shared not fixed
1878 mmap shared fixed at somewhere currently unmapped
1879 mmap shared fixed at somewhere already mapped
1880 For private mappings, we should verify that changes cannot be read()
1881 back from the file, nor mmap's back from the file at a different
1882 address. (There have been systems where private was not correctly
1883 implemented like the infamous i386 svr4.0, and systems where the
1884 VM page cache was not coherent with the filesystem buffer cache
1885 like early versions of FreeBSD and possibly contemporary NetBSD.)
1886 For shared mappings, we should conversely verify that changes get
1887 propogated back to all the places they're supposed to be.
1889 Grep wants private fixed already mapped.
1890 The main things grep needs to know about mmap are:
1891 * does it exist and is it safe to write into the mmap'd area
1892 * how to use it (BSD variants) */
1893 #include <sys/types.h>
1895 #include <sys/mman.h>
1897 /* This mess was copied from the GNU getpagesize.h. */
1898 #ifndef HAVE_GETPAGESIZE
1899 # ifdef HAVE_UNISTD_H
1900 # include <unistd.h>
1903 /* Assume that all systems that can run configure have sys/param.h. */
1904 # ifndef HAVE_SYS_PARAM_H
1905 # define HAVE_SYS_PARAM_H 1
1908 # ifdef _SC_PAGESIZE
1909 # define getpagesize() sysconf(_SC_PAGESIZE)
1910 # else /* no _SC_PAGESIZE */
1911 # ifdef HAVE_SYS_PARAM_H
1912 # include <sys/param.h>
1913 # ifdef EXEC_PAGESIZE
1914 # define getpagesize() EXEC_PAGESIZE
1915 # else /* no EXEC_PAGESIZE */
1917 # define getpagesize() NBPG * CLSIZE
1920 # endif /* no CLSIZE */
1921 # else /* no NBPG */
1923 # define getpagesize() NBPC
1924 # else /* no NBPC */
1926 # define getpagesize() PAGESIZE
1927 # endif /* PAGESIZE */
1928 # endif /* no NBPC */
1929 # endif /* no NBPG */
1930 # endif /* no EXEC_PAGESIZE */
1931 # else /* no HAVE_SYS_PARAM_H */
1932 # define getpagesize() 8192 /* punt totally */
1933 # endif /* no HAVE_SYS_PARAM_H */
1934 # endif /* no _SC_PAGESIZE */
1936 #endif /* no HAVE_GETPAGESIZE */
1939 extern "C" { void *malloc(unsigned); }
1947 char *data, *data2, *data3;
1951 pagesize = getpagesize();
1954 * First, make a file with some known garbage in it.
1956 data = malloc(pagesize);
1959 for (i = 0; i < pagesize; ++i)
1960 *(data + i) = rand();
1962 fd = creat("conftestmmap", 0600);
1965 if (write(fd, data, pagesize) != pagesize)
1970 * Next, try to mmap the file at a fixed address which
1971 * already has something else allocated at it. If we can,
1972 * also make sure that we see the same garbage.
1974 fd = open("conftestmmap", O_RDWR);
1977 data2 = malloc(2 * pagesize);
1980 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1981 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1982 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1984 for (i = 0; i < pagesize; ++i)
1985 if (*(data + i) != *(data2 + i))
1989 * Finally, make sure that changes to the mapped area
1990 * do not percolate back to the file as seen by read().
1991 * (This is a bug on some variants of i386 svr4.0.)
1993 for (i = 0; i < pagesize; ++i)
1994 *(data2 + i) = *(data2 + i) + 1;
1995 data3 = malloc(pagesize);
1998 if (read(fd, data3, pagesize) != pagesize)
2000 for (i = 0; i < pagesize; ++i)
2001 if (*(data + i) != *(data3 + i))
2004 unlink("conftestmmap");
2009 if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2011 ac_cv_func_mmap_fixed_mapped=yes
2013 echo "configure: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2016 ac_cv_func_mmap_fixed_mapped=no
2023 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2024 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2025 cat >> confdefs.h <<\EOF
2032 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2033 unistd.h sys/param.h
2035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2037 echo "configure:2038: checking for $ac_hdr" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047 { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049 if test -z "$ac_err"; then
2051 eval "ac_cv_header_$ac_safe=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 eval "ac_cv_header_$ac_safe=no"
2061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2064 cat >> confdefs.h <<EOF
2065 #define $ac_tr_hdr 1
2069 echo "$ac_t""no" 1>&6
2073 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2074 strdup __argz_count __argz_stringify __argz_next
2076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2077 echo "configure:2078: checking for $ac_func" >&5
2078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 /* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char $ac_func(); below. */
2087 /* Override any gcc2 internal prototype to avoid an error. */
2088 /* We use char because int might match the return type of a gcc2
2089 builtin and then its argument prototype would still apply. */
2094 /* The GNU C library defines this for functions which it implements
2095 to always fail with ENOSYS. Some functions are actually named
2096 something starting with __ and the normal name is an alias. */
2097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2105 if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2107 eval "ac_cv_func_$ac_func=yes"
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2112 eval "ac_cv_func_$ac_func=no"
2117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2118 echo "$ac_t""yes" 1>&6
2119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2120 cat >> confdefs.h <<EOF
2121 #define $ac_tr_func 1
2125 echo "$ac_t""no" 1>&6
2130 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2131 for ac_func in stpcpy
2133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_func" >&5
2135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141 /* System header to define __stub macros and hopefully few prototypes,
2142 which can conflict with char $ac_func(); below. */
2144 /* Override any gcc2 internal prototype to avoid an error. */
2145 /* We use char because int might match the return type of a gcc2
2146 builtin and then its argument prototype would still apply. */
2151 /* The GNU C library defines this for functions which it implements
2152 to always fail with ENOSYS. Some functions are actually named
2153 something starting with __ and the normal name is an alias. */
2154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2164 eval "ac_cv_func_$ac_func=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 eval "ac_cv_func_$ac_func=no"
2174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2177 cat >> confdefs.h <<EOF
2178 #define $ac_tr_func 1
2182 echo "$ac_t""no" 1>&6
2187 if test "${ac_cv_func_stpcpy}" = "yes"; then
2188 cat >> confdefs.h <<\EOF
2189 #define HAVE_STPCPY 1
2194 if test $ac_cv_header_locale_h = yes; then
2195 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2196 echo "configure:2197: checking for LC_MESSAGES" >&5
2197 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2200 cat > conftest.$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2208 if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2210 am_cv_val_LC_MESSAGES=yes
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 am_cv_val_LC_MESSAGES=no
2220 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2221 if test $am_cv_val_LC_MESSAGES = yes; then
2222 cat >> confdefs.h <<\EOF
2223 #define HAVE_LC_MESSAGES 1
2228 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2229 echo "configure:2230: checking whether NLS is requested" >&5
2230 # Check whether --enable-nls or --disable-nls was given.
2231 if test "${enable_nls+set}" = set; then
2232 enableval="$enable_nls"
2238 echo "$ac_t""$USE_NLS" 1>&6
2241 USE_INCLUDED_LIBINTL=no
2243 if test "$USE_NLS" = "yes"; then
2244 cat >> confdefs.h <<\EOF
2245 #define ENABLE_NLS 1
2248 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2249 echo "configure:2250: checking whether included gettext is requested" >&5
2250 # Check whether --with-included-gettext or --without-included-gettext was given.
2251 if test "${with_included_gettext+set}" = set; then
2252 withval="$with_included_gettext"
2253 nls_cv_force_use_gnu_gettext=$withval
2255 nls_cv_force_use_gnu_gettext=no
2258 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2260 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2261 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2263 nls_cv_header_libgt=
2266 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2267 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2268 echo "configure:2269: checking for libintl.h" >&5
2269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2275 #include <libintl.h>
2277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2278 { (eval echo configure:2279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2280 if test -z "$ac_err"; then
2282 eval "ac_cv_header_$ac_safe=yes"
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2288 eval "ac_cv_header_$ac_safe=no"
2292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2294 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2295 echo "configure:2296: checking for gettext in libc" >&5
2296 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 #include <libintl.h>
2304 return (int) gettext ("")
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2309 gt_cv_func_gettext_libc=yes
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2314 gt_cv_func_gettext_libc=no
2319 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2321 if test "$gt_cv_func_gettext_libc" != "yes"; then
2322 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2323 echo "configure:2324: checking for bindtextdomain in -lintl" >&5
2324 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 ac_save_LIBS="$LIBS"
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 /* Override any gcc2 internal prototype to avoid an error. */
2334 /* We use char because int might match the return type of a gcc2
2335 builtin and then its argument prototype would still apply. */
2336 char bindtextdomain();
2342 if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2344 eval "ac_cv_lib_$ac_lib_var=yes"
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2349 eval "ac_cv_lib_$ac_lib_var=no"
2352 LIBS="$ac_save_LIBS"
2355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2356 echo "$ac_t""yes" 1>&6
2357 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2358 echo "configure:2359: checking for gettext in libintl" >&5
2359 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2363 echo "configure:2364: checking for gettext in -lintl" >&5
2364 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 ac_save_LIBS="$LIBS"
2370 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2373 /* Override any gcc2 internal prototype to avoid an error. */
2374 /* We use char because int might match the return type of a gcc2
2375 builtin and then its argument prototype would still apply. */
2382 if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2384 eval "ac_cv_lib_$ac_lib_var=yes"
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2389 eval "ac_cv_lib_$ac_lib_var=no"
2392 LIBS="$ac_save_LIBS"
2395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2396 echo "$ac_t""yes" 1>&6
2397 gt_cv_func_gettext_libintl=yes
2399 echo "$ac_t""no" 1>&6
2400 gt_cv_func_gettext_libintl=no
2405 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2407 echo "$ac_t""no" 1>&6
2412 if test "$gt_cv_func_gettext_libc" = "yes" \
2413 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2414 cat >> confdefs.h <<\EOF
2415 #define HAVE_GETTEXT 1
2418 # Extract the first word of "msgfmt", so it can be a program name with args.
2419 set dummy msgfmt; ac_word=$2
2420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2421 echo "configure:2422: checking for $ac_word" >&5
2422 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2427 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2431 for ac_dir in $PATH; do
2432 test -z "$ac_dir" && ac_dir=.
2433 if test -f $ac_dir/$ac_word; then
2434 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2435 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2441 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2445 MSGFMT="$ac_cv_path_MSGFMT"
2446 if test -n "$MSGFMT"; then
2447 echo "$ac_t""$MSGFMT" 1>&6
2449 echo "$ac_t""no" 1>&6
2451 if test "$MSGFMT" != "no"; then
2452 for ac_func in dcgettext
2454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_func" >&5
2456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 /* System header to define __stub macros and hopefully few prototypes,
2463 which can conflict with char $ac_func(); below. */
2465 /* Override any gcc2 internal prototype to avoid an error. */
2466 /* We use char because int might match the return type of a gcc2
2467 builtin and then its argument prototype would still apply. */
2472 /* The GNU C library defines this for functions which it implements
2473 to always fail with ENOSYS. Some functions are actually named
2474 something starting with __ and the normal name is an alias. */
2475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2485 eval "ac_cv_func_$ac_func=yes"
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 eval "ac_cv_func_$ac_func=no"
2495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2498 cat >> confdefs.h <<EOF
2499 #define $ac_tr_func 1
2503 echo "$ac_t""no" 1>&6
2507 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2508 set dummy gmsgfmt; ac_word=$2
2509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2510 echo "configure:2511: checking for $ac_word" >&5
2511 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2516 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2524 for ac_dir in $ac_dummy; do
2525 test -z "$ac_dir" && ac_dir=.
2526 if test -f $ac_dir/$ac_word; then
2527 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2532 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2536 GMSGFMT="$ac_cv_path_GMSGFMT"
2537 if test -n "$GMSGFMT"; then
2538 echo "$ac_t""$GMSGFMT" 1>&6
2540 echo "$ac_t""no" 1>&6
2543 # Extract the first word of "xgettext", so it can be a program name with args.
2544 set dummy xgettext; ac_word=$2
2545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_word" >&5
2547 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2552 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2556 for ac_dir in $PATH; do
2557 test -z "$ac_dir" && ac_dir=.
2558 if test -f $ac_dir/$ac_word; then
2559 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2560 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2566 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2570 XGETTEXT="$ac_cv_path_XGETTEXT"
2571 if test -n "$XGETTEXT"; then
2572 echo "$ac_t""$XGETTEXT" 1>&6
2574 echo "$ac_t""no" 1>&6
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2582 extern int _nl_msg_cat_cntr;
2583 return _nl_msg_cat_cntr
2586 if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2603 echo "$ac_t""no" 1>&6
2607 if test "$CATOBJEXT" = "NONE"; then
2608 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2609 echo "configure:2610: checking whether catgets can be used" >&5
2610 # Check whether --with-catgets or --without-catgets was given.
2611 if test "${with_catgets+set}" = set; then
2612 withval="$with_catgets"
2613 nls_cv_use_catgets=$withval
2615 nls_cv_use_catgets=no
2618 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2620 if test "$nls_cv_use_catgets" = "yes"; then
2621 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2622 echo "configure:2623: checking for main in -li" >&5
2623 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 ac_save_LIBS="$LIBS"
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2639 eval "ac_cv_lib_$ac_lib_var=yes"
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2644 eval "ac_cv_lib_$ac_lib_var=no"
2647 LIBS="$ac_save_LIBS"
2650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2651 echo "$ac_t""yes" 1>&6
2652 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2653 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2654 cat >> confdefs.h <<EOF
2655 #define $ac_tr_lib 1
2661 echo "$ac_t""no" 1>&6
2664 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2665 echo "configure:2666: checking for catgets" >&5
2666 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 /* System header to define __stub macros and hopefully few prototypes,
2673 which can conflict with char catgets(); below. */
2675 /* Override any gcc2 internal prototype to avoid an error. */
2676 /* We use char because int might match the return type of a gcc2
2677 builtin and then its argument prototype would still apply. */
2682 /* The GNU C library defines this for functions which it implements
2683 to always fail with ENOSYS. Some functions are actually named
2684 something starting with __ and the normal name is an alias. */
2685 #if defined (__stub_catgets) || defined (__stub___catgets)
2693 if { (eval echo configure:2694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2695 eval "ac_cv_func_catgets=yes"
2697 echo "configure: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2700 eval "ac_cv_func_catgets=no"
2705 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 cat >> confdefs.h <<\EOF
2708 #define HAVE_CATGETS 1
2711 INTLOBJS="\$(CATOBJS)"
2712 # Extract the first word of "gencat", so it can be a program name with args.
2713 set dummy gencat; ac_word=$2
2714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2715 echo "configure:2716: checking for $ac_word" >&5
2716 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2721 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2724 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2729 for ac_dir in $ac_dummy; do
2730 test -z "$ac_dir" && ac_dir=.
2731 if test -f $ac_dir/$ac_word; then
2732 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2737 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2741 GENCAT="$ac_cv_path_GENCAT"
2742 if test -n "$GENCAT"; then
2743 echo "$ac_t""$GENCAT" 1>&6
2745 echo "$ac_t""no" 1>&6
2747 if test "$GENCAT" != "no"; then
2748 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2749 set dummy gmsgfmt; ac_word=$2
2750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_word" >&5
2752 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2757 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2760 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2765 for ac_dir in $ac_dummy; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2773 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2777 GMSGFMT="$ac_cv_path_GMSGFMT"
2778 if test -n "$GMSGFMT"; then
2779 echo "$ac_t""$GMSGFMT" 1>&6
2781 echo "$ac_t""no" 1>&6
2784 if test "$GMSGFMT" = "no"; then
2785 # Extract the first word of "msgfmt", so it can be a program name with args.
2786 set dummy msgfmt; ac_word=$2
2787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_word" >&5
2789 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2794 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2798 for ac_dir in $PATH; do
2799 test -z "$ac_dir" && ac_dir=.
2800 if test -f $ac_dir/$ac_word; then
2801 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2802 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2808 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2812 GMSGFMT="$ac_cv_path_GMSGFMT"
2813 if test -n "$GMSGFMT"; then
2814 echo "$ac_t""$GMSGFMT" 1>&6
2816 echo "$ac_t""no" 1>&6
2820 # Extract the first word of "xgettext", so it can be a program name with args.
2821 set dummy xgettext; ac_word=$2
2822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2823 echo "configure:2824: checking for $ac_word" >&5
2824 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2829 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2833 for ac_dir in $PATH; do
2834 test -z "$ac_dir" && ac_dir=.
2835 if test -f $ac_dir/$ac_word; then
2836 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2837 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2843 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2847 XGETTEXT="$ac_cv_path_XGETTEXT"
2848 if test -n "$XGETTEXT"; then
2849 echo "$ac_t""$XGETTEXT" 1>&6
2851 echo "$ac_t""no" 1>&6
2854 USE_INCLUDED_LIBINTL=yes
2858 INTLDEPS='$(top_builddir)/intl/libintl.a'
2860 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2861 nls_cv_header_intl=intl/libintl.h
2862 nls_cv_header_libgt=intl/libgettext.h
2865 echo "$ac_t""no" 1>&6
2871 if test "$CATOBJEXT" = "NONE"; then
2872 nls_cv_use_gnu_gettext=yes
2876 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2877 INTLOBJS="\$(GETTOBJS)"
2878 # Extract the first word of "msgfmt", so it can be a program name with args.
2879 set dummy msgfmt; ac_word=$2
2880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2881 echo "configure:2882: checking for $ac_word" >&5
2882 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2887 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2891 for ac_dir in $PATH; do
2892 test -z "$ac_dir" && ac_dir=.
2893 if test -f $ac_dir/$ac_word; then
2894 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2895 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2901 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2905 MSGFMT="$ac_cv_path_MSGFMT"
2906 if test -n "$MSGFMT"; then
2907 echo "$ac_t""$MSGFMT" 1>&6
2909 echo "$ac_t""no" 1>&6
2912 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2913 set dummy gmsgfmt; ac_word=$2
2914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2915 echo "configure:2916: checking for $ac_word" >&5
2916 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2921 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2924 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2929 for ac_dir in $ac_dummy; do
2930 test -z "$ac_dir" && ac_dir=.
2931 if test -f $ac_dir/$ac_word; then
2932 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2937 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2941 GMSGFMT="$ac_cv_path_GMSGFMT"
2942 if test -n "$GMSGFMT"; then
2943 echo "$ac_t""$GMSGFMT" 1>&6
2945 echo "$ac_t""no" 1>&6
2948 # Extract the first word of "xgettext", so it can be a program name with args.
2949 set dummy xgettext; ac_word=$2
2950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2951 echo "configure:2952: checking for $ac_word" >&5
2952 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2957 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2961 for ac_dir in $PATH; do
2962 test -z "$ac_dir" && ac_dir=.
2963 if test -f $ac_dir/$ac_word; then
2964 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2965 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2971 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2975 XGETTEXT="$ac_cv_path_XGETTEXT"
2976 if test -n "$XGETTEXT"; then
2977 echo "$ac_t""$XGETTEXT" 1>&6
2979 echo "$ac_t""no" 1>&6
2983 USE_INCLUDED_LIBINTL=yes
2987 INTLDEPS='$(top_builddir)/intl/libintl.a'
2989 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2990 nls_cv_header_intl=intl/libintl.h
2991 nls_cv_header_libgt=intl/libgettext.h
2994 if test "$XGETTEXT" != ":"; then
2995 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2998 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3003 # We need to process the po/ directory.
3007 nls_cv_header_intl=intl/libintl.h
3008 nls_cv_header_libgt=intl/libgettext.h
3014 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3015 # because some of the sources are only built for this goal.
3016 if test "$PACKAGE" = gettext; then
3018 USE_INCLUDED_LIBINTL=yes
3021 for lang in $ALL_LINGUAS; do
3022 GMOFILES="$GMOFILES $lang.gmo"
3023 POFILES="$POFILES $lang.po"
3039 if test "x$CATOBJEXT" != "x"; then
3040 if test "x$ALL_LINGUAS" = "x"; then
3043 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3044 echo "configure:3045: checking for catalogs to be installed" >&5
3046 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3047 case "$ALL_LINGUAS" in
3048 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3051 LINGUAS=$NEW_LINGUAS
3052 echo "$ac_t""$LINGUAS" 1>&6
3055 if test -n "$LINGUAS"; then
3056 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3060 if test $ac_cv_header_locale_h = yes; then
3061 INCLUDE_LOCALE_H="#include <locale.h>"
3064 /* The system does not provide the header <locale.h>. Take care yourself. */"
3068 test -d intl || mkdir intl
3069 if test "$CATOBJEXT" = ".cat"; then
3070 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3071 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3072 echo "configure:3073: checking for linux/version.h" >&5
3073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3079 #include <linux/version.h>
3081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3082 { (eval echo configure:3083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3084 if test -z "$ac_err"; then
3086 eval "ac_cv_header_$ac_safe=yes"
3089 echo "configure: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3092 eval "ac_cv_header_$ac_safe=no"
3096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3097 echo "$ac_t""yes" 1>&6
3100 echo "$ac_t""no" 1>&6
3105 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3107 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3108 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3110 if test "$PACKAGE" = "gettext"; then
3121 if test -n "$ac_aux_dir"; then
3122 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3124 if test -z "$MKINSTALLDIRS"; then
3125 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3132 test -d po || mkdir po
3133 if test "x$srcdir" != "x."; then
3134 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3135 posrcprefix="$srcdir/"
3137 posrcprefix="../$srcdir/"
3143 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3144 < $srcdir/po/POTFILES.in > po/POTFILES
3146 # Check whether --enable-profile or --disable-profile was given.
3147 if test "${enable_profile+set}" = set; then
3148 enableval="$enable_profile"
3149 if test "$enableval" = "no"
3152 MAKEFILE_PROFILE=/dev/null
3153 echo "Disabling profiling libraries"
3156 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3157 PROFILED_LIB_EXT=_p.a
3158 echo "Building profiling libraries"
3163 MAKEFILE_PROFILE=/dev/null
3164 echo "Disabling profiling libraries by default"
3170 # Check whether --enable-checker or --disable-checker was given.
3171 if test "${enable_checker+set}" = set; then
3172 enableval="$enable_checker"
3173 if test "$enableval" = "no"
3176 MAKEFILE_CHECKER=/dev/null
3177 echo "Disabling checker libraries"
3180 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3181 echo "Building checker libraries"
3186 MAKEFILE_CHECKER=/dev/null
3187 echo "Disabling checker libraries by default"
3196 # Check whether --enable-gcc-wall or --disable-gcc-wall was given.
3197 if test "${enable_gcc_wall+set}" = set; then
3198 enableval="$enable_gcc_wall"
3199 if test "$enableval" = "no"
3202 echo "Disabling GCC warnings"
3205 echo "Enabling GCC warnings"
3210 echo "Disabling GCC warnings by default"
3215 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3216 if test "${enable_dynamic_e2fsck+set}" = set; then
3217 enableval="$enable_dynamic_e2fsck"
3218 if test "$enableval" = "no"
3221 echo "Building e2fsck statically"
3224 echo "Building e2fsck dynamically"
3229 echo "Building e2fsck statically by default"
3234 # Check whether --enable-fsck or --disable-fsck was given.
3235 if test "${enable_fsck+set}" = set; then
3236 enableval="$enable_fsck"
3237 if test "$enableval" = "no"
3239 FSCK_PROG='' FSCK_MAN=''
3240 echo "Not building fsck wrapper"
3242 FSCK_PROG=fsck FSCK_MAN=fsck.8
3243 echo "Building fsck wrapper"
3249 FSCK_PROG='' FSCK_MAN=''
3250 echo "Not building fsck wrapper by default"
3253 FSCK_PROG=fsck FSCK_MAN=fsck.8
3254 echo "Building fsck wrapper by default"
3261 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3263 # Check whether --enable-old-bitops or --disable-old-bitops was given.
3264 if test "${enable_old_bitops+set}" = set; then
3265 enableval="$enable_old_bitops"
3266 if test "$enableval" = "no"
3268 echo "Using new (standard) bitmask operations"
3270 cat >> confdefs.h <<\EOF
3271 #define EXT2_OLD_BITOPS 1
3274 echo "Using old (native) bitmask operations"
3279 echo "Using standard bitmask operations by default"
3284 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3285 echo "configure:3286: checking whether ${MAKE-make} sets \${MAKE}" >&5
3286 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3287 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 cat > conftestmake <<\EOF
3292 @echo 'ac_maketemp="${MAKE}"'
3294 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3295 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3296 if test -n "$ac_maketemp"; then
3297 eval ac_cv_prog_make_${ac_make}_set=yes
3299 eval ac_cv_prog_make_${ac_make}_set=no
3303 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3307 echo "$ac_t""no" 1>&6
3308 SET_MAKE="MAKE=${MAKE-make}"
3311 # Extract the first word of "ln", so it can be a program name with args.
3312 set dummy ln; ac_word=$2
3313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3314 echo "configure:3315: checking for $ac_word" >&5
3315 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3320 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3323 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3328 for ac_dir in $ac_dummy; do
3329 test -z "$ac_dir" && ac_dir=.
3330 if test -f $ac_dir/$ac_word; then
3331 ac_cv_path_LN="$ac_dir/$ac_word"
3336 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3341 if test -n "$LN"; then
3342 echo "$ac_t""$LN" 1>&6
3344 echo "$ac_t""no" 1>&6
3347 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3348 echo "configure:3349: checking whether ln -s works" >&5
3349 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3353 if ln -s X conftestdata 2>/dev/null
3356 ac_cv_prog_LN_S="ln -s"
3361 LN_S="$ac_cv_prog_LN_S"
3362 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3363 echo "$ac_t""yes" 1>&6
3365 echo "$ac_t""no" 1>&6
3368 # Extract the first word of "mv", so it can be a program name with args.
3369 set dummy mv; ac_word=$2
3370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3371 echo "configure:3372: checking for $ac_word" >&5
3372 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3377 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3380 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3385 for ac_dir in $ac_dummy; do
3386 test -z "$ac_dir" && ac_dir=.
3387 if test -f $ac_dir/$ac_word; then
3388 ac_cv_path_MV="$ac_dir/$ac_word"
3393 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3398 if test -n "$MV"; then
3399 echo "$ac_t""$MV" 1>&6
3401 echo "$ac_t""no" 1>&6
3404 # Extract the first word of "cp", so it can be a program name with args.
3405 set dummy cp; ac_word=$2
3406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3407 echo "configure:3408: checking for $ac_word" >&5
3408 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3409 echo $ac_n "(cached) $ac_c" 1>&6
3413 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3416 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3421 for ac_dir in $ac_dummy; do
3422 test -z "$ac_dir" && ac_dir=.
3423 if test -f $ac_dir/$ac_word; then
3424 ac_cv_path_CP="$ac_dir/$ac_word"
3429 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3434 if test -n "$CP"; then
3435 echo "$ac_t""$CP" 1>&6
3437 echo "$ac_t""no" 1>&6
3440 # Extract the first word of "rm", so it can be a program name with args.
3441 set dummy rm; ac_word=$2
3442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3443 echo "configure:3444: checking for $ac_word" >&5
3444 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3449 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3452 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3457 for ac_dir in $ac_dummy; do
3458 test -z "$ac_dir" && ac_dir=.
3459 if test -f $ac_dir/$ac_word; then
3460 ac_cv_path_RM="$ac_dir/$ac_word"
3465 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3470 if test -n "$RM"; then
3471 echo "$ac_t""$RM" 1>&6
3473 echo "$ac_t""no" 1>&6
3476 # Extract the first word of "chmod", so it can be a program name with args.
3477 set dummy chmod; ac_word=$2
3478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3479 echo "configure:3480: checking for $ac_word" >&5
3480 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3485 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3488 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3493 for ac_dir in $ac_dummy; do
3494 test -z "$ac_dir" && ac_dir=.
3495 if test -f $ac_dir/$ac_word; then
3496 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3501 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3505 CHMOD="$ac_cv_path_CHMOD"
3506 if test -n "$CHMOD"; then
3507 echo "$ac_t""$CHMOD" 1>&6
3509 echo "$ac_t""no" 1>&6
3512 # Extract the first word of "awk", so it can be a program name with args.
3513 set dummy awk; ac_word=$2
3514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3515 echo "configure:3516: checking for $ac_word" >&5
3516 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3521 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3524 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3529 for ac_dir in $ac_dummy; do
3530 test -z "$ac_dir" && ac_dir=.
3531 if test -f $ac_dir/$ac_word; then
3532 ac_cv_path_AWK="$ac_dir/$ac_word"
3537 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3541 AWK="$ac_cv_path_AWK"
3542 if test -n "$AWK"; then
3543 echo "$ac_t""$AWK" 1>&6
3545 echo "$ac_t""no" 1>&6
3548 # Extract the first word of "sed", so it can be a program name with args.
3549 set dummy sed; ac_word=$2
3550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3551 echo "configure:3552: checking for $ac_word" >&5
3552 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3557 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3560 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3565 for ac_dir in $ac_dummy; do
3566 test -z "$ac_dir" && ac_dir=.
3567 if test -f $ac_dir/$ac_word; then
3568 ac_cv_path_SED="$ac_dir/$ac_word"
3573 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3577 SED="$ac_cv_path_SED"
3578 if test -n "$SED"; then
3579 echo "$ac_t""$SED" 1>&6
3581 echo "$ac_t""no" 1>&6
3584 # Extract the first word of "perl", so it can be a program name with args.
3585 set dummy perl; ac_word=$2
3586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3587 echo "configure:3588: checking for $ac_word" >&5
3588 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3593 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3596 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3601 for ac_dir in $ac_dummy; do
3602 test -z "$ac_dir" && ac_dir=.
3603 if test -f $ac_dir/$ac_word; then
3604 ac_cv_path_PERL="$ac_dir/$ac_word"
3609 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3613 PERL="$ac_cv_path_PERL"
3614 if test -n "$PERL"; then
3615 echo "$ac_t""$PERL" 1>&6
3617 echo "$ac_t""no" 1>&6
3620 echo $ac_n "checking build system type""... $ac_c" 1>&6
3621 echo "configure:3622: checking build system type" >&5
3624 case "$build_alias" in
3627 NONE) build_alias=$host_alias ;;
3628 *) build_alias=$nonopt ;;
3632 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3633 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3634 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3635 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3636 echo "$ac_t""$build" 1>&6
3638 if test $host != $build; then
3639 ac_tool_prefix=${host_alias}-
3644 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}ar; ac_word=$2
3646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3647 echo "configure:3648: checking for $ac_word" >&5
3648 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3651 if test -n "$AR"; then
3652 ac_cv_prog_AR="$AR" # Let the user override the test.
3654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3656 for ac_dir in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir=.
3658 if test -f $ac_dir/$ac_word; then
3659 ac_cv_prog_AR="${ac_tool_prefix}ar"
3667 if test -n "$AR"; then
3668 echo "$ac_t""$AR" 1>&6
3670 echo "$ac_t""no" 1>&6
3674 if test -z "$ac_cv_prog_AR"; then
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "ar", so it can be a program name with args.
3677 set dummy ar; ac_word=$2
3678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3679 echo "configure:3680: checking for $ac_word" >&5
3680 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3683 if test -n "$AR"; then
3684 ac_cv_prog_AR="$AR" # Let the user override the test.
3686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3688 for ac_dir in $ac_dummy; do
3689 test -z "$ac_dir" && ac_dir=.
3690 if test -f $ac_dir/$ac_word; then
3696 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3700 if test -n "$AR"; then
3701 echo "$ac_t""$AR" 1>&6
3703 echo "$ac_t""no" 1>&6
3711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3714 echo "configure:3715: checking for $ac_word" >&5
3715 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3718 if test -n "$RANLIB"; then
3719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3723 for ac_dir in $ac_dummy; do
3724 test -z "$ac_dir" && ac_dir=.
3725 if test -f $ac_dir/$ac_word; then
3726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3733 RANLIB="$ac_cv_prog_RANLIB"
3734 if test -n "$RANLIB"; then
3735 echo "$ac_t""$RANLIB" 1>&6
3737 echo "$ac_t""no" 1>&6
3741 if test -z "$ac_cv_prog_RANLIB"; then
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "ranlib", so it can be a program name with args.
3744 set dummy ranlib; ac_word=$2
3745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3746 echo "configure:3747: checking for $ac_word" >&5
3747 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 if test -n "$RANLIB"; then
3751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3755 for ac_dir in $ac_dummy; do
3756 test -z "$ac_dir" && ac_dir=.
3757 if test -f $ac_dir/$ac_word; then
3758 ac_cv_prog_RANLIB="ranlib"
3763 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3766 RANLIB="$ac_cv_prog_RANLIB"
3767 if test -n "$RANLIB"; then
3768 echo "$ac_t""$RANLIB" 1>&6
3770 echo "$ac_t""no" 1>&6
3778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3779 set dummy ${ac_tool_prefix}strip; ac_word=$2
3780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3781 echo "configure:3782: checking for $ac_word" >&5
3782 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 if test -n "$STRIP"; then
3786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3790 for ac_dir in $ac_dummy; do
3791 test -z "$ac_dir" && ac_dir=.
3792 if test -f $ac_dir/$ac_word; then
3793 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3800 STRIP="$ac_cv_prog_STRIP"
3801 if test -n "$STRIP"; then
3802 echo "$ac_t""$STRIP" 1>&6
3804 echo "$ac_t""no" 1>&6
3808 if test -z "$ac_cv_prog_STRIP"; then
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "strip", so it can be a program name with args.
3811 set dummy strip; ac_word=$2
3812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3813 echo "configure:3814: checking for $ac_word" >&5
3814 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 if test -n "$STRIP"; then
3818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3822 for ac_dir in $ac_dummy; do
3823 test -z "$ac_dir" && ac_dir=.
3824 if test -f $ac_dir/$ac_word; then
3825 ac_cv_prog_STRIP="strip"
3830 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3833 STRIP="$ac_cv_prog_STRIP"
3834 if test -n "$STRIP"; then
3835 echo "$ac_t""$STRIP" 1>&6
3837 echo "$ac_t""no" 1>&6
3845 # Find a good install program. We prefer a C program (faster),
3846 # so one script is as good as another. But avoid the broken or
3847 # incompatible versions:
3848 # SysV /etc/install, /usr/sbin/install
3849 # SunOS /usr/etc/install
3850 # IRIX /sbin/install
3852 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3853 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3854 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3855 # ./install, which can be erroneously created by make from ./install.sh.
3856 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3857 echo "configure:3858: checking for a BSD compatible install" >&5
3858 if test -z "$INSTALL"; then
3859 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3863 for ac_dir in $PATH; do
3864 # Account for people who put trailing slashes in PATH elements.
3866 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3868 # OSF1 and SCO ODT 3.0 have their own names for install.
3869 # Don't use installbsd from OSF since it installs stuff as root
3871 for ac_prog in ginstall scoinst install; do
3872 if test -f $ac_dir/$ac_prog; then
3873 if test $ac_prog = install &&
3874 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3875 # AIX install. It has an incompatible calling convention.
3878 ac_cv_path_install="$ac_dir/$ac_prog -c"
3889 if test "${ac_cv_path_install+set}" = set; then
3890 INSTALL="$ac_cv_path_install"
3892 # As a last resort, use the slow shell script. We don't cache a
3893 # path for INSTALL within a source directory, because that will
3894 # break other packages using the cache if that directory is
3895 # removed, or if the path is relative.
3896 INSTALL="$ac_install_sh"
3899 echo "$ac_t""$INSTALL" 1>&6
3901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3902 # It thinks the first close brace ends the variable substitution.
3903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3909 # See if we need a separate native compiler.
3910 if test $cross_compiling = no; then
3914 for ac_prog in gcc cc
3916 # Extract the first word of "$ac_prog", so it can be a program name with args.
3917 set dummy $ac_prog; ac_word=$2
3918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3919 echo "configure:3920: checking for $ac_word" >&5
3920 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3923 if test -n "$BUILD_CC"; then
3924 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3928 for ac_dir in $ac_dummy; do
3929 test -z "$ac_dir" && ac_dir=.
3930 if test -f $ac_dir/$ac_word; then
3931 ac_cv_prog_BUILD_CC="$ac_prog"
3938 BUILD_CC="$ac_cv_prog_BUILD_CC"
3939 if test -n "$BUILD_CC"; then
3940 echo "$ac_t""$BUILD_CC" 1>&6
3942 echo "$ac_t""no" 1>&6
3945 test -n "$BUILD_CC" && break
3949 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/mount.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
3951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3953 echo "configure:3954: checking for $ac_hdr" >&5
3954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3963 { (eval echo configure:3964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3965 if test -z "$ac_err"; then
3967 eval "ac_cv_header_$ac_safe=yes"
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 eval "ac_cv_header_$ac_safe=no"
3977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3980 cat >> confdefs.h <<EOF
3981 #define $ac_tr_hdr 1
3985 echo "$ac_t""no" 1>&6
3989 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3990 echo "configure:3991: checking for vprintf" >&5
3991 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 /* System header to define __stub macros and hopefully few prototypes,
3998 which can conflict with char vprintf(); below. */
4000 /* Override any gcc2 internal prototype to avoid an error. */
4001 /* We use char because int might match the return type of a gcc2
4002 builtin and then its argument prototype would still apply. */
4007 /* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4020 eval "ac_cv_func_vprintf=yes"
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4025 eval "ac_cv_func_vprintf=no"
4030 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 cat >> confdefs.h <<\EOF
4033 #define HAVE_VPRINTF 1
4037 echo "$ac_t""no" 1>&6
4040 if test "$ac_cv_func_vprintf" != yes; then
4041 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4042 echo "configure:4043: checking for _doprnt" >&5
4043 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4049 /* System header to define __stub macros and hopefully few prototypes,
4050 which can conflict with char _doprnt(); below. */
4052 /* Override any gcc2 internal prototype to avoid an error. */
4053 /* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */
4059 /* The GNU C library defines this for functions which it implements
4060 to always fail with ENOSYS. Some functions are actually named
4061 something starting with __ and the normal name is an alias. */
4062 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4072 eval "ac_cv_func__doprnt=yes"
4074 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4077 eval "ac_cv_func__doprnt=no"
4082 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4083 echo "$ac_t""yes" 1>&6
4084 cat >> confdefs.h <<\EOF
4085 #define HAVE_DOPRNT 1
4089 echo "$ac_t""no" 1>&6
4094 echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
4095 echo "configure:4096: checking whether struct dirent has a d_namlen field" >&5
4096 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 #include <sys/types.h>
4105 struct dirent de; de.d_namlen = 0;
4108 if { (eval echo configure:4109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4110 e2fsprogs_cv_struct_d_namlen=yes
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4115 e2fsprogs_cv_struct_d_namlen=no
4120 echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4121 if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4122 cat >> confdefs.h <<\EOF
4123 #define HAVE_DIRENT_NAMLEN 1
4127 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4128 echo "configure:4129: checking whether llseek declared in unistd.h" >&5
4129 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4137 extern int llseek(int);
4140 if { (eval echo configure:4141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4142 e2fsprogs_cv_have_llseek_prototype=no
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4147 e2fsprogs_cv_have_llseek_prototype=yes
4152 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4153 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4154 cat >> confdefs.h <<\EOF
4155 #define HAVE_LLSEEK_PROTOTYPE 1
4159 echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
4160 echo "configure:4161: checking whether lseek64 declared in unistd.h" >&5
4161 if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 #define _LARGEFILE_SOURCE
4168 #define _LARGEFILE64_SOURCE
4171 extern int lseek64(int);
4174 if { (eval echo configure:4175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4176 e2fsprogs_cv_have_lseek64_prototype=no
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4181 e2fsprogs_cv_have_lseek64_prototype=yes
4186 echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4187 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4188 cat >> confdefs.h <<\EOF
4189 #define HAVE_LSEEK64_PROTOTYPE 1
4193 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4194 # if cross-compiling, with no cached values, just assume something common.
4195 ac_cv_sizeof_short=2
4198 ac_cv_sizeof_long_long=8
4199 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
4201 echo $ac_n "checking size of short""... $ac_c" 1>&6
4202 echo "configure:4203: checking size of short" >&5
4203 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4206 if test "$cross_compiling" = yes; then
4207 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4215 FILE *f=fopen("conftestval", "w");
4217 fprintf(f, "%d\n", sizeof(short));
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4223 ac_cv_sizeof_short=`cat conftestval`
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4228 ac_cv_sizeof_short=0
4234 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4235 cat >> confdefs.h <<EOF
4236 #define SIZEOF_SHORT $ac_cv_sizeof_short
4240 echo $ac_n "checking size of int""... $ac_c" 1>&6
4241 echo "configure:4242: checking size of int" >&5
4242 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 if test "$cross_compiling" = yes; then
4246 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4254 FILE *f=fopen("conftestval", "w");
4256 fprintf(f, "%d\n", sizeof(int));
4260 if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4262 ac_cv_sizeof_int=`cat conftestval`
4264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4273 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4274 cat >> confdefs.h <<EOF
4275 #define SIZEOF_INT $ac_cv_sizeof_int
4279 echo $ac_n "checking size of long""... $ac_c" 1>&6
4280 echo "configure:4281: checking size of long" >&5
4281 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 if test "$cross_compiling" = yes; then
4285 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4293 FILE *f=fopen("conftestval", "w");
4295 fprintf(f, "%d\n", sizeof(long));
4299 if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4301 ac_cv_sizeof_long=`cat conftestval`
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4312 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4313 cat >> confdefs.h <<EOF
4314 #define SIZEOF_LONG $ac_cv_sizeof_long
4318 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4319 echo "configure:4320: checking size of long long" >&5
4320 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 if test "$cross_compiling" = yes; then
4324 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4332 FILE *f=fopen("conftestval", "w");
4334 fprintf(f, "%d\n", sizeof(long long));
4338 if { (eval echo configure:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4340 ac_cv_sizeof_long_long=`cat conftestval`
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4345 ac_cv_sizeof_long_long=0
4351 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4352 cat >> confdefs.h <<EOF
4353 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4357 SIZEOF_SHORT=$ac_cv_sizeof_short
4358 SIZEOF_INT=$ac_cv_sizeof_int
4359 SIZEOF_LONG=$ac_cv_sizeof_long
4360 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4365 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
4366 echo "configure:4367: checking whether struct stat has a st_flags field" >&5
4367 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 #include <sys/stat.h>
4375 struct stat stat; stat.st_flags = 0;
4378 if { (eval echo configure:4379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4380 e2fsprogs_cv_struct_st_flags=yes
4382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4385 e2fsprogs_cv_struct_st_flags=no
4390 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4391 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
4392 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
4393 echo "configure:4394: checking whether st_flags field is useful" >&5
4394 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 #include <sys/stat.h>
4402 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4405 if { (eval echo configure:4406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4407 e2fsprogs_cv_struct_st_flags_immut=yes
4409 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4412 e2fsprogs_cv_struct_st_flags_immut=no
4417 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4418 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4419 cat >> confdefs.h <<\EOF
4420 #define HAVE_STAT_FLAGS 1
4425 for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
4427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4428 echo "configure:4429: checking for $ac_func" >&5
4429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4435 /* System header to define __stub macros and hopefully few prototypes,
4436 which can conflict with char $ac_func(); below. */
4438 /* Override any gcc2 internal prototype to avoid an error. */
4439 /* We use char because int might match the return type of a gcc2
4440 builtin and then its argument prototype would still apply. */
4445 /* The GNU C library defines this for functions which it implements
4446 to always fail with ENOSYS. Some functions are actually named
4447 something starting with __ and the normal name is an alias. */
4448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4456 if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4458 eval "ac_cv_func_$ac_func=yes"
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4463 eval "ac_cv_func_$ac_func=no"
4468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4471 cat >> confdefs.h <<EOF
4472 #define $ac_tr_func 1
4476 echo "$ac_t""no" 1>&6
4480 echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
4481 echo "configure:4482: checking ino_t defined by sys/types.h" >&5
4482 if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 #include <sys/types.h>
4493 if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4495 e2fsprogs_cv_ino_t=yes
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 e2fsprogs_cv_ino_t=no
4505 echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
4506 if test "$e2fsprogs_cv_ino_t" = yes; then
4507 cat >> confdefs.h <<\EOF
4508 #define HAVE_INO_T 1
4513 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4514 echo "configure:4515: checking for socket in -lsocket" >&5
4515 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4519 ac_save_LIBS="$LIBS"
4520 LIBS="-lsocket $LIBS"
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4524 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535 eval "ac_cv_lib_$ac_lib_var=yes"
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4540 eval "ac_cv_lib_$ac_lib_var=no"
4543 LIBS="$ac_save_LIBS"
4546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4550 echo "$ac_t""no" 1>&6
4554 echo $ac_n "checking for optreset""... $ac_c" 1>&6
4555 echo "configure:4556: checking for optreset" >&5
4556 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 egrep "optreset" >/dev/null 2>&1; then
4567 ac_cv_have_optreset=yes
4570 ac_cv_have_optreset=no
4575 echo "$ac_t""$ac_cv_have_optreset" 1>&6
4576 if test $ac_cv_have_optreset = yes; then
4577 cat >> confdefs.h <<\EOF
4578 #define HAVE_OPTRESET 1
4584 cat >> confdefs.h <<\EOF
4585 #define HAVE_EXT2_IOCTLS 1
4592 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4594 echo "On $host_os systems, root_prefix defaults to ''"
4600 if test "$prefix" = NONE ; then
4602 echo "On $host_os systems, prefix defaults to /usr"
4606 if test "$root_prefix" = NONE ; then
4607 if test "$prefix" = NONE ; then
4608 root_prefix="$ac_default_prefix"
4610 root_prefix="$prefix"
4614 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
4615 echo "configure:4616: checking whether linker accepts -static" >&5
4616 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4628 if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4630 ac_cv_e2fsprogs_use_static=yes
4632 echo "configure: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4635 ac_cv_e2fsprogs_use_static=no
4638 LDFLAGS=$SAVE_LDFLAGS
4643 ac_cv_e2fsprogs_use_static=no
4646 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
4648 if test $ac_cv_e2fsprogs_use_static = yes; then
4649 LDFLAG_STATIC=-static
4652 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4653 ET_DIR=`cd ${srcdir}/lib/et; pwd`
4656 if test "$cross_compiling" = yes ; then
4662 test -d lib || mkdir lib
4663 test -d include || mkdir include
4664 test -d include/linux || mkdir include/linux
4665 test -d include/asm || mkdir include/asm
4667 if test -d ${srcdir}/resize ; then
4668 rmakefile=resize/Makefile
4671 cat > confcache <<\EOF
4672 # This file is a shell script that caches the results of configure
4673 # tests run on this system so they can be shared between configure
4674 # scripts and configure runs. It is not useful on other systems.
4675 # If it contains results you don't want to keep, you may remove or edit it.
4677 # By default, configure uses ./config.cache as the cache file,
4678 # creating it if it does not exist already. You can give configure
4679 # the --cache-file=FILE option to use a different cache file; that is
4680 # what configure does when it calls configure scripts in
4681 # subdirectories, so they share the cache.
4682 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4683 # config.status only pays attention to the cache file if you give it the
4684 # --recheck option to rerun configure.
4687 # The following way of writing the cache mishandles newlines in values,
4688 # but we know of no workaround that is simple, portable, and efficient.
4689 # So, don't put newlines in cache variables' values.
4690 # Ultrix sh set writes to stderr and can't be redirected directly,
4691 # and sets the high bit in the cache file unless we assign to the vars.
4693 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4695 # `set' does not quote correctly, so add quotes (double-quote substitution
4696 # turns \\\\ into \\, and sed turns \\ into \).
4698 -e "s/'/'\\\\''/g" \
4699 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4702 # `set' quotes correctly as required by POSIX, so do not add quotes.
4703 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4706 if cmp -s $cache_file confcache; then
4709 if test -w $cache_file; then
4710 echo "updating cache $cache_file"
4711 cat confcache > $cache_file
4713 echo "not updating unwritable cache $cache_file"
4718 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4721 # Let make expand exec_prefix.
4722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4724 # Any assignment to VPATH causes Sun make to only execute
4725 # the first set of double-colon rules, so remove it if not needed.
4726 # If there is a colon in the path, we need to keep it.
4727 if test "x$srcdir" = x.; then
4728 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4731 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4733 # Transform confdefs.h into DEFS.
4734 # Protect against shell expansion while executing Makefile rules.
4735 # Protect against Makefile macro expansion.
4736 cat > conftest.defs <<\EOF
4737 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4738 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4743 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4747 # Without the "./", some shells look in PATH for config.status.
4748 : ${CONFIG_STATUS=./config.status}
4750 echo creating $CONFIG_STATUS
4751 rm -f $CONFIG_STATUS
4752 cat > $CONFIG_STATUS <<EOF
4754 # Generated automatically by configure.
4755 # Run this file to recreate the current configuration.
4756 # This directory was configured as follows,
4757 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4759 # $0 $ac_configure_args
4761 # Compiler output produced by configure, useful for debugging
4762 # configure, is in ./config.log if it exists.
4764 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4767 case "\$ac_option" in
4768 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4769 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4770 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4771 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4772 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4774 -help | --help | --hel | --he | --h)
4775 echo "\$ac_cs_usage"; exit 0 ;;
4776 *) echo "\$ac_cs_usage"; exit 1 ;;
4780 ac_given_srcdir=$srcdir
4781 ac_given_INSTALL="$INSTALL"
4783 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
4784 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4785 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
4786 tests/progs/Makefile $rmakefile doc/Makefile
4787 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4789 cat >> $CONFIG_STATUS <<EOF
4791 # Protect against being on the right side of a sed subst in config.status.
4792 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4793 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4797 s%@CFLAGS@%$CFLAGS%g
4798 s%@CPPFLAGS@%$CPPFLAGS%g
4799 s%@CXXFLAGS@%$CXXFLAGS%g
4800 s%@FFLAGS@%$FFLAGS%g
4802 s%@LDFLAGS@%$LDFLAGS%g
4804 s%@exec_prefix@%$exec_prefix%g
4805 s%@prefix@%$prefix%g
4806 s%@program_transform_name@%$program_transform_name%g
4807 s%@bindir@%$bindir%g
4808 s%@sbindir@%$sbindir%g
4809 s%@libexecdir@%$libexecdir%g
4810 s%@datadir@%$datadir%g
4811 s%@sysconfdir@%$sysconfdir%g
4812 s%@sharedstatedir@%$sharedstatedir%g
4813 s%@localstatedir@%$localstatedir%g
4814 s%@libdir@%$libdir%g
4815 s%@includedir@%$includedir%g
4816 s%@oldincludedir@%$oldincludedir%g
4817 s%@infodir@%$infodir%g
4818 s%@mandir@%$mandir%g
4819 /@MCONFIG@/r $MCONFIG
4821 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4822 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4823 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
4825 s%@host_alias@%$host_alias%g
4826 s%@host_cpu@%$host_cpu%g
4827 s%@host_vendor@%$host_vendor%g
4828 s%@host_os@%$host_os%g
4831 s%@CCOPTS@%$CCOPTS%g
4833 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
4834 s%@DLL_CMT@%$DLL_CMT%g
4835 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
4837 s%@ELF_CMT@%$ELF_CMT%g
4838 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
4840 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4841 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4842 s%@MAKEFILE_BSDLIB@%%g
4843 s%@PACKAGE@%$PACKAGE%g
4844 s%@VERSION@%$VERSION%g
4845 s%@SET_MAKE@%$SET_MAKE%g
4846 s%@RANLIB@%$RANLIB%g
4847 s%@ALLOCA@%$ALLOCA%g
4848 s%@USE_NLS@%$USE_NLS%g
4849 s%@MSGFMT@%$MSGFMT%g
4850 s%@GMSGFMT@%$GMSGFMT%g
4851 s%@XGETTEXT@%$XGETTEXT%g
4852 s%@GENCAT@%$GENCAT%g
4853 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4854 s%@CATALOGS@%$CATALOGS%g
4855 s%@CATOBJEXT@%$CATOBJEXT%g
4856 s%@DATADIRNAME@%$DATADIRNAME%g
4857 s%@GMOFILES@%$GMOFILES%g
4858 s%@INSTOBJEXT@%$INSTOBJEXT%g
4859 s%@INTLDEPS@%$INTLDEPS%g
4860 s%@INTLLIBS@%$INTLLIBS%g
4861 s%@INTLOBJS@%$INTLOBJS%g
4862 s%@POFILES@%$POFILES%g
4864 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4866 s%@GT_YES@%$GT_YES%g
4867 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4869 s%@PROFILE_CMT@%$PROFILE_CMT%g
4870 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4871 s%@MAKEFILE_PROFILE@%%g
4872 s%@CHECKER_CMT@%$CHECKER_CMT%g
4873 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4874 s%@MAKEFILE_CHECKER@%%g
4875 s%@LIB_EXT@%$LIB_EXT%g
4876 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4877 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
4879 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
4880 s%@FSCK_PROG@%$FSCK_PROG%g
4881 s%@FSCK_MAN@%$FSCK_MAN%g
4882 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4883 s%@MAKEFILE_LIBRARY@%%g
4884 s%@BINARY_TYPE@%$BINARY_TYPE%g
4895 s%@build_alias@%$build_alias%g
4896 s%@build_cpu@%$build_cpu%g
4897 s%@build_vendor@%$build_vendor%g
4898 s%@build_os@%$build_os%g
4901 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4902 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4903 s%@INSTALL_DATA@%$INSTALL_DATA%g
4904 s%@BUILD_CC@%$BUILD_CC%g
4905 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4906 s%@SIZEOF_INT@%$SIZEOF_INT%g
4907 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
4908 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
4909 s%@SOCKET_LIB@%$SOCKET_LIB%g
4910 s%@root_prefix@%$root_prefix%g
4911 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
4912 s%@SS_DIR@%$SS_DIR%g
4913 s%@ET_DIR@%$ET_DIR%g
4914 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
4919 cat >> $CONFIG_STATUS <<\EOF
4921 # Split the substitutions into bite-sized pieces for seds with
4922 # small command number limits, like on Digital OSF/1 and HP-UX.
4923 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4924 ac_file=1 # Number of current file.
4925 ac_beg=1 # First line for current file.
4926 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4929 while $ac_more_lines; do
4930 if test $ac_beg -gt 1; then
4931 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4933 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4935 if test ! -s conftest.s$ac_file; then
4937 rm -f conftest.s$ac_file
4939 if test -z "$ac_sed_cmds"; then
4940 ac_sed_cmds="sed -f conftest.s$ac_file"
4942 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4944 ac_file=`expr $ac_file + 1`
4946 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4949 if test -z "$ac_sed_cmds"; then
4954 cat >> $CONFIG_STATUS <<EOF
4956 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
4957 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4958 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
4959 tests/progs/Makefile $rmakefile doc/Makefile
4960 intl/Makefile po/Makefile.in"}
4962 cat >> $CONFIG_STATUS <<\EOF
4963 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4966 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4967 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4968 *) ac_file_in="${ac_file}.in" ;;
4971 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4973 # Remove last slash and all that follows it. Not all systems have dirname.
4974 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4975 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4976 # The file is in a subdirectory.
4977 test ! -d "$ac_dir" && mkdir "$ac_dir"
4978 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4979 # A "../" for each directory in $ac_dir_suffix.
4980 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4982 ac_dir_suffix= ac_dots=
4985 case "$ac_given_srcdir" in
4987 if test -z "$ac_dots"; then top_srcdir=.
4988 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4989 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4991 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4992 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4995 case "$ac_given_INSTALL" in
4996 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4997 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5000 echo creating "$ac_file"
5002 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5004 *Makefile*) ac_comsub="1i\\
5005 # $configure_input" ;;
5009 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5011 s%@configure_input@%$configure_input%g
5012 s%@srcdir@%$srcdir%g
5013 s%@top_srcdir@%$top_srcdir%g
5014 s%@INSTALL@%$INSTALL%g
5015 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5021 cat >> $CONFIG_STATUS <<EOF
5022 ac_sources="$nls_cv_header_libgt"
5023 ac_dests="$nls_cv_header_intl"
5026 cat >> $CONFIG_STATUS <<\EOF
5027 srcdir=$ac_given_srcdir
5028 while test -n "$ac_sources"; do
5029 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5030 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5032 echo "linking $srcdir/$ac_source to $ac_dest"
5034 if test ! -r $srcdir/$ac_source; then
5035 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5039 # Make relative symlinks.
5040 # Remove last slash and all that follows it. Not all systems have dirname.
5041 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5042 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5043 # The dest file is in a subdirectory.
5044 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5045 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5046 # A "../" for each directory in $ac_dest_dir_suffix.
5047 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5049 ac_dest_dir_suffix= ac_dots=
5053 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5054 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5057 # Make a symlink if possible; otherwise try a hard link.
5058 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5059 ln $srcdir/$ac_source $ac_dest; then :
5061 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5065 cat >> $CONFIG_STATUS <<EOF
5069 cat >> $CONFIG_STATUS <<\EOF
5070 case "$CONFIG_FILES" in *po/Makefile.in*)
5071 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5076 chmod +x $CONFIG_STATUS
5077 rm -fr confdefs* $ac_clean_files
5078 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1