blob: 5bcb9ddc349c53a5e08f2d37e4627b97a42d11d7 [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.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004# Generated automatically using autoconf version 2.13
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
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'oa4b2d3c1998-04-03 16:12:25 +000023 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000024ac_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'ob0b9c4d1997-10-20 23:36:30 +000035 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
Theodore Ts'oa4d09611997-04-29 14:28:00 +000036ac_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
Theodore Ts'o21c84b71997-04-29 16:15:03 +000064bindir='${exec_prefix}/bin'
65sbindir='${exec_prefix}/sbin'
66libexecdir='${exec_prefix}/libexec'
67datadir='${prefix}/share'
68sysconfdir='${prefix}/etc'
69sharedstatedir='${prefix}/com'
70localstatedir='${prefix}/var'
71libdir='${exec_prefix}/lib'
72includedir='${prefix}/include'
73oldincludedir='/usr/include'
74infodir='${prefix}/info'
75mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000076
77# Initialize some other variables.
78subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000079MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000080SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000081# Maximum number of lines to put in a shell here document.
82ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000083
84ac_prev=
85for ac_option
86do
87
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
91 ac_prev=
92 continue
93 fi
94
95 case "$ac_option" in
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 *) ac_optarg= ;;
98 esac
99
100 # Accept the important Cygnus configure options, so we can diagnose typos.
101
102 case "$ac_option" in
103
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 ac_prev=bindir ;;
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
108
109 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000110 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000112 build="$ac_optarg" ;;
113
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
120
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 ac_prev=datadir ;;
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 | --da=*)
125 datadir="$ac_optarg" ;;
126
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 fi
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
135
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 fi
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 case "$ac_option" in
144 *=*) ;;
145 *) ac_optarg=yes ;;
146 esac
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
148
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
157
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
160 with_gas=yes ;;
161
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
165 cat << EOF
166Usage: configure [options] [host]
167Options: [defaults in brackets after descriptions]
168Configuration:
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
176 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000178 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
183 [PREFIX/share]
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 [PREFIX/com]
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
198EOF
199 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000200Host type:
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000211EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
214 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000215 exit 0 ;;
216
217 -host | --host | --hos | --ho)
218 ac_prev=host ;;
219 -host=* | --host=* | --hos=* | --ho=*)
220 host="$ac_optarg" ;;
221
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000222 -includedir | --includedir | --includedi | --included | --include \
223 | --includ | --inclu | --incl | --inc)
224 ac_prev=includedir ;;
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
227 includedir="$ac_optarg" ;;
228
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 ac_prev=infodir ;;
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232 infodir="$ac_optarg" ;;
233
234 -libdir | --libdir | --libdi | --libd)
235 ac_prev=libdir ;;
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
237 libdir="$ac_optarg" ;;
238
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240 | --libexe | --libex | --libe)
241 ac_prev=libexecdir ;;
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243 | --libexe=* | --libex=* | --libe=*)
244 libexecdir="$ac_optarg" ;;
245
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
247 | --localstate | --localstat | --localsta | --localst \
248 | --locals | --local | --loca | --loc | --lo)
249 ac_prev=localstatedir ;;
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253 localstatedir="$ac_optarg" ;;
254
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 ac_prev=mandir ;;
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258 mandir="$ac_optarg" ;;
259
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000260 -nfp | --nfp | --nf)
261 # Obsolete; use --without-fp.
262 with_fp=no ;;
263
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265 | --no-cr | --no-c)
266 no_create=yes ;;
267
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
270 no_recursion=yes ;;
271
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274 | --oldin | --oldi | --old | --ol | --o)
275 ac_prev=oldincludedir ;;
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279 oldincludedir="$ac_optarg" ;;
280
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 ac_prev=prefix ;;
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284 prefix="$ac_optarg" ;;
285
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
287 | --program-pre | --program-pr | --program-p)
288 ac_prev=program_prefix ;;
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291 program_prefix="$ac_optarg" ;;
292
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
294 | --program-suf | --program-su | --program-s)
295 ac_prev=program_suffix ;;
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298 program_suffix="$ac_optarg" ;;
299
300 -program-transform-name | --program-transform-name \
301 | --program-transform-nam | --program-transform-na \
302 | --program-transform-n | --program-transform- \
303 | --program-transform | --program-transfor \
304 | --program-transfo | --program-transf \
305 | --program-trans | --program-tran \
306 | --progr-tra | --program-tr | --program-t)
307 ac_prev=program_transform_name ;;
308 -program-transform-name=* | --program-transform-name=* \
309 | --program-transform-nam=* | --program-transform-na=* \
310 | --program-transform-n=* | --program-transform-=* \
311 | --program-transform=* | --program-transfor=* \
312 | --program-transfo=* | --program-transf=* \
313 | --program-trans=* | --program-tran=* \
314 | --progr-tra=* | --program-tr=* | --program-t=*)
315 program_transform_name="$ac_optarg" ;;
316
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318 | -silent | --silent | --silen | --sile | --sil)
319 silent=yes ;;
320
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 ac_prev=sbindir ;;
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 | --sbi=* | --sb=*)
325 sbindir="$ac_optarg" ;;
326
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329 | --sharedst | --shareds | --shared | --share | --shar \
330 | --sha | --sh)
331 ac_prev=sharedstatedir ;;
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 | --sha=* | --sh=*)
336 sharedstatedir="$ac_optarg" ;;
337
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000338 -site | --site | --sit)
339 ac_prev=site ;;
340 -site=* | --site=* | --sit=*)
341 site="$ac_optarg" ;;
342
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 ac_prev=srcdir ;;
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
347
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
354
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000355 -target | --target | --targe | --targ | --tar | --ta | --t)
356 ac_prev=target ;;
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
359
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 verbose=yes ;;
362
363 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000364 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000365 exit 0 ;;
366
367 -with-* | --with-*)
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 fi
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 case "$ac_option" in
375 *=*) ;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "with_${ac_package}='$ac_optarg'" ;;
379
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 fi
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
388
389 --x)
390 # Obsolete; use --with-x.
391 with_x=yes ;;
392
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
399
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
406
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 ;;
409
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000410 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 fi
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 fi
417 nonopt="$ac_option"
418 ;;
419
420 esac
421done
422
423if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425fi
426
427trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428
429# File descriptor usage:
430# 0 standard input
431# 1 file creation
432# 2 errors and warnings
433# 3 some systems may open it to /dev/tty
434# 4 used on the Kubota Titan
435# 6 checking for... messages and results
436# 5 compiler messages saved in config.log
437if test "$silent" = yes; then
438 exec 6>/dev/null
439else
440 exec 6>&1
441fi
442exec 5>./config.log
443
444echo "\
445This file contains any messages produced by compilers while
446running configure, to aid debugging if configure makes a mistake.
447" 1>&5
448
449# Strip out --no-create and --no-recursion so they do not pile up.
450# Also quote any args containing shell metacharacters.
451ac_configure_args=
452for ac_arg
453do
454 case "$ac_arg" in
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 esac
463done
464
465# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000466# Only set these to C if already set. These must not be set unconditionally
467# because not all systems understand e.g. LANG=C (notably SCO).
468# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000470if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000471if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000474
475# confdefs.h avoids OS command line length limits that DEFS can exceed.
476rm -rf conftest* confdefs.h
477# AIX cpp loses on an empty file, so make sure it contains at least a newline.
478echo > confdefs.h
479
480# A filename unique to this package, relative to the directory that
481# configure is in, which we can look for to find out if srcdir is correct.
482ac_unique_file=version.h
483
484# Find the source files, if location was not specified.
485if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
488 ac_prog=$0
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 srcdir=$ac_confdir
492 if test ! -r $srcdir/$ac_unique_file; then
493 srcdir=..
494 fi
495else
496 ac_srcdir_defaulted=no
497fi
498if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 else
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 fi
504fi
505srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506
507# Prefer explicitly selected file to automatically selected ones.
508if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE; then
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511 else
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 fi
514fi
515for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
518 . "$ac_site_file"
519 fi
520done
521
522if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
524 . $cache_file
525else
526 echo "creating cache $cache_file"
527 > $cache_file
528fi
529
530ac_ext=c
531# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000534ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000535cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000536
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000537ac_exeext=
538ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000539if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='
543' ac_t=' '
544 else
545 ac_n=-n ac_c= ac_t=
546 fi
547else
548 ac_n= ac_c='\c' ac_t=
549fi
550
551
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000552
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000553MCONFIG=./MCONFIG
554
Theodore Ts'o74becf31997-04-26 14:37:06 +0000555BINARY_TYPE=bin
556E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
557 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
558DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
559 | tr \" " "`
560MONTH=`echo $DATE | awk -F- '{print $2}'`
561YEAR=`echo $DATE | awk -F- '{print $3}'`
562
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000563if expr $YEAR ">" 1900 > /dev/null ; then
564 E2FSPROGS_YEAR=$YEAR
565elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000566 E2FSPROGS_YEAR=19$YEAR
567else
568 E2FSPROGS_YEAR=20$YEAR
569fi
570
571case $MONTH in
572Jan) E2FSPROGS_MONTH="January" ;;
573Feb) E2FSPROGS_MONTH="February" ;;
574Mar) E2FSPROGS_MONTH="March" ;;
575Apr) E2FSPROGS_MONTH="April" ;;
576May) E2FSPROGS_MONTH="May" ;;
577Jun) E2FSPROGS_MONTH="June" ;;
578Jul) E2FSPROGS_MONTH="July" ;;
579Aug) E2FSPROGS_MONTH="August" ;;
580Sep) E2FSPROGS_MONTH="September" ;;
581Oct) E2FSPROGS_MONTH="October" ;;
582Nov) E2FSPROGS_MONTH="November" ;;
583Dec) E2FSPROGS_MONTH="December" ;;
584*) echo "Unknown month $MONTH??" ;;
585esac
586
587unset DATE MONTH YEAR
588echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
589echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
590
591
592
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000593
594ac_aux_dir=
595for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
596 if test -f $ac_dir/install-sh; then
597 ac_aux_dir=$ac_dir
598 ac_install_sh="$ac_aux_dir/install-sh -c"
599 break
600 elif test -f $ac_dir/install.sh; then
601 ac_aux_dir=$ac_dir
602 ac_install_sh="$ac_aux_dir/install.sh -c"
603 break
604 fi
605done
606if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
608fi
609ac_config_guess=$ac_aux_dir/config.guess
610ac_config_sub=$ac_aux_dir/config.sub
611ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
612
613
614# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000615if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000616else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
617fi
618
619echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000620echo "configure:621: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000621
622host_alias=$host
623case "$host_alias" in
624NONE)
625 case $nonopt in
626 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000627 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000628 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
629 fi ;;
630 *) host_alias=$nonopt ;;
631 esac ;;
632esac
633
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000634host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000635host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000638echo "$ac_t""$host" 1>&6
639
Theodore Ts'o74becf31997-04-26 14:37:06 +0000640# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000641if test "${with_cc+set}" = set; then
642 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000643 echo "$ac_t""CC=$withval" 1>&6
644CC=$withval
645else
646 if test -z "$CC" ; then CC=cc; fi
647echo "$ac_t""CC defaults to $CC" 1>&6
648fi
649export CC
650
651# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000652if test "${with_linker+set}" = set; then
653 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000654 echo "$ac_t""LD=$withval" 1>&6
655LD=$withval
656else
657 if test -z "$LD" ; then LD=$CC; fi
658echo "$ac_t""LD defaults to $LD" 1>&6
659fi
660export LD
661
662# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000663if test "${with_ccopts+set}" = set; then
664 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000665 echo "$ac_t""CCOPTS is $withval" 1>&6
666CCOPTS=$withval
667CFLAGS="$CFLAGS $withval"
668else
669 CCOPTS=
670fi
671
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000672LIB_EXT=.a
673STATIC_LIB_EXT=.a
674PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +0000675# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000676if test "${with_ldopts+set}" = set; then
677 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000678 echo "$ac_t""LDFLAGS is $withval" 1>&6
679LDFLAGS=$withval
680else
681 LDFLAGS=
682fi
683
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000684# Check whether --with-root-prefix or --without-root-prefix was given.
685if test "${with_root_prefix+set}" = set; then
686 withval="$with_root_prefix"
687 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000688else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000689 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000690fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000691# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000692if test "${enable_dll_shlibs+set}" = set; then
693 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000694 if test "$enableval" = "no"
695then
696 DLL_CMT=#
697 MAKEFILE_DLL=/dev/null
698 echo "Disabling DLL shared libraries"
699else
700 DLL_CMT=
701 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000702 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000703 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000704 echo "Enabling DLL shared libraries"
705fi
706
707else
708 MAKEFILE_DLL=/dev/null
709DLL_CMT=#
710echo "Disabling DLL shared libraries by default"
711
712fi
713
714
715
716# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000717if test "${enable_elf_shlibs+set}" = set; then
718 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000719 if test "$enableval" = "no"
720then
721 ELF_CMT=#
722 MAKEFILE_ELF=/dev/null
723 echo "Disabling ELF shared libraries"
724else
725 ELF_CMT=
726 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000727 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000728 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000729 echo "Enabling ELF shared libraries"
730fi
731
732else
733 MAKEFILE_ELF=/dev/null
734ELF_CMT=#
735echo "Disabling ELF shared libraries by default"
736
737fi
738
739
740
741# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000742if test "${enable_bsd_shlibs+set}" = set; then
743 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000744 if test "$enableval" = "no"
745then
746 BSDLIB_CMT=#
747 MAKEFILE_BSDLIB=/dev/null
748 echo "Disabling BSD shared libraries"
749else
750 BSDLIB_CMT=
751 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000752 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000753 echo "Enabling BSD shared libraries"
754fi
755
756else
757 MAKEFILE_BSDLIB=/dev/null
758BSDLIB_CMT=#
759echo "Disabling BSD shared libraries by default"
760
761fi
762
763
764
765# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000766if test "${enable_profile+set}" = set; then
767 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000768 if test "$enableval" = "no"
769then
770 PROFILE_CMT=#
771 MAKEFILE_PROFILE=/dev/null
772 echo "Disabling profiling libraries"
773else
774 PROFILE_CMT=
775 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000776 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000777 echo "Building profiling libraries"
778fi
779
780else
781 PROFILE_CMT=#
782MAKEFILE_PROFILE=/dev/null
783echo "Disabling profiling libraries by default"
784
785fi
786
787
788
789# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000790if test "${enable_checker+set}" = set; then
791 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000792 if test "$enableval" = "no"
793then
794 CHECKER_CMT=#
795 MAKEFILE_CHECKER=/dev/null
796 echo "Disabling checker libraries"
797else
798 CHECKER_CMT=
799 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
800 echo "Building checker libraries"
801fi
802
803else
804 CHECKER_CMT=#
805MAKEFILE_CHECKER=/dev/null
806echo "Disabling checker libraries by default"
807
808fi
809
810
811
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000812
813
814
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000815# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000816if test "${enable_gcc_wall+set}" = set; then
817 enableval="$enable_gcc_wall"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000818 if test "$enableval" = "no"
819then
820 W=#
821 echo "Disabling GCC warnings"
822else
823 W=
824 echo "Enabling GCC warnings"
825fi
826
827else
828 W=#
829echo "Disabling GCC warnings by default"
830
831fi
832
833
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000834# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000835if test "${enable_dynamic_e2fsck+set}" = set; then
836 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000837 if test "$enableval" = "no"
838then
839 E2FSCK_TYPE=static
840 echo "Building e2fsck statically"
841else
842 E2FSCK_TYPE=shared
843 echo "Building e2fsck dynamically"
844fi
845
846else
847 E2FSCK_TYPE=static
848echo "Building e2fsck statically by default"
849
850fi
851
852
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000853# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000854if test "${enable_fsck+set}" = set; then
855 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000856 if test "$enableval" = "no"
857then
858 FSCK_PROG='' FSCK_MAN=''
859 echo "Not building fsck wrapper"
860else
861 FSCK_PROG=fsck FSCK_MAN=fsck.8
862 echo "Building fsck wrapper"
863fi
864
865else
866 case "$host_os" in
867 gnu*)
868 FSCK_PROG='' FSCK_MAN=''
869 echo "Not building fsck wrapper by default"
870 ;;
871 *)
872 FSCK_PROG=fsck FSCK_MAN=fsck.8
873 echo "Building fsck wrapper by default"
874esac
875
876fi
877
878
879
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000880MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
881
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000882# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000883if test "${enable_old_bitops+set}" = set; then
884 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000885 if test "$enableval" = "no"
886then
887 echo "Using new (standard) bitmask operations"
888else
889 cat >> confdefs.h <<\EOF
890#define EXT2_OLD_BITOPS 1
891EOF
892
893 echo "Using old (native) bitmask operations"
894
895fi
896
897else
898 echo "Using standard bitmask operations by default"
899
900fi
901
Theodore Ts'o74becf31997-04-26 14:37:06 +0000902
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000903echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000904echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000905set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000906if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
908else
909 cat > conftestmake <<\EOF
910all:
911 @echo 'ac_maketemp="${MAKE}"'
912EOF
913# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
914eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
915if test -n "$ac_maketemp"; then
916 eval ac_cv_prog_make_${ac_make}_set=yes
917else
918 eval ac_cv_prog_make_${ac_make}_set=no
919fi
920rm -f conftestmake
921fi
922if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
923 echo "$ac_t""yes" 1>&6
924 SET_MAKE=
925else
926 echo "$ac_t""no" 1>&6
927 SET_MAKE="MAKE=${MAKE-make}"
928fi
929
930# Extract the first word of "ln", so it can be a program name with args.
931set dummy ln; ac_word=$2
932echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000933echo "configure:934: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000934if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
936else
937 case "$LN" in
938 /*)
939 ac_cv_path_LN="$LN" # Let the user override the test with a path.
940 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000941 ?:/*)
942 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
943 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000944 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
946 ac_dummy="$PATH"
947 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000948 test -z "$ac_dir" && ac_dir=.
949 if test -f $ac_dir/$ac_word; then
950 ac_cv_path_LN="$ac_dir/$ac_word"
951 break
952 fi
953 done
954 IFS="$ac_save_ifs"
955 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
956 ;;
957esac
958fi
959LN="$ac_cv_path_LN"
960if test -n "$LN"; then
961 echo "$ac_t""$LN" 1>&6
962else
963 echo "$ac_t""no" 1>&6
964fi
965
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000966echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000967echo "configure:968: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000968if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
970else
971 rm -f conftestdata
972if ln -s X conftestdata 2>/dev/null
973then
974 rm -f conftestdata
975 ac_cv_prog_LN_S="ln -s"
976else
977 ac_cv_prog_LN_S=ln
978fi
979fi
980LN_S="$ac_cv_prog_LN_S"
981if test "$ac_cv_prog_LN_S" = "ln -s"; then
982 echo "$ac_t""yes" 1>&6
983else
984 echo "$ac_t""no" 1>&6
985fi
986
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000987# Extract the first word of "mv", so it can be a program name with args.
988set dummy mv; ac_word=$2
989echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000990echo "configure:991: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000991if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993else
994 case "$MV" in
995 /*)
996 ac_cv_path_MV="$MV" # Let the user override the test with a path.
997 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000998 ?:/*)
999 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1000 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001001 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1003 ac_dummy="$PATH"
1004 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001005 test -z "$ac_dir" && ac_dir=.
1006 if test -f $ac_dir/$ac_word; then
1007 ac_cv_path_MV="$ac_dir/$ac_word"
1008 break
1009 fi
1010 done
1011 IFS="$ac_save_ifs"
1012 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1013 ;;
1014esac
1015fi
1016MV="$ac_cv_path_MV"
1017if test -n "$MV"; then
1018 echo "$ac_t""$MV" 1>&6
1019else
1020 echo "$ac_t""no" 1>&6
1021fi
1022
1023# Extract the first word of "cp", so it can be a program name with args.
1024set dummy cp; ac_word=$2
1025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001026echo "configure:1027: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001027if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029else
1030 case "$CP" in
1031 /*)
1032 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1033 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001034 ?:/*)
1035 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1036 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001037 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1039 ac_dummy="$PATH"
1040 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001041 test -z "$ac_dir" && ac_dir=.
1042 if test -f $ac_dir/$ac_word; then
1043 ac_cv_path_CP="$ac_dir/$ac_word"
1044 break
1045 fi
1046 done
1047 IFS="$ac_save_ifs"
1048 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1049 ;;
1050esac
1051fi
1052CP="$ac_cv_path_CP"
1053if test -n "$CP"; then
1054 echo "$ac_t""$CP" 1>&6
1055else
1056 echo "$ac_t""no" 1>&6
1057fi
1058
1059# Extract the first word of "rm", so it can be a program name with args.
1060set dummy rm; ac_word=$2
1061echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001062echo "configure:1063: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001063if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1065else
1066 case "$RM" in
1067 /*)
1068 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1069 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001070 ?:/*)
1071 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1072 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001073 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1075 ac_dummy="$PATH"
1076 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001077 test -z "$ac_dir" && ac_dir=.
1078 if test -f $ac_dir/$ac_word; then
1079 ac_cv_path_RM="$ac_dir/$ac_word"
1080 break
1081 fi
1082 done
1083 IFS="$ac_save_ifs"
1084 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1085 ;;
1086esac
1087fi
1088RM="$ac_cv_path_RM"
1089if test -n "$RM"; then
1090 echo "$ac_t""$RM" 1>&6
1091else
1092 echo "$ac_t""no" 1>&6
1093fi
1094
1095# Extract the first word of "chmod", so it can be a program name with args.
1096set dummy chmod; ac_word=$2
1097echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001098echo "configure:1099: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001099if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101else
1102 case "$CHMOD" in
1103 /*)
1104 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1105 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001106 ?:/*)
1107 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1108 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001109 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1111 ac_dummy="$PATH"
1112 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_path_CHMOD="$ac_dir/$ac_word"
1116 break
1117 fi
1118 done
1119 IFS="$ac_save_ifs"
1120 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
1121 ;;
1122esac
1123fi
1124CHMOD="$ac_cv_path_CHMOD"
1125if test -n "$CHMOD"; then
1126 echo "$ac_t""$CHMOD" 1>&6
1127else
1128 echo "$ac_t""no" 1>&6
1129fi
1130
1131# Extract the first word of "awk", so it can be a program name with args.
1132set dummy awk; ac_word=$2
1133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001134echo "configure:1135: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001135if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1137else
1138 case "$AWK" in
1139 /*)
1140 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1141 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001142 ?:/*)
1143 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1144 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001145 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1147 ac_dummy="$PATH"
1148 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001149 test -z "$ac_dir" && ac_dir=.
1150 if test -f $ac_dir/$ac_word; then
1151 ac_cv_path_AWK="$ac_dir/$ac_word"
1152 break
1153 fi
1154 done
1155 IFS="$ac_save_ifs"
1156 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1157 ;;
1158esac
1159fi
1160AWK="$ac_cv_path_AWK"
1161if test -n "$AWK"; then
1162 echo "$ac_t""$AWK" 1>&6
1163else
1164 echo "$ac_t""no" 1>&6
1165fi
1166
1167# Extract the first word of "sed", so it can be a program name with args.
1168set dummy sed; ac_word=$2
1169echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001170echo "configure:1171: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001171if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1173else
1174 case "$SED" in
1175 /*)
1176 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1177 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001178 ?:/*)
1179 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1180 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001181 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 ac_dummy="$PATH"
1184 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001185 test -z "$ac_dir" && ac_dir=.
1186 if test -f $ac_dir/$ac_word; then
1187 ac_cv_path_SED="$ac_dir/$ac_word"
1188 break
1189 fi
1190 done
1191 IFS="$ac_save_ifs"
1192 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1193 ;;
1194esac
1195fi
1196SED="$ac_cv_path_SED"
1197if test -n "$SED"; then
1198 echo "$ac_t""$SED" 1>&6
1199else
1200 echo "$ac_t""no" 1>&6
1201fi
1202
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001203# Extract the first word of "perl", so it can be a program name with args.
1204set dummy perl; ac_word=$2
1205echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206echo "configure:1207: checking for $ac_word" >&5
1207if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1209else
1210 case "$PERL" in
1211 /*)
1212 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1213 ;;
1214 ?:/*)
1215 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1216 ;;
1217 *)
1218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1219 ac_dummy="$PATH"
1220 for ac_dir in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f $ac_dir/$ac_word; then
1223 ac_cv_path_PERL="$ac_dir/$ac_word"
1224 break
1225 fi
1226 done
1227 IFS="$ac_save_ifs"
1228 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
1229 ;;
1230esac
1231fi
1232PERL="$ac_cv_path_PERL"
1233if test -n "$PERL"; then
1234 echo "$ac_t""$PERL" 1>&6
1235else
1236 echo "$ac_t""no" 1>&6
1237fi
1238
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001239echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001240echo "configure:1241: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001241
1242build_alias=$build
1243case "$build_alias" in
1244NONE)
1245 case $nonopt in
1246 NONE) build_alias=$host_alias ;;
1247 *) build_alias=$nonopt ;;
1248 esac ;;
1249esac
1250
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001251build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001252build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1253build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1254build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001255echo "$ac_t""$build" 1>&6
1256
1257if test $host != $build; then
1258 ac_tool_prefix=${host_alias}-
1259else
1260 ac_tool_prefix=
1261fi
1262
1263# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1264set dummy ${ac_tool_prefix}ar; ac_word=$2
1265echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001266echo "configure:1267: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001267if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1269else
1270 if test -n "$AR"; then
1271 ac_cv_prog_AR="$AR" # Let the user override the test.
1272else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1274 ac_dummy="$PATH"
1275 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001276 test -z "$ac_dir" && ac_dir=.
1277 if test -f $ac_dir/$ac_word; then
1278 ac_cv_prog_AR="${ac_tool_prefix}ar"
1279 break
1280 fi
1281 done
1282 IFS="$ac_save_ifs"
1283fi
1284fi
1285AR="$ac_cv_prog_AR"
1286if test -n "$AR"; then
1287 echo "$ac_t""$AR" 1>&6
1288else
1289 echo "$ac_t""no" 1>&6
1290fi
1291
1292
1293if test -z "$ac_cv_prog_AR"; then
1294if test -n "$ac_tool_prefix"; then
1295 # Extract the first word of "ar", so it can be a program name with args.
1296set dummy ar; ac_word=$2
1297echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001298echo "configure:1299: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001299if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301else
1302 if test -n "$AR"; then
1303 ac_cv_prog_AR="$AR" # Let the user override the test.
1304else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1306 ac_dummy="$PATH"
1307 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_AR="ar"
1311 break
1312 fi
1313 done
1314 IFS="$ac_save_ifs"
1315 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1316fi
1317fi
1318AR="$ac_cv_prog_AR"
1319if test -n "$AR"; then
1320 echo "$ac_t""$AR" 1>&6
1321else
1322 echo "$ac_t""no" 1>&6
1323fi
1324
1325else
1326 AR="ar"
1327fi
1328fi
1329
1330# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1331set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1332echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001333echo "configure:1334: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001334if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1336else
1337 if test -n "$RANLIB"; then
1338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1339else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1341 ac_dummy="$PATH"
1342 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001343 test -z "$ac_dir" && ac_dir=.
1344 if test -f $ac_dir/$ac_word; then
1345 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1346 break
1347 fi
1348 done
1349 IFS="$ac_save_ifs"
1350fi
1351fi
1352RANLIB="$ac_cv_prog_RANLIB"
1353if test -n "$RANLIB"; then
1354 echo "$ac_t""$RANLIB" 1>&6
1355else
1356 echo "$ac_t""no" 1>&6
1357fi
1358
1359
1360if test -z "$ac_cv_prog_RANLIB"; then
1361if test -n "$ac_tool_prefix"; then
1362 # Extract the first word of "ranlib", so it can be a program name with args.
1363set dummy ranlib; ac_word=$2
1364echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001365echo "configure:1366: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001366if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1368else
1369 if test -n "$RANLIB"; then
1370 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1371else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1373 ac_dummy="$PATH"
1374 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001375 test -z "$ac_dir" && ac_dir=.
1376 if test -f $ac_dir/$ac_word; then
1377 ac_cv_prog_RANLIB="ranlib"
1378 break
1379 fi
1380 done
1381 IFS="$ac_save_ifs"
1382 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1383fi
1384fi
1385RANLIB="$ac_cv_prog_RANLIB"
1386if test -n "$RANLIB"; then
1387 echo "$ac_t""$RANLIB" 1>&6
1388else
1389 echo "$ac_t""no" 1>&6
1390fi
1391
1392else
1393 RANLIB=":"
1394fi
1395fi
1396
1397# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1398set dummy ${ac_tool_prefix}strip; ac_word=$2
1399echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001400echo "configure:1401: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001401if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403else
1404 if test -n "$STRIP"; then
1405 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1406else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1408 ac_dummy="$PATH"
1409 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001410 test -z "$ac_dir" && ac_dir=.
1411 if test -f $ac_dir/$ac_word; then
1412 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1413 break
1414 fi
1415 done
1416 IFS="$ac_save_ifs"
1417fi
1418fi
1419STRIP="$ac_cv_prog_STRIP"
1420if test -n "$STRIP"; then
1421 echo "$ac_t""$STRIP" 1>&6
1422else
1423 echo "$ac_t""no" 1>&6
1424fi
1425
1426
1427if test -z "$ac_cv_prog_STRIP"; then
1428if test -n "$ac_tool_prefix"; then
1429 # Extract the first word of "strip", so it can be a program name with args.
1430set dummy strip; ac_word=$2
1431echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001432echo "configure:1433: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001433if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1435else
1436 if test -n "$STRIP"; then
1437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1438else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1440 ac_dummy="$PATH"
1441 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001442 test -z "$ac_dir" && ac_dir=.
1443 if test -f $ac_dir/$ac_word; then
1444 ac_cv_prog_STRIP="strip"
1445 break
1446 fi
1447 done
1448 IFS="$ac_save_ifs"
1449 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1450fi
1451fi
1452STRIP="$ac_cv_prog_STRIP"
1453if test -n "$STRIP"; then
1454 echo "$ac_t""$STRIP" 1>&6
1455else
1456 echo "$ac_t""no" 1>&6
1457fi
1458
1459else
1460 STRIP=":"
1461fi
1462fi
1463
1464# Extract the first word of "gcc", so it can be a program name with args.
1465set dummy gcc; ac_word=$2
1466echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001467echo "configure:1468: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001468if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1470else
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1473else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1475 ac_dummy="$PATH"
1476 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001477 test -z "$ac_dir" && ac_dir=.
1478 if test -f $ac_dir/$ac_word; then
1479 ac_cv_prog_CC="gcc"
1480 break
1481 fi
1482 done
1483 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001484fi
1485fi
1486CC="$ac_cv_prog_CC"
1487if test -n "$CC"; then
1488 echo "$ac_t""$CC" 1>&6
1489else
1490 echo "$ac_t""no" 1>&6
1491fi
1492
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001493if test -z "$CC"; then
1494 # Extract the first word of "cc", so it can be a program name with args.
1495set dummy cc; ac_word=$2
1496echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001497echo "configure:1498: checking for $ac_word" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001498if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1500else
1501 if test -n "$CC"; then
1502 ac_cv_prog_CC="$CC" # Let the user override the test.
1503else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001505 ac_prog_rejected=no
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001506 ac_dummy="$PATH"
1507 for ac_dir in $ac_dummy; do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001508 test -z "$ac_dir" && ac_dir=.
1509 if test -f $ac_dir/$ac_word; then
1510 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1511 ac_prog_rejected=yes
1512 continue
1513 fi
1514 ac_cv_prog_CC="cc"
1515 break
1516 fi
1517 done
1518 IFS="$ac_save_ifs"
1519if test $ac_prog_rejected = yes; then
1520 # We found a bogon in the path, so make sure we never use it.
1521 set dummy $ac_cv_prog_CC
1522 shift
1523 if test $# -gt 0; then
1524 # We chose a different compiler from the bogus one.
1525 # However, it has the same basename, so the bogon will be chosen
1526 # first if we set CC to just the basename; use the full file name.
1527 shift
1528 set dummy "$ac_dir/$ac_word" "$@"
1529 shift
1530 ac_cv_prog_CC="$@"
1531 fi
1532fi
1533fi
1534fi
1535CC="$ac_cv_prog_CC"
1536if test -n "$CC"; then
1537 echo "$ac_t""$CC" 1>&6
1538else
1539 echo "$ac_t""no" 1>&6
1540fi
1541
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001542 if test -z "$CC"; then
1543 case "`uname -s`" in
1544 *win32* | *WIN32*)
1545 # Extract the first word of "cl", so it can be a program name with args.
1546set dummy cl; ac_word=$2
1547echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001548echo "configure:1549: checking for $ac_word" >&5
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001549if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1551else
1552 if test -n "$CC"; then
1553 ac_cv_prog_CC="$CC" # Let the user override the test.
1554else
1555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1556 ac_dummy="$PATH"
1557 for ac_dir in $ac_dummy; do
1558 test -z "$ac_dir" && ac_dir=.
1559 if test -f $ac_dir/$ac_word; then
1560 ac_cv_prog_CC="cl"
1561 break
1562 fi
1563 done
1564 IFS="$ac_save_ifs"
1565fi
1566fi
1567CC="$ac_cv_prog_CC"
1568if test -n "$CC"; then
1569 echo "$ac_t""$CC" 1>&6
1570else
1571 echo "$ac_t""no" 1>&6
1572fi
1573 ;;
1574 esac
1575 fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001576 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1577fi
1578
1579echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001580echo "configure:1581: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001581
1582ac_ext=c
1583# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1584ac_cpp='$CPP $CPPFLAGS'
1585ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001586ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001587cross_compiling=$ac_cv_prog_cc_cross
1588
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001589cat > conftest.$ac_ext << EOF
1590
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001591#line 1592 "configure"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001592#include "confdefs.h"
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001593
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001594main(){return(0);}
1595EOF
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001596if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001597 ac_cv_prog_cc_works=yes
1598 # If we can't run a trivial program, we are probably using a cross compiler.
1599 if (./conftest; exit) 2>/dev/null; then
1600 ac_cv_prog_cc_cross=no
1601 else
1602 ac_cv_prog_cc_cross=yes
1603 fi
1604else
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 ac_cv_prog_cc_works=no
1608fi
1609rm -fr conftest*
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001610ac_ext=c
1611# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1612ac_cpp='$CPP $CPPFLAGS'
1613ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1614ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1615cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001616
1617echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1618if test $ac_cv_prog_cc_works = no; then
1619 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1620fi
1621echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001622echo "configure:1623: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001623echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1624cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001625
1626echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001627echo "configure:1628: checking whether we are using GNU C" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001628if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1630else
1631 cat > conftest.c <<EOF
1632#ifdef __GNUC__
1633 yes;
1634#endif
1635EOF
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001636if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001637 ac_cv_prog_gcc=yes
1638else
1639 ac_cv_prog_gcc=no
1640fi
1641fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001642
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001643echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001644
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001645if test $ac_cv_prog_gcc = yes; then
1646 GCC=yes
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001647else
1648 GCC=
1649fi
1650
1651ac_test_CFLAGS="${CFLAGS+set}"
1652ac_save_CFLAGS="$CFLAGS"
1653CFLAGS=
1654echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001655echo "configure:1656: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001656if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001657 echo $ac_n "(cached) $ac_c" 1>&6
1658else
1659 echo 'void f(){}' > conftest.c
1660if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001661 ac_cv_prog_cc_g=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001662else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001663 ac_cv_prog_cc_g=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001664fi
1665rm -f conftest*
1666
1667fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001668
1669echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001670if test "$ac_test_CFLAGS" = set; then
1671 CFLAGS="$ac_save_CFLAGS"
1672elif test $ac_cv_prog_cc_g = yes; then
1673 if test "$GCC" = yes; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001674 CFLAGS="-g -O2"
1675 else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001676 CFLAGS="-g"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001677 fi
1678else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001679 if test "$GCC" = yes; then
1680 CFLAGS="-O2"
1681 else
1682 CFLAGS=
1683 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001684fi
1685
1686# Find a good install program. We prefer a C program (faster),
1687# so one script is as good as another. But avoid the broken or
1688# incompatible versions:
1689# SysV /etc/install, /usr/sbin/install
1690# SunOS /usr/etc/install
1691# IRIX /sbin/install
1692# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001693# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001694# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1695# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1696# ./install, which can be erroneously created by make from ./install.sh.
1697echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00001698echo "configure:1699: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001699if test -z "$INSTALL"; then
1700if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1702else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001703 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001704 for ac_dir in $PATH; do
1705 # Account for people who put trailing slashes in PATH elements.
1706 case "$ac_dir/" in
1707 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1708 *)
1709 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001710 # Don't use installbsd from OSF since it installs stuff as root
1711 # by default.
1712 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001713 if test -f $ac_dir/$ac_prog; then
1714 if test $ac_prog = install &&
1715 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1716 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001717 :
1718 else
1719 ac_cv_path_install="$ac_dir/$ac_prog -c"
1720 break 2
1721 fi
1722 fi
1723 done
1724 ;;
1725 esac
1726 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001727 IFS="$ac_save_IFS"
1728
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001729fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001730 if test "${ac_cv_path_install+set}" = set; then
1731 INSTALL="$ac_cv_path_install"
1732 else
1733 # As a last resort, use the slow shell script. We don't cache a
1734 # path for INSTALL within a source directory, because that will
1735 # break other packages using the cache if that directory is
1736 # removed, or if the path is relative.
1737 INSTALL="$ac_install_sh"
1738 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001739fi
1740echo "$ac_t""$INSTALL" 1>&6
1741
1742# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1743# It thinks the first close brace ends the variable substitution.
1744test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1745
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001746test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1747
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001748test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1749
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001750
Theodore Ts'o6c133521999-07-03 20:37:03 +00001751# See if we need a separate native compiler.
1752if test $cross_compiling = no; then
1753 BUILD_CC="$CC"
1754
1755else
1756 for ac_prog in gcc cc
1757do
1758# Extract the first word of "$ac_prog", so it can be a program name with args.
1759set dummy $ac_prog; ac_word=$2
1760echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1761echo "configure:1762: checking for $ac_word" >&5
1762if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1764else
1765 if test -n "$BUILD_CC"; then
1766 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1767else
1768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1769 ac_dummy="$PATH"
1770 for ac_dir in $ac_dummy; do
1771 test -z "$ac_dir" && ac_dir=.
1772 if test -f $ac_dir/$ac_word; then
1773 ac_cv_prog_BUILD_CC="$ac_prog"
1774 break
1775 fi
1776 done
1777 IFS="$ac_save_ifs"
1778fi
1779fi
1780BUILD_CC="$ac_cv_prog_BUILD_CC"
1781if test -n "$BUILD_CC"; then
1782 echo "$ac_t""$BUILD_CC" 1>&6
1783else
1784 echo "$ac_t""no" 1>&6
1785fi
1786
1787test -n "$BUILD_CC" && break
1788done
1789
1790fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001791echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00001792echo "configure:1793: checking how to run the C preprocessor" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001793# On Suns, sometimes $CPP names a directory.
1794if test -n "$CPP" && test -d "$CPP"; then
1795 CPP=
1796fi
1797if test -z "$CPP"; then
1798if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1800else
1801 # This must be in double quotes, not single quotes, because CPP may get
1802 # substituted into the Makefile and "${CC-cc}" will confuse make.
1803 CPP="${CC-cc} -E"
1804 # On the NeXT, cc -E runs the code through the compiler's parser,
1805 # not just through cpp.
1806 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00001807#line 1808 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001808#include "confdefs.h"
1809#include <assert.h>
1810Syntax Error
1811EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001812ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o6c133521999-07-03 20:37:03 +00001813{ (eval echo configure:1814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001814ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001815if test -z "$ac_err"; then
1816 :
1817else
1818 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001821 rm -rf conftest*
1822 CPP="${CC-cc} -E -traditional-cpp"
1823 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00001824#line 1825 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001825#include "confdefs.h"
1826#include <assert.h>
1827Syntax Error
1828EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001829ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o6c133521999-07-03 20:37:03 +00001830{ (eval echo configure:1831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001831ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1832if test -z "$ac_err"; then
1833 :
1834else
1835 echo "$ac_err" >&5
1836 echo "configure: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1838 rm -rf conftest*
1839 CPP="${CC-cc} -nologo -E"
1840 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00001841#line 1842 "configure"
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001842#include "confdefs.h"
1843#include <assert.h>
1844Syntax Error
1845EOF
1846ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o6c133521999-07-03 20:37:03 +00001847{ (eval echo configure:1848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001848ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001849if test -z "$ac_err"; then
1850 :
1851else
1852 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001855 rm -rf conftest*
1856 CPP=/lib/cpp
1857fi
1858rm -f conftest*
1859fi
1860rm -f conftest*
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001861fi
1862rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001863 ac_cv_prog_CPP="$CPP"
1864fi
1865 CPP="$ac_cv_prog_CPP"
1866else
1867 ac_cv_prog_CPP="$CPP"
1868fi
1869echo "$ac_t""$CPP" 1>&6
1870
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00001871for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h linux/fd.h linux/major.h sys/disklabel.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001872do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001873ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001874echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00001875echo "configure:1876: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001876if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878else
1879 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00001880#line 1881 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001881#include "confdefs.h"
1882#include <$ac_hdr>
1883EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001884ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o6c133521999-07-03 20:37:03 +00001885{ (eval echo configure:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00001886ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001887if test -z "$ac_err"; then
1888 rm -rf conftest*
1889 eval "ac_cv_header_$ac_safe=yes"
1890else
1891 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001894 rm -rf conftest*
1895 eval "ac_cv_header_$ac_safe=no"
1896fi
1897rm -f conftest*
1898fi
1899if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001902 cat >> confdefs.h <<EOF
1903#define $ac_tr_hdr 1
1904EOF
1905
1906else
1907 echo "$ac_t""no" 1>&6
1908fi
1909done
1910
1911echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00001912echo "configure:1913: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001913if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1915else
1916 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00001917#line 1918 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001918#include "confdefs.h"
1919/* System header to define __stub macros and hopefully few prototypes,
1920 which can conflict with char vprintf(); below. */
1921#include <assert.h>
1922/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001923/* We use char because int might match the return type of a gcc2
1924 builtin and then its argument prototype would still apply. */
1925char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001926
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001927int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001928
1929/* The GNU C library defines this for functions which it implements
1930 to always fail with ENOSYS. Some functions are actually named
1931 something starting with __ and the normal name is an alias. */
1932#if defined (__stub_vprintf) || defined (__stub___vprintf)
1933choke me
1934#else
1935vprintf();
1936#endif
1937
1938; return 0; }
1939EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00001940if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001941 rm -rf conftest*
1942 eval "ac_cv_func_vprintf=yes"
1943else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001946 rm -rf conftest*
1947 eval "ac_cv_func_vprintf=no"
1948fi
1949rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001950fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001951
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001952if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1953 echo "$ac_t""yes" 1>&6
1954 cat >> confdefs.h <<\EOF
1955#define HAVE_VPRINTF 1
1956EOF
1957
1958else
1959 echo "$ac_t""no" 1>&6
1960fi
1961
1962if test "$ac_cv_func_vprintf" != yes; then
1963echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00001964echo "configure:1965: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001965if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1967else
1968 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00001969#line 1970 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001970#include "confdefs.h"
1971/* System header to define __stub macros and hopefully few prototypes,
1972 which can conflict with char _doprnt(); below. */
1973#include <assert.h>
1974/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001975/* We use char because int might match the return type of a gcc2
1976 builtin and then its argument prototype would still apply. */
1977char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001978
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001979int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001980
1981/* The GNU C library defines this for functions which it implements
1982 to always fail with ENOSYS. Some functions are actually named
1983 something starting with __ and the normal name is an alias. */
1984#if defined (__stub__doprnt) || defined (__stub____doprnt)
1985choke me
1986#else
1987_doprnt();
1988#endif
1989
1990; return 0; }
1991EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00001992if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001993 rm -rf conftest*
1994 eval "ac_cv_func__doprnt=yes"
1995else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001996 echo "configure: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001998 rm -rf conftest*
1999 eval "ac_cv_func__doprnt=no"
2000fi
2001rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002002fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002003
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002004if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2005 echo "$ac_t""yes" 1>&6
2006 cat >> confdefs.h <<\EOF
2007#define HAVE_DOPRNT 1
2008EOF
2009
2010else
2011 echo "$ac_t""no" 1>&6
2012fi
2013
2014fi
2015
2016echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00002017echo "configure:2018: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002018if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2020else
2021 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002022#line 2023 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002023#include "confdefs.h"
2024#include <sys/types.h>
2025#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002026int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002027struct dirent de; de.d_namlen = 0;
2028; return 0; }
2029EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002030if { (eval echo configure:2031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002031 rm -rf conftest*
2032 e2fsprogs_cv_struct_d_namlen=yes
2033else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002034 echo "configure: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002036 rm -rf conftest*
2037 e2fsprogs_cv_struct_d_namlen=no
2038fi
2039rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002040fi
2041
2042echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
2043if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
2044 cat >> confdefs.h <<\EOF
2045#define HAVE_DIRENT_NAMLEN 1
2046EOF
2047
2048fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002049echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00002050echo "configure:2051: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002051if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2053else
2054 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002055#line 2056 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002056#include "confdefs.h"
2057#include <unistd.h>
2058int main() {
2059extern int llseek(int);
2060; return 0; }
2061EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002062if { (eval echo configure:2063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00002063 rm -rf conftest*
2064 e2fsprogs_cv_have_llseek_prototype=no
2065else
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 rm -rf conftest*
2069 e2fsprogs_cv_have_llseek_prototype=yes
2070fi
2071rm -f conftest*
2072fi
2073
2074echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
2075if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
2076 cat >> confdefs.h <<\EOF
2077#define HAVE_LLSEEK_PROTOTYPE 1
2078EOF
2079
2080fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002081if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
2082 # if cross-compiling, with no cached values, just assume something common.
2083 ac_cv_sizeof_short=2
2084 ac_cv_sizeof_int=4
2085 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00002086 ac_cv_sizeof_long_long=8
2087 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002088fi
2089echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00002090echo "configure:2091: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002091if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093else
2094 if test "$cross_compiling" = yes; then
2095 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2096else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002097 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002098#line 2099 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002099#include "confdefs.h"
2100#include <stdio.h>
2101main()
2102{
2103 FILE *f=fopen("conftestval", "w");
2104 if (!f) exit(1);
2105 fprintf(f, "%d\n", sizeof(short));
2106 exit(0);
2107}
2108EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002109if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002110then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002111 ac_cv_sizeof_short=`cat conftestval`
2112else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002113 echo "configure: failed program was:" >&5
2114 cat conftest.$ac_ext >&5
2115 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002116 ac_cv_sizeof_short=0
2117fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002118rm -fr conftest*
2119fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002120
2121fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002122echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2123cat >> confdefs.h <<EOF
2124#define SIZEOF_SHORT $ac_cv_sizeof_short
2125EOF
2126
2127
2128echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00002129echo "configure:2130: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002130if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132else
2133 if test "$cross_compiling" = yes; then
2134 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2135else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002136 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002137#line 2138 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002138#include "confdefs.h"
2139#include <stdio.h>
2140main()
2141{
2142 FILE *f=fopen("conftestval", "w");
2143 if (!f) exit(1);
2144 fprintf(f, "%d\n", sizeof(int));
2145 exit(0);
2146}
2147EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002148if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002149then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002150 ac_cv_sizeof_int=`cat conftestval`
2151else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002155 ac_cv_sizeof_int=0
2156fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002157rm -fr conftest*
2158fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002159
2160fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002161echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2162cat >> confdefs.h <<EOF
2163#define SIZEOF_INT $ac_cv_sizeof_int
2164EOF
2165
2166
2167echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00002168echo "configure:2169: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002169if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2171else
2172 if test "$cross_compiling" = yes; then
2173 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2174else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002175 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002176#line 2177 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002177#include "confdefs.h"
2178#include <stdio.h>
2179main()
2180{
2181 FILE *f=fopen("conftestval", "w");
2182 if (!f) exit(1);
2183 fprintf(f, "%d\n", sizeof(long));
2184 exit(0);
2185}
2186EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002187if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002188then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002189 ac_cv_sizeof_long=`cat conftestval`
2190else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2193 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002194 ac_cv_sizeof_long=0
2195fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002196rm -fr conftest*
2197fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002198
2199fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002200echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2201cat >> confdefs.h <<EOF
2202#define SIZEOF_LONG $ac_cv_sizeof_long
2203EOF
2204
2205
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002206echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00002207echo "configure:2208: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002208if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2210else
2211 if test "$cross_compiling" = yes; then
2212 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2213else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002214 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002215#line 2216 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002216#include "confdefs.h"
2217#include <stdio.h>
2218main()
2219{
2220 FILE *f=fopen("conftestval", "w");
2221 if (!f) exit(1);
2222 fprintf(f, "%d\n", sizeof(long long));
2223 exit(0);
2224}
2225EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002226if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002227then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002228 ac_cv_sizeof_long_long=`cat conftestval`
2229else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2232 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002233 ac_cv_sizeof_long_long=0
2234fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002235rm -fr conftest*
2236fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002237
2238fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002239echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2240cat >> confdefs.h <<EOF
2241#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2242EOF
2243
2244
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002245SIZEOF_SHORT=$ac_cv_sizeof_short
2246SIZEOF_INT=$ac_cv_sizeof_int
2247SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002248SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2249
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002250
2251
2252
2253echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00002254echo "configure:2255: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002255if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2257else
2258 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002259#line 2260 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002260#include "confdefs.h"
2261#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002262int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002263struct stat stat; stat.st_flags = 0;
2264; return 0; }
2265EOF
Theodore Ts'o6c133521999-07-03 20:37:03 +00002266if { (eval echo configure:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002267 rm -rf conftest*
2268 e2fsprogs_cv_struct_st_flags=yes
2269else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002272 rm -rf conftest*
2273 e2fsprogs_cv_struct_st_flags=no
2274fi
2275rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002276fi
2277
2278echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2279if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002280 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
2281echo "configure:2282: checking whether st_flags field is useful" >&5
2282 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2284else
2285 cat > conftest.$ac_ext <<EOF
2286#line 2287 "configure"
2287#include "confdefs.h"
2288#include <sys/stat.h>
2289int main() {
2290struct stat stat; stat.st_flags |= UF_IMMUTABLE;
2291; return 0; }
2292EOF
2293if { (eval echo configure:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2294 rm -rf conftest*
2295 e2fsprogs_cv_struct_st_flags_immut=yes
2296else
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 rm -rf conftest*
2300 e2fsprogs_cv_struct_st_flags_immut=no
2301fi
2302rm -f conftest*
2303fi
2304
2305 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
2306 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
2307 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002308#define HAVE_STAT_FLAGS 1
2309EOF
2310
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002311 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002312fi
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002313for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002314do
2315echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002316echo "configure:2317: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002317if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319else
2320 cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002321#line 2322 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002322#include "confdefs.h"
2323/* System header to define __stub macros and hopefully few prototypes,
2324 which can conflict with char $ac_func(); below. */
2325#include <assert.h>
2326/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002327/* We use char because int might match the return type of a gcc2
2328 builtin and then its argument prototype would still apply. */
2329char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002330
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002331int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002332
2333/* The GNU C library defines this for functions which it implements
2334 to always fail with ENOSYS. Some functions are actually named
2335 something starting with __ and the normal name is an alias. */
2336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2337choke me
2338#else
2339$ac_func();
2340#endif
2341
2342; return 0; }
2343EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002344if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002345 rm -rf conftest*
2346 eval "ac_cv_func_$ac_func=yes"
2347else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002350 rm -rf conftest*
2351 eval "ac_cv_func_$ac_func=no"
2352fi
2353rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002354fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002355
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002356if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2357 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002359 cat >> confdefs.h <<EOF
2360#define $ac_tr_func 1
2361EOF
2362
2363else
2364 echo "$ac_t""no" 1>&6
2365fi
2366done
2367
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002368echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002369echo "configure:2370: checking ino_t defined by sys/types.h" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002370if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2372else
2373 cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002374#line 2375 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002375#include "confdefs.h"
2376#include <sys/types.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002377int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002378ino_t ino; ino = 0;
2379; return 0; }
2380EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002381if { (eval echo configure:2382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002382 rm -rf conftest*
2383 e2fsprogs_cv_ino_t=yes
2384else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002387 rm -rf conftest*
2388 e2fsprogs_cv_ino_t=no
2389fi
2390rm -f conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002391fi
2392
2393echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2394if test "$e2fsprogs_cv_ino_t" = yes; then
2395 cat >> confdefs.h <<\EOF
2396#define HAVE_INO_T 1
2397EOF
2398
2399fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002400ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002401echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002402echo "configure:2403: checking for linux/fs.h" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002403if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2405else
2406 cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002407#line 2408 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002408#include "confdefs.h"
2409#include <linux/fs.h>
2410EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002411ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002412{ (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002413ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002414if test -z "$ac_err"; then
2415 rm -rf conftest*
2416 eval "ac_cv_header_$ac_safe=yes"
2417else
2418 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002421 rm -rf conftest*
2422 eval "ac_cv_header_$ac_safe=no"
2423fi
2424rm -f conftest*
2425fi
2426if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2428 linux_headers=yes
2429else
2430 echo "$ac_t""no" 1>&6
2431linux_headers=no
2432fi
2433
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002434if test "$linux_headers" = yes; then
2435 cat >> confdefs.h <<\EOF
2436#define HAVE_LINUX_FS_H 1
2437EOF
2438
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002439else
2440 LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include'
2441 # Use this include directory with test compiles in the configure script too.
2442 CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include"
2443fi
2444
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002445SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002446echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002447echo "configure:2448: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002448ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2449if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002450 echo $ac_n "(cached) $ac_c" 1>&6
2451else
2452 ac_save_LIBS="$LIBS"
2453LIBS="-lsocket $LIBS"
2454cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002455#line 2456 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002456#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002457/* Override any gcc2 internal prototype to avoid an error. */
2458/* We use char because int might match the return type of a gcc2
2459 builtin and then its argument prototype would still apply. */
2460char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002461
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002462int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002463socket()
2464; return 0; }
2465EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002466if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002467 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002468 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002469else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002472 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002473 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002474fi
2475rm -f conftest*
2476LIBS="$ac_save_LIBS"
2477
2478fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002479if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002480 echo "$ac_t""yes" 1>&6
2481 SOCKET_LIB=-lsocket
2482else
2483 echo "$ac_t""no" 1>&6
2484fi
2485
2486
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002487echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002488echo "configure:2489: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002489if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2491else
2492 cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002493#line 2494 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002494#include "confdefs.h"
2495#include <unistd.h>
2496EOF
2497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2498 egrep "optreset" >/dev/null 2>&1; then
2499 rm -rf conftest*
2500 ac_cv_have_optreset=yes
2501else
2502 rm -rf conftest*
2503 ac_cv_have_optreset=no
2504fi
2505rm -f conftest*
2506
2507fi
2508echo "$ac_t""$ac_cv_have_optreset" 1>&6
2509if test $ac_cv_have_optreset = yes; then
2510 cat >> confdefs.h <<\EOF
2511#define HAVE_OPTRESET 1
2512EOF
2513
2514fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002515echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002516echo "configure:2517: checking whether the ext2 ioctls compile" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002517if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2519else
2520 cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002521#line 2522 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002522#include "confdefs.h"
2523#include <linux/ext2_fs.h>
2524#include <sys/ioctl.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002525int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002526ioctl (0, EXT2_IOC_SETVERSION, 0);
2527; return 0; }
2528EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002529if { (eval echo configure:2530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002530 rm -rf conftest*
2531 e2fsprogs_cv_ioctl_ext2=yes
2532else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002535 rm -rf conftest*
2536 e2fsprogs_cv_ioctl_ext2=no
2537fi
2538rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002539fi
2540
2541echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2542if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2543 cat >> confdefs.h <<\EOF
2544#define HAVE_EXT2_IOCTLS 1
2545EOF
2546
2547fi
Theodore Ts'o66704951999-06-25 15:30:33 +00002548echo $ac_n "checking whether struct ext2_inode has an i_version field""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002549echo "configure:2550: checking whether struct ext2_inode has an i_version field" >&5
Theodore Ts'o66704951999-06-25 15:30:33 +00002550if eval "test \"`echo '$''{'e2fsprogs_cv_ext2_inode_version'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552else
2553 cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002554#line 2555 "configure"
Theodore Ts'o66704951999-06-25 15:30:33 +00002555#include "confdefs.h"
2556#include <linux/ext2_fs.h>
2557int main() {
2558struct ext2_inode e2i; e2i.i_version=0;
2559; return 0; }
2560EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002561if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o66704951999-06-25 15:30:33 +00002562 rm -rf conftest*
2563 e2fsprogs_cv_ext2_inode_version=yes
2564else
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 e2fsprogs_cv_ext2_inode_version=no
2569fi
2570rm -f conftest*
2571fi
2572
2573echo "$ac_t""$e2fsprogs_cv_ext2_inode_version" 1>&6
2574if test "$e2fsprogs_cv_ext2_inode_version" = yes; then
2575 cat >> confdefs.h <<\EOF
2576#define HAVE_EXT2_INODE_VERSION 1
2577EOF
2578
2579fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002580case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00002581linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002582 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
2583 root_prefix="";
2584 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002585 fi
2586 ;;
2587esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002588case "$host_os" in
2589linux* | gnu*)
2590 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002591 prefix="/usr";
2592 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002593 fi
2594;;
2595esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002596if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00002597 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002598 root_prefix="$ac_default_prefix"
2599 else
2600 root_prefix="$prefix"
2601 fi
2602fi
2603
Theodore Ts'oae851481997-04-29 18:13:24 +00002604echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002605echo "configure:2606: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00002606if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2608else
2609 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2610cat > conftest.$ac_ext <<EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002611#line 2612 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00002612#include "confdefs.h"
2613#include <stdio.h>
2614int main() {
2615fflush(stdout);
2616; return 0; }
2617EOF
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00002618if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00002619 rm -rf conftest*
2620 ac_cv_e2fsprogs_use_static=yes
2621else
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2624 rm -rf conftest*
2625 ac_cv_e2fsprogs_use_static=no
2626fi
2627rm -f conftest*
2628LDFLAGS=$SAVE_LDFLAGS
2629fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002630
Theodore Ts'odefde781999-01-04 07:39:19 +00002631case "$host_os" in
2632solaris2.*)
2633 ac_cv_e2fsprogs_use_static=no
2634;;
2635esac
Theodore Ts'oae851481997-04-29 18:13:24 +00002636echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00002637LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00002638if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002639 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00002640fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002641
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002642SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2643ET_DIR=`cd ${srcdir}/lib/et; pwd`
2644
2645
2646if test "$cross_compiling" = yes ; then
2647 DO_TEST_SUITE=
2648else
2649 DO_TEST_SUITE=check
2650fi
2651
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002652DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2653
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002654test -d lib || mkdir lib
2655test -d include || mkdir include
2656test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00002657test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00002658rmakefile=
2659if test -d ${srcdir}/resize ; then
2660 rmakefile=resize/Makefile
2661fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002662trap '' 1 2 15
2663cat > confcache <<\EOF
2664# This file is a shell script that caches the results of configure
2665# tests run on this system so they can be shared between configure
2666# scripts and configure runs. It is not useful on other systems.
2667# If it contains results you don't want to keep, you may remove or edit it.
2668#
2669# By default, configure uses ./config.cache as the cache file,
2670# creating it if it does not exist already. You can give configure
2671# the --cache-file=FILE option to use a different cache file; that is
2672# what configure does when it calls configure scripts in
2673# subdirectories, so they share the cache.
2674# Giving --cache-file=/dev/null disables caching, for debugging configure.
2675# config.status only pays attention to the cache file if you give it the
2676# --recheck option to rerun configure.
2677#
2678EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002679# The following way of writing the cache mishandles newlines in values,
2680# but we know of no workaround that is simple, portable, and efficient.
2681# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002682# Ultrix sh set writes to stderr and can't be redirected directly,
2683# and sets the high bit in the cache file unless we assign to the vars.
2684(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002685 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002686 *ac_space=\ *)
2687 # `set' does not quote correctly, so add quotes (double-quote substitution
2688 # turns \\\\ into \\, and sed turns \\ into \).
2689 sed -n \
2690 -e "s/'/'\\\\''/g" \
2691 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2692 ;;
2693 *)
2694 # `set' quotes correctly as required by POSIX, so do not add quotes.
2695 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2696 ;;
2697 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002698if cmp -s $cache_file confcache; then
2699 :
2700else
2701 if test -w $cache_file; then
2702 echo "updating cache $cache_file"
2703 cat confcache > $cache_file
2704 else
2705 echo "not updating unwritable cache $cache_file"
2706 fi
2707fi
2708rm -f confcache
2709
2710trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2711
2712test "x$prefix" = xNONE && prefix=$ac_default_prefix
2713# Let make expand exec_prefix.
2714test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2715
2716# Any assignment to VPATH causes Sun make to only execute
2717# the first set of double-colon rules, so remove it if not needed.
2718# If there is a colon in the path, we need to keep it.
2719if test "x$srcdir" = x.; then
2720 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2721fi
2722
2723trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2724
2725# Transform confdefs.h into DEFS.
2726# Protect against shell expansion while executing Makefile rules.
2727# Protect against Makefile macro expansion.
2728cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002729s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002730s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2731s%\[%\\&%g
2732s%\]%\\&%g
2733s%\$%$$%g
2734EOF
2735DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2736rm -f conftest.defs
2737
2738
2739# Without the "./", some shells look in PATH for config.status.
2740: ${CONFIG_STATUS=./config.status}
2741
2742echo creating $CONFIG_STATUS
2743rm -f $CONFIG_STATUS
2744cat > $CONFIG_STATUS <<EOF
2745#! /bin/sh
2746# Generated automatically by configure.
2747# Run this file to recreate the current configuration.
2748# This directory was configured as follows,
2749# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2750#
2751# $0 $ac_configure_args
2752#
2753# Compiler output produced by configure, useful for debugging
2754# configure, is in ./config.log if it exists.
2755
2756ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2757for ac_option
2758do
2759 case "\$ac_option" in
2760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2761 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2762 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2763 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002764 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002765 exit 0 ;;
2766 -help | --help | --hel | --he | --h)
2767 echo "\$ac_cs_usage"; exit 0 ;;
2768 *) echo "\$ac_cs_usage"; exit 1 ;;
2769 esac
2770done
2771
2772ac_given_srcdir=$srcdir
2773ac_given_INSTALL="$INSTALL"
2774
Theodore Ts'o44339bd1997-10-15 02:47:20 +00002775trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002776 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2777 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'obc210071997-06-17 05:41:36 +00002778 tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002779EOF
2780cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002781
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002782# Protect against being on the right side of a sed subst in config.status.
2783sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2784 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002785$ac_vpsub
2786$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002787s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002788s%@CFLAGS@%$CFLAGS%g
2789s%@CPPFLAGS@%$CPPFLAGS%g
2790s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002791s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002792s%@DEFS@%$DEFS%g
2793s%@LDFLAGS@%$LDFLAGS%g
2794s%@LIBS@%$LIBS%g
2795s%@exec_prefix@%$exec_prefix%g
2796s%@prefix@%$prefix%g
2797s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002798s%@bindir@%$bindir%g
2799s%@sbindir@%$sbindir%g
2800s%@libexecdir@%$libexecdir%g
2801s%@datadir@%$datadir%g
2802s%@sysconfdir@%$sysconfdir%g
2803s%@sharedstatedir@%$sharedstatedir%g
2804s%@localstatedir@%$localstatedir%g
2805s%@libdir@%$libdir%g
2806s%@includedir@%$includedir%g
2807s%@oldincludedir@%$oldincludedir%g
2808s%@infodir@%$infodir%g
2809s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002810/@MCONFIG@/r $MCONFIG
2811s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002812s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2813s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2814s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002815s%@host@%$host%g
2816s%@host_alias@%$host_alias%g
2817s%@host_cpu@%$host_cpu%g
2818s%@host_vendor@%$host_vendor%g
2819s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002820s%@CC@%$CC%g
2821s%@LD@%$LD%g
2822s%@CCOPTS@%$CCOPTS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002823s%@DLL_CMT@%$DLL_CMT%g
2824/@MAKEFILE_DLL@/r $MAKEFILE_DLL
2825s%@MAKEFILE_DLL@%%g
2826s%@ELF_CMT@%$ELF_CMT%g
2827/@MAKEFILE_ELF@/r $MAKEFILE_ELF
2828s%@MAKEFILE_ELF@%%g
2829s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2830/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2831s%@MAKEFILE_BSDLIB@%%g
2832s%@PROFILE_CMT@%$PROFILE_CMT%g
2833/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2834s%@MAKEFILE_PROFILE@%%g
2835s%@CHECKER_CMT@%$CHECKER_CMT%g
2836/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2837s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002838s%@LIB_EXT@%$LIB_EXT%g
2839s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2840s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002841s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002842s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002843s%@FSCK_PROG@%$FSCK_PROG%g
2844s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002845/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2846s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002847s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002848s%@SET_MAKE@%$SET_MAKE%g
2849s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002850s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002851s%@MV@%$MV%g
2852s%@CP@%$CP%g
2853s%@RM@%$RM%g
2854s%@CHMOD@%$CHMOD%g
2855s%@AWK@%$AWK%g
2856s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00002857s%@PERL@%$PERL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002858s%@build@%$build%g
2859s%@build_alias@%$build_alias%g
2860s%@build_cpu@%$build_cpu%g
2861s%@build_vendor@%$build_vendor%g
2862s%@build_os@%$build_os%g
2863s%@AR@%$AR%g
2864s%@RANLIB@%$RANLIB%g
2865s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002866s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00002867s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002868s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00002869s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002870s%@CPP@%$CPP%g
2871s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2872s%@SIZEOF_INT@%$SIZEOF_INT%g
2873s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002874s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002875s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002876s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002877s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002878s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002879s%@SS_DIR@%$SS_DIR%g
2880s%@ET_DIR@%$ET_DIR%g
2881s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002882/@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2883s%@DO_SUBSTITUTE_SCRIPT@%%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002884
2885CEOF
2886EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002887
2888cat >> $CONFIG_STATUS <<\EOF
2889
2890# Split the substitutions into bite-sized pieces for seds with
2891# small command number limits, like on Digital OSF/1 and HP-UX.
2892ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2893ac_file=1 # Number of current file.
2894ac_beg=1 # First line for current file.
2895ac_end=$ac_max_sed_cmds # Line after last line for current file.
2896ac_more_lines=:
2897ac_sed_cmds=""
2898while $ac_more_lines; do
2899 if test $ac_beg -gt 1; then
2900 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2901 else
2902 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2903 fi
2904 if test ! -s conftest.s$ac_file; then
2905 ac_more_lines=false
2906 rm -f conftest.s$ac_file
2907 else
2908 if test -z "$ac_sed_cmds"; then
2909 ac_sed_cmds="sed -f conftest.s$ac_file"
2910 else
2911 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2912 fi
2913 ac_file=`expr $ac_file + 1`
2914 ac_beg=$ac_end
2915 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2916 fi
2917done
2918if test -z "$ac_sed_cmds"; then
2919 ac_sed_cmds=cat
2920fi
2921EOF
2922
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002923cat >> $CONFIG_STATUS <<EOF
2924
Theodore Ts'o44339bd1997-10-15 02:47:20 +00002925CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002926 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2927 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'obc210071997-06-17 05:41:36 +00002928 tests/progs/Makefile $rmakefile doc/Makefile"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002929EOF
2930cat >> $CONFIG_STATUS <<\EOF
2931for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002933 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002934 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002935 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2936 *) ac_file_in="${ac_file}.in" ;;
2937 esac
2938
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002939 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002940
2941 # Remove last slash and all that follows it. Not all systems have dirname.
2942 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2943 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2944 # The file is in a subdirectory.
2945 test ! -d "$ac_dir" && mkdir "$ac_dir"
2946 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2947 # A "../" for each directory in $ac_dir_suffix.
2948 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2949 else
2950 ac_dir_suffix= ac_dots=
2951 fi
2952
2953 case "$ac_given_srcdir" in
2954 .) srcdir=.
2955 if test -z "$ac_dots"; then top_srcdir=.
2956 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2957 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2958 *) # Relative path.
2959 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2960 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2961 esac
2962
2963 case "$ac_given_INSTALL" in
2964 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2965 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2966 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002967
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002968 echo creating "$ac_file"
2969 rm -f "$ac_file"
2970 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2971 case "$ac_file" in
2972 *Makefile*) ac_comsub="1i\\
2973# $configure_input" ;;
2974 *) ac_comsub= ;;
2975 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002976
2977 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002978 sed -e "$ac_comsub
2979s%@configure_input@%$configure_input%g
2980s%@srcdir@%$srcdir%g
2981s%@top_srcdir@%$top_srcdir%g
2982s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002983" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002984fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002985rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002986
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002987EOF
2988cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002989
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002990EOF
2991cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002992
2993exit 0
2994EOF
2995chmod +x $CONFIG_STATUS
2996rm -fr confdefs* $ac_clean_files
2997test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2998