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