blob: 6c5fc701b1d7a699ea40b36a653a206de2c335f8 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.4
5# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000015 --with-cc=COMPILER select compiler to use"
16ac_help="$ac_help
17 --with-linker=LINKER select linker to use"
18ac_help="$ac_help
19 --with-ccopts=CCOPTS select compiler command line options"
20ac_help="$ac_help
21 --with-ldopts=LDOPTS select linker command line options"
22ac_help="$ac_help
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000023 --with-usr-prefx=PREFIX specify a prefix corresponding to /usr (default ${prefix})"
24ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000025 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000026ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000027 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000028ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000029 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000031 --enable-profile build profiling libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000033 --enable-checker build checker libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000034ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000035 --enable-gcc-wall enable GCC anal warnings"
36ac_help="$ac_help
37 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000038ac_help="$ac_help
39 --enable-fsck build fsck wrapper program"
40ac_help="$ac_help
41 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000042
43# Initialize some variables set by options.
44# The variables have the same names as the options, with
45# dashes changed to underlines.
46build=NONE
47cache_file=./config.cache
48exec_prefix=NONE
49host=NONE
50no_create=
51nonopt=NONE
52no_recursion=
53prefix=NONE
54program_prefix=NONE
55program_suffix=NONE
56program_transform_name=s,x,x,
57silent=
58site=
59srcdir=
60target=NONE
61verbose=
62x_includes=NONE
63x_libraries=NONE
64
65# Initialize some other variables.
66subdirs=
67
68ac_prev=
69for ac_option
70do
71
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
75 ac_prev=
76 continue
77 fi
78
79 case "$ac_option" in
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 *) ac_optarg= ;;
82 esac
83
84 # Accept the important Cygnus configure options, so we can diagnose typos.
85
86 case "$ac_option" in
87
88 -build | --build | --buil | --bui | --bu | --b)
89 ac_prev=build ;;
90 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
91 build="$ac_optarg" ;;
92
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 ac_prev=cache_file ;;
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
99
100 -disable-* | --disable-*)
101 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 fi
106 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
108
109 -enable-* | --enable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 fi
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 case "$ac_option" in
117 *=*) ;;
118 *) ac_optarg=yes ;;
119 esac
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
121
122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124 | --exec | --exe | --ex)
125 ac_prev=exec_prefix ;;
126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128 | --exec=* | --exe=* | --ex=*)
129 exec_prefix="$ac_optarg" ;;
130
131 -gas | --gas | --ga | --g)
132 # Obsolete; use --with-gas.
133 with_gas=yes ;;
134
135 -help | --help | --hel | --he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
138 cat << EOF
139Usage: configure [options] [host]
140Options: [defaults in brackets after descriptions]
141Configuration:
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --version print the version of autoconf that created configure
147Directory and file names:
148 --prefix=PREFIX install architecture-independent files in PREFIX
149 [$ac_default_prefix]
150 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
151 [same as prefix]
152 --srcdir=DIR find the sources in DIR [configure dir or ..]
153 --program-prefix=PREFIX prepend PREFIX to installed program names
154 --program-suffix=SUFFIX append SUFFIX to installed program names
155 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
156Host type:
157 --build=BUILD configure for building on BUILD [BUILD=HOST]
158 --host=HOST configure for HOST [guessed]
159 --target=TARGET configure for TARGET [TARGET=HOST]
160Features and packages:
161 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
162 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
163 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
164 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
165 --x-includes=DIR X include files are in DIR
166 --x-libraries=DIR X library files are in DIR
167--enable and --with options recognized:$ac_help
168EOF
169 exit 0 ;;
170
171 -host | --host | --hos | --ho)
172 ac_prev=host ;;
173 -host=* | --host=* | --hos=* | --ho=*)
174 host="$ac_optarg" ;;
175
176 -nfp | --nfp | --nf)
177 # Obsolete; use --without-fp.
178 with_fp=no ;;
179
180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
181 | --no-cr | --no-c)
182 no_create=yes ;;
183
184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
186 no_recursion=yes ;;
187
188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
189 ac_prev=prefix ;;
190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
191 prefix="$ac_optarg" ;;
192
193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
194 | --program-pre | --program-pr | --program-p)
195 ac_prev=program_prefix ;;
196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
198 program_prefix="$ac_optarg" ;;
199
200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
201 | --program-suf | --program-su | --program-s)
202 ac_prev=program_suffix ;;
203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
205 program_suffix="$ac_optarg" ;;
206
207 -program-transform-name | --program-transform-name \
208 | --program-transform-nam | --program-transform-na \
209 | --program-transform-n | --program-transform- \
210 | --program-transform | --program-transfor \
211 | --program-transfo | --program-transf \
212 | --program-trans | --program-tran \
213 | --progr-tra | --program-tr | --program-t)
214 ac_prev=program_transform_name ;;
215 -program-transform-name=* | --program-transform-name=* \
216 | --program-transform-nam=* | --program-transform-na=* \
217 | --program-transform-n=* | --program-transform-=* \
218 | --program-transform=* | --program-transfor=* \
219 | --program-transfo=* | --program-transf=* \
220 | --program-trans=* | --program-tran=* \
221 | --progr-tra=* | --program-tr=* | --program-t=*)
222 program_transform_name="$ac_optarg" ;;
223
224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
225 | -silent | --silent | --silen | --sile | --sil)
226 silent=yes ;;
227
228 -site | --site | --sit)
229 ac_prev=site ;;
230 -site=* | --site=* | --sit=*)
231 site="$ac_optarg" ;;
232
233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
234 ac_prev=srcdir ;;
235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
236 srcdir="$ac_optarg" ;;
237
238 -target | --target | --targe | --targ | --tar | --ta | --t)
239 ac_prev=target ;;
240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
241 target="$ac_optarg" ;;
242
243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
244 verbose=yes ;;
245
246 -version | --version | --versio | --versi | --vers)
247 echo "configure generated by autoconf version 2.4"
248 exit 0 ;;
249
250 -with-* | --with-*)
251 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
252 # Reject names that are not valid shell variable names.
253 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
254 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
255 fi
256 ac_package=`echo $ac_package| sed 's/-/_/g'`
257 case "$ac_option" in
258 *=*) ;;
259 *) ac_optarg=yes ;;
260 esac
261 eval "with_${ac_package}='$ac_optarg'" ;;
262
263 -without-* | --without-*)
264 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
265 # Reject names that are not valid shell variable names.
266 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
267 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
268 fi
269 ac_package=`echo $ac_package| sed 's/-/_/g'`
270 eval "with_${ac_package}=no" ;;
271
272 --x)
273 # Obsolete; use --with-x.
274 with_x=yes ;;
275
276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
277 | --x-incl | --x-inc | --x-in | --x-i)
278 ac_prev=x_includes ;;
279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
281 x_includes="$ac_optarg" ;;
282
283 -x-libraries | --x-libraries | --x-librarie | --x-librari \
284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
285 ac_prev=x_libraries ;;
286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
288 x_libraries="$ac_optarg" ;;
289
290 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
291 ;;
292
293 *)
294 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
295 echo "configure: warning: $ac_option: invalid host type" 1>&2
296 fi
297 if test "x$nonopt" != xNONE; then
298 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
299 fi
300 nonopt="$ac_option"
301 ;;
302
303 esac
304done
305
306if test -n "$ac_prev"; then
307 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
308fi
309
310trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
311
312# File descriptor usage:
313# 0 standard input
314# 1 file creation
315# 2 errors and warnings
316# 3 some systems may open it to /dev/tty
317# 4 used on the Kubota Titan
318# 6 checking for... messages and results
319# 5 compiler messages saved in config.log
320if test "$silent" = yes; then
321 exec 6>/dev/null
322else
323 exec 6>&1
324fi
325exec 5>./config.log
326
327echo "\
328This file contains any messages produced by compilers while
329running configure, to aid debugging if configure makes a mistake.
330" 1>&5
331
332# Strip out --no-create and --no-recursion so they do not pile up.
333# Also quote any args containing shell metacharacters.
334ac_configure_args=
335for ac_arg
336do
337 case "$ac_arg" in
338 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
339 | --no-cr | --no-c) ;;
340 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
341 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
342 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
343 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
344 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
345 esac
346done
347
348# NLS nuisances.
349# Only set LANG and LC_ALL to C if already set.
350# These must not be set unconditionally because not all systems understand
351# e.g. LANG=C (notably SCO).
352if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
353if test "${LANG+set}" = set; then LANG=C; export LANG; fi
354
355# confdefs.h avoids OS command line length limits that DEFS can exceed.
356rm -rf conftest* confdefs.h
357# AIX cpp loses on an empty file, so make sure it contains at least a newline.
358echo > confdefs.h
359
360# A filename unique to this package, relative to the directory that
361# configure is in, which we can look for to find out if srcdir is correct.
362ac_unique_file=version.h
363
364# Find the source files, if location was not specified.
365if test -z "$srcdir"; then
366 ac_srcdir_defaulted=yes
367 # Try the directory containing this script, then its parent.
368 ac_prog=$0
369 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
370 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
371 srcdir=$ac_confdir
372 if test ! -r $srcdir/$ac_unique_file; then
373 srcdir=..
374 fi
375else
376 ac_srcdir_defaulted=no
377fi
378if test ! -r $srcdir/$ac_unique_file; then
379 if test "$ac_srcdir_defaulted" = yes; then
380 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
381 else
382 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
383 fi
384fi
385srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
386
387# Prefer explicitly selected file to automatically selected ones.
388if test -z "$CONFIG_SITE"; then
389 if test "x$prefix" != xNONE; then
390 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
391 else
392 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
393 fi
394fi
395for ac_site_file in $CONFIG_SITE; do
396 if test -r "$ac_site_file"; then
397 echo "loading site script $ac_site_file"
398 . "$ac_site_file"
399 fi
400done
401
402if test -r "$cache_file"; then
403 echo "loading cache $cache_file"
404 . $cache_file
405else
406 echo "creating cache $cache_file"
407 > $cache_file
408fi
409
410ac_ext=c
411# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
412ac_cpp='$CPP $CPPFLAGS'
413ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
414ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
415
416if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
417 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
418 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
419 ac_n= ac_c='
420' ac_t=' '
421 else
422 ac_n=-n ac_c= ac_t=
423 fi
424else
425 ac_n= ac_c='\c' ac_t=
426fi
427
428
429MCONFIG=./MCONFIG
430
Theodore Ts'o74becf31997-04-26 14:37:06 +0000431BINARY_TYPE=bin
432E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
433 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
434DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
435 | tr \" " "`
436MONTH=`echo $DATE | awk -F- '{print $2}'`
437YEAR=`echo $DATE | awk -F- '{print $3}'`
438
439if expr $YEAR ">" 90 >/dev/null ; then
440 E2FSPROGS_YEAR=19$YEAR
441else
442 E2FSPROGS_YEAR=20$YEAR
443fi
444
445case $MONTH in
446Jan) E2FSPROGS_MONTH="January" ;;
447Feb) E2FSPROGS_MONTH="February" ;;
448Mar) E2FSPROGS_MONTH="March" ;;
449Apr) E2FSPROGS_MONTH="April" ;;
450May) E2FSPROGS_MONTH="May" ;;
451Jun) E2FSPROGS_MONTH="June" ;;
452Jul) E2FSPROGS_MONTH="July" ;;
453Aug) E2FSPROGS_MONTH="August" ;;
454Sep) E2FSPROGS_MONTH="September" ;;
455Oct) E2FSPROGS_MONTH="October" ;;
456Nov) E2FSPROGS_MONTH="November" ;;
457Dec) E2FSPROGS_MONTH="December" ;;
458*) echo "Unknown month $MONTH??" ;;
459esac
460
461unset DATE MONTH YEAR
462echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
463echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
464
465
466
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000467
468ac_aux_dir=
469for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
470 if test -f $ac_dir/install-sh; then
471 ac_aux_dir=$ac_dir
472 ac_install_sh="$ac_aux_dir/install-sh -c"
473 break
474 elif test -f $ac_dir/install.sh; then
475 ac_aux_dir=$ac_dir
476 ac_install_sh="$ac_aux_dir/install.sh -c"
477 break
478 fi
479done
480if test -z "$ac_aux_dir"; then
481 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
482fi
483ac_config_guess=$ac_aux_dir/config.guess
484ac_config_sub=$ac_aux_dir/config.sub
485ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
486
487
488# Make sure we can run config.sub.
489if $ac_config_sub sun4 >/dev/null 2>&1; then :
490else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
491fi
492
493echo $ac_n "checking host system type""... $ac_c" 1>&6
494
495host_alias=$host
496case "$host_alias" in
497NONE)
498 case $nonopt in
499 NONE)
500 if host_alias=`$ac_config_guess`; then :
501 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
502 fi ;;
503 *) host_alias=$nonopt ;;
504 esac ;;
505esac
506
507host=`$ac_config_sub $host_alias`
508host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
509host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
510host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
511echo "$ac_t""$host" 1>&6
512
Theodore Ts'o74becf31997-04-26 14:37:06 +0000513# Check whether --with-cc or --without-cc was given.
514withval="$with_cc"
515if test -n "$withval"; then
516 echo "$ac_t""CC=$withval" 1>&6
517CC=$withval
518else
519 if test -z "$CC" ; then CC=cc; fi
520echo "$ac_t""CC defaults to $CC" 1>&6
521fi
522export CC
523
524# Check whether --with-linker or --without-linker was given.
525withval="$with_linker"
526if test -n "$withval"; then
527 echo "$ac_t""LD=$withval" 1>&6
528LD=$withval
529else
530 if test -z "$LD" ; then LD=$CC; fi
531echo "$ac_t""LD defaults to $LD" 1>&6
532fi
533export LD
534
535# Check whether --with-ccopts or --without-ccopts was given.
536withval="$with_ccopts"
537if test -n "$withval"; then
538 echo "$ac_t""CCOPTS is $withval" 1>&6
539CCOPTS=$withval
540CFLAGS="$CFLAGS $withval"
541else
542 CCOPTS=
543fi
544
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000545LIB_EXT=.a
546STATIC_LIB_EXT=.a
547PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +0000548# Check whether --with-ldopts or --without-ldopts was given.
549withval="$with_ldopts"
550if test -n "$withval"; then
551 echo "$ac_t""LDFLAGS is $withval" 1>&6
552LDFLAGS=$withval
553else
554 LDFLAGS=
555fi
556
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000557# Check whether --with-usr-prefix or --without-usr-prefix was given.
558withval="$with_usr_prefix"
559if test -n "$withval"; then
560 usr_prefix=$withval
561else
562 usr_prefix=NONE
563fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000564# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
565enableval="$enable_dll_shlibs"
566if test -n "$enableval"; then
567 if test "$enableval" = "no"
568then
569 DLL_CMT=#
570 MAKEFILE_DLL=/dev/null
571 echo "Disabling DLL shared libraries"
572else
573 DLL_CMT=
574 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000575 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000576 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000577 echo "Enabling DLL shared libraries"
578fi
579
580else
581 MAKEFILE_DLL=/dev/null
582DLL_CMT=#
583echo "Disabling DLL shared libraries by default"
584
585fi
586
587
588
589# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
590enableval="$enable_elf_shlibs"
591if test -n "$enableval"; then
592 if test "$enableval" = "no"
593then
594 ELF_CMT=#
595 MAKEFILE_ELF=/dev/null
596 echo "Disabling ELF shared libraries"
597else
598 ELF_CMT=
599 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000600 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000601 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000602 echo "Enabling ELF shared libraries"
603fi
604
605else
606 MAKEFILE_ELF=/dev/null
607ELF_CMT=#
608echo "Disabling ELF shared libraries by default"
609
610fi
611
612
613
614# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
615enableval="$enable_bsd_shlibs"
616if test -n "$enableval"; then
617 if test "$enableval" = "no"
618then
619 BSDLIB_CMT=#
620 MAKEFILE_BSDLIB=/dev/null
621 echo "Disabling BSD shared libraries"
622else
623 BSDLIB_CMT=
624 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000625 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000626 echo "Enabling BSD shared libraries"
627fi
628
629else
630 MAKEFILE_BSDLIB=/dev/null
631BSDLIB_CMT=#
632echo "Disabling BSD shared libraries by default"
633
634fi
635
636
637
638# Check whether --enable-profile or --disable-profile was given.
639enableval="$enable_profile"
640if test -n "$enableval"; then
641 if test "$enableval" = "no"
642then
643 PROFILE_CMT=#
644 MAKEFILE_PROFILE=/dev/null
645 echo "Disabling profiling libraries"
646else
647 PROFILE_CMT=
648 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000649 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000650 echo "Building profiling libraries"
651fi
652
653else
654 PROFILE_CMT=#
655MAKEFILE_PROFILE=/dev/null
656echo "Disabling profiling libraries by default"
657
658fi
659
660
661
662# Check whether --enable-checker or --disable-checker was given.
663enableval="$enable_checker"
664if test -n "$enableval"; then
665 if test "$enableval" = "no"
666then
667 CHECKER_CMT=#
668 MAKEFILE_CHECKER=/dev/null
669 echo "Disabling checker libraries"
670else
671 CHECKER_CMT=
672 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
673 echo "Building checker libraries"
674fi
675
676else
677 CHECKER_CMT=#
678MAKEFILE_CHECKER=/dev/null
679echo "Disabling checker libraries by default"
680
681fi
682
683
684
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000685
686
687
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000688# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
689enableval="$enable_gcc_wall"
690if test -n "$enableval"; then
691 if test "$enableval" = "no"
692then
693 W=#
694 echo "Disabling GCC warnings"
695else
696 W=
697 echo "Enabling GCC warnings"
698fi
699
700else
701 W=#
702echo "Disabling GCC warnings by default"
703
704fi
705
706
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000707# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
708enableval="$enable_dynamic_e2fsck"
709if test -n "$enableval"; then
710 if test "$enableval" = "no"
711then
712 E2FSCK_TYPE=static
713 echo "Building e2fsck statically"
714else
715 E2FSCK_TYPE=shared
716 echo "Building e2fsck dynamically"
717fi
718
719else
720 E2FSCK_TYPE=static
721echo "Building e2fsck statically by default"
722
723fi
724
725
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000726# Check whether --enable-fsck or --disable-fsck was given.
727enableval="$enable_fsck"
728if test -n "$enableval"; then
729 if test "$enableval" = "no"
730then
731 FSCK_PROG='' FSCK_MAN=''
732 echo "Not building fsck wrapper"
733else
734 FSCK_PROG=fsck FSCK_MAN=fsck.8
735 echo "Building fsck wrapper"
736fi
737
738else
739 case "$host_os" in
740 gnu*)
741 FSCK_PROG='' FSCK_MAN=''
742 echo "Not building fsck wrapper by default"
743 ;;
744 *)
745 FSCK_PROG=fsck FSCK_MAN=fsck.8
746 echo "Building fsck wrapper by default"
747esac
748
749fi
750
751
752
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000753MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
754
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000755# Check whether --enable-old-bitops or --disable-old-bitops was given.
756enableval="$enable_old_bitops"
757if test -n "$enableval"; then
758 if test "$enableval" = "no"
759then
760 echo "Using new (standard) bitmask operations"
761else
762 cat >> confdefs.h <<\EOF
763#define EXT2_OLD_BITOPS 1
764EOF
765
766 echo "Using old (native) bitmask operations"
767
768fi
769
770else
771 echo "Using standard bitmask operations by default"
772
773fi
774
Theodore Ts'o74becf31997-04-26 14:37:06 +0000775
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000776echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
777set dummy ${MAKE-make}; ac_make=$2
778if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
780else
781 cat > conftestmake <<\EOF
782all:
783 @echo 'ac_maketemp="${MAKE}"'
784EOF
785# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
786eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
787if test -n "$ac_maketemp"; then
788 eval ac_cv_prog_make_${ac_make}_set=yes
789else
790 eval ac_cv_prog_make_${ac_make}_set=no
791fi
792rm -f conftestmake
793fi
794if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
795 echo "$ac_t""yes" 1>&6
796 SET_MAKE=
797else
798 echo "$ac_t""no" 1>&6
799 SET_MAKE="MAKE=${MAKE-make}"
800fi
801
802# Extract the first word of "ln", so it can be a program name with args.
803set dummy ln; ac_word=$2
804echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
807else
808 case "$LN" in
809 /*)
810 ac_cv_path_LN="$LN" # Let the user override the test with a path.
811 ;;
812 *)
813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
814 for ac_dir in $PATH; do
815 test -z "$ac_dir" && ac_dir=.
816 if test -f $ac_dir/$ac_word; then
817 ac_cv_path_LN="$ac_dir/$ac_word"
818 break
819 fi
820 done
821 IFS="$ac_save_ifs"
822 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
823 ;;
824esac
825fi
826LN="$ac_cv_path_LN"
827if test -n "$LN"; then
828 echo "$ac_t""$LN" 1>&6
829else
830 echo "$ac_t""no" 1>&6
831fi
832
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000833echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
834if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
836else
837 rm -f conftestdata
838if ln -s X conftestdata 2>/dev/null
839then
840 rm -f conftestdata
841 ac_cv_prog_LN_S="ln -s"
842else
843 ac_cv_prog_LN_S=ln
844fi
845fi
846LN_S="$ac_cv_prog_LN_S"
847if test "$ac_cv_prog_LN_S" = "ln -s"; then
848 echo "$ac_t""yes" 1>&6
849else
850 echo "$ac_t""no" 1>&6
851fi
852
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000853# Extract the first word of "mv", so it can be a program name with args.
854set dummy mv; ac_word=$2
855echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
858else
859 case "$MV" in
860 /*)
861 ac_cv_path_MV="$MV" # Let the user override the test with a path.
862 ;;
863 *)
864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
865 for ac_dir in $PATH; do
866 test -z "$ac_dir" && ac_dir=.
867 if test -f $ac_dir/$ac_word; then
868 ac_cv_path_MV="$ac_dir/$ac_word"
869 break
870 fi
871 done
872 IFS="$ac_save_ifs"
873 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
874 ;;
875esac
876fi
877MV="$ac_cv_path_MV"
878if test -n "$MV"; then
879 echo "$ac_t""$MV" 1>&6
880else
881 echo "$ac_t""no" 1>&6
882fi
883
884# Extract the first word of "cp", so it can be a program name with args.
885set dummy cp; ac_word=$2
886echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
887if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889else
890 case "$CP" in
891 /*)
892 ac_cv_path_CP="$CP" # Let the user override the test with a path.
893 ;;
894 *)
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
896 for ac_dir in $PATH; do
897 test -z "$ac_dir" && ac_dir=.
898 if test -f $ac_dir/$ac_word; then
899 ac_cv_path_CP="$ac_dir/$ac_word"
900 break
901 fi
902 done
903 IFS="$ac_save_ifs"
904 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
905 ;;
906esac
907fi
908CP="$ac_cv_path_CP"
909if test -n "$CP"; then
910 echo "$ac_t""$CP" 1>&6
911else
912 echo "$ac_t""no" 1>&6
913fi
914
915# Extract the first word of "rm", so it can be a program name with args.
916set dummy rm; ac_word=$2
917echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
918if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
920else
921 case "$RM" in
922 /*)
923 ac_cv_path_RM="$RM" # Let the user override the test with a path.
924 ;;
925 *)
926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
927 for ac_dir in $PATH; do
928 test -z "$ac_dir" && ac_dir=.
929 if test -f $ac_dir/$ac_word; then
930 ac_cv_path_RM="$ac_dir/$ac_word"
931 break
932 fi
933 done
934 IFS="$ac_save_ifs"
935 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
936 ;;
937esac
938fi
939RM="$ac_cv_path_RM"
940if test -n "$RM"; then
941 echo "$ac_t""$RM" 1>&6
942else
943 echo "$ac_t""no" 1>&6
944fi
945
946# Extract the first word of "chmod", so it can be a program name with args.
947set dummy chmod; ac_word=$2
948echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
951else
952 case "$CHMOD" in
953 /*)
954 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
955 ;;
956 *)
957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
958 for ac_dir in $PATH; do
959 test -z "$ac_dir" && ac_dir=.
960 if test -f $ac_dir/$ac_word; then
961 ac_cv_path_CHMOD="$ac_dir/$ac_word"
962 break
963 fi
964 done
965 IFS="$ac_save_ifs"
966 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
967 ;;
968esac
969fi
970CHMOD="$ac_cv_path_CHMOD"
971if test -n "$CHMOD"; then
972 echo "$ac_t""$CHMOD" 1>&6
973else
974 echo "$ac_t""no" 1>&6
975fi
976
977# Extract the first word of "awk", so it can be a program name with args.
978set dummy awk; ac_word=$2
979echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
980if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
982else
983 case "$AWK" in
984 /*)
985 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
986 ;;
987 *)
988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
989 for ac_dir in $PATH; do
990 test -z "$ac_dir" && ac_dir=.
991 if test -f $ac_dir/$ac_word; then
992 ac_cv_path_AWK="$ac_dir/$ac_word"
993 break
994 fi
995 done
996 IFS="$ac_save_ifs"
997 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
998 ;;
999esac
1000fi
1001AWK="$ac_cv_path_AWK"
1002if test -n "$AWK"; then
1003 echo "$ac_t""$AWK" 1>&6
1004else
1005 echo "$ac_t""no" 1>&6
1006fi
1007
1008# Extract the first word of "sed", so it can be a program name with args.
1009set dummy sed; ac_word=$2
1010echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1013else
1014 case "$SED" in
1015 /*)
1016 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1017 ;;
1018 *)
1019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1020 for ac_dir in $PATH; do
1021 test -z "$ac_dir" && ac_dir=.
1022 if test -f $ac_dir/$ac_word; then
1023 ac_cv_path_SED="$ac_dir/$ac_word"
1024 break
1025 fi
1026 done
1027 IFS="$ac_save_ifs"
1028 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1029 ;;
1030esac
1031fi
1032SED="$ac_cv_path_SED"
1033if test -n "$SED"; then
1034 echo "$ac_t""$SED" 1>&6
1035else
1036 echo "$ac_t""no" 1>&6
1037fi
1038
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001039echo $ac_n "checking build system type""... $ac_c" 1>&6
1040
1041build_alias=$build
1042case "$build_alias" in
1043NONE)
1044 case $nonopt in
1045 NONE) build_alias=$host_alias ;;
1046 *) build_alias=$nonopt ;;
1047 esac ;;
1048esac
1049
1050build=`$ac_config_sub $build_alias`
1051build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1052build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1053build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1054echo "$ac_t""$build" 1>&6
1055
1056if test $host != $build; then
1057 ac_tool_prefix=${host_alias}-
1058else
1059 ac_tool_prefix=
1060fi
1061
1062# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1063set dummy ${ac_tool_prefix}ar; ac_word=$2
1064echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1067else
1068 if test -n "$AR"; then
1069 ac_cv_prog_AR="$AR" # Let the user override the test.
1070else
1071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1072 for ac_dir in $PATH; do
1073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 ac_cv_prog_AR="${ac_tool_prefix}ar"
1076 break
1077 fi
1078 done
1079 IFS="$ac_save_ifs"
1080fi
1081fi
1082AR="$ac_cv_prog_AR"
1083if test -n "$AR"; then
1084 echo "$ac_t""$AR" 1>&6
1085else
1086 echo "$ac_t""no" 1>&6
1087fi
1088
1089
1090if test -z "$ac_cv_prog_AR"; then
1091if test -n "$ac_tool_prefix"; then
1092 # Extract the first word of "ar", so it can be a program name with args.
1093set dummy ar; ac_word=$2
1094echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1097else
1098 if test -n "$AR"; then
1099 ac_cv_prog_AR="$AR" # Let the user override the test.
1100else
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1102 for ac_dir in $PATH; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_AR="ar"
1106 break
1107 fi
1108 done
1109 IFS="$ac_save_ifs"
1110 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1111fi
1112fi
1113AR="$ac_cv_prog_AR"
1114if test -n "$AR"; then
1115 echo "$ac_t""$AR" 1>&6
1116else
1117 echo "$ac_t""no" 1>&6
1118fi
1119
1120else
1121 AR="ar"
1122fi
1123fi
1124
1125# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1126set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1127echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1130else
1131 if test -n "$RANLIB"; then
1132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1133else
1134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1135 for ac_dir in $PATH; do
1136 test -z "$ac_dir" && ac_dir=.
1137 if test -f $ac_dir/$ac_word; then
1138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1139 break
1140 fi
1141 done
1142 IFS="$ac_save_ifs"
1143fi
1144fi
1145RANLIB="$ac_cv_prog_RANLIB"
1146if test -n "$RANLIB"; then
1147 echo "$ac_t""$RANLIB" 1>&6
1148else
1149 echo "$ac_t""no" 1>&6
1150fi
1151
1152
1153if test -z "$ac_cv_prog_RANLIB"; then
1154if test -n "$ac_tool_prefix"; then
1155 # Extract the first word of "ranlib", so it can be a program name with args.
1156set dummy ranlib; ac_word=$2
1157echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1160else
1161 if test -n "$RANLIB"; then
1162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1163else
1164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1165 for ac_dir in $PATH; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_RANLIB="ranlib"
1169 break
1170 fi
1171 done
1172 IFS="$ac_save_ifs"
1173 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1174fi
1175fi
1176RANLIB="$ac_cv_prog_RANLIB"
1177if test -n "$RANLIB"; then
1178 echo "$ac_t""$RANLIB" 1>&6
1179else
1180 echo "$ac_t""no" 1>&6
1181fi
1182
1183else
1184 RANLIB=":"
1185fi
1186fi
1187
1188# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1189set dummy ${ac_tool_prefix}strip; ac_word=$2
1190echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1191if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193else
1194 if test -n "$STRIP"; then
1195 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1196else
1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1198 for ac_dir in $PATH; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1202 break
1203 fi
1204 done
1205 IFS="$ac_save_ifs"
1206fi
1207fi
1208STRIP="$ac_cv_prog_STRIP"
1209if test -n "$STRIP"; then
1210 echo "$ac_t""$STRIP" 1>&6
1211else
1212 echo "$ac_t""no" 1>&6
1213fi
1214
1215
1216if test -z "$ac_cv_prog_STRIP"; then
1217if test -n "$ac_tool_prefix"; then
1218 # Extract the first word of "strip", so it can be a program name with args.
1219set dummy strip; ac_word=$2
1220echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1221if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1223else
1224 if test -n "$STRIP"; then
1225 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1226else
1227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1228 for ac_dir in $PATH; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/$ac_word; then
1231 ac_cv_prog_STRIP="strip"
1232 break
1233 fi
1234 done
1235 IFS="$ac_save_ifs"
1236 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1237fi
1238fi
1239STRIP="$ac_cv_prog_STRIP"
1240if test -n "$STRIP"; then
1241 echo "$ac_t""$STRIP" 1>&6
1242else
1243 echo "$ac_t""no" 1>&6
1244fi
1245
1246else
1247 STRIP=":"
1248fi
1249fi
1250
1251# Extract the first word of "gcc", so it can be a program name with args.
1252set dummy gcc; ac_word=$2
1253echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1254if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1256else
1257 if test -n "$CC"; then
1258 ac_cv_prog_CC="$CC" # Let the user override the test.
1259else
1260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1261 for ac_dir in $PATH; do
1262 test -z "$ac_dir" && ac_dir=.
1263 if test -f $ac_dir/$ac_word; then
1264 ac_cv_prog_CC="gcc"
1265 break
1266 fi
1267 done
1268 IFS="$ac_save_ifs"
1269 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
1270fi
1271fi
1272CC="$ac_cv_prog_CC"
1273if test -n "$CC"; then
1274 echo "$ac_t""$CC" 1>&6
1275else
1276 echo "$ac_t""no" 1>&6
1277fi
1278
1279
1280echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1281if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1283else
1284 cat > conftest.c <<EOF
1285#ifdef __GNUC__
1286 yes;
1287#endif
1288EOF
1289if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
1290 ac_cv_prog_gcc=yes
1291else
1292 ac_cv_prog_gcc=no
1293fi
1294fi
1295echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1296if test $ac_cv_prog_gcc = yes; then
1297 GCC=yes
1298 if test "${CFLAGS+set}" != set; then
1299 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1300if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1302else
1303 echo 'void f(){}' > conftest.c
1304if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1305 ac_cv_prog_gcc_g=yes
1306else
1307 ac_cv_prog_gcc_g=no
1308fi
1309rm -f conftest*
1310
1311fi
1312 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
1313 if test $ac_cv_prog_gcc_g = yes; then
1314 CFLAGS="-g -O"
1315 else
1316 CFLAGS="-O"
1317 fi
1318 fi
1319else
1320 GCC=
1321 test "${CFLAGS+set}" = set || CFLAGS="-g"
1322fi
1323
1324# Find a good install program. We prefer a C program (faster),
1325# so one script is as good as another. But avoid the broken or
1326# incompatible versions:
1327# SysV /etc/install, /usr/sbin/install
1328# SunOS /usr/etc/install
1329# IRIX /sbin/install
1330# AIX /bin/install
1331# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1332# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1333# ./install, which can be erroneously created by make from ./install.sh.
1334echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1335if test -z "$INSTALL"; then
1336if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1338else
1339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1340 for ac_dir in $PATH; do
1341 # Account for people who put trailing slashes in PATH elements.
1342 case "$ac_dir/" in
1343 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1344 *)
1345 # OSF1 and SCO ODT 3.0 have their own names for install.
1346 for ac_prog in ginstall installbsd scoinst install; do
1347 if test -f $ac_dir/$ac_prog; then
1348 if test $ac_prog = install &&
1349 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1350 # AIX install. It has an incompatible calling convention.
1351 # OSF/1 installbsd also uses dspmsg, but is usable.
1352 :
1353 else
1354 ac_cv_path_install="$ac_dir/$ac_prog -c"
1355 break 2
1356 fi
1357 fi
1358 done
1359 ;;
1360 esac
1361 done
1362 IFS="$ac_save_ifs"
1363 # As a last resort, use the slow shell script.
1364 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
1365fi
1366 INSTALL="$ac_cv_path_install"
1367fi
1368echo "$ac_t""$INSTALL" 1>&6
1369
1370# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1371# It thinks the first close brace ends the variable substitution.
1372test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1373
1374test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1375
1376# If we cannot run a trivial program, we must be cross compiling.
1377echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1378if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1380else
1381 if test "$cross_compiling" = yes; then
1382 ac_cv_c_cross=yes
1383else
1384cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001385#line 1386 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001386#include "confdefs.h"
1387main(){return(0);}
1388EOF
1389eval $ac_link
1390if test -s conftest && (./conftest; exit) 2>/dev/null; then
1391 ac_cv_c_cross=no
1392else
1393 ac_cv_c_cross=yes
1394fi
1395fi
1396rm -fr conftest*
1397fi
1398cross_compiling=$ac_cv_c_cross
1399echo "$ac_t""$ac_cv_c_cross" 1>&6
1400
1401echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1402# On Suns, sometimes $CPP names a directory.
1403if test -n "$CPP" && test -d "$CPP"; then
1404 CPP=
1405fi
1406if test -z "$CPP"; then
1407if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1409else
1410 # This must be in double quotes, not single quotes, because CPP may get
1411 # substituted into the Makefile and "${CC-cc}" will confuse make.
1412 CPP="${CC-cc} -E"
1413 # On the NeXT, cc -E runs the code through the compiler's parser,
1414 # not just through cpp.
1415 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001416#line 1417 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001417#include "confdefs.h"
1418#include <assert.h>
1419Syntax Error
1420EOF
1421eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1422ac_err=`grep -v '^ *+' conftest.out`
1423if test -z "$ac_err"; then
1424 :
1425else
1426 echo "$ac_err" >&5
1427 rm -rf conftest*
1428 CPP="${CC-cc} -E -traditional-cpp"
1429 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001430#line 1431 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001431#include "confdefs.h"
1432#include <assert.h>
1433Syntax Error
1434EOF
1435eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1436ac_err=`grep -v '^ *+' conftest.out`
1437if test -z "$ac_err"; then
1438 :
1439else
1440 echo "$ac_err" >&5
1441 rm -rf conftest*
1442 CPP=/lib/cpp
1443fi
1444rm -f conftest*
1445fi
1446rm -f conftest*
1447 ac_cv_prog_CPP="$CPP"
1448fi
1449 CPP="$ac_cv_prog_CPP"
1450else
1451 ac_cv_prog_CPP="$CPP"
1452fi
1453echo "$ac_t""$CPP" 1>&6
1454
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001455for ac_hdr in stdlib.h unistd.h stdarg.h errno.h mntent.h dirent.h getopt.h linux/fd.h linux/major.h sys/disklabel.h sys/sockio.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001456do
1457ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1458echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1459if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461else
1462 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001463#line 1464 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001464#include "confdefs.h"
1465#include <$ac_hdr>
1466EOF
1467eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1468ac_err=`grep -v '^ *+' conftest.out`
1469if test -z "$ac_err"; then
1470 rm -rf conftest*
1471 eval "ac_cv_header_$ac_safe=yes"
1472else
1473 echo "$ac_err" >&5
1474 rm -rf conftest*
1475 eval "ac_cv_header_$ac_safe=no"
1476fi
1477rm -f conftest*
1478fi
1479if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1480 echo "$ac_t""yes" 1>&6
1481 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
1482 cat >> confdefs.h <<EOF
1483#define $ac_tr_hdr 1
1484EOF
1485
1486else
1487 echo "$ac_t""no" 1>&6
1488fi
1489done
1490
1491echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1492if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494else
1495 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001496#line 1497 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001497#include "confdefs.h"
1498/* System header to define __stub macros and hopefully few prototypes,
1499 which can conflict with char vprintf(); below. */
1500#include <assert.h>
1501/* Override any gcc2 internal prototype to avoid an error. */
1502char vprintf();
1503
1504int main() { return 0; }
1505int t() {
1506
1507/* The GNU C library defines this for functions which it implements
1508 to always fail with ENOSYS. Some functions are actually named
1509 something starting with __ and the normal name is an alias. */
1510#if defined (__stub_vprintf) || defined (__stub___vprintf)
1511choke me
1512#else
1513vprintf();
1514#endif
1515
1516; return 0; }
1517EOF
1518if eval $ac_link; then
1519 rm -rf conftest*
1520 eval "ac_cv_func_vprintf=yes"
1521else
1522 rm -rf conftest*
1523 eval "ac_cv_func_vprintf=no"
1524fi
1525rm -f conftest*
1526
1527fi
1528if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1529 echo "$ac_t""yes" 1>&6
1530 cat >> confdefs.h <<\EOF
1531#define HAVE_VPRINTF 1
1532EOF
1533
1534else
1535 echo "$ac_t""no" 1>&6
1536fi
1537
1538if test "$ac_cv_func_vprintf" != yes; then
1539echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1540if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1542else
1543 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001544#line 1545 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001545#include "confdefs.h"
1546/* System header to define __stub macros and hopefully few prototypes,
1547 which can conflict with char _doprnt(); below. */
1548#include <assert.h>
1549/* Override any gcc2 internal prototype to avoid an error. */
1550char _doprnt();
1551
1552int main() { return 0; }
1553int t() {
1554
1555/* The GNU C library defines this for functions which it implements
1556 to always fail with ENOSYS. Some functions are actually named
1557 something starting with __ and the normal name is an alias. */
1558#if defined (__stub__doprnt) || defined (__stub____doprnt)
1559choke me
1560#else
1561_doprnt();
1562#endif
1563
1564; return 0; }
1565EOF
1566if eval $ac_link; then
1567 rm -rf conftest*
1568 eval "ac_cv_func__doprnt=yes"
1569else
1570 rm -rf conftest*
1571 eval "ac_cv_func__doprnt=no"
1572fi
1573rm -f conftest*
1574
1575fi
1576if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1577 echo "$ac_t""yes" 1>&6
1578 cat >> confdefs.h <<\EOF
1579#define HAVE_DOPRNT 1
1580EOF
1581
1582else
1583 echo "$ac_t""no" 1>&6
1584fi
1585
1586fi
1587
1588echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
1589if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1591else
1592 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001593#line 1594 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001594#include "confdefs.h"
1595#include <sys/types.h>
1596#include <dirent.h>
1597int main() { return 0; }
1598int t() {
1599struct dirent de; de.d_namlen = 0;
1600; return 0; }
1601EOF
1602if eval $ac_compile; then
1603 rm -rf conftest*
1604 e2fsprogs_cv_struct_d_namlen=yes
1605else
1606 rm -rf conftest*
1607 e2fsprogs_cv_struct_d_namlen=no
1608fi
1609rm -f conftest*
1610
1611fi
1612
1613echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
1614if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
1615 cat >> confdefs.h <<\EOF
1616#define HAVE_DIRENT_NAMLEN 1
1617EOF
1618
1619fi
1620if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
1621 # if cross-compiling, with no cached values, just assume something common.
1622 ac_cv_sizeof_short=2
1623 ac_cv_sizeof_int=4
1624 ac_cv_sizeof_long=4
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001625 ac_cv_sizeof_long_long=0
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001626 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2
1627fi
1628echo $ac_n "checking size of short""... $ac_c" 1>&6
1629if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1631else
1632 if test "$cross_compiling" = yes; then
1633 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1634else
1635cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001636#line 1637 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001637#include "confdefs.h"
1638#include <stdio.h>
1639main()
1640{
1641 FILE *f=fopen("conftestval", "w");
1642 if (!f) exit(1);
1643 fprintf(f, "%d\n", sizeof(short));
1644 exit(0);
1645}
1646EOF
1647eval $ac_link
1648if test -s conftest && (./conftest; exit) 2>/dev/null; then
1649 ac_cv_sizeof_short=`cat conftestval`
1650else
1651 ac_cv_sizeof_short=0
1652fi
1653fi
1654rm -fr conftest*
1655fi
1656echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1657cat >> confdefs.h <<EOF
1658#define SIZEOF_SHORT $ac_cv_sizeof_short
1659EOF
1660
1661
1662echo $ac_n "checking size of int""... $ac_c" 1>&6
1663if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1665else
1666 if test "$cross_compiling" = yes; then
1667 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1668else
1669cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001670#line 1671 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001671#include "confdefs.h"
1672#include <stdio.h>
1673main()
1674{
1675 FILE *f=fopen("conftestval", "w");
1676 if (!f) exit(1);
1677 fprintf(f, "%d\n", sizeof(int));
1678 exit(0);
1679}
1680EOF
1681eval $ac_link
1682if test -s conftest && (./conftest; exit) 2>/dev/null; then
1683 ac_cv_sizeof_int=`cat conftestval`
1684else
1685 ac_cv_sizeof_int=0
1686fi
1687fi
1688rm -fr conftest*
1689fi
1690echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1691cat >> confdefs.h <<EOF
1692#define SIZEOF_INT $ac_cv_sizeof_int
1693EOF
1694
1695
1696echo $ac_n "checking size of long""... $ac_c" 1>&6
1697if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1699else
1700 if test "$cross_compiling" = yes; then
1701 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1702else
1703cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001704#line 1705 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001705#include "confdefs.h"
1706#include <stdio.h>
1707main()
1708{
1709 FILE *f=fopen("conftestval", "w");
1710 if (!f) exit(1);
1711 fprintf(f, "%d\n", sizeof(long));
1712 exit(0);
1713}
1714EOF
1715eval $ac_link
1716if test -s conftest && (./conftest; exit) 2>/dev/null; then
1717 ac_cv_sizeof_long=`cat conftestval`
1718else
1719 ac_cv_sizeof_long=0
1720fi
1721fi
1722rm -fr conftest*
1723fi
1724echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1725cat >> confdefs.h <<EOF
1726#define SIZEOF_LONG $ac_cv_sizeof_long
1727EOF
1728
1729
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001730echo $ac_n "checking size of long long""... $ac_c" 1>&6
1731if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1733else
1734 if test "$cross_compiling" = yes; then
1735 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1736else
1737cat > conftest.$ac_ext <<EOF
1738#line 1739 "configure"
1739#include "confdefs.h"
1740#include <stdio.h>
1741main()
1742{
1743 FILE *f=fopen("conftestval", "w");
1744 if (!f) exit(1);
1745 fprintf(f, "%d\n", sizeof(long long));
1746 exit(0);
1747}
1748EOF
1749eval $ac_link
1750if test -s conftest && (./conftest; exit) 2>/dev/null; then
1751 ac_cv_sizeof_long_long=`cat conftestval`
1752else
1753 ac_cv_sizeof_long_long=0
1754fi
1755fi
1756rm -fr conftest*
1757fi
1758echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1759cat >> confdefs.h <<EOF
1760#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1761EOF
1762
1763
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001764SIZEOF_SHORT=$ac_cv_sizeof_short
1765SIZEOF_INT=$ac_cv_sizeof_int
1766SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001767SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
1768
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001769
1770
1771
1772echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
1773if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775else
1776 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001777#line 1778 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001778#include "confdefs.h"
1779#include <sys/stat.h>
1780int main() { return 0; }
1781int t() {
1782struct stat stat; stat.st_flags = 0;
1783; return 0; }
1784EOF
1785if eval $ac_compile; then
1786 rm -rf conftest*
1787 e2fsprogs_cv_struct_st_flags=yes
1788else
1789 rm -rf conftest*
1790 e2fsprogs_cv_struct_st_flags=no
1791fi
1792rm -f conftest*
1793
1794fi
1795
1796echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
1797if test "$e2fsprogs_cv_struct_st_flags" = yes; then
1798 cat >> confdefs.h <<\EOF
1799#define HAVE_STAT_FLAGS 1
1800EOF
1801
1802fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001803for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001804do
1805echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1806if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1808else
1809 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001810#line 1811 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001811#include "confdefs.h"
1812/* System header to define __stub macros and hopefully few prototypes,
1813 which can conflict with char $ac_func(); below. */
1814#include <assert.h>
1815/* Override any gcc2 internal prototype to avoid an error. */
1816char $ac_func();
1817
1818int main() { return 0; }
1819int t() {
1820
1821/* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1825choke me
1826#else
1827$ac_func();
1828#endif
1829
1830; return 0; }
1831EOF
1832if eval $ac_link; then
1833 rm -rf conftest*
1834 eval "ac_cv_func_$ac_func=yes"
1835else
1836 rm -rf conftest*
1837 eval "ac_cv_func_$ac_func=no"
1838fi
1839rm -f conftest*
1840
1841fi
1842if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1843 echo "$ac_t""yes" 1>&6
1844 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
1845 cat >> confdefs.h <<EOF
1846#define $ac_tr_func 1
1847EOF
1848
1849else
1850 echo "$ac_t""no" 1>&6
1851fi
1852done
1853
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001854echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
1855if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1857else
1858 cat > conftest.$ac_ext <<EOF
1859#line 1860 "configure"
1860#include "confdefs.h"
1861#include <sys/types.h>
1862int main() { return 0; }
1863int t() {
1864ino_t ino; ino = 0;
1865; return 0; }
1866EOF
1867if eval $ac_compile; then
1868 rm -rf conftest*
1869 e2fsprogs_cv_ino_t=yes
1870else
1871 rm -rf conftest*
1872 e2fsprogs_cv_ino_t=no
1873fi
1874rm -f conftest*
1875
1876fi
1877
1878echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
1879if test "$e2fsprogs_cv_ino_t" = yes; then
1880 cat >> confdefs.h <<\EOF
1881#define HAVE_INO_T 1
1882EOF
1883
1884fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001885ac_safe=`echo "linux/fs.h" | tr './\055' '___'`
1886echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
1887if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889else
1890 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001891#line 1892 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001892#include "confdefs.h"
1893#include <linux/fs.h>
1894EOF
1895eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1896ac_err=`grep -v '^ *+' conftest.out`
1897if test -z "$ac_err"; then
1898 rm -rf conftest*
1899 eval "ac_cv_header_$ac_safe=yes"
1900else
1901 echo "$ac_err" >&5
1902 rm -rf conftest*
1903 eval "ac_cv_header_$ac_safe=no"
1904fi
1905rm -f conftest*
1906fi
1907if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 linux_headers=yes
1910else
1911 echo "$ac_t""no" 1>&6
1912linux_headers=no
1913fi
1914
1915
1916if test "$linux_headers" = yes; then
1917 cat >> confdefs.h <<\EOF
1918#define HAVE_LINUX_FS_H 1
1919EOF
1920
1921 # These are some programs that depend on having linux headers around, and
1922 # won't work otherwise. So we only compile them if we can.
1923 EXTRA_PROGS="$EXTRA_PROGS flushb"
1924else
1925 LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include'
1926 # Use this include directory with test compiles in the configure script too.
1927 CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include"
1928fi
1929
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001930SOCKET_LIB=''
1931echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1932if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1934else
1935 ac_save_LIBS="$LIBS"
1936LIBS="-lsocket $LIBS"
1937cat > conftest.$ac_ext <<EOF
1938#line 1939 "configure"
1939#include "confdefs.h"
1940
1941int main() { return 0; }
1942int t() {
1943socket()
1944; return 0; }
1945EOF
1946if eval $ac_link; then
1947 rm -rf conftest*
1948 eval "ac_cv_lib_socket=yes"
1949else
1950 rm -rf conftest*
1951 eval "ac_cv_lib_socket=no"
1952fi
1953rm -f conftest*
1954LIBS="$ac_save_LIBS"
1955
1956fi
1957if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
1958 echo "$ac_t""yes" 1>&6
1959 SOCKET_LIB=-lsocket
1960else
1961 echo "$ac_t""no" 1>&6
1962fi
1963
1964
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001965echo $ac_n "checking for optreset""... $ac_c" 1>&6
1966if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1968else
1969 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001970#line 1971 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001971#include "confdefs.h"
1972#include <unistd.h>
1973EOF
1974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1975 egrep "optreset" >/dev/null 2>&1; then
1976 rm -rf conftest*
1977 ac_cv_have_optreset=yes
1978else
1979 rm -rf conftest*
1980 ac_cv_have_optreset=no
1981fi
1982rm -f conftest*
1983
1984fi
1985echo "$ac_t""$ac_cv_have_optreset" 1>&6
1986if test $ac_cv_have_optreset = yes; then
1987 cat >> confdefs.h <<\EOF
1988#define HAVE_OPTRESET 1
1989EOF
1990
1991fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001992echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
1993if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1995else
1996 cat > conftest.$ac_ext <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001997#line 1998 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001998#include "confdefs.h"
1999#include <linux/ext2_fs.h>
2000#include <sys/ioctl.h>
2001int main() { return 0; }
2002int t() {
2003ioctl (0, EXT2_IOC_SETVERSION, 0);
2004; return 0; }
2005EOF
2006if eval $ac_compile; then
2007 rm -rf conftest*
2008 e2fsprogs_cv_ioctl_ext2=yes
2009else
2010 rm -rf conftest*
2011 e2fsprogs_cv_ioctl_ext2=no
2012fi
2013rm -f conftest*
2014
2015fi
2016
2017echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2018if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2019 cat >> confdefs.h <<\EOF
2020#define HAVE_EXT2_IOCTLS 1
2021EOF
2022
2023fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002024case "$host_os" in
2025linux*)
2026 if test "$prefix" = NONE ; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002027 usr_prefix="\${prefix}/usr";
2028 echo "On $host_os systems, usr_prefix defaults to $usr_prefix"
2029 fi
2030 ;;
2031esac
2032if test "$usr_prefix" = NONE ; then
2033 usr_prefix="\${prefix}"
2034fi
2035
2036case "$host_os" in
2037linux* | gnu*)
2038 if test "$prefix" = NONE ; then
2039 prefix='';
2040 echo "On $host_os systems, prefix defaults to ''"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002041 fi
2042;;
2043esac
2044
Theodore Ts'o74becf31997-04-26 14:37:06 +00002045LDFLAG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002046case "$host_os" in
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002047linux* | gnu*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002048 LDFLAG_STATIC=-static
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002049 echo "On $host_os systems, assume -static works"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002050;;
2051esac
2052
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002053SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2054ET_DIR=`cd ${srcdir}/lib/et; pwd`
2055
2056
2057if test "$cross_compiling" = yes ; then
2058 DO_TEST_SUITE=
2059else
2060 DO_TEST_SUITE=check
2061fi
2062
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002063DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2064
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002065test -d lib || mkdir lib
2066test -d include || mkdir include
2067test -d include/linux || mkdir include/linux
2068trap '' 1 2 15
2069cat > confcache <<\EOF
2070# This file is a shell script that caches the results of configure
2071# tests run on this system so they can be shared between configure
2072# scripts and configure runs. It is not useful on other systems.
2073# If it contains results you don't want to keep, you may remove or edit it.
2074#
2075# By default, configure uses ./config.cache as the cache file,
2076# creating it if it does not exist already. You can give configure
2077# the --cache-file=FILE option to use a different cache file; that is
2078# what configure does when it calls configure scripts in
2079# subdirectories, so they share the cache.
2080# Giving --cache-file=/dev/null disables caching, for debugging configure.
2081# config.status only pays attention to the cache file if you give it the
2082# --recheck option to rerun configure.
2083#
2084EOF
2085# Ultrix sh set writes to stderr and can't be redirected directly,
2086# and sets the high bit in the cache file unless we assign to the vars.
2087(set) 2>&1 |
2088 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2089 >> confcache
2090if cmp -s $cache_file confcache; then
2091 :
2092else
2093 if test -w $cache_file; then
2094 echo "updating cache $cache_file"
2095 cat confcache > $cache_file
2096 else
2097 echo "not updating unwritable cache $cache_file"
2098 fi
2099fi
2100rm -f confcache
2101
2102trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2103
2104test "x$prefix" = xNONE && prefix=$ac_default_prefix
2105# Let make expand exec_prefix.
2106test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2107
2108# Any assignment to VPATH causes Sun make to only execute
2109# the first set of double-colon rules, so remove it if not needed.
2110# If there is a colon in the path, we need to keep it.
2111if test "x$srcdir" = x.; then
2112 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2113fi
2114
2115trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2116
2117# Transform confdefs.h into DEFS.
2118# Protect against shell expansion while executing Makefile rules.
2119# Protect against Makefile macro expansion.
2120cat > conftest.defs <<\EOF
2121s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
2122s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2123s%\[%\\&%g
2124s%\]%\\&%g
2125s%\$%$$%g
2126EOF
2127DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2128rm -f conftest.defs
2129
2130
2131# Without the "./", some shells look in PATH for config.status.
2132: ${CONFIG_STATUS=./config.status}
2133
2134echo creating $CONFIG_STATUS
2135rm -f $CONFIG_STATUS
2136cat > $CONFIG_STATUS <<EOF
2137#! /bin/sh
2138# Generated automatically by configure.
2139# Run this file to recreate the current configuration.
2140# This directory was configured as follows,
2141# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2142#
2143# $0 $ac_configure_args
2144#
2145# Compiler output produced by configure, useful for debugging
2146# configure, is in ./config.log if it exists.
2147
2148ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2149for ac_option
2150do
2151 case "\$ac_option" in
2152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2153 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2154 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2155 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2156 echo "$CONFIG_STATUS generated by autoconf version 2.4"
2157 exit 0 ;;
2158 -help | --help | --hel | --he | --h)
2159 echo "\$ac_cs_usage"; exit 0 ;;
2160 *) echo "\$ac_cs_usage"; exit 1 ;;
2161 esac
2162done
2163
2164ac_given_srcdir=$srcdir
2165ac_given_INSTALL="$INSTALL"
2166
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002167trap 'rm -fr `echo "MCONFIG lib/substitute_sh Makefile lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002168 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2169 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
2170 relocate/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002171
2172# Protect against being on the right side of a sed subst in config.status.
2173sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2174 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2175$ac_vpsub
2176$extrasub
2177s%@CFLAGS@%$CFLAGS%g
2178s%@CPPFLAGS@%$CPPFLAGS%g
2179s%@CXXFLAGS@%$CXXFLAGS%g
2180s%@DEFS@%$DEFS%g
2181s%@LDFLAGS@%$LDFLAGS%g
2182s%@LIBS@%$LIBS%g
2183s%@exec_prefix@%$exec_prefix%g
2184s%@prefix@%$prefix%g
2185s%@program_transform_name@%$program_transform_name%g
2186/@MCONFIG@/r $MCONFIG
2187s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002188s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2189s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2190s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002191s%@host@%$host%g
2192s%@host_alias@%$host_alias%g
2193s%@host_cpu@%$host_cpu%g
2194s%@host_vendor@%$host_vendor%g
2195s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002196s%@CC@%$CC%g
2197s%@LD@%$LD%g
2198s%@CCOPTS@%$CCOPTS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002199s%@DLL_CMT@%$DLL_CMT%g
2200/@MAKEFILE_DLL@/r $MAKEFILE_DLL
2201s%@MAKEFILE_DLL@%%g
2202s%@ELF_CMT@%$ELF_CMT%g
2203/@MAKEFILE_ELF@/r $MAKEFILE_ELF
2204s%@MAKEFILE_ELF@%%g
2205s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2206/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2207s%@MAKEFILE_BSDLIB@%%g
2208s%@PROFILE_CMT@%$PROFILE_CMT%g
2209/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2210s%@MAKEFILE_PROFILE@%%g
2211s%@CHECKER_CMT@%$CHECKER_CMT%g
2212/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2213s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002214s%@LIB_EXT@%$LIB_EXT%g
2215s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2216s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002217s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002218s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002219s%@FSCK_PROG@%$FSCK_PROG%g
2220s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002221/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2222s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002223s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002224s%@SET_MAKE@%$SET_MAKE%g
2225s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002226s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002227s%@MV@%$MV%g
2228s%@CP@%$CP%g
2229s%@RM@%$RM%g
2230s%@CHMOD@%$CHMOD%g
2231s%@AWK@%$AWK%g
2232s%@SED@%$SED%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002233s%@build@%$build%g
2234s%@build_alias@%$build_alias%g
2235s%@build_cpu@%$build_cpu%g
2236s%@build_vendor@%$build_vendor%g
2237s%@build_os@%$build_os%g
2238s%@AR@%$AR%g
2239s%@RANLIB@%$RANLIB%g
2240s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002241s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2242s%@INSTALL_DATA@%$INSTALL_DATA%g
2243s%@CPP@%$CPP%g
2244s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2245s%@SIZEOF_INT@%$SIZEOF_INT%g
2246s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002247s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002248s%@EXTRA_PROGS@%$EXTRA_PROGS%g
2249s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002250s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002251s%@usr_prefix@%$usr_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002252s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002253s%@SS_DIR@%$SS_DIR%g
2254s%@ET_DIR@%$ET_DIR%g
2255s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002256/@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2257s%@DO_SUBSTITUTE_SCRIPT@%%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002258
2259CEOF
2260EOF
2261cat >> $CONFIG_STATUS <<EOF
2262
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002263CONFIG_FILES=\${CONFIG_FILES-"MCONFIG lib/substitute_sh Makefile lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002264 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2265 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
2266 relocate/Makefile"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002267EOF
2268cat >> $CONFIG_STATUS <<\EOF
2269for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2270 # Support "outfile[:infile]", defaulting infile="outfile.in".
2271 case "$ac_file" in
2272 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2273 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2274 *) ac_file_in="${ac_file}.in" ;;
2275 esac
2276
2277 # Adjust relative srcdir, etc. for subdirectories.
2278
2279 # Remove last slash and all that follows it. Not all systems have dirname.
2280 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2281 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2282 # The file is in a subdirectory.
2283 test ! -d "$ac_dir" && mkdir "$ac_dir"
2284 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2285 # A "../" for each directory in $ac_dir_suffix.
2286 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2287 else
2288 ac_dir_suffix= ac_dots=
2289 fi
2290
2291 case "$ac_given_srcdir" in
2292 .) srcdir=.
2293 if test -z "$ac_dots"; then top_srcdir=.
2294 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2295 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2296 *) # Relative path.
2297 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2298 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2299 esac
2300
2301 case "$ac_given_INSTALL" in
2302 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2303 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2304 esac
2305 echo creating "$ac_file"
2306 rm -f "$ac_file"
2307 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2308 case "$ac_file" in
2309 *Makefile*) ac_comsub="1i\\
2310# $configure_input" ;;
2311 *) ac_comsub= ;;
2312 esac
2313 sed -e "$ac_comsub
2314s%@configure_input@%$configure_input%g
2315s%@srcdir@%$srcdir%g
2316s%@top_srcdir@%$top_srcdir%g
2317s%@INSTALL@%$INSTALL%g
2318" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2319fi; done
2320rm -f conftest.subs
2321
2322
2323
2324exit 0
2325EOF
2326chmod +x $CONFIG_STATUS
2327rm -fr confdefs* $ac_clean_files
2328test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2329