blob: 31c17486726e921f04820ef72ebe5cd0cf647fa9 [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'o21c84b71997-04-29 16:15:03 +00004# Generated automatically using autoconf version 2.12
5# 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=
80# Maximum number of lines to put in a shell here document.
81ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000082
83ac_prev=
84for ac_option
85do
86
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
90 ac_prev=
91 continue
92 fi
93
94 case "$ac_option" in
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 *) ac_optarg= ;;
97 esac
98
99 # Accept the important Cygnus configure options, so we can diagnose typos.
100
101 case "$ac_option" in
102
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 ac_prev=bindir ;;
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
107
108 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000109 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000111 build="$ac_optarg" ;;
112
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
119
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 ac_prev=datadir ;;
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 | --da=*)
124 datadir="$ac_optarg" ;;
125
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 fi
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
134
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 fi
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 case "$ac_option" in
143 *=*) ;;
144 *) ac_optarg=yes ;;
145 esac
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
147
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
156
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
159 with_gas=yes ;;
160
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
164 cat << EOF
165Usage: configure [options] [host]
166Options: [defaults in brackets after descriptions]
167Configuration:
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
175 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000177 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
182 [PREFIX/share]
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 [PREFIX/com]
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
197EOF
198 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000199Host type:
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000210EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
213 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000214 exit 0 ;;
215
216 -host | --host | --hos | --ho)
217 ac_prev=host ;;
218 -host=* | --host=* | --hos=* | --ho=*)
219 host="$ac_optarg" ;;
220
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
227
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 ac_prev=infodir ;;
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
232
233 -libdir | --libdir | --libdi | --libd)
234 ac_prev=libdir ;;
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
237
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
244
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
253
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 ac_prev=mandir ;;
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
258
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000259 -nfp | --nfp | --nf)
260 # Obsolete; use --without-fp.
261 with_fp=no ;;
262
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 | --no-cr | --no-c)
265 no_create=yes ;;
266
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 no_recursion=yes ;;
270
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
279
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 ac_prev=prefix ;;
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
284
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
291
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
298
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
315
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
318 silent=yes ;;
319
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 ac_prev=sbindir ;;
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 | --sbi=* | --sb=*)
324 sbindir="$ac_optarg" ;;
325
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
329 | --sha | --sh)
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 | --sha=* | --sh=*)
335 sharedstatedir="$ac_optarg" ;;
336
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000337 -site | --site | --sit)
338 ac_prev=site ;;
339 -site=* | --site=* | --sit=*)
340 site="$ac_optarg" ;;
341
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343 ac_prev=srcdir ;;
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
346
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
353
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000354 -target | --target | --targe | --targ | --tar | --ta | --t)
355 ac_prev=target ;;
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
358
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 verbose=yes ;;
361
362 -version | --version | --versio | --versi | --vers)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000363 echo "configure generated by autoconf version 2.12"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000364 exit 0 ;;
365
366 -with-* | --with-*)
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 fi
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 case "$ac_option" in
374 *=*) ;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "with_${ac_package}='$ac_optarg'" ;;
378
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 fi
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
387
388 --x)
389 # Obsolete; use --with-x.
390 with_x=yes ;;
391
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
398
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
405
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 ;;
408
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000409 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 fi
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 fi
416 nonopt="$ac_option"
417 ;;
418
419 esac
420done
421
422if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424fi
425
426trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427
428# File descriptor usage:
429# 0 standard input
430# 1 file creation
431# 2 errors and warnings
432# 3 some systems may open it to /dev/tty
433# 4 used on the Kubota Titan
434# 6 checking for... messages and results
435# 5 compiler messages saved in config.log
436if test "$silent" = yes; then
437 exec 6>/dev/null
438else
439 exec 6>&1
440fi
441exec 5>./config.log
442
443echo "\
444This file contains any messages produced by compilers while
445running configure, to aid debugging if configure makes a mistake.
446" 1>&5
447
448# Strip out --no-create and --no-recursion so they do not pile up.
449# Also quote any args containing shell metacharacters.
450ac_configure_args=
451for ac_arg
452do
453 case "$ac_arg" in
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
461 esac
462done
463
464# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000465# Only set these to C if already set. These must not be set unconditionally
466# because not all systems understand e.g. LANG=C (notably SCO).
467# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000469if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000470if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000473
474# confdefs.h avoids OS command line length limits that DEFS can exceed.
475rm -rf conftest* confdefs.h
476# AIX cpp loses on an empty file, so make sure it contains at least a newline.
477echo > confdefs.h
478
479# A filename unique to this package, relative to the directory that
480# configure is in, which we can look for to find out if srcdir is correct.
481ac_unique_file=version.h
482
483# Find the source files, if location was not specified.
484if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
487 ac_prog=$0
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
490 srcdir=$ac_confdir
491 if test ! -r $srcdir/$ac_unique_file; then
492 srcdir=..
493 fi
494else
495 ac_srcdir_defaulted=no
496fi
497if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 else
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 fi
503fi
504srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505
506# Prefer explicitly selected file to automatically selected ones.
507if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
510 else
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 fi
513fi
514for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
517 . "$ac_site_file"
518 fi
519done
520
521if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
523 . $cache_file
524else
525 echo "creating cache $cache_file"
526 > $cache_file
527fi
528
529ac_ext=c
530# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000532ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000535
536if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='
540' ac_t=' '
541 else
542 ac_n=-n ac_c= ac_t=
543 fi
544else
545 ac_n= ac_c='\c' ac_t=
546fi
547
548
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000549
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000550MCONFIG=./MCONFIG
551
Theodore Ts'o74becf31997-04-26 14:37:06 +0000552BINARY_TYPE=bin
553E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
554 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
555DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
556 | tr \" " "`
557MONTH=`echo $DATE | awk -F- '{print $2}'`
558YEAR=`echo $DATE | awk -F- '{print $3}'`
559
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000560if expr $YEAR ">" 1900 > /dev/null ; then
561 E2FSPROGS_YEAR=$YEAR
562elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000563 E2FSPROGS_YEAR=19$YEAR
564else
565 E2FSPROGS_YEAR=20$YEAR
566fi
567
568case $MONTH in
569Jan) E2FSPROGS_MONTH="January" ;;
570Feb) E2FSPROGS_MONTH="February" ;;
571Mar) E2FSPROGS_MONTH="March" ;;
572Apr) E2FSPROGS_MONTH="April" ;;
573May) E2FSPROGS_MONTH="May" ;;
574Jun) E2FSPROGS_MONTH="June" ;;
575Jul) E2FSPROGS_MONTH="July" ;;
576Aug) E2FSPROGS_MONTH="August" ;;
577Sep) E2FSPROGS_MONTH="September" ;;
578Oct) E2FSPROGS_MONTH="October" ;;
579Nov) E2FSPROGS_MONTH="November" ;;
580Dec) E2FSPROGS_MONTH="December" ;;
581*) echo "Unknown month $MONTH??" ;;
582esac
583
584unset DATE MONTH YEAR
585echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
586echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
587
588
589
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000590
591ac_aux_dir=
592for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
593 if test -f $ac_dir/install-sh; then
594 ac_aux_dir=$ac_dir
595 ac_install_sh="$ac_aux_dir/install-sh -c"
596 break
597 elif test -f $ac_dir/install.sh; then
598 ac_aux_dir=$ac_dir
599 ac_install_sh="$ac_aux_dir/install.sh -c"
600 break
601 fi
602done
603if test -z "$ac_aux_dir"; then
604 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
605fi
606ac_config_guess=$ac_aux_dir/config.guess
607ac_config_sub=$ac_aux_dir/config.sub
608ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
609
610
611# Make sure we can run config.sub.
612if $ac_config_sub sun4 >/dev/null 2>&1; then :
613else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
614fi
615
616echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000617echo "configure:618: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000618
619host_alias=$host
620case "$host_alias" in
621NONE)
622 case $nonopt in
623 NONE)
624 if host_alias=`$ac_config_guess`; then :
625 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
626 fi ;;
627 *) host_alias=$nonopt ;;
628 esac ;;
629esac
630
631host=`$ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000632host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000635echo "$ac_t""$host" 1>&6
636
Theodore Ts'o74becf31997-04-26 14:37:06 +0000637# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000638if test "${with_cc+set}" = set; then
639 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000640 echo "$ac_t""CC=$withval" 1>&6
641CC=$withval
642else
643 if test -z "$CC" ; then CC=cc; fi
644echo "$ac_t""CC defaults to $CC" 1>&6
645fi
646export CC
647
648# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000649if test "${with_linker+set}" = set; then
650 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000651 echo "$ac_t""LD=$withval" 1>&6
652LD=$withval
653else
654 if test -z "$LD" ; then LD=$CC; fi
655echo "$ac_t""LD defaults to $LD" 1>&6
656fi
657export LD
658
659# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000660if test "${with_ccopts+set}" = set; then
661 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000662 echo "$ac_t""CCOPTS is $withval" 1>&6
663CCOPTS=$withval
664CFLAGS="$CFLAGS $withval"
665else
666 CCOPTS=
667fi
668
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000669LIB_EXT=.a
670STATIC_LIB_EXT=.a
671PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +0000672# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000673if test "${with_ldopts+set}" = set; then
674 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000675 echo "$ac_t""LDFLAGS is $withval" 1>&6
676LDFLAGS=$withval
677else
678 LDFLAGS=
679fi
680
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000681# Check whether --with-root-prefix or --without-root-prefix was given.
682if test "${with_root_prefix+set}" = set; then
683 withval="$with_root_prefix"
684 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000685else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000686 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000687fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000688# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000689if test "${enable_dll_shlibs+set}" = set; then
690 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000691 if test "$enableval" = "no"
692then
693 DLL_CMT=#
694 MAKEFILE_DLL=/dev/null
695 echo "Disabling DLL shared libraries"
696else
697 DLL_CMT=
698 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000699 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000700 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000701 echo "Enabling DLL shared libraries"
702fi
703
704else
705 MAKEFILE_DLL=/dev/null
706DLL_CMT=#
707echo "Disabling DLL shared libraries by default"
708
709fi
710
711
712
713# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000714if test "${enable_elf_shlibs+set}" = set; then
715 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000716 if test "$enableval" = "no"
717then
718 ELF_CMT=#
719 MAKEFILE_ELF=/dev/null
720 echo "Disabling ELF shared libraries"
721else
722 ELF_CMT=
723 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +0000724 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000725 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000726 echo "Enabling ELF shared libraries"
727fi
728
729else
730 MAKEFILE_ELF=/dev/null
731ELF_CMT=#
732echo "Disabling ELF shared libraries by default"
733
734fi
735
736
737
738# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000739if test "${enable_bsd_shlibs+set}" = set; then
740 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000741 if test "$enableval" = "no"
742then
743 BSDLIB_CMT=#
744 MAKEFILE_BSDLIB=/dev/null
745 echo "Disabling BSD shared libraries"
746else
747 BSDLIB_CMT=
748 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000749 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000750 echo "Enabling BSD shared libraries"
751fi
752
753else
754 MAKEFILE_BSDLIB=/dev/null
755BSDLIB_CMT=#
756echo "Disabling BSD shared libraries by default"
757
758fi
759
760
761
762# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000763if test "${enable_profile+set}" = set; then
764 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000765 if test "$enableval" = "no"
766then
767 PROFILE_CMT=#
768 MAKEFILE_PROFILE=/dev/null
769 echo "Disabling profiling libraries"
770else
771 PROFILE_CMT=
772 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000773 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000774 echo "Building profiling libraries"
775fi
776
777else
778 PROFILE_CMT=#
779MAKEFILE_PROFILE=/dev/null
780echo "Disabling profiling libraries by default"
781
782fi
783
784
785
786# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000787if test "${enable_checker+set}" = set; then
788 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000789 if test "$enableval" = "no"
790then
791 CHECKER_CMT=#
792 MAKEFILE_CHECKER=/dev/null
793 echo "Disabling checker libraries"
794else
795 CHECKER_CMT=
796 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
797 echo "Building checker libraries"
798fi
799
800else
801 CHECKER_CMT=#
802MAKEFILE_CHECKER=/dev/null
803echo "Disabling checker libraries by default"
804
805fi
806
807
808
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000809
810
811
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000812# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000813if test "${enable_gcc_wall+set}" = set; then
814 enableval="$enable_gcc_wall"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000815 if test "$enableval" = "no"
816then
817 W=#
818 echo "Disabling GCC warnings"
819else
820 W=
821 echo "Enabling GCC warnings"
822fi
823
824else
825 W=#
826echo "Disabling GCC warnings by default"
827
828fi
829
830
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000831# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000832if test "${enable_dynamic_e2fsck+set}" = set; then
833 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000834 if test "$enableval" = "no"
835then
836 E2FSCK_TYPE=static
837 echo "Building e2fsck statically"
838else
839 E2FSCK_TYPE=shared
840 echo "Building e2fsck dynamically"
841fi
842
843else
844 E2FSCK_TYPE=static
845echo "Building e2fsck statically by default"
846
847fi
848
849
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000850# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000851if test "${enable_fsck+set}" = set; then
852 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000853 if test "$enableval" = "no"
854then
855 FSCK_PROG='' FSCK_MAN=''
856 echo "Not building fsck wrapper"
857else
858 FSCK_PROG=fsck FSCK_MAN=fsck.8
859 echo "Building fsck wrapper"
860fi
861
862else
863 case "$host_os" in
864 gnu*)
865 FSCK_PROG='' FSCK_MAN=''
866 echo "Not building fsck wrapper by default"
867 ;;
868 *)
869 FSCK_PROG=fsck FSCK_MAN=fsck.8
870 echo "Building fsck wrapper by default"
871esac
872
873fi
874
875
876
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000877MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
878
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000879# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000880if test "${enable_old_bitops+set}" = set; then
881 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000882 if test "$enableval" = "no"
883then
884 echo "Using new (standard) bitmask operations"
885else
886 cat >> confdefs.h <<\EOF
887#define EXT2_OLD_BITOPS 1
888EOF
889
890 echo "Using old (native) bitmask operations"
891
892fi
893
894else
895 echo "Using standard bitmask operations by default"
896
897fi
898
Theodore Ts'o74becf31997-04-26 14:37:06 +0000899
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000900echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000901echo "configure:902: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000902set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000903if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
905else
906 cat > conftestmake <<\EOF
907all:
908 @echo 'ac_maketemp="${MAKE}"'
909EOF
910# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
911eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
912if test -n "$ac_maketemp"; then
913 eval ac_cv_prog_make_${ac_make}_set=yes
914else
915 eval ac_cv_prog_make_${ac_make}_set=no
916fi
917rm -f conftestmake
918fi
919if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
920 echo "$ac_t""yes" 1>&6
921 SET_MAKE=
922else
923 echo "$ac_t""no" 1>&6
924 SET_MAKE="MAKE=${MAKE-make}"
925fi
926
927# Extract the first word of "ln", so it can be a program name with args.
928set dummy ln; ac_word=$2
929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000930echo "configure:931: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000931if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
933else
934 case "$LN" in
935 /*)
936 ac_cv_path_LN="$LN" # Let the user override the test with a path.
937 ;;
938 *)
939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
940 for ac_dir in $PATH; do
941 test -z "$ac_dir" && ac_dir=.
942 if test -f $ac_dir/$ac_word; then
943 ac_cv_path_LN="$ac_dir/$ac_word"
944 break
945 fi
946 done
947 IFS="$ac_save_ifs"
948 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
949 ;;
950esac
951fi
952LN="$ac_cv_path_LN"
953if test -n "$LN"; then
954 echo "$ac_t""$LN" 1>&6
955else
956 echo "$ac_t""no" 1>&6
957fi
958
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000959echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000960echo "configure:961: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000961if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
963else
964 rm -f conftestdata
965if ln -s X conftestdata 2>/dev/null
966then
967 rm -f conftestdata
968 ac_cv_prog_LN_S="ln -s"
969else
970 ac_cv_prog_LN_S=ln
971fi
972fi
973LN_S="$ac_cv_prog_LN_S"
974if test "$ac_cv_prog_LN_S" = "ln -s"; then
975 echo "$ac_t""yes" 1>&6
976else
977 echo "$ac_t""no" 1>&6
978fi
979
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000980# Extract the first word of "mv", so it can be a program name with args.
981set dummy mv; ac_word=$2
982echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000983echo "configure:984: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000984if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
986else
987 case "$MV" in
988 /*)
989 ac_cv_path_MV="$MV" # Let the user override the test with a path.
990 ;;
991 *)
992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
993 for ac_dir in $PATH; do
994 test -z "$ac_dir" && ac_dir=.
995 if test -f $ac_dir/$ac_word; then
996 ac_cv_path_MV="$ac_dir/$ac_word"
997 break
998 fi
999 done
1000 IFS="$ac_save_ifs"
1001 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1002 ;;
1003esac
1004fi
1005MV="$ac_cv_path_MV"
1006if test -n "$MV"; then
1007 echo "$ac_t""$MV" 1>&6
1008else
1009 echo "$ac_t""no" 1>&6
1010fi
1011
1012# Extract the first word of "cp", so it can be a program name with args.
1013set dummy cp; ac_word=$2
1014echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001015echo "configure:1016: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001016if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1018else
1019 case "$CP" in
1020 /*)
1021 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1022 ;;
1023 *)
1024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1025 for ac_dir in $PATH; do
1026 test -z "$ac_dir" && ac_dir=.
1027 if test -f $ac_dir/$ac_word; then
1028 ac_cv_path_CP="$ac_dir/$ac_word"
1029 break
1030 fi
1031 done
1032 IFS="$ac_save_ifs"
1033 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1034 ;;
1035esac
1036fi
1037CP="$ac_cv_path_CP"
1038if test -n "$CP"; then
1039 echo "$ac_t""$CP" 1>&6
1040else
1041 echo "$ac_t""no" 1>&6
1042fi
1043
1044# Extract the first word of "rm", so it can be a program name with args.
1045set dummy rm; ac_word=$2
1046echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001047echo "configure:1048: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001048if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1050else
1051 case "$RM" in
1052 /*)
1053 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1054 ;;
1055 *)
1056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1057 for ac_dir in $PATH; do
1058 test -z "$ac_dir" && ac_dir=.
1059 if test -f $ac_dir/$ac_word; then
1060 ac_cv_path_RM="$ac_dir/$ac_word"
1061 break
1062 fi
1063 done
1064 IFS="$ac_save_ifs"
1065 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1066 ;;
1067esac
1068fi
1069RM="$ac_cv_path_RM"
1070if test -n "$RM"; then
1071 echo "$ac_t""$RM" 1>&6
1072else
1073 echo "$ac_t""no" 1>&6
1074fi
1075
1076# Extract the first word of "chmod", so it can be a program name with args.
1077set dummy chmod; ac_word=$2
1078echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001079echo "configure:1080: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001080if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1082else
1083 case "$CHMOD" in
1084 /*)
1085 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1086 ;;
1087 *)
1088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1089 for ac_dir in $PATH; do
1090 test -z "$ac_dir" && ac_dir=.
1091 if test -f $ac_dir/$ac_word; then
1092 ac_cv_path_CHMOD="$ac_dir/$ac_word"
1093 break
1094 fi
1095 done
1096 IFS="$ac_save_ifs"
1097 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
1098 ;;
1099esac
1100fi
1101CHMOD="$ac_cv_path_CHMOD"
1102if test -n "$CHMOD"; then
1103 echo "$ac_t""$CHMOD" 1>&6
1104else
1105 echo "$ac_t""no" 1>&6
1106fi
1107
1108# Extract the first word of "awk", so it can be a program name with args.
1109set dummy awk; ac_word=$2
1110echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001111echo "configure:1112: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1114else
1115 case "$AWK" in
1116 /*)
1117 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1118 ;;
1119 *)
1120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1121 for ac_dir in $PATH; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_path_AWK="$ac_dir/$ac_word"
1125 break
1126 fi
1127 done
1128 IFS="$ac_save_ifs"
1129 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1130 ;;
1131esac
1132fi
1133AWK="$ac_cv_path_AWK"
1134if test -n "$AWK"; then
1135 echo "$ac_t""$AWK" 1>&6
1136else
1137 echo "$ac_t""no" 1>&6
1138fi
1139
1140# Extract the first word of "sed", so it can be a program name with args.
1141set dummy sed; ac_word=$2
1142echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001143echo "configure:1144: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001144if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1146else
1147 case "$SED" in
1148 /*)
1149 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1150 ;;
1151 *)
1152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1153 for ac_dir in $PATH; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_path_SED="$ac_dir/$ac_word"
1157 break
1158 fi
1159 done
1160 IFS="$ac_save_ifs"
1161 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1162 ;;
1163esac
1164fi
1165SED="$ac_cv_path_SED"
1166if test -n "$SED"; then
1167 echo "$ac_t""$SED" 1>&6
1168else
1169 echo "$ac_t""no" 1>&6
1170fi
1171
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001172echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001173echo "configure:1174: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001174
1175build_alias=$build
1176case "$build_alias" in
1177NONE)
1178 case $nonopt in
1179 NONE) build_alias=$host_alias ;;
1180 *) build_alias=$nonopt ;;
1181 esac ;;
1182esac
1183
1184build=`$ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001185build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1186build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1187build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001188echo "$ac_t""$build" 1>&6
1189
1190if test $host != $build; then
1191 ac_tool_prefix=${host_alias}-
1192else
1193 ac_tool_prefix=
1194fi
1195
1196# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1197set dummy ${ac_tool_prefix}ar; ac_word=$2
1198echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001199echo "configure:1200: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001200if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202else
1203 if test -n "$AR"; then
1204 ac_cv_prog_AR="$AR" # Let the user override the test.
1205else
1206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1207 for ac_dir in $PATH; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_AR="${ac_tool_prefix}ar"
1211 break
1212 fi
1213 done
1214 IFS="$ac_save_ifs"
1215fi
1216fi
1217AR="$ac_cv_prog_AR"
1218if test -n "$AR"; then
1219 echo "$ac_t""$AR" 1>&6
1220else
1221 echo "$ac_t""no" 1>&6
1222fi
1223
1224
1225if test -z "$ac_cv_prog_AR"; then
1226if test -n "$ac_tool_prefix"; then
1227 # Extract the first word of "ar", so it can be a program name with args.
1228set dummy ar; ac_word=$2
1229echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001230echo "configure:1231: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001231if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1233else
1234 if test -n "$AR"; then
1235 ac_cv_prog_AR="$AR" # Let the user override the test.
1236else
1237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1238 for ac_dir in $PATH; do
1239 test -z "$ac_dir" && ac_dir=.
1240 if test -f $ac_dir/$ac_word; then
1241 ac_cv_prog_AR="ar"
1242 break
1243 fi
1244 done
1245 IFS="$ac_save_ifs"
1246 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1247fi
1248fi
1249AR="$ac_cv_prog_AR"
1250if test -n "$AR"; then
1251 echo "$ac_t""$AR" 1>&6
1252else
1253 echo "$ac_t""no" 1>&6
1254fi
1255
1256else
1257 AR="ar"
1258fi
1259fi
1260
1261# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1262set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1263echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001264echo "configure:1265: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001265if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1267else
1268 if test -n "$RANLIB"; then
1269 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1270else
1271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1272 for ac_dir in $PATH; do
1273 test -z "$ac_dir" && ac_dir=.
1274 if test -f $ac_dir/$ac_word; then
1275 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1276 break
1277 fi
1278 done
1279 IFS="$ac_save_ifs"
1280fi
1281fi
1282RANLIB="$ac_cv_prog_RANLIB"
1283if test -n "$RANLIB"; then
1284 echo "$ac_t""$RANLIB" 1>&6
1285else
1286 echo "$ac_t""no" 1>&6
1287fi
1288
1289
1290if test -z "$ac_cv_prog_RANLIB"; then
1291if test -n "$ac_tool_prefix"; then
1292 # Extract the first word of "ranlib", so it can be a program name with args.
1293set dummy ranlib; ac_word=$2
1294echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001295echo "configure:1296: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001296if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1298else
1299 if test -n "$RANLIB"; then
1300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1301else
1302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1303 for ac_dir in $PATH; do
1304 test -z "$ac_dir" && ac_dir=.
1305 if test -f $ac_dir/$ac_word; then
1306 ac_cv_prog_RANLIB="ranlib"
1307 break
1308 fi
1309 done
1310 IFS="$ac_save_ifs"
1311 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1312fi
1313fi
1314RANLIB="$ac_cv_prog_RANLIB"
1315if test -n "$RANLIB"; then
1316 echo "$ac_t""$RANLIB" 1>&6
1317else
1318 echo "$ac_t""no" 1>&6
1319fi
1320
1321else
1322 RANLIB=":"
1323fi
1324fi
1325
1326# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1327set dummy ${ac_tool_prefix}strip; ac_word=$2
1328echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001329echo "configure:1330: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001330if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332else
1333 if test -n "$STRIP"; then
1334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1335else
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1337 for ac_dir in $PATH; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1341 break
1342 fi
1343 done
1344 IFS="$ac_save_ifs"
1345fi
1346fi
1347STRIP="$ac_cv_prog_STRIP"
1348if test -n "$STRIP"; then
1349 echo "$ac_t""$STRIP" 1>&6
1350else
1351 echo "$ac_t""no" 1>&6
1352fi
1353
1354
1355if test -z "$ac_cv_prog_STRIP"; then
1356if test -n "$ac_tool_prefix"; then
1357 # Extract the first word of "strip", so it can be a program name with args.
1358set dummy strip; ac_word=$2
1359echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001360echo "configure:1361: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001361if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363else
1364 if test -n "$STRIP"; then
1365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1366else
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1368 for ac_dir in $PATH; do
1369 test -z "$ac_dir" && ac_dir=.
1370 if test -f $ac_dir/$ac_word; then
1371 ac_cv_prog_STRIP="strip"
1372 break
1373 fi
1374 done
1375 IFS="$ac_save_ifs"
1376 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1377fi
1378fi
1379STRIP="$ac_cv_prog_STRIP"
1380if test -n "$STRIP"; then
1381 echo "$ac_t""$STRIP" 1>&6
1382else
1383 echo "$ac_t""no" 1>&6
1384fi
1385
1386else
1387 STRIP=":"
1388fi
1389fi
1390
1391# Extract the first word of "gcc", so it can be a program name with args.
1392set dummy gcc; ac_word=$2
1393echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001394echo "configure:1395: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001395if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1397else
1398 if test -n "$CC"; then
1399 ac_cv_prog_CC="$CC" # Let the user override the test.
1400else
1401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1402 for ac_dir in $PATH; do
1403 test -z "$ac_dir" && ac_dir=.
1404 if test -f $ac_dir/$ac_word; then
1405 ac_cv_prog_CC="gcc"
1406 break
1407 fi
1408 done
1409 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001410fi
1411fi
1412CC="$ac_cv_prog_CC"
1413if test -n "$CC"; then
1414 echo "$ac_t""$CC" 1>&6
1415else
1416 echo "$ac_t""no" 1>&6
1417fi
1418
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001419if test -z "$CC"; then
1420 # Extract the first word of "cc", so it can be a program name with args.
1421set dummy cc; ac_word=$2
1422echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001423echo "configure:1424: checking for $ac_word" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001424if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1426else
1427 if test -n "$CC"; then
1428 ac_cv_prog_CC="$CC" # Let the user override the test.
1429else
1430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1431 ac_prog_rejected=no
1432 for ac_dir in $PATH; do
1433 test -z "$ac_dir" && ac_dir=.
1434 if test -f $ac_dir/$ac_word; then
1435 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1436 ac_prog_rejected=yes
1437 continue
1438 fi
1439 ac_cv_prog_CC="cc"
1440 break
1441 fi
1442 done
1443 IFS="$ac_save_ifs"
1444if test $ac_prog_rejected = yes; then
1445 # We found a bogon in the path, so make sure we never use it.
1446 set dummy $ac_cv_prog_CC
1447 shift
1448 if test $# -gt 0; then
1449 # We chose a different compiler from the bogus one.
1450 # However, it has the same basename, so the bogon will be chosen
1451 # first if we set CC to just the basename; use the full file name.
1452 shift
1453 set dummy "$ac_dir/$ac_word" "$@"
1454 shift
1455 ac_cv_prog_CC="$@"
1456 fi
1457fi
1458fi
1459fi
1460CC="$ac_cv_prog_CC"
1461if test -n "$CC"; then
1462 echo "$ac_t""$CC" 1>&6
1463else
1464 echo "$ac_t""no" 1>&6
1465fi
1466
1467 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1468fi
1469
1470echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001471echo "configure:1472: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001472
1473ac_ext=c
1474# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1475ac_cpp='$CPP $CPPFLAGS'
1476ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1477ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1478cross_compiling=$ac_cv_prog_cc_cross
1479
1480cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001481#line 1482 "configure"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001482#include "confdefs.h"
1483main(){return(0);}
1484EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001485if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001486 ac_cv_prog_cc_works=yes
1487 # If we can't run a trivial program, we are probably using a cross compiler.
1488 if (./conftest; exit) 2>/dev/null; then
1489 ac_cv_prog_cc_cross=no
1490 else
1491 ac_cv_prog_cc_cross=yes
1492 fi
1493else
1494 echo "configure: failed program was:" >&5
1495 cat conftest.$ac_ext >&5
1496 ac_cv_prog_cc_works=no
1497fi
1498rm -fr conftest*
1499
1500echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1501if test $ac_cv_prog_cc_works = no; then
1502 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1503fi
1504echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001505echo "configure:1506: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001506echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1507cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001508
1509echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001510echo "configure:1511: checking whether we are using GNU C" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001511if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1513else
1514 cat > conftest.c <<EOF
1515#ifdef __GNUC__
1516 yes;
1517#endif
1518EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001519if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001520 ac_cv_prog_gcc=yes
1521else
1522 ac_cv_prog_gcc=no
1523fi
1524fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001525
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001526echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001527
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001528if test $ac_cv_prog_gcc = yes; then
1529 GCC=yes
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001530 ac_test_CFLAGS="${CFLAGS+set}"
1531 ac_save_CFLAGS="$CFLAGS"
1532 CFLAGS=
1533 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001534echo "configure:1535: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001535if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001536 echo $ac_n "(cached) $ac_c" 1>&6
1537else
1538 echo 'void f(){}' > conftest.c
1539if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001540 ac_cv_prog_cc_g=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001541else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001542 ac_cv_prog_cc_g=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001543fi
1544rm -f conftest*
1545
1546fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001547
1548echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1549 if test "$ac_test_CFLAGS" = set; then
1550 CFLAGS="$ac_save_CFLAGS"
1551 elif test $ac_cv_prog_cc_g = yes; then
1552 CFLAGS="-g -O2"
1553 else
1554 CFLAGS="-O2"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001555 fi
1556else
1557 GCC=
1558 test "${CFLAGS+set}" = set || CFLAGS="-g"
1559fi
1560
1561# Find a good install program. We prefer a C program (faster),
1562# so one script is as good as another. But avoid the broken or
1563# incompatible versions:
1564# SysV /etc/install, /usr/sbin/install
1565# SunOS /usr/etc/install
1566# IRIX /sbin/install
1567# AIX /bin/install
1568# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1570# ./install, which can be erroneously created by make from ./install.sh.
1571echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001572echo "configure:1573: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001573if test -z "$INSTALL"; then
1574if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1576else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001577 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001578 for ac_dir in $PATH; do
1579 # Account for people who put trailing slashes in PATH elements.
1580 case "$ac_dir/" in
1581 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1582 *)
1583 # OSF1 and SCO ODT 3.0 have their own names for install.
1584 for ac_prog in ginstall installbsd scoinst install; do
1585 if test -f $ac_dir/$ac_prog; then
1586 if test $ac_prog = install &&
1587 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1588 # AIX install. It has an incompatible calling convention.
1589 # OSF/1 installbsd also uses dspmsg, but is usable.
1590 :
1591 else
1592 ac_cv_path_install="$ac_dir/$ac_prog -c"
1593 break 2
1594 fi
1595 fi
1596 done
1597 ;;
1598 esac
1599 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001600 IFS="$ac_save_IFS"
1601
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001602fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001603 if test "${ac_cv_path_install+set}" = set; then
1604 INSTALL="$ac_cv_path_install"
1605 else
1606 # As a last resort, use the slow shell script. We don't cache a
1607 # path for INSTALL within a source directory, because that will
1608 # break other packages using the cache if that directory is
1609 # removed, or if the path is relative.
1610 INSTALL="$ac_install_sh"
1611 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001612fi
1613echo "$ac_t""$INSTALL" 1>&6
1614
1615# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616# It thinks the first close brace ends the variable substitution.
1617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1618
1619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1620
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001621
1622echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001623echo "configure:1624: checking how to run the C preprocessor" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001624# On Suns, sometimes $CPP names a directory.
1625if test -n "$CPP" && test -d "$CPP"; then
1626 CPP=
1627fi
1628if test -z "$CPP"; then
1629if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1631else
1632 # This must be in double quotes, not single quotes, because CPP may get
1633 # substituted into the Makefile and "${CC-cc}" will confuse make.
1634 CPP="${CC-cc} -E"
1635 # On the NeXT, cc -E runs the code through the compiler's parser,
1636 # not just through cpp.
1637 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001638#line 1639 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001639#include "confdefs.h"
1640#include <assert.h>
1641Syntax Error
1642EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001643ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001644{ (eval echo configure:1645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001645ac_err=`grep -v '^ *+' conftest.out`
1646if test -z "$ac_err"; then
1647 :
1648else
1649 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001652 rm -rf conftest*
1653 CPP="${CC-cc} -E -traditional-cpp"
1654 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001655#line 1656 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001656#include "confdefs.h"
1657#include <assert.h>
1658Syntax Error
1659EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001660ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001661{ (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001662ac_err=`grep -v '^ *+' conftest.out`
1663if test -z "$ac_err"; then
1664 :
1665else
1666 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001667 echo "configure: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001669 rm -rf conftest*
1670 CPP=/lib/cpp
1671fi
1672rm -f conftest*
1673fi
1674rm -f conftest*
1675 ac_cv_prog_CPP="$CPP"
1676fi
1677 CPP="$ac_cv_prog_CPP"
1678else
1679 ac_cv_prog_CPP="$CPP"
1680fi
1681echo "$ac_t""$CPP" 1>&6
1682
Theodore Ts'o556ad131998-12-19 08:10:58 +00001683for ac_hdr in stdlib.h unistd.h stdarg.h errno.h mntent.h paths.h dirent.h getopt.h setjmp.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 +00001684do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001685ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001686echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001687echo "configure:1688: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001688if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690else
1691 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001692#line 1693 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001693#include "confdefs.h"
1694#include <$ac_hdr>
1695EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001696ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001697{ (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001698ac_err=`grep -v '^ *+' conftest.out`
1699if test -z "$ac_err"; then
1700 rm -rf conftest*
1701 eval "ac_cv_header_$ac_safe=yes"
1702else
1703 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001706 rm -rf conftest*
1707 eval "ac_cv_header_$ac_safe=no"
1708fi
1709rm -f conftest*
1710fi
1711if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1712 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001714 cat >> confdefs.h <<EOF
1715#define $ac_tr_hdr 1
1716EOF
1717
1718else
1719 echo "$ac_t""no" 1>&6
1720fi
1721done
1722
1723echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001724echo "configure:1725: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001725if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1727else
1728 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001729#line 1730 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001730#include "confdefs.h"
1731/* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char vprintf(); below. */
1733#include <assert.h>
1734/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001735/* We use char because int might match the return type of a gcc2
1736 builtin and then its argument prototype would still apply. */
1737char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001738
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001739int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001740
1741/* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744#if defined (__stub_vprintf) || defined (__stub___vprintf)
1745choke me
1746#else
1747vprintf();
1748#endif
1749
1750; return 0; }
1751EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001752if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001753 rm -rf conftest*
1754 eval "ac_cv_func_vprintf=yes"
1755else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001758 rm -rf conftest*
1759 eval "ac_cv_func_vprintf=no"
1760fi
1761rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001762fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001763
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001764if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1765 echo "$ac_t""yes" 1>&6
1766 cat >> confdefs.h <<\EOF
1767#define HAVE_VPRINTF 1
1768EOF
1769
1770else
1771 echo "$ac_t""no" 1>&6
1772fi
1773
1774if test "$ac_cv_func_vprintf" != yes; then
1775echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001776echo "configure:1777: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001777if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1779else
1780 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001781#line 1782 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001782#include "confdefs.h"
1783/* System header to define __stub macros and hopefully few prototypes,
1784 which can conflict with char _doprnt(); below. */
1785#include <assert.h>
1786/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001787/* We use char because int might match the return type of a gcc2
1788 builtin and then its argument prototype would still apply. */
1789char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001790
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001791int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001792
1793/* The GNU C library defines this for functions which it implements
1794 to always fail with ENOSYS. Some functions are actually named
1795 something starting with __ and the normal name is an alias. */
1796#if defined (__stub__doprnt) || defined (__stub____doprnt)
1797choke me
1798#else
1799_doprnt();
1800#endif
1801
1802; return 0; }
1803EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001804if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001805 rm -rf conftest*
1806 eval "ac_cv_func__doprnt=yes"
1807else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001810 rm -rf conftest*
1811 eval "ac_cv_func__doprnt=no"
1812fi
1813rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001814fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001815
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001816if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1817 echo "$ac_t""yes" 1>&6
1818 cat >> confdefs.h <<\EOF
1819#define HAVE_DOPRNT 1
1820EOF
1821
1822else
1823 echo "$ac_t""no" 1>&6
1824fi
1825
1826fi
1827
1828echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001829echo "configure:1830: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001830if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1832else
1833 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001834#line 1835 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001835#include "confdefs.h"
1836#include <sys/types.h>
1837#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001838int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001839struct dirent de; de.d_namlen = 0;
1840; return 0; }
1841EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001842if { (eval echo configure:1843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001843 rm -rf conftest*
1844 e2fsprogs_cv_struct_d_namlen=yes
1845else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001846 echo "configure: failed program was:" >&5
1847 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001848 rm -rf conftest*
1849 e2fsprogs_cv_struct_d_namlen=no
1850fi
1851rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001852fi
1853
1854echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
1855if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
1856 cat >> confdefs.h <<\EOF
1857#define HAVE_DIRENT_NAMLEN 1
1858EOF
1859
1860fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00001861echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001862echo "configure:1863: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00001863if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865else
1866 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001867#line 1868 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00001868#include "confdefs.h"
1869#include <unistd.h>
1870int main() {
1871extern int llseek(int);
1872; return 0; }
1873EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001874if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00001875 rm -rf conftest*
1876 e2fsprogs_cv_have_llseek_prototype=no
1877else
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 rm -rf conftest*
1881 e2fsprogs_cv_have_llseek_prototype=yes
1882fi
1883rm -f conftest*
1884fi
1885
1886echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
1887if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
1888 cat >> confdefs.h <<\EOF
1889#define HAVE_LLSEEK_PROTOTYPE 1
1890EOF
1891
1892fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001893if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
1894 # if cross-compiling, with no cached values, just assume something common.
1895 ac_cv_sizeof_short=2
1896 ac_cv_sizeof_int=4
1897 ac_cv_sizeof_long=4
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001898 ac_cv_sizeof_long_long=0
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001899 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2
1900fi
1901echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001902echo "configure:1903: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001903if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1905else
1906 if test "$cross_compiling" = yes; then
1907 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1908else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001909 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001910#line 1911 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001911#include "confdefs.h"
1912#include <stdio.h>
1913main()
1914{
1915 FILE *f=fopen("conftestval", "w");
1916 if (!f) exit(1);
1917 fprintf(f, "%d\n", sizeof(short));
1918 exit(0);
1919}
1920EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001921if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001922then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001923 ac_cv_sizeof_short=`cat conftestval`
1924else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1927 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001928 ac_cv_sizeof_short=0
1929fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001930rm -fr conftest*
1931fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001932
1933fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001934echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1935cat >> confdefs.h <<EOF
1936#define SIZEOF_SHORT $ac_cv_sizeof_short
1937EOF
1938
1939
1940echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001941echo "configure:1942: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001942if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944else
1945 if test "$cross_compiling" = yes; then
1946 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1947else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001948 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001949#line 1950 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001950#include "confdefs.h"
1951#include <stdio.h>
1952main()
1953{
1954 FILE *f=fopen("conftestval", "w");
1955 if (!f) exit(1);
1956 fprintf(f, "%d\n", sizeof(int));
1957 exit(0);
1958}
1959EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001960if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001961then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001962 ac_cv_sizeof_int=`cat conftestval`
1963else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1966 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001967 ac_cv_sizeof_int=0
1968fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001969rm -fr conftest*
1970fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001971
1972fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001973echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1974cat >> confdefs.h <<EOF
1975#define SIZEOF_INT $ac_cv_sizeof_int
1976EOF
1977
1978
1979echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001980echo "configure:1981: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001981if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1983else
1984 if test "$cross_compiling" = yes; then
1985 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1986else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001987 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001988#line 1989 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001989#include "confdefs.h"
1990#include <stdio.h>
1991main()
1992{
1993 FILE *f=fopen("conftestval", "w");
1994 if (!f) exit(1);
1995 fprintf(f, "%d\n", sizeof(long));
1996 exit(0);
1997}
1998EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001999if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002000then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002001 ac_cv_sizeof_long=`cat conftestval`
2002else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002006 ac_cv_sizeof_long=0
2007fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002008rm -fr conftest*
2009fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002010
2011fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002012echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2013cat >> confdefs.h <<EOF
2014#define SIZEOF_LONG $ac_cv_sizeof_long
2015EOF
2016
2017
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002018echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002019echo "configure:2020: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002020if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2022else
2023 if test "$cross_compiling" = yes; then
2024 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2025else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002026 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002027#line 2028 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002028#include "confdefs.h"
2029#include <stdio.h>
2030main()
2031{
2032 FILE *f=fopen("conftestval", "w");
2033 if (!f) exit(1);
2034 fprintf(f, "%d\n", sizeof(long long));
2035 exit(0);
2036}
2037EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002038if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002039then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002040 ac_cv_sizeof_long_long=`cat conftestval`
2041else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2044 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002045 ac_cv_sizeof_long_long=0
2046fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002047rm -fr conftest*
2048fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002049
2050fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002051echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2052cat >> confdefs.h <<EOF
2053#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2054EOF
2055
2056
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002057SIZEOF_SHORT=$ac_cv_sizeof_short
2058SIZEOF_INT=$ac_cv_sizeof_int
2059SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002060SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2061
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002062
2063
2064
2065echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002066echo "configure:2067: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002067if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2069else
2070 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002071#line 2072 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002072#include "confdefs.h"
2073#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002074int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002075struct stat stat; stat.st_flags = 0;
2076; return 0; }
2077EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002078if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002079 rm -rf conftest*
2080 e2fsprogs_cv_struct_st_flags=yes
2081else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002082 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002084 rm -rf conftest*
2085 e2fsprogs_cv_struct_st_flags=no
2086fi
2087rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002088fi
2089
2090echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2091if test "$e2fsprogs_cv_struct_st_flags" = yes; then
2092 cat >> confdefs.h <<\EOF
2093#define HAVE_STAT_FLAGS 1
2094EOF
2095
2096fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002097for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002098do
2099echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002100echo "configure:2101: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002101if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2103else
2104 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002105#line 2106 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002106#include "confdefs.h"
2107/* System header to define __stub macros and hopefully few prototypes,
2108 which can conflict with char $ac_func(); below. */
2109#include <assert.h>
2110/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002111/* We use char because int might match the return type of a gcc2
2112 builtin and then its argument prototype would still apply. */
2113char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002114
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002115int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002116
2117/* The GNU C library defines this for functions which it implements
2118 to always fail with ENOSYS. Some functions are actually named
2119 something starting with __ and the normal name is an alias. */
2120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2121choke me
2122#else
2123$ac_func();
2124#endif
2125
2126; return 0; }
2127EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002128if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002129 rm -rf conftest*
2130 eval "ac_cv_func_$ac_func=yes"
2131else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002134 rm -rf conftest*
2135 eval "ac_cv_func_$ac_func=no"
2136fi
2137rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002138fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002139
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002140if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2141 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002143 cat >> confdefs.h <<EOF
2144#define $ac_tr_func 1
2145EOF
2146
2147else
2148 echo "$ac_t""no" 1>&6
2149fi
2150done
2151
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002152echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002153echo "configure:2154: checking ino_t defined by sys/types.h" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002154if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2156else
2157 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002158#line 2159 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002159#include "confdefs.h"
2160#include <sys/types.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002161int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002162ino_t ino; ino = 0;
2163; return 0; }
2164EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002165if { (eval echo configure:2166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002166 rm -rf conftest*
2167 e2fsprogs_cv_ino_t=yes
2168else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002171 rm -rf conftest*
2172 e2fsprogs_cv_ino_t=no
2173fi
2174rm -f conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002175fi
2176
2177echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2178if test "$e2fsprogs_cv_ino_t" = yes; then
2179 cat >> confdefs.h <<\EOF
2180#define HAVE_INO_T 1
2181EOF
2182
2183fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002184ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002185echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002186echo "configure:2187: checking for linux/fs.h" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002187if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2189else
2190 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002191#line 2192 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002192#include "confdefs.h"
2193#include <linux/fs.h>
2194EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002195ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002196{ (eval echo configure:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002197ac_err=`grep -v '^ *+' conftest.out`
2198if test -z "$ac_err"; then
2199 rm -rf conftest*
2200 eval "ac_cv_header_$ac_safe=yes"
2201else
2202 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002205 rm -rf conftest*
2206 eval "ac_cv_header_$ac_safe=no"
2207fi
2208rm -f conftest*
2209fi
2210if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2212 linux_headers=yes
2213else
2214 echo "$ac_t""no" 1>&6
2215linux_headers=no
2216fi
2217
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002218if test "$linux_headers" = yes; then
2219 cat >> confdefs.h <<\EOF
2220#define HAVE_LINUX_FS_H 1
2221EOF
2222
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002223else
2224 LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include'
2225 # Use this include directory with test compiles in the configure script too.
2226 CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include"
2227fi
2228
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002229SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002230echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002231echo "configure:2232: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002232ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2233if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002234 echo $ac_n "(cached) $ac_c" 1>&6
2235else
2236 ac_save_LIBS="$LIBS"
2237LIBS="-lsocket $LIBS"
2238cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002239#line 2240 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002240#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002241/* Override any gcc2 internal prototype to avoid an error. */
2242/* We use char because int might match the return type of a gcc2
2243 builtin and then its argument prototype would still apply. */
2244char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002245
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002246int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002247socket()
2248; return 0; }
2249EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002250if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002251 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002252 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002253else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002254 echo "configure: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002256 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002257 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002258fi
2259rm -f conftest*
2260LIBS="$ac_save_LIBS"
2261
2262fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002263if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002264 echo "$ac_t""yes" 1>&6
2265 SOCKET_LIB=-lsocket
2266else
2267 echo "$ac_t""no" 1>&6
2268fi
2269
2270
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002271echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002272echo "configure:2273: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002273if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2275else
2276 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002277#line 2278 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002278#include "confdefs.h"
2279#include <unistd.h>
2280EOF
2281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2282 egrep "optreset" >/dev/null 2>&1; then
2283 rm -rf conftest*
2284 ac_cv_have_optreset=yes
2285else
2286 rm -rf conftest*
2287 ac_cv_have_optreset=no
2288fi
2289rm -f conftest*
2290
2291fi
2292echo "$ac_t""$ac_cv_have_optreset" 1>&6
2293if test $ac_cv_have_optreset = yes; then
2294 cat >> confdefs.h <<\EOF
2295#define HAVE_OPTRESET 1
2296EOF
2297
2298fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002299echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002300echo "configure:2301: checking whether the ext2 ioctls compile" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002301if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2303else
2304 cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002305#line 2306 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002306#include "confdefs.h"
2307#include <linux/ext2_fs.h>
2308#include <sys/ioctl.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002309int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002310ioctl (0, EXT2_IOC_SETVERSION, 0);
2311; return 0; }
2312EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002313if { (eval echo configure:2314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002314 rm -rf conftest*
2315 e2fsprogs_cv_ioctl_ext2=yes
2316else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002319 rm -rf conftest*
2320 e2fsprogs_cv_ioctl_ext2=no
2321fi
2322rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002323fi
2324
2325echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2326if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2327 cat >> confdefs.h <<\EOF
2328#define HAVE_EXT2_IOCTLS 1
2329EOF
2330
2331fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002332case "$host_os" in
2333linux*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002334 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
2335 root_prefix="";
2336 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002337 fi
2338 ;;
2339esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002340case "$host_os" in
2341linux* | gnu*)
2342 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002343 prefix="/usr";
2344 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002345 fi
2346;;
2347esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002348if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00002349 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002350 root_prefix="$ac_default_prefix"
2351 else
2352 root_prefix="$prefix"
2353 fi
2354fi
2355
Theodore Ts'oae851481997-04-29 18:13:24 +00002356echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002357echo "configure:2358: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00002358if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2360else
2361 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2362cat > conftest.$ac_ext <<EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002363#line 2364 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00002364#include "confdefs.h"
2365#include <stdio.h>
2366int main() {
2367fflush(stdout);
2368; return 0; }
2369EOF
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002370if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Theodore Ts'oae851481997-04-29 18:13:24 +00002371 rm -rf conftest*
2372 ac_cv_e2fsprogs_use_static=yes
2373else
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2376 rm -rf conftest*
2377 ac_cv_e2fsprogs_use_static=no
2378fi
2379rm -f conftest*
2380LDFLAGS=$SAVE_LDFLAGS
2381fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002382
Theodore Ts'odefde781999-01-04 07:39:19 +00002383case "$host_os" in
2384solaris2.*)
2385 ac_cv_e2fsprogs_use_static=no
2386;;
2387esac
Theodore Ts'oae851481997-04-29 18:13:24 +00002388echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00002389LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00002390if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002391 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00002392fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002393
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002394SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2395ET_DIR=`cd ${srcdir}/lib/et; pwd`
2396
2397
2398if test "$cross_compiling" = yes ; then
2399 DO_TEST_SUITE=
2400else
2401 DO_TEST_SUITE=check
2402fi
2403
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002404DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2405
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002406test -d lib || mkdir lib
2407test -d include || mkdir include
2408test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00002409test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00002410rmakefile=
2411if test -d ${srcdir}/resize ; then
2412 rmakefile=resize/Makefile
2413fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002414trap '' 1 2 15
2415cat > confcache <<\EOF
2416# This file is a shell script that caches the results of configure
2417# tests run on this system so they can be shared between configure
2418# scripts and configure runs. It is not useful on other systems.
2419# If it contains results you don't want to keep, you may remove or edit it.
2420#
2421# By default, configure uses ./config.cache as the cache file,
2422# creating it if it does not exist already. You can give configure
2423# the --cache-file=FILE option to use a different cache file; that is
2424# what configure does when it calls configure scripts in
2425# subdirectories, so they share the cache.
2426# Giving --cache-file=/dev/null disables caching, for debugging configure.
2427# config.status only pays attention to the cache file if you give it the
2428# --recheck option to rerun configure.
2429#
2430EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002431# The following way of writing the cache mishandles newlines in values,
2432# but we know of no workaround that is simple, portable, and efficient.
2433# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002434# Ultrix sh set writes to stderr and can't be redirected directly,
2435# and sets the high bit in the cache file unless we assign to the vars.
2436(set) 2>&1 |
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002437 case `(ac_space=' '; set) 2>&1` in
2438 *ac_space=\ *)
2439 # `set' does not quote correctly, so add quotes (double-quote substitution
2440 # turns \\\\ into \\, and sed turns \\ into \).
2441 sed -n \
2442 -e "s/'/'\\\\''/g" \
2443 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2444 ;;
2445 *)
2446 # `set' quotes correctly as required by POSIX, so do not add quotes.
2447 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2448 ;;
2449 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002450if cmp -s $cache_file confcache; then
2451 :
2452else
2453 if test -w $cache_file; then
2454 echo "updating cache $cache_file"
2455 cat confcache > $cache_file
2456 else
2457 echo "not updating unwritable cache $cache_file"
2458 fi
2459fi
2460rm -f confcache
2461
2462trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2463
2464test "x$prefix" = xNONE && prefix=$ac_default_prefix
2465# Let make expand exec_prefix.
2466test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2467
2468# Any assignment to VPATH causes Sun make to only execute
2469# the first set of double-colon rules, so remove it if not needed.
2470# If there is a colon in the path, we need to keep it.
2471if test "x$srcdir" = x.; then
2472 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2473fi
2474
2475trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2476
2477# Transform confdefs.h into DEFS.
2478# Protect against shell expansion while executing Makefile rules.
2479# Protect against Makefile macro expansion.
2480cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002481s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002482s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2483s%\[%\\&%g
2484s%\]%\\&%g
2485s%\$%$$%g
2486EOF
2487DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2488rm -f conftest.defs
2489
2490
2491# Without the "./", some shells look in PATH for config.status.
2492: ${CONFIG_STATUS=./config.status}
2493
2494echo creating $CONFIG_STATUS
2495rm -f $CONFIG_STATUS
2496cat > $CONFIG_STATUS <<EOF
2497#! /bin/sh
2498# Generated automatically by configure.
2499# Run this file to recreate the current configuration.
2500# This directory was configured as follows,
2501# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2502#
2503# $0 $ac_configure_args
2504#
2505# Compiler output produced by configure, useful for debugging
2506# configure, is in ./config.log if it exists.
2507
2508ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2509for ac_option
2510do
2511 case "\$ac_option" in
2512 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2513 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2514 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2515 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002516 echo "$CONFIG_STATUS generated by autoconf version 2.12"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002517 exit 0 ;;
2518 -help | --help | --hel | --he | --h)
2519 echo "\$ac_cs_usage"; exit 0 ;;
2520 *) echo "\$ac_cs_usage"; exit 1 ;;
2521 esac
2522done
2523
2524ac_given_srcdir=$srcdir
2525ac_given_INSTALL="$INSTALL"
2526
Theodore Ts'o44339bd1997-10-15 02:47:20 +00002527trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002528 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2529 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'obc210071997-06-17 05:41:36 +00002530 tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002531EOF
2532cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002533
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002534# Protect against being on the right side of a sed subst in config.status.
2535sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2536 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002537$ac_vpsub
2538$extrasub
2539s%@CFLAGS@%$CFLAGS%g
2540s%@CPPFLAGS@%$CPPFLAGS%g
2541s%@CXXFLAGS@%$CXXFLAGS%g
2542s%@DEFS@%$DEFS%g
2543s%@LDFLAGS@%$LDFLAGS%g
2544s%@LIBS@%$LIBS%g
2545s%@exec_prefix@%$exec_prefix%g
2546s%@prefix@%$prefix%g
2547s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002548s%@bindir@%$bindir%g
2549s%@sbindir@%$sbindir%g
2550s%@libexecdir@%$libexecdir%g
2551s%@datadir@%$datadir%g
2552s%@sysconfdir@%$sysconfdir%g
2553s%@sharedstatedir@%$sharedstatedir%g
2554s%@localstatedir@%$localstatedir%g
2555s%@libdir@%$libdir%g
2556s%@includedir@%$includedir%g
2557s%@oldincludedir@%$oldincludedir%g
2558s%@infodir@%$infodir%g
2559s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002560/@MCONFIG@/r $MCONFIG
2561s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002562s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2563s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2564s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002565s%@host@%$host%g
2566s%@host_alias@%$host_alias%g
2567s%@host_cpu@%$host_cpu%g
2568s%@host_vendor@%$host_vendor%g
2569s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002570s%@CC@%$CC%g
2571s%@LD@%$LD%g
2572s%@CCOPTS@%$CCOPTS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002573s%@DLL_CMT@%$DLL_CMT%g
2574/@MAKEFILE_DLL@/r $MAKEFILE_DLL
2575s%@MAKEFILE_DLL@%%g
2576s%@ELF_CMT@%$ELF_CMT%g
2577/@MAKEFILE_ELF@/r $MAKEFILE_ELF
2578s%@MAKEFILE_ELF@%%g
2579s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2580/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2581s%@MAKEFILE_BSDLIB@%%g
2582s%@PROFILE_CMT@%$PROFILE_CMT%g
2583/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2584s%@MAKEFILE_PROFILE@%%g
2585s%@CHECKER_CMT@%$CHECKER_CMT%g
2586/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2587s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002588s%@LIB_EXT@%$LIB_EXT%g
2589s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2590s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002591s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002592s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002593s%@FSCK_PROG@%$FSCK_PROG%g
2594s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002595/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2596s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00002597s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002598s%@SET_MAKE@%$SET_MAKE%g
2599s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002600s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002601s%@MV@%$MV%g
2602s%@CP@%$CP%g
2603s%@RM@%$RM%g
2604s%@CHMOD@%$CHMOD%g
2605s%@AWK@%$AWK%g
2606s%@SED@%$SED%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002607s%@build@%$build%g
2608s%@build_alias@%$build_alias%g
2609s%@build_cpu@%$build_cpu%g
2610s%@build_vendor@%$build_vendor%g
2611s%@build_os@%$build_os%g
2612s%@AR@%$AR%g
2613s%@RANLIB@%$RANLIB%g
2614s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002615s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2616s%@INSTALL_DATA@%$INSTALL_DATA%g
2617s%@CPP@%$CPP%g
2618s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2619s%@SIZEOF_INT@%$SIZEOF_INT%g
2620s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002621s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002622s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002623s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002624s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002625s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002626s%@SS_DIR@%$SS_DIR%g
2627s%@ET_DIR@%$ET_DIR%g
2628s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002629/@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2630s%@DO_SUBSTITUTE_SCRIPT@%%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002631
2632CEOF
2633EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002634
2635cat >> $CONFIG_STATUS <<\EOF
2636
2637# Split the substitutions into bite-sized pieces for seds with
2638# small command number limits, like on Digital OSF/1 and HP-UX.
2639ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2640ac_file=1 # Number of current file.
2641ac_beg=1 # First line for current file.
2642ac_end=$ac_max_sed_cmds # Line after last line for current file.
2643ac_more_lines=:
2644ac_sed_cmds=""
2645while $ac_more_lines; do
2646 if test $ac_beg -gt 1; then
2647 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2648 else
2649 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2650 fi
2651 if test ! -s conftest.s$ac_file; then
2652 ac_more_lines=false
2653 rm -f conftest.s$ac_file
2654 else
2655 if test -z "$ac_sed_cmds"; then
2656 ac_sed_cmds="sed -f conftest.s$ac_file"
2657 else
2658 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2659 fi
2660 ac_file=`expr $ac_file + 1`
2661 ac_beg=$ac_end
2662 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2663 fi
2664done
2665if test -z "$ac_sed_cmds"; then
2666 ac_sed_cmds=cat
2667fi
2668EOF
2669
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002670cat >> $CONFIG_STATUS <<EOF
2671
Theodore Ts'o44339bd1997-10-15 02:47:20 +00002672CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002673 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2674 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'obc210071997-06-17 05:41:36 +00002675 tests/progs/Makefile $rmakefile doc/Makefile"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002676EOF
2677cat >> $CONFIG_STATUS <<\EOF
2678for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002680 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002681 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002682 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2683 *) ac_file_in="${ac_file}.in" ;;
2684 esac
2685
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002686 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002687
2688 # Remove last slash and all that follows it. Not all systems have dirname.
2689 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2690 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2691 # The file is in a subdirectory.
2692 test ! -d "$ac_dir" && mkdir "$ac_dir"
2693 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2694 # A "../" for each directory in $ac_dir_suffix.
2695 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2696 else
2697 ac_dir_suffix= ac_dots=
2698 fi
2699
2700 case "$ac_given_srcdir" in
2701 .) srcdir=.
2702 if test -z "$ac_dots"; then top_srcdir=.
2703 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2704 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2705 *) # Relative path.
2706 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2707 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2708 esac
2709
2710 case "$ac_given_INSTALL" in
2711 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2712 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2713 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002714
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002715 echo creating "$ac_file"
2716 rm -f "$ac_file"
2717 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2718 case "$ac_file" in
2719 *Makefile*) ac_comsub="1i\\
2720# $configure_input" ;;
2721 *) ac_comsub= ;;
2722 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002723
2724 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 +00002725 sed -e "$ac_comsub
2726s%@configure_input@%$configure_input%g
2727s%@srcdir@%$srcdir%g
2728s%@top_srcdir@%$top_srcdir%g
2729s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002730" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002731fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002732rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002733
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002734EOF
2735cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002736
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002737EOF
2738cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002739
2740exit 0
2741EOF
2742chmod +x $CONFIG_STATUS
2743rm -fr confdefs* $ac_clean_files
2744test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2745