blob: 03239655bab73bf6ba7e3bb8ce3e92b13dbc4305 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004# Generated automatically using autoconf version 2.13
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000015 --with-cc=COMPILER select compiler to use"
16ac_help="$ac_help
17 --with-linker=LINKER select linker to use"
18ac_help="$ac_help
19 --with-ccopts=CCOPTS select compiler command line options"
20ac_help="$ac_help
21 --with-ldopts=LDOPTS select linker command line options"
22ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000023 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000024ac_help="$ac_help
Theodore Ts'o19178752000-02-11 15:55:07 +000025 --enable-compression enable EXPERIMENTAL compression support"
26ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000027 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000028ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000029 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000031 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032ac_help="$ac_help
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000033 --enable-jfs-debug enable journal debugging"
34ac_help="$ac_help
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000035 --enable-nls Turn on Native Language Support"
36ac_help="$ac_help
37 --with-included-gettext use the GNU gettext library included here"
38ac_help="$ac_help
39 --with-catgets use catgets functions if available"
40ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000041 --enable-profile build profiling libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000042ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000043 --enable-checker build checker libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000044ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000045 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000046ac_help="$ac_help
47 --enable-fsck build fsck wrapper program"
48ac_help="$ac_help
49 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000050
51# Initialize some variables set by options.
52# The variables have the same names as the options, with
53# dashes changed to underlines.
54build=NONE
55cache_file=./config.cache
56exec_prefix=NONE
57host=NONE
58no_create=
59nonopt=NONE
60no_recursion=
61prefix=NONE
62program_prefix=NONE
63program_suffix=NONE
64program_transform_name=s,x,x,
65silent=
66site=
67srcdir=
68target=NONE
69verbose=
70x_includes=NONE
71x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000072bindir='${exec_prefix}/bin'
73sbindir='${exec_prefix}/sbin'
74libexecdir='${exec_prefix}/libexec'
75datadir='${prefix}/share'
76sysconfdir='${prefix}/etc'
77sharedstatedir='${prefix}/com'
78localstatedir='${prefix}/var'
79libdir='${exec_prefix}/lib'
80includedir='${prefix}/include'
81oldincludedir='/usr/include'
82infodir='${prefix}/info'
83mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000084
85# Initialize some other variables.
86subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000087MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000088SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000089# Maximum number of lines to put in a shell here document.
90ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000091
92ac_prev=
93for ac_option
94do
95
96 # If the previous option needs an argument, assign it.
97 if test -n "$ac_prev"; then
98 eval "$ac_prev=\$ac_option"
99 ac_prev=
100 continue
101 fi
102
103 case "$ac_option" in
104 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
105 *) ac_optarg= ;;
106 esac
107
108 # Accept the important Cygnus configure options, so we can diagnose typos.
109
110 case "$ac_option" in
111
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
113 ac_prev=bindir ;;
114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115 bindir="$ac_optarg" ;;
116
117 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000118 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000120 build="$ac_optarg" ;;
121
122 -cache-file | --cache-file | --cache-fil | --cache-fi \
123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
124 ac_prev=cache_file ;;
125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
127 cache_file="$ac_optarg" ;;
128
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000129 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
130 ac_prev=datadir ;;
131 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
132 | --da=*)
133 datadir="$ac_optarg" ;;
134
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000135 -disable-* | --disable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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 eval "enable_${ac_feature}=no" ;;
143
144 -enable-* | --enable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 fi
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 case "$ac_option" in
152 *=*) ;;
153 *) ac_optarg=yes ;;
154 esac
155 eval "enable_${ac_feature}='$ac_optarg'" ;;
156
157 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
158 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
159 | --exec | --exe | --ex)
160 ac_prev=exec_prefix ;;
161 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
162 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
163 | --exec=* | --exe=* | --ex=*)
164 exec_prefix="$ac_optarg" ;;
165
166 -gas | --gas | --ga | --g)
167 # Obsolete; use --with-gas.
168 with_gas=yes ;;
169
170 -help | --help | --hel | --he)
171 # Omit some internal or obsolete options to make the list less imposing.
172 # This message is too long to be a string in the A/UX 3.1 sh.
173 cat << EOF
174Usage: configure [options] [host]
175Options: [defaults in brackets after descriptions]
176Configuration:
177 --cache-file=FILE cache test results in FILE
178 --help print this message
179 --no-create do not create output files
180 --quiet, --silent do not print \`checking...' messages
181 --version print the version of autoconf that created configure
182Directory and file names:
183 --prefix=PREFIX install architecture-independent files in PREFIX
184 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000186 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000187 --bindir=DIR user executables in DIR [EPREFIX/bin]
188 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
189 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
190 --datadir=DIR read-only architecture-independent data in DIR
191 [PREFIX/share]
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
194 [PREFIX/com]
195 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
196 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
197 --includedir=DIR C header files in DIR [PREFIX/include]
198 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
199 --infodir=DIR info documentation in DIR [PREFIX/info]
200 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000201 --srcdir=DIR find the sources in DIR [configure dir or ..]
202 --program-prefix=PREFIX prepend PREFIX to installed program names
203 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000204 --program-transform-name=PROGRAM
205 run sed PROGRAM on installed program names
206EOF
207 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000208Host type:
209 --build=BUILD configure for building on BUILD [BUILD=HOST]
210 --host=HOST configure for HOST [guessed]
211 --target=TARGET configure for TARGET [TARGET=HOST]
212Features and packages:
213 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
214 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
217 --x-includes=DIR X include files are in DIR
218 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000219EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000220 if test -n "$ac_help"; then
221 echo "--enable and --with options recognized:$ac_help"
222 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000223 exit 0 ;;
224
225 -host | --host | --hos | --ho)
226 ac_prev=host ;;
227 -host=* | --host=* | --hos=* | --ho=*)
228 host="$ac_optarg" ;;
229
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000230 -includedir | --includedir | --includedi | --included | --include \
231 | --includ | --inclu | --incl | --inc)
232 ac_prev=includedir ;;
233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234 | --includ=* | --inclu=* | --incl=* | --inc=*)
235 includedir="$ac_optarg" ;;
236
237 -infodir | --infodir | --infodi | --infod | --info | --inf)
238 ac_prev=infodir ;;
239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240 infodir="$ac_optarg" ;;
241
242 -libdir | --libdir | --libdi | --libd)
243 ac_prev=libdir ;;
244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
245 libdir="$ac_optarg" ;;
246
247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248 | --libexe | --libex | --libe)
249 ac_prev=libexecdir ;;
250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251 | --libexe=* | --libex=* | --libe=*)
252 libexecdir="$ac_optarg" ;;
253
254 -localstatedir | --localstatedir | --localstatedi | --localstated \
255 | --localstate | --localstat | --localsta | --localst \
256 | --locals | --local | --loca | --loc | --lo)
257 ac_prev=localstatedir ;;
258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261 localstatedir="$ac_optarg" ;;
262
263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
264 ac_prev=mandir ;;
265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266 mandir="$ac_optarg" ;;
267
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000268 -nfp | --nfp | --nf)
269 # Obsolete; use --without-fp.
270 with_fp=no ;;
271
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273 | --no-cr | --no-c)
274 no_create=yes ;;
275
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
278 no_recursion=yes ;;
279
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282 | --oldin | --oldi | --old | --ol | --o)
283 ac_prev=oldincludedir ;;
284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287 oldincludedir="$ac_optarg" ;;
288
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
290 ac_prev=prefix ;;
291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292 prefix="$ac_optarg" ;;
293
294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
295 | --program-pre | --program-pr | --program-p)
296 ac_prev=program_prefix ;;
297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299 program_prefix="$ac_optarg" ;;
300
301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
302 | --program-suf | --program-su | --program-s)
303 ac_prev=program_suffix ;;
304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306 program_suffix="$ac_optarg" ;;
307
308 -program-transform-name | --program-transform-name \
309 | --program-transform-nam | --program-transform-na \
310 | --program-transform-n | --program-transform- \
311 | --program-transform | --program-transfor \
312 | --program-transfo | --program-transf \
313 | --program-trans | --program-tran \
314 | --progr-tra | --program-tr | --program-t)
315 ac_prev=program_transform_name ;;
316 -program-transform-name=* | --program-transform-name=* \
317 | --program-transform-nam=* | --program-transform-na=* \
318 | --program-transform-n=* | --program-transform-=* \
319 | --program-transform=* | --program-transfor=* \
320 | --program-transfo=* | --program-transf=* \
321 | --program-trans=* | --program-tran=* \
322 | --progr-tra=* | --program-tr=* | --program-t=*)
323 program_transform_name="$ac_optarg" ;;
324
325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326 | -silent | --silent | --silen | --sile | --sil)
327 silent=yes ;;
328
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
330 ac_prev=sbindir ;;
331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
332 | --sbi=* | --sb=*)
333 sbindir="$ac_optarg" ;;
334
335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337 | --sharedst | --shareds | --shared | --share | --shar \
338 | --sha | --sh)
339 ac_prev=sharedstatedir ;;
340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
343 | --sha=* | --sh=*)
344 sharedstatedir="$ac_optarg" ;;
345
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000346 -site | --site | --sit)
347 ac_prev=site ;;
348 -site=* | --site=* | --sit=*)
349 site="$ac_optarg" ;;
350
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352 ac_prev=srcdir ;;
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
355
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357 | --syscon | --sysco | --sysc | --sys | --sy)
358 ac_prev=sysconfdir ;;
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361 sysconfdir="$ac_optarg" ;;
362
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000363 -target | --target | --targe | --targ | --tar | --ta | --t)
364 ac_prev=target ;;
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
367
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 verbose=yes ;;
370
371 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000372 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000373 exit 0 ;;
374
375 -with-* | --with-*)
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 fi
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 case "$ac_option" in
383 *=*) ;;
384 *) ac_optarg=yes ;;
385 esac
386 eval "with_${ac_package}='$ac_optarg'" ;;
387
388 -without-* | --without-*)
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 fi
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
396
397 --x)
398 # Obsolete; use --with-x.
399 with_x=yes ;;
400
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402 | --x-incl | --x-inc | --x-in | --x-i)
403 ac_prev=x_includes ;;
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406 x_includes="$ac_optarg" ;;
407
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410 ac_prev=x_libraries ;;
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413 x_libraries="$ac_optarg" ;;
414
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
416 ;;
417
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000418 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
421 fi
422 if test "x$nonopt" != xNONE; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 fi
425 nonopt="$ac_option"
426 ;;
427
428 esac
429done
430
431if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433fi
434
435trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
436
437# File descriptor usage:
438# 0 standard input
439# 1 file creation
440# 2 errors and warnings
441# 3 some systems may open it to /dev/tty
442# 4 used on the Kubota Titan
443# 6 checking for... messages and results
444# 5 compiler messages saved in config.log
445if test "$silent" = yes; then
446 exec 6>/dev/null
447else
448 exec 6>&1
449fi
450exec 5>./config.log
451
452echo "\
453This file contains any messages produced by compilers while
454running configure, to aid debugging if configure makes a mistake.
455" 1>&5
456
457# Strip out --no-create and --no-recursion so they do not pile up.
458# Also quote any args containing shell metacharacters.
459ac_configure_args=
460for ac_arg
461do
462 case "$ac_arg" in
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c) ;;
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 esac
471done
472
473# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000474# Only set these to C if already set. These must not be set unconditionally
475# because not all systems understand e.g. LANG=C (notably SCO).
476# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000478if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000479if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000482
483# confdefs.h avoids OS command line length limits that DEFS can exceed.
484rm -rf conftest* confdefs.h
485# AIX cpp loses on an empty file, so make sure it contains at least a newline.
486echo > confdefs.h
487
488# A filename unique to this package, relative to the directory that
489# configure is in, which we can look for to find out if srcdir is correct.
490ac_unique_file=version.h
491
492# Find the source files, if location was not specified.
493if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
496 ac_prog=$0
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
499 srcdir=$ac_confdir
500 if test ! -r $srcdir/$ac_unique_file; then
501 srcdir=..
502 fi
503else
504 ac_srcdir_defaulted=no
505fi
506if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509 else
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 fi
512fi
513srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
514
515# Prefer explicitly selected file to automatically selected ones.
516if test -z "$CONFIG_SITE"; then
517 if test "x$prefix" != xNONE; then
518 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
519 else
520 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 fi
522fi
523for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
526 . "$ac_site_file"
527 fi
528done
529
530if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
532 . $cache_file
533else
534 echo "creating cache $cache_file"
535 > $cache_file
536fi
537
538ac_ext=c
539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000542ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000543cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000544
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000545ac_exeext=
546ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000547if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550 ac_n= ac_c='
551' ac_t=' '
552 else
553 ac_n=-n ac_c= ac_t=
554 fi
555else
556 ac_n= ac_c='\c' ac_t=
557fi
558
559
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000560
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000561MCONFIG=./MCONFIG
562
Theodore Ts'o74becf31997-04-26 14:37:06 +0000563BINARY_TYPE=bin
564E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
565 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
566DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
567 | tr \" " "`
568MONTH=`echo $DATE | awk -F- '{print $2}'`
569YEAR=`echo $DATE | awk -F- '{print $3}'`
570
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000571if expr $YEAR ">" 1900 > /dev/null ; then
572 E2FSPROGS_YEAR=$YEAR
573elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000574 E2FSPROGS_YEAR=19$YEAR
575else
576 E2FSPROGS_YEAR=20$YEAR
577fi
578
579case $MONTH in
580Jan) E2FSPROGS_MONTH="January" ;;
581Feb) E2FSPROGS_MONTH="February" ;;
582Mar) E2FSPROGS_MONTH="March" ;;
583Apr) E2FSPROGS_MONTH="April" ;;
584May) E2FSPROGS_MONTH="May" ;;
585Jun) E2FSPROGS_MONTH="June" ;;
586Jul) E2FSPROGS_MONTH="July" ;;
587Aug) E2FSPROGS_MONTH="August" ;;
588Sep) E2FSPROGS_MONTH="September" ;;
589Oct) E2FSPROGS_MONTH="October" ;;
590Nov) E2FSPROGS_MONTH="November" ;;
591Dec) E2FSPROGS_MONTH="December" ;;
592*) echo "Unknown month $MONTH??" ;;
593esac
594
595unset DATE MONTH YEAR
596echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
597echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
598
599
600
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000601
602ac_aux_dir=
603for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
604 if test -f $ac_dir/install-sh; then
605 ac_aux_dir=$ac_dir
606 ac_install_sh="$ac_aux_dir/install-sh -c"
607 break
608 elif test -f $ac_dir/install.sh; then
609 ac_aux_dir=$ac_dir
610 ac_install_sh="$ac_aux_dir/install.sh -c"
611 break
612 fi
613done
614if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
616fi
617ac_config_guess=$ac_aux_dir/config.guess
618ac_config_sub=$ac_aux_dir/config.sub
619ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620
621
622# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000623if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000624else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
625fi
626
627echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000628echo "configure:629: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000629
630host_alias=$host
631case "$host_alias" in
632NONE)
633 case $nonopt in
634 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000635 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000636 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
637 fi ;;
638 *) host_alias=$nonopt ;;
639 esac ;;
640esac
641
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000642host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000643host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000646echo "$ac_t""$host" 1>&6
647
Theodore Ts'o74becf31997-04-26 14:37:06 +0000648# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000649if test "${with_cc+set}" = set; then
650 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000651 echo "$ac_t""CC=$withval" 1>&6
652CC=$withval
653else
654 if test -z "$CC" ; then CC=cc; fi
655echo "$ac_t""CC defaults to $CC" 1>&6
656fi
657export CC
658
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000659# Extract the first word of "gcc", so it can be a program name with args.
660set dummy gcc; ac_word=$2
661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000662echo "configure:663: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000663if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
665else
666 if test -n "$CC"; then
667 ac_cv_prog_CC="$CC" # Let the user override the test.
668else
669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 ac_dummy="$PATH"
671 for ac_dir in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
674 ac_cv_prog_CC="gcc"
675 break
676 fi
677 done
678 IFS="$ac_save_ifs"
679fi
680fi
681CC="$ac_cv_prog_CC"
682if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
684else
685 echo "$ac_t""no" 1>&6
686fi
687
688if test -z "$CC"; then
689 # Extract the first word of "cc", so it can be a program name with args.
690set dummy cc; ac_word=$2
691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000692echo "configure:693: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000693if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695else
696 if test -n "$CC"; then
697 ac_cv_prog_CC="$CC" # Let the user override the test.
698else
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
700 ac_prog_rejected=no
701 ac_dummy="$PATH"
702 for ac_dir in $ac_dummy; do
703 test -z "$ac_dir" && ac_dir=.
704 if test -f $ac_dir/$ac_word; then
705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
706 ac_prog_rejected=yes
707 continue
708 fi
709 ac_cv_prog_CC="cc"
710 break
711 fi
712 done
713 IFS="$ac_save_ifs"
714if test $ac_prog_rejected = yes; then
715 # We found a bogon in the path, so make sure we never use it.
716 set dummy $ac_cv_prog_CC
717 shift
718 if test $# -gt 0; then
719 # We chose a different compiler from the bogus one.
720 # However, it has the same basename, so the bogon will be chosen
721 # first if we set CC to just the basename; use the full file name.
722 shift
723 set dummy "$ac_dir/$ac_word" "$@"
724 shift
725 ac_cv_prog_CC="$@"
726 fi
727fi
728fi
729fi
730CC="$ac_cv_prog_CC"
731if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
733else
734 echo "$ac_t""no" 1>&6
735fi
736
737 if test -z "$CC"; then
738 case "`uname -s`" in
739 *win32* | *WIN32*)
740 # Extract the first word of "cl", so it can be a program name with args.
741set dummy cl; ac_word=$2
742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000743echo "configure:744: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000744if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746else
747 if test -n "$CC"; then
748 ac_cv_prog_CC="$CC" # Let the user override the test.
749else
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 ac_dummy="$PATH"
752 for ac_dir in $ac_dummy; do
753 test -z "$ac_dir" && ac_dir=.
754 if test -f $ac_dir/$ac_word; then
755 ac_cv_prog_CC="cl"
756 break
757 fi
758 done
759 IFS="$ac_save_ifs"
760fi
761fi
762CC="$ac_cv_prog_CC"
763if test -n "$CC"; then
764 echo "$ac_t""$CC" 1>&6
765else
766 echo "$ac_t""no" 1>&6
767fi
768 ;;
769 esac
770 fi
771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
772fi
773
774echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000775echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000776
777ac_ext=c
778# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
779ac_cpp='$CPP $CPPFLAGS'
780ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
781ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
782cross_compiling=$ac_cv_prog_cc_cross
783
784cat > conftest.$ac_ext << EOF
785
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000786#line 787 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000787#include "confdefs.h"
788
789main(){return(0);}
790EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000791if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000792 ac_cv_prog_cc_works=yes
793 # If we can't run a trivial program, we are probably using a cross compiler.
794 if (./conftest; exit) 2>/dev/null; then
795 ac_cv_prog_cc_cross=no
796 else
797 ac_cv_prog_cc_cross=yes
798 fi
799else
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
802 ac_cv_prog_cc_works=no
803fi
804rm -fr conftest*
805ac_ext=c
806# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807ac_cpp='$CPP $CPPFLAGS'
808ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810cross_compiling=$ac_cv_prog_cc_cross
811
812echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
813if test $ac_cv_prog_cc_works = no; then
814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815fi
816echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000817echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000818echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
819cross_compiling=$ac_cv_prog_cc_cross
820
821echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000822echo "configure:823: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000823if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
825else
826 cat > conftest.c <<EOF
827#ifdef __GNUC__
828 yes;
829#endif
830EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000831if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000832 ac_cv_prog_gcc=yes
833else
834 ac_cv_prog_gcc=no
835fi
836fi
837
838echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839
840if test $ac_cv_prog_gcc = yes; then
841 GCC=yes
842else
843 GCC=
844fi
845
846ac_test_CFLAGS="${CFLAGS+set}"
847ac_save_CFLAGS="$CFLAGS"
848CFLAGS=
849echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000850echo "configure:851: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000851if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853else
854 echo 'void f(){}' > conftest.c
855if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
856 ac_cv_prog_cc_g=yes
857else
858 ac_cv_prog_cc_g=no
859fi
860rm -f conftest*
861
862fi
863
864echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
865if test "$ac_test_CFLAGS" = set; then
866 CFLAGS="$ac_save_CFLAGS"
867elif test $ac_cv_prog_cc_g = yes; then
868 if test "$GCC" = yes; then
869 CFLAGS="-g -O2"
870 else
871 CFLAGS="-g"
872 fi
873else
874 if test "$GCC" = yes; then
875 CFLAGS="-O2"
876 else
877 CFLAGS=
878 fi
879fi
880
Theodore Ts'o74becf31997-04-26 14:37:06 +0000881# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000882if test "${with_linker+set}" = set; then
883 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000884 echo "$ac_t""LD=$withval" 1>&6
885LD=$withval
886else
887 if test -z "$LD" ; then LD=$CC; fi
888echo "$ac_t""LD defaults to $LD" 1>&6
889fi
890export LD
891
892# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000893if test "${with_ccopts+set}" = set; then
894 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000895 echo "$ac_t""CCOPTS is $withval" 1>&6
896CCOPTS=$withval
897CFLAGS="$CFLAGS $withval"
898else
899 CCOPTS=
900fi
901
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000902echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000903echo "configure:904: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000904# On Suns, sometimes $CPP names a directory.
905if test -n "$CPP" && test -d "$CPP"; then
906 CPP=
907fi
908if test -z "$CPP"; then
909if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
911else
912 # This must be in double quotes, not single quotes, because CPP may get
913 # substituted into the Makefile and "${CC-cc}" will confuse make.
914 CPP="${CC-cc} -E"
915 # On the NeXT, cc -E runs the code through the compiler's parser,
916 # not just through cpp.
917 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000918#line 919 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000919#include "confdefs.h"
920#include <assert.h>
921Syntax Error
922EOF
923ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000924{ (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000925ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926if test -z "$ac_err"; then
927 :
928else
929 echo "$ac_err" >&5
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 rm -rf conftest*
933 CPP="${CC-cc} -E -traditional-cpp"
934 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000935#line 936 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000936#include "confdefs.h"
937#include <assert.h>
938Syntax Error
939EOF
940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000941{ (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943if test -z "$ac_err"; then
944 :
945else
946 echo "$ac_err" >&5
947 echo "configure: failed program was:" >&5
948 cat conftest.$ac_ext >&5
949 rm -rf conftest*
950 CPP="${CC-cc} -nologo -E"
951 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000952#line 953 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000953#include "confdefs.h"
954#include <assert.h>
955Syntax Error
956EOF
957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000958{ (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960if test -z "$ac_err"; then
961 :
962else
963 echo "$ac_err" >&5
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
966 rm -rf conftest*
967 CPP=/lib/cpp
968fi
969rm -f conftest*
970fi
971rm -f conftest*
972fi
973rm -f conftest*
974 ac_cv_prog_CPP="$CPP"
975fi
976 CPP="$ac_cv_prog_CPP"
977else
978 ac_cv_prog_CPP="$CPP"
979fi
980echo "$ac_t""$CPP" 1>&6
981
982ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
983echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000984echo "configure:985: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000985if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
987else
988 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000989#line 990 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000990#include "confdefs.h"
991#include <linux/fs.h>
992EOF
993ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +0000994{ (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000995ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
996if test -z "$ac_err"; then
997 rm -rf conftest*
998 eval "ac_cv_header_$ac_safe=yes"
999else
1000 echo "$ac_err" >&5
1001 echo "configure: failed program was:" >&5
1002 cat conftest.$ac_ext >&5
1003 rm -rf conftest*
1004 eval "ac_cv_header_$ac_safe=no"
1005fi
1006rm -f conftest*
1007fi
1008if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1009 echo "$ac_t""yes" 1>&6
1010 linux_headers=yes
1011else
1012 echo "$ac_t""no" 1>&6
1013linux_headers=no
1014fi
1015
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001016if test "$linux_headers" != yes; then
1017 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001018fi
1019
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001020LIB_EXT=.a
1021STATIC_LIB_EXT=.a
1022PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001023# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001024if test "${with_ldopts+set}" = set; then
1025 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001026 echo "$ac_t""LDFLAGS is $withval" 1>&6
1027LDFLAGS=$withval
1028else
1029 LDFLAGS=
1030fi
1031
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001032# Check whether --with-root-prefix or --without-root-prefix was given.
1033if test "${with_root_prefix+set}" = set; then
1034 withval="$with_root_prefix"
1035 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001036else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001037 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001038fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001039# Check whether --enable-compression or --disable-compression was given.
1040if test "${enable_compression+set}" = set; then
1041 enableval="$enable_compression"
1042 if test "$enableval" = "no"
1043then
1044 echo "Disabling compression support"
1045else
1046 cat >> confdefs.h <<\EOF
1047#define ENABLE_COMPRESSION 1
1048EOF
1049
1050 echo "Enabling compression support"
1051 echo "WARNING: Compression support is experimental"
1052fi
1053
1054else
1055 echo "Disabling compression support by default"
1056
1057fi
1058
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001059# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001060if test "${enable_dll_shlibs+set}" = set; then
1061 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062 if test "$enableval" = "no"
1063then
1064 DLL_CMT=#
1065 MAKEFILE_DLL=/dev/null
1066 echo "Disabling DLL shared libraries"
1067else
1068 DLL_CMT=
1069 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001070 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001071 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001072 echo "Enabling DLL shared libraries"
1073fi
1074
1075else
1076 MAKEFILE_DLL=/dev/null
1077DLL_CMT=#
1078echo "Disabling DLL shared libraries by default"
1079
1080fi
1081
1082
1083
1084# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001085if test "${enable_elf_shlibs+set}" = set; then
1086 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087 if test "$enableval" = "no"
1088then
1089 ELF_CMT=#
1090 MAKEFILE_ELF=/dev/null
1091 echo "Disabling ELF shared libraries"
1092else
1093 ELF_CMT=
1094 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001095 case "$host_os" in
1096 solaris2.*)
1097 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1098 ;;
1099 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001100 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001101 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001102 echo "Enabling ELF shared libraries"
1103fi
1104
1105else
1106 MAKEFILE_ELF=/dev/null
1107ELF_CMT=#
1108echo "Disabling ELF shared libraries by default"
1109
1110fi
1111
1112
1113
1114# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001115if test "${enable_bsd_shlibs+set}" = set; then
1116 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001117 if test "$enableval" = "no"
1118then
1119 BSDLIB_CMT=#
1120 MAKEFILE_BSDLIB=/dev/null
1121 echo "Disabling BSD shared libraries"
1122else
1123 BSDLIB_CMT=
1124 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001125 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126 echo "Enabling BSD shared libraries"
1127fi
1128
1129else
1130 MAKEFILE_BSDLIB=/dev/null
1131BSDLIB_CMT=#
1132echo "Disabling BSD shared libraries by default"
1133
1134fi
1135
1136
1137
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001138# Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1139if test "${enable_jfs_debug+set}" = set; then
1140 enableval="$enable_jfs_debug"
1141 if test "$enableval" = "no"
1142then
1143 echo "Disabling journal debugging"
1144else
1145 cat >> confdefs.h <<\EOF
1146#define JFS_DEBUG 1
1147EOF
1148
1149 echo "Enabling journal debugging"
1150fi
1151
1152else
1153 echo "Disabling journal debugging by default"
1154
1155fi
1156
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001157PACKAGE=e2fsprogs
1158VERSION="$E2FSPROGS_VERSION"
1159cat >> confdefs.h <<EOF
1160#define PACKAGE "$PACKAGE"
1161EOF
1162
1163cat >> confdefs.h <<EOF
1164#define VERSION "$VERSION"
1165EOF
1166
1167
1168
1169
Theodore Ts'o19178752000-02-11 15:55:07 +00001170ALL_LINGUAS="it nyc"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001171echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001172echo "configure:1173: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001173set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1174if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176else
1177 cat > conftestmake <<\EOF
1178all:
1179 @echo 'ac_maketemp="${MAKE}"'
1180EOF
1181# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1182eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1183if test -n "$ac_maketemp"; then
1184 eval ac_cv_prog_make_${ac_make}_set=yes
1185else
1186 eval ac_cv_prog_make_${ac_make}_set=no
1187fi
1188rm -f conftestmake
1189fi
1190if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1191 echo "$ac_t""yes" 1>&6
1192 SET_MAKE=
1193else
1194 echo "$ac_t""no" 1>&6
1195 SET_MAKE="MAKE=${MAKE-make}"
1196fi
1197
1198# Extract the first word of "ranlib", so it can be a program name with args.
1199set dummy ranlib; ac_word=$2
1200echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001201echo "configure:1202: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001202if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1204else
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1207else
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1209 ac_dummy="$PATH"
1210 for ac_dir in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB="ranlib"
1214 break
1215 fi
1216 done
1217 IFS="$ac_save_ifs"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1219fi
1220fi
1221RANLIB="$ac_cv_prog_RANLIB"
1222if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1224else
1225 echo "$ac_t""no" 1>&6
1226fi
1227
1228echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001229echo "configure:1230: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001230if test -d /etc/conf/kconfig.d &&
1231 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1232then
1233 echo "$ac_t""yes" 1>&6
1234 ISC=yes # If later tests want to check for ISC.
1235 cat >> confdefs.h <<\EOF
1236#define _POSIX_SOURCE 1
1237EOF
1238
1239 if test "$GCC" = yes; then
1240 CC="$CC -posix"
1241 else
1242 CC="$CC -Xp"
1243 fi
1244else
1245 echo "$ac_t""no" 1>&6
1246 ISC=
1247fi
1248
1249echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001250echo "configure:1251: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001251if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253else
1254 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001255#line 1256 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001256#include "confdefs.h"
1257#include <stdlib.h>
1258#include <stdarg.h>
1259#include <string.h>
1260#include <float.h>
1261EOF
1262ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001263{ (eval echo configure:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001264ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1265if test -z "$ac_err"; then
1266 rm -rf conftest*
1267 ac_cv_header_stdc=yes
1268else
1269 echo "$ac_err" >&5
1270 echo "configure: failed program was:" >&5
1271 cat conftest.$ac_ext >&5
1272 rm -rf conftest*
1273 ac_cv_header_stdc=no
1274fi
1275rm -f conftest*
1276
1277if test $ac_cv_header_stdc = yes; then
1278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1279cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001280#line 1281 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001281#include "confdefs.h"
1282#include <string.h>
1283EOF
1284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1285 egrep "memchr" >/dev/null 2>&1; then
1286 :
1287else
1288 rm -rf conftest*
1289 ac_cv_header_stdc=no
1290fi
1291rm -f conftest*
1292
1293fi
1294
1295if test $ac_cv_header_stdc = yes; then
1296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1297cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001298#line 1299 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001299#include "confdefs.h"
1300#include <stdlib.h>
1301EOF
1302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1303 egrep "free" >/dev/null 2>&1; then
1304 :
1305else
1306 rm -rf conftest*
1307 ac_cv_header_stdc=no
1308fi
1309rm -f conftest*
1310
1311fi
1312
1313if test $ac_cv_header_stdc = yes; then
1314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1315if test "$cross_compiling" = yes; then
1316 :
1317else
1318 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001319#line 1320 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001320#include "confdefs.h"
1321#include <ctype.h>
1322#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1323#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1324#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1325int main () { int i; for (i = 0; i < 256; i++)
1326if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1327exit (0); }
1328
1329EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001330if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001331then
1332 :
1333else
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1336 rm -fr conftest*
1337 ac_cv_header_stdc=no
1338fi
1339rm -fr conftest*
1340fi
1341
1342fi
1343fi
1344
1345echo "$ac_t""$ac_cv_header_stdc" 1>&6
1346if test $ac_cv_header_stdc = yes; then
1347 cat >> confdefs.h <<\EOF
1348#define STDC_HEADERS 1
1349EOF
1350
1351fi
1352
1353echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001354echo "configure:1355: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001355if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1357else
1358 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001359#line 1360 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001360#include "confdefs.h"
1361
1362int main() {
1363
1364/* Ultrix mips cc rejects this. */
1365typedef int charset[2]; const charset x;
1366/* SunOS 4.1.1 cc rejects this. */
1367char const *const *ccp;
1368char **p;
1369/* NEC SVR4.0.2 mips cc rejects this. */
1370struct point {int x, y;};
1371static struct point const zero = {0,0};
1372/* AIX XL C 1.02.0.0 rejects this.
1373 It does not let you subtract one const X* pointer from another in an arm
1374 of an if-expression whose if-part is not a constant expression */
1375const char *g = "string";
1376ccp = &g + (g ? g-g : 0);
1377/* HPUX 7.0 cc rejects these. */
1378++ccp;
1379p = (char**) ccp;
1380ccp = (char const *const *) p;
1381{ /* SCO 3.2v4 cc rejects this. */
1382 char *t;
1383 char const *s = 0 ? (char *) 0 : (char const *) 0;
1384
1385 *t++ = 0;
1386}
1387{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1388 int x[] = {25, 17};
1389 const int *foo = &x[0];
1390 ++foo;
1391}
1392{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1393 typedef const int *iptr;
1394 iptr p = 0;
1395 ++p;
1396}
1397{ /* AIX XL C 1.02.0.0 rejects this saying
1398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1399 struct s { int j; const int *ap[3]; };
1400 struct s *b; b->j = 5;
1401}
1402{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1403 const int foo = 10;
1404}
1405
1406; return 0; }
1407EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001408if { (eval echo configure:1409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001409 rm -rf conftest*
1410 ac_cv_c_const=yes
1411else
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1414 rm -rf conftest*
1415 ac_cv_c_const=no
1416fi
1417rm -f conftest*
1418fi
1419
1420echo "$ac_t""$ac_cv_c_const" 1>&6
1421if test $ac_cv_c_const = no; then
1422 cat >> confdefs.h <<\EOF
1423#define const
1424EOF
1425
1426fi
1427
1428echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001429echo "configure:1430: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001430if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1432else
1433 ac_cv_c_inline=no
1434for ac_kw in inline __inline__ __inline; do
1435 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001436#line 1437 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001437#include "confdefs.h"
1438
1439int main() {
1440} $ac_kw foo() {
1441; return 0; }
1442EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001443if { (eval echo configure:1444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001444 rm -rf conftest*
1445 ac_cv_c_inline=$ac_kw; break
1446else
1447 echo "configure: failed program was:" >&5
1448 cat conftest.$ac_ext >&5
1449fi
1450rm -f conftest*
1451done
1452
1453fi
1454
1455echo "$ac_t""$ac_cv_c_inline" 1>&6
1456case "$ac_cv_c_inline" in
1457 inline | yes) ;;
1458 no) cat >> confdefs.h <<\EOF
1459#define inline
1460EOF
1461 ;;
1462 *) cat >> confdefs.h <<EOF
1463#define inline $ac_cv_c_inline
1464EOF
1465 ;;
1466esac
1467
1468echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001469echo "configure:1470: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001470if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1472else
1473 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001474#line 1475 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001475#include "confdefs.h"
1476#include <sys/types.h>
1477#if STDC_HEADERS
1478#include <stdlib.h>
1479#include <stddef.h>
1480#endif
1481EOF
1482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1483 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1484 rm -rf conftest*
1485 ac_cv_type_off_t=yes
1486else
1487 rm -rf conftest*
1488 ac_cv_type_off_t=no
1489fi
1490rm -f conftest*
1491
1492fi
1493echo "$ac_t""$ac_cv_type_off_t" 1>&6
1494if test $ac_cv_type_off_t = no; then
1495 cat >> confdefs.h <<\EOF
1496#define off_t long
1497EOF
1498
1499fi
1500
1501echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001502echo "configure:1503: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001503if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1505else
1506 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001507#line 1508 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001508#include "confdefs.h"
1509#include <sys/types.h>
1510#if STDC_HEADERS
1511#include <stdlib.h>
1512#include <stddef.h>
1513#endif
1514EOF
1515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1516 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1517 rm -rf conftest*
1518 ac_cv_type_size_t=yes
1519else
1520 rm -rf conftest*
1521 ac_cv_type_size_t=no
1522fi
1523rm -f conftest*
1524
1525fi
1526echo "$ac_t""$ac_cv_type_size_t" 1>&6
1527if test $ac_cv_type_size_t = no; then
1528 cat >> confdefs.h <<\EOF
1529#define size_t unsigned
1530EOF
1531
1532fi
1533
1534# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1535# for constant arguments. Useless!
1536echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001537echo "configure:1538: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001538if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540else
1541 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001542#line 1543 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001543#include "confdefs.h"
1544#include <alloca.h>
1545int main() {
1546char *p = alloca(2 * sizeof(int));
1547; return 0; }
1548EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001549if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001550 rm -rf conftest*
1551 ac_cv_header_alloca_h=yes
1552else
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1555 rm -rf conftest*
1556 ac_cv_header_alloca_h=no
1557fi
1558rm -f conftest*
1559fi
1560
1561echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1562if test $ac_cv_header_alloca_h = yes; then
1563 cat >> confdefs.h <<\EOF
1564#define HAVE_ALLOCA_H 1
1565EOF
1566
1567fi
1568
1569echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001570echo "configure:1571: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001571if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1573else
1574 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001575#line 1576 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001576#include "confdefs.h"
1577
1578#ifdef __GNUC__
1579# define alloca __builtin_alloca
1580#else
1581# ifdef _MSC_VER
1582# include <malloc.h>
1583# define alloca _alloca
1584# else
1585# if HAVE_ALLOCA_H
1586# include <alloca.h>
1587# else
1588# ifdef _AIX
1589 #pragma alloca
1590# else
1591# ifndef alloca /* predefined by HP cc +Olibcalls */
1592char *alloca ();
1593# endif
1594# endif
1595# endif
1596# endif
1597#endif
1598
1599int main() {
1600char *p = (char *) alloca(1);
1601; return 0; }
1602EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001603if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001604 rm -rf conftest*
1605 ac_cv_func_alloca_works=yes
1606else
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1609 rm -rf conftest*
1610 ac_cv_func_alloca_works=no
1611fi
1612rm -f conftest*
1613fi
1614
1615echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1616if test $ac_cv_func_alloca_works = yes; then
1617 cat >> confdefs.h <<\EOF
1618#define HAVE_ALLOCA 1
1619EOF
1620
1621fi
1622
1623if test $ac_cv_func_alloca_works = no; then
1624 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1625 # that cause trouble. Some versions do not even contain alloca or
1626 # contain a buggy version. If you still want to use their alloca,
1627 # use ar to extract alloca.o from them instead of compiling alloca.c.
1628 ALLOCA=alloca.${ac_objext}
1629 cat >> confdefs.h <<\EOF
1630#define C_ALLOCA 1
1631EOF
1632
1633
1634echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001635echo "configure:1636: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001636if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638else
1639 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001640#line 1641 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001641#include "confdefs.h"
1642#if defined(CRAY) && ! defined(CRAY2)
1643webecray
1644#else
1645wenotbecray
1646#endif
1647
1648EOF
1649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1650 egrep "webecray" >/dev/null 2>&1; then
1651 rm -rf conftest*
1652 ac_cv_os_cray=yes
1653else
1654 rm -rf conftest*
1655 ac_cv_os_cray=no
1656fi
1657rm -f conftest*
1658
1659fi
1660
1661echo "$ac_t""$ac_cv_os_cray" 1>&6
1662if test $ac_cv_os_cray = yes; then
1663for ac_func in _getb67 GETB67 getb67; do
1664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001665echo "configure:1666: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001666if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1668else
1669 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001670#line 1671 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001671#include "confdefs.h"
1672/* System header to define __stub macros and hopefully few prototypes,
1673 which can conflict with char $ac_func(); below. */
1674#include <assert.h>
1675/* Override any gcc2 internal prototype to avoid an error. */
1676/* We use char because int might match the return type of a gcc2
1677 builtin and then its argument prototype would still apply. */
1678char $ac_func();
1679
1680int main() {
1681
1682/* The GNU C library defines this for functions which it implements
1683 to always fail with ENOSYS. Some functions are actually named
1684 something starting with __ and the normal name is an alias. */
1685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1686choke me
1687#else
1688$ac_func();
1689#endif
1690
1691; return 0; }
1692EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001693if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001694 rm -rf conftest*
1695 eval "ac_cv_func_$ac_func=yes"
1696else
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1699 rm -rf conftest*
1700 eval "ac_cv_func_$ac_func=no"
1701fi
1702rm -f conftest*
1703fi
1704
1705if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1706 echo "$ac_t""yes" 1>&6
1707 cat >> confdefs.h <<EOF
1708#define CRAY_STACKSEG_END $ac_func
1709EOF
1710
1711 break
1712else
1713 echo "$ac_t""no" 1>&6
1714fi
1715
1716done
1717fi
1718
1719echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001720echo "configure:1721: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001721if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1723else
1724 if test "$cross_compiling" = yes; then
1725 ac_cv_c_stack_direction=0
1726else
1727 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001728#line 1729 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001729#include "confdefs.h"
1730find_stack_direction ()
1731{
1732 static char *addr = 0;
1733 auto char dummy;
1734 if (addr == 0)
1735 {
1736 addr = &dummy;
1737 return find_stack_direction ();
1738 }
1739 else
1740 return (&dummy > addr) ? 1 : -1;
1741}
1742main ()
1743{
1744 exit (find_stack_direction() < 0);
1745}
1746EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001747if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001748then
1749 ac_cv_c_stack_direction=1
1750else
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 rm -fr conftest*
1754 ac_cv_c_stack_direction=-1
1755fi
1756rm -fr conftest*
1757fi
1758
1759fi
1760
1761echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1762cat >> confdefs.h <<EOF
1763#define STACK_DIRECTION $ac_cv_c_stack_direction
1764EOF
1765
1766fi
1767
1768for ac_hdr in unistd.h
1769do
1770ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1771echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001772echo "configure:1773: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001773if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775else
1776 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001777#line 1778 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001778#include "confdefs.h"
1779#include <$ac_hdr>
1780EOF
1781ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001782{ (eval echo configure:1783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001783ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1784if test -z "$ac_err"; then
1785 rm -rf conftest*
1786 eval "ac_cv_header_$ac_safe=yes"
1787else
1788 echo "$ac_err" >&5
1789 echo "configure: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1791 rm -rf conftest*
1792 eval "ac_cv_header_$ac_safe=no"
1793fi
1794rm -f conftest*
1795fi
1796if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1797 echo "$ac_t""yes" 1>&6
1798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1799 cat >> confdefs.h <<EOF
1800#define $ac_tr_hdr 1
1801EOF
1802
1803else
1804 echo "$ac_t""no" 1>&6
1805fi
1806done
1807
1808for ac_func in getpagesize
1809do
1810echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001811echo "configure:1812: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001812if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1814else
1815 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001816#line 1817 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001817#include "confdefs.h"
1818/* System header to define __stub macros and hopefully few prototypes,
1819 which can conflict with char $ac_func(); below. */
1820#include <assert.h>
1821/* Override any gcc2 internal prototype to avoid an error. */
1822/* We use char because int might match the return type of a gcc2
1823 builtin and then its argument prototype would still apply. */
1824char $ac_func();
1825
1826int main() {
1827
1828/* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1832choke me
1833#else
1834$ac_func();
1835#endif
1836
1837; return 0; }
1838EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001839if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001840 rm -rf conftest*
1841 eval "ac_cv_func_$ac_func=yes"
1842else
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1845 rm -rf conftest*
1846 eval "ac_cv_func_$ac_func=no"
1847fi
1848rm -f conftest*
1849fi
1850
1851if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1854 cat >> confdefs.h <<EOF
1855#define $ac_tr_func 1
1856EOF
1857
1858else
1859 echo "$ac_t""no" 1>&6
1860fi
1861done
1862
1863echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001864echo "configure:1865: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001865if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1867else
1868 if test "$cross_compiling" = yes; then
1869 ac_cv_func_mmap_fixed_mapped=no
1870else
1871 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00001872#line 1873 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001873#include "confdefs.h"
1874
1875/* Thanks to Mike Haertel and Jim Avera for this test.
1876 Here is a matrix of mmap possibilities:
1877 mmap private not fixed
1878 mmap private fixed at somewhere currently unmapped
1879 mmap private fixed at somewhere already mapped
1880 mmap shared not fixed
1881 mmap shared fixed at somewhere currently unmapped
1882 mmap shared fixed at somewhere already mapped
1883 For private mappings, we should verify that changes cannot be read()
1884 back from the file, nor mmap's back from the file at a different
1885 address. (There have been systems where private was not correctly
1886 implemented like the infamous i386 svr4.0, and systems where the
1887 VM page cache was not coherent with the filesystem buffer cache
1888 like early versions of FreeBSD and possibly contemporary NetBSD.)
1889 For shared mappings, we should conversely verify that changes get
1890 propogated back to all the places they're supposed to be.
1891
1892 Grep wants private fixed already mapped.
1893 The main things grep needs to know about mmap are:
1894 * does it exist and is it safe to write into the mmap'd area
1895 * how to use it (BSD variants) */
1896#include <sys/types.h>
1897#include <fcntl.h>
1898#include <sys/mman.h>
1899
1900/* This mess was copied from the GNU getpagesize.h. */
1901#ifndef HAVE_GETPAGESIZE
1902# ifdef HAVE_UNISTD_H
1903# include <unistd.h>
1904# endif
1905
1906/* Assume that all systems that can run configure have sys/param.h. */
1907# ifndef HAVE_SYS_PARAM_H
1908# define HAVE_SYS_PARAM_H 1
1909# endif
1910
1911# ifdef _SC_PAGESIZE
1912# define getpagesize() sysconf(_SC_PAGESIZE)
1913# else /* no _SC_PAGESIZE */
1914# ifdef HAVE_SYS_PARAM_H
1915# include <sys/param.h>
1916# ifdef EXEC_PAGESIZE
1917# define getpagesize() EXEC_PAGESIZE
1918# else /* no EXEC_PAGESIZE */
1919# ifdef NBPG
1920# define getpagesize() NBPG * CLSIZE
1921# ifndef CLSIZE
1922# define CLSIZE 1
1923# endif /* no CLSIZE */
1924# else /* no NBPG */
1925# ifdef NBPC
1926# define getpagesize() NBPC
1927# else /* no NBPC */
1928# ifdef PAGESIZE
1929# define getpagesize() PAGESIZE
1930# endif /* PAGESIZE */
1931# endif /* no NBPC */
1932# endif /* no NBPG */
1933# endif /* no EXEC_PAGESIZE */
1934# else /* no HAVE_SYS_PARAM_H */
1935# define getpagesize() 8192 /* punt totally */
1936# endif /* no HAVE_SYS_PARAM_H */
1937# endif /* no _SC_PAGESIZE */
1938
1939#endif /* no HAVE_GETPAGESIZE */
1940
1941#ifdef __cplusplus
1942extern "C" { void *malloc(unsigned); }
1943#else
1944char *malloc();
1945#endif
1946
1947int
1948main()
1949{
1950 char *data, *data2, *data3;
1951 int i, pagesize;
1952 int fd;
1953
1954 pagesize = getpagesize();
1955
1956 /*
1957 * First, make a file with some known garbage in it.
1958 */
1959 data = malloc(pagesize);
1960 if (!data)
1961 exit(1);
1962 for (i = 0; i < pagesize; ++i)
1963 *(data + i) = rand();
1964 umask(0);
1965 fd = creat("conftestmmap", 0600);
1966 if (fd < 0)
1967 exit(1);
1968 if (write(fd, data, pagesize) != pagesize)
1969 exit(1);
1970 close(fd);
1971
1972 /*
1973 * Next, try to mmap the file at a fixed address which
1974 * already has something else allocated at it. If we can,
1975 * also make sure that we see the same garbage.
1976 */
1977 fd = open("conftestmmap", O_RDWR);
1978 if (fd < 0)
1979 exit(1);
1980 data2 = malloc(2 * pagesize);
1981 if (!data2)
1982 exit(1);
1983 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1984 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1985 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1986 exit(1);
1987 for (i = 0; i < pagesize; ++i)
1988 if (*(data + i) != *(data2 + i))
1989 exit(1);
1990
1991 /*
1992 * Finally, make sure that changes to the mapped area
1993 * do not percolate back to the file as seen by read().
1994 * (This is a bug on some variants of i386 svr4.0.)
1995 */
1996 for (i = 0; i < pagesize; ++i)
1997 *(data2 + i) = *(data2 + i) + 1;
1998 data3 = malloc(pagesize);
1999 if (!data3)
2000 exit(1);
2001 if (read(fd, data3, pagesize) != pagesize)
2002 exit(1);
2003 for (i = 0; i < pagesize; ++i)
2004 if (*(data + i) != *(data3 + i))
2005 exit(1);
2006 close(fd);
2007 unlink("conftestmmap");
2008 exit(0);
2009}
2010
2011EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002012if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002013then
2014 ac_cv_func_mmap_fixed_mapped=yes
2015else
2016 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2018 rm -fr conftest*
2019 ac_cv_func_mmap_fixed_mapped=no
2020fi
2021rm -fr conftest*
2022fi
2023
2024fi
2025
2026echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2027if test $ac_cv_func_mmap_fixed_mapped = yes; then
2028 cat >> confdefs.h <<\EOF
2029#define HAVE_MMAP 1
2030EOF
2031
2032fi
2033
2034
2035 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2036unistd.h sys/param.h
2037do
2038ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2039echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002040echo "configure:2041: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002041if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2043else
2044 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002045#line 2046 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002046#include "confdefs.h"
2047#include <$ac_hdr>
2048EOF
2049ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002050{ (eval echo configure:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002051ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2052if test -z "$ac_err"; then
2053 rm -rf conftest*
2054 eval "ac_cv_header_$ac_safe=yes"
2055else
2056 echo "$ac_err" >&5
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 rm -rf conftest*
2060 eval "ac_cv_header_$ac_safe=no"
2061fi
2062rm -f conftest*
2063fi
2064if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2065 echo "$ac_t""yes" 1>&6
2066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2067 cat >> confdefs.h <<EOF
2068#define $ac_tr_hdr 1
2069EOF
2070
2071else
2072 echo "$ac_t""no" 1>&6
2073fi
2074done
2075
2076 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2077strdup __argz_count __argz_stringify __argz_next
2078do
2079echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002080echo "configure:2081: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002081if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2083else
2084 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002085#line 2086 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002086#include "confdefs.h"
2087/* System header to define __stub macros and hopefully few prototypes,
2088 which can conflict with char $ac_func(); below. */
2089#include <assert.h>
2090/* Override any gcc2 internal prototype to avoid an error. */
2091/* We use char because int might match the return type of a gcc2
2092 builtin and then its argument prototype would still apply. */
2093char $ac_func();
2094
2095int main() {
2096
2097/* The GNU C library defines this for functions which it implements
2098 to always fail with ENOSYS. Some functions are actually named
2099 something starting with __ and the normal name is an alias. */
2100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2101choke me
2102#else
2103$ac_func();
2104#endif
2105
2106; return 0; }
2107EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002108if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002109 rm -rf conftest*
2110 eval "ac_cv_func_$ac_func=yes"
2111else
2112 echo "configure: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2114 rm -rf conftest*
2115 eval "ac_cv_func_$ac_func=no"
2116fi
2117rm -f conftest*
2118fi
2119
2120if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2121 echo "$ac_t""yes" 1>&6
2122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2123 cat >> confdefs.h <<EOF
2124#define $ac_tr_func 1
2125EOF
2126
2127else
2128 echo "$ac_t""no" 1>&6
2129fi
2130done
2131
2132
2133 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2134 for ac_func in stpcpy
2135do
2136echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002137echo "configure:2138: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002138if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140else
2141 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002142#line 2143 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002143#include "confdefs.h"
2144/* System header to define __stub macros and hopefully few prototypes,
2145 which can conflict with char $ac_func(); below. */
2146#include <assert.h>
2147/* Override any gcc2 internal prototype to avoid an error. */
2148/* We use char because int might match the return type of a gcc2
2149 builtin and then its argument prototype would still apply. */
2150char $ac_func();
2151
2152int main() {
2153
2154/* The GNU C library defines this for functions which it implements
2155 to always fail with ENOSYS. Some functions are actually named
2156 something starting with __ and the normal name is an alias. */
2157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2158choke me
2159#else
2160$ac_func();
2161#endif
2162
2163; return 0; }
2164EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002165if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002166 rm -rf conftest*
2167 eval "ac_cv_func_$ac_func=yes"
2168else
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2171 rm -rf conftest*
2172 eval "ac_cv_func_$ac_func=no"
2173fi
2174rm -f conftest*
2175fi
2176
2177if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2178 echo "$ac_t""yes" 1>&6
2179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2180 cat >> confdefs.h <<EOF
2181#define $ac_tr_func 1
2182EOF
2183
2184else
2185 echo "$ac_t""no" 1>&6
2186fi
2187done
2188
2189 fi
2190 if test "${ac_cv_func_stpcpy}" = "yes"; then
2191 cat >> confdefs.h <<\EOF
2192#define HAVE_STPCPY 1
2193EOF
2194
2195 fi
2196
2197 if test $ac_cv_header_locale_h = yes; then
2198 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002199echo "configure:2200: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002200if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2202else
2203 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002204#line 2205 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002205#include "confdefs.h"
2206#include <locale.h>
2207int main() {
2208return LC_MESSAGES
2209; return 0; }
2210EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002211if { (eval echo configure:2212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002212 rm -rf conftest*
2213 am_cv_val_LC_MESSAGES=yes
2214else
2215 echo "configure: failed program was:" >&5
2216 cat conftest.$ac_ext >&5
2217 rm -rf conftest*
2218 am_cv_val_LC_MESSAGES=no
2219fi
2220rm -f conftest*
2221fi
2222
2223echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2224 if test $am_cv_val_LC_MESSAGES = yes; then
2225 cat >> confdefs.h <<\EOF
2226#define HAVE_LC_MESSAGES 1
2227EOF
2228
2229 fi
2230 fi
2231 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002232echo "configure:2233: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002233 # Check whether --enable-nls or --disable-nls was given.
2234if test "${enable_nls+set}" = set; then
2235 enableval="$enable_nls"
2236 USE_NLS=$enableval
2237else
2238 USE_NLS=no
2239fi
2240
2241 echo "$ac_t""$USE_NLS" 1>&6
2242
2243
2244 USE_INCLUDED_LIBINTL=no
2245
2246 if test "$USE_NLS" = "yes"; then
2247 cat >> confdefs.h <<\EOF
2248#define ENABLE_NLS 1
2249EOF
2250
2251 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002252echo "configure:2253: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002253 # Check whether --with-included-gettext or --without-included-gettext was given.
2254if test "${with_included_gettext+set}" = set; then
2255 withval="$with_included_gettext"
2256 nls_cv_force_use_gnu_gettext=$withval
2257else
2258 nls_cv_force_use_gnu_gettext=no
2259fi
2260
2261 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2262
2263 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2264 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2265 nls_cv_header_intl=
2266 nls_cv_header_libgt=
2267 CATOBJEXT=NONE
2268
2269 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2270echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002271echo "configure:2272: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002272if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2274else
2275 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002276#line 2277 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002277#include "confdefs.h"
2278#include <libintl.h>
2279EOF
2280ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002281{ (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002282ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2283if test -z "$ac_err"; then
2284 rm -rf conftest*
2285 eval "ac_cv_header_$ac_safe=yes"
2286else
2287 echo "$ac_err" >&5
2288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2290 rm -rf conftest*
2291 eval "ac_cv_header_$ac_safe=no"
2292fi
2293rm -f conftest*
2294fi
2295if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2296 echo "$ac_t""yes" 1>&6
2297 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002298echo "configure:2299: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002299if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301else
2302 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002303#line 2304 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002304#include "confdefs.h"
2305#include <libintl.h>
2306int main() {
2307return (int) gettext ("")
2308; return 0; }
2309EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002310if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002311 rm -rf conftest*
2312 gt_cv_func_gettext_libc=yes
2313else
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 rm -rf conftest*
2317 gt_cv_func_gettext_libc=no
2318fi
2319rm -f conftest*
2320fi
2321
2322echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2323
2324 if test "$gt_cv_func_gettext_libc" != "yes"; then
2325 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002326echo "configure:2327: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002327ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2328if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330else
2331 ac_save_LIBS="$LIBS"
2332LIBS="-lintl $LIBS"
2333cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002334#line 2335 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002335#include "confdefs.h"
2336/* Override any gcc2 internal prototype to avoid an error. */
2337/* We use char because int might match the return type of a gcc2
2338 builtin and then its argument prototype would still apply. */
2339char bindtextdomain();
2340
2341int main() {
2342bindtextdomain()
2343; return 0; }
2344EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002345if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002346 rm -rf conftest*
2347 eval "ac_cv_lib_$ac_lib_var=yes"
2348else
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 rm -rf conftest*
2352 eval "ac_cv_lib_$ac_lib_var=no"
2353fi
2354rm -f conftest*
2355LIBS="$ac_save_LIBS"
2356
2357fi
2358if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002361echo "configure:2362: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002362if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2364else
2365 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002366echo "configure:2367: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002367ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2368if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2370else
2371 ac_save_LIBS="$LIBS"
2372LIBS="-lintl $LIBS"
2373cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002374#line 2375 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002375#include "confdefs.h"
2376/* Override any gcc2 internal prototype to avoid an error. */
2377/* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379char gettext();
2380
2381int main() {
2382gettext()
2383; return 0; }
2384EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002385if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002386 rm -rf conftest*
2387 eval "ac_cv_lib_$ac_lib_var=yes"
2388else
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 rm -rf conftest*
2392 eval "ac_cv_lib_$ac_lib_var=no"
2393fi
2394rm -f conftest*
2395LIBS="$ac_save_LIBS"
2396
2397fi
2398if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2399 echo "$ac_t""yes" 1>&6
2400 gt_cv_func_gettext_libintl=yes
2401else
2402 echo "$ac_t""no" 1>&6
2403gt_cv_func_gettext_libintl=no
2404fi
2405
2406fi
2407
2408echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2409else
2410 echo "$ac_t""no" 1>&6
2411fi
2412
2413 fi
2414
2415 if test "$gt_cv_func_gettext_libc" = "yes" \
2416 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2417 cat >> confdefs.h <<\EOF
2418#define HAVE_GETTEXT 1
2419EOF
2420
2421 # Extract the first word of "msgfmt", so it can be a program name with args.
2422set dummy msgfmt; ac_word=$2
2423echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002424echo "configure:2425: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002425if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2427else
2428 case "$MSGFMT" in
2429 /*)
2430 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2431 ;;
2432 *)
2433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2434 for ac_dir in $PATH; do
2435 test -z "$ac_dir" && ac_dir=.
2436 if test -f $ac_dir/$ac_word; then
2437 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2438 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2439 break
2440 fi
2441 fi
2442 done
2443 IFS="$ac_save_ifs"
2444 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2445 ;;
2446esac
2447fi
2448MSGFMT="$ac_cv_path_MSGFMT"
2449if test -n "$MSGFMT"; then
2450 echo "$ac_t""$MSGFMT" 1>&6
2451else
2452 echo "$ac_t""no" 1>&6
2453fi
2454 if test "$MSGFMT" != "no"; then
2455 for ac_func in dcgettext
2456do
2457echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002458echo "configure:2459: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002459if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2461else
2462 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002463#line 2464 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002464#include "confdefs.h"
2465/* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $ac_func(); below. */
2467#include <assert.h>
2468/* Override any gcc2 internal prototype to avoid an error. */
2469/* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2471char $ac_func();
2472
2473int main() {
2474
2475/* The GNU C library defines this for functions which it implements
2476 to always fail with ENOSYS. Some functions are actually named
2477 something starting with __ and the normal name is an alias. */
2478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2479choke me
2480#else
2481$ac_func();
2482#endif
2483
2484; return 0; }
2485EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002486if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002487 rm -rf conftest*
2488 eval "ac_cv_func_$ac_func=yes"
2489else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 eval "ac_cv_func_$ac_func=no"
2494fi
2495rm -f conftest*
2496fi
2497
2498if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501 cat >> confdefs.h <<EOF
2502#define $ac_tr_func 1
2503EOF
2504
2505else
2506 echo "$ac_t""no" 1>&6
2507fi
2508done
2509
2510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2511set dummy gmsgfmt; ac_word=$2
2512echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002513echo "configure:2514: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002514if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2516else
2517 case "$GMSGFMT" in
2518 /*)
2519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2520 ;;
2521 ?:/*)
2522 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2523 ;;
2524 *)
2525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2526 ac_dummy="$PATH"
2527 for ac_dir in $ac_dummy; do
2528 test -z "$ac_dir" && ac_dir=.
2529 if test -f $ac_dir/$ac_word; then
2530 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2531 break
2532 fi
2533 done
2534 IFS="$ac_save_ifs"
2535 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2536 ;;
2537esac
2538fi
2539GMSGFMT="$ac_cv_path_GMSGFMT"
2540if test -n "$GMSGFMT"; then
2541 echo "$ac_t""$GMSGFMT" 1>&6
2542else
2543 echo "$ac_t""no" 1>&6
2544fi
2545
2546 # Extract the first word of "xgettext", so it can be a program name with args.
2547set dummy xgettext; ac_word=$2
2548echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002549echo "configure:2550: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002550if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552else
2553 case "$XGETTEXT" in
2554 /*)
2555 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2556 ;;
2557 *)
2558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2559 for ac_dir in $PATH; do
2560 test -z "$ac_dir" && ac_dir=.
2561 if test -f $ac_dir/$ac_word; then
2562 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2563 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2564 break
2565 fi
2566 fi
2567 done
2568 IFS="$ac_save_ifs"
2569 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2570 ;;
2571esac
2572fi
2573XGETTEXT="$ac_cv_path_XGETTEXT"
2574if test -n "$XGETTEXT"; then
2575 echo "$ac_t""$XGETTEXT" 1>&6
2576else
2577 echo "$ac_t""no" 1>&6
2578fi
2579
2580 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002581#line 2582 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002582#include "confdefs.h"
2583
2584int main() {
2585extern int _nl_msg_cat_cntr;
2586 return _nl_msg_cat_cntr
2587; return 0; }
2588EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002589if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002590 rm -rf conftest*
2591 CATOBJEXT=.gmo
2592 DATADIRNAME=share
2593else
2594 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2596 rm -rf conftest*
2597 CATOBJEXT=.mo
2598 DATADIRNAME=lib
2599fi
2600rm -f conftest*
2601 INSTOBJEXT=.mo
2602 fi
2603 fi
2604
2605else
2606 echo "$ac_t""no" 1>&6
2607fi
2608
2609
2610 if test "$CATOBJEXT" = "NONE"; then
2611 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002612echo "configure:2613: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002613 # Check whether --with-catgets or --without-catgets was given.
2614if test "${with_catgets+set}" = set; then
2615 withval="$with_catgets"
2616 nls_cv_use_catgets=$withval
2617else
2618 nls_cv_use_catgets=no
2619fi
2620
2621 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2622
2623 if test "$nls_cv_use_catgets" = "yes"; then
2624 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002625echo "configure:2626: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002626ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2627if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2629else
2630 ac_save_LIBS="$LIBS"
2631LIBS="-li $LIBS"
2632cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002633#line 2634 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002634#include "confdefs.h"
2635
2636int main() {
2637main()
2638; return 0; }
2639EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002640if { (eval echo configure:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002641 rm -rf conftest*
2642 eval "ac_cv_lib_$ac_lib_var=yes"
2643else
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2646 rm -rf conftest*
2647 eval "ac_cv_lib_$ac_lib_var=no"
2648fi
2649rm -f conftest*
2650LIBS="$ac_save_LIBS"
2651
2652fi
2653if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2654 echo "$ac_t""yes" 1>&6
2655 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2656 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2657 cat >> confdefs.h <<EOF
2658#define $ac_tr_lib 1
2659EOF
2660
2661 LIBS="-li $LIBS"
2662
2663else
2664 echo "$ac_t""no" 1>&6
2665fi
2666
2667 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002668echo "configure:2669: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002669if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2671else
2672 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002673#line 2674 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002674#include "confdefs.h"
2675/* System header to define __stub macros and hopefully few prototypes,
2676 which can conflict with char catgets(); below. */
2677#include <assert.h>
2678/* Override any gcc2 internal prototype to avoid an error. */
2679/* We use char because int might match the return type of a gcc2
2680 builtin and then its argument prototype would still apply. */
2681char catgets();
2682
2683int main() {
2684
2685/* The GNU C library defines this for functions which it implements
2686 to always fail with ENOSYS. Some functions are actually named
2687 something starting with __ and the normal name is an alias. */
2688#if defined (__stub_catgets) || defined (__stub___catgets)
2689choke me
2690#else
2691catgets();
2692#endif
2693
2694; return 0; }
2695EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002696if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002697 rm -rf conftest*
2698 eval "ac_cv_func_catgets=yes"
2699else
2700 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2702 rm -rf conftest*
2703 eval "ac_cv_func_catgets=no"
2704fi
2705rm -f conftest*
2706fi
2707
2708if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2709 echo "$ac_t""yes" 1>&6
2710 cat >> confdefs.h <<\EOF
2711#define HAVE_CATGETS 1
2712EOF
2713
2714 INTLOBJS="\$(CATOBJS)"
2715 # Extract the first word of "gencat", so it can be a program name with args.
2716set dummy gencat; ac_word=$2
2717echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002718echo "configure:2719: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002719if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2721else
2722 case "$GENCAT" in
2723 /*)
2724 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2725 ;;
2726 ?:/*)
2727 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2728 ;;
2729 *)
2730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2731 ac_dummy="$PATH"
2732 for ac_dir in $ac_dummy; do
2733 test -z "$ac_dir" && ac_dir=.
2734 if test -f $ac_dir/$ac_word; then
2735 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2736 break
2737 fi
2738 done
2739 IFS="$ac_save_ifs"
2740 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2741 ;;
2742esac
2743fi
2744GENCAT="$ac_cv_path_GENCAT"
2745if test -n "$GENCAT"; then
2746 echo "$ac_t""$GENCAT" 1>&6
2747else
2748 echo "$ac_t""no" 1>&6
2749fi
2750 if test "$GENCAT" != "no"; then
2751 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2752set dummy gmsgfmt; ac_word=$2
2753echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002754echo "configure:2755: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002755if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2757else
2758 case "$GMSGFMT" in
2759 /*)
2760 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2761 ;;
2762 ?:/*)
2763 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2764 ;;
2765 *)
2766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2767 ac_dummy="$PATH"
2768 for ac_dir in $ac_dummy; do
2769 test -z "$ac_dir" && ac_dir=.
2770 if test -f $ac_dir/$ac_word; then
2771 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2772 break
2773 fi
2774 done
2775 IFS="$ac_save_ifs"
2776 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2777 ;;
2778esac
2779fi
2780GMSGFMT="$ac_cv_path_GMSGFMT"
2781if test -n "$GMSGFMT"; then
2782 echo "$ac_t""$GMSGFMT" 1>&6
2783else
2784 echo "$ac_t""no" 1>&6
2785fi
2786
2787 if test "$GMSGFMT" = "no"; then
2788 # Extract the first word of "msgfmt", so it can be a program name with args.
2789set dummy msgfmt; ac_word=$2
2790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002791echo "configure:2792: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002792if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2794else
2795 case "$GMSGFMT" in
2796 /*)
2797 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2798 ;;
2799 *)
2800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2801 for ac_dir in $PATH; do
2802 test -z "$ac_dir" && ac_dir=.
2803 if test -f $ac_dir/$ac_word; then
2804 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2805 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2806 break
2807 fi
2808 fi
2809 done
2810 IFS="$ac_save_ifs"
2811 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2812 ;;
2813esac
2814fi
2815GMSGFMT="$ac_cv_path_GMSGFMT"
2816if test -n "$GMSGFMT"; then
2817 echo "$ac_t""$GMSGFMT" 1>&6
2818else
2819 echo "$ac_t""no" 1>&6
2820fi
2821
2822 fi
2823 # Extract the first word of "xgettext", so it can be a program name with args.
2824set dummy xgettext; ac_word=$2
2825echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002826echo "configure:2827: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002827if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2829else
2830 case "$XGETTEXT" in
2831 /*)
2832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2833 ;;
2834 *)
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2836 for ac_dir in $PATH; do
2837 test -z "$ac_dir" && ac_dir=.
2838 if test -f $ac_dir/$ac_word; then
2839 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2840 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2841 break
2842 fi
2843 fi
2844 done
2845 IFS="$ac_save_ifs"
2846 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2847 ;;
2848esac
2849fi
2850XGETTEXT="$ac_cv_path_XGETTEXT"
2851if test -n "$XGETTEXT"; then
2852 echo "$ac_t""$XGETTEXT" 1>&6
2853else
2854 echo "$ac_t""no" 1>&6
2855fi
2856
2857 USE_INCLUDED_LIBINTL=yes
2858 CATOBJEXT=.cat
2859 INSTOBJEXT=.cat
2860 DATADIRNAME=lib
2861 INTLDEPS='$(top_builddir)/intl/libintl.a'
2862 INTLLIBS=$INTLDEPS
2863 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2864 nls_cv_header_intl=intl/libintl.h
2865 nls_cv_header_libgt=intl/libgettext.h
2866 fi
2867else
2868 echo "$ac_t""no" 1>&6
2869fi
2870
2871 fi
2872 fi
2873
2874 if test "$CATOBJEXT" = "NONE"; then
2875 nls_cv_use_gnu_gettext=yes
2876 fi
2877 fi
2878
2879 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2880 INTLOBJS="\$(GETTOBJS)"
2881 # Extract the first word of "msgfmt", so it can be a program name with args.
2882set dummy msgfmt; ac_word=$2
2883echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002884echo "configure:2885: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002885if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2887else
2888 case "$MSGFMT" in
2889 /*)
2890 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2891 ;;
2892 *)
2893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2894 for ac_dir in $PATH; do
2895 test -z "$ac_dir" && ac_dir=.
2896 if test -f $ac_dir/$ac_word; then
2897 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2898 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2899 break
2900 fi
2901 fi
2902 done
2903 IFS="$ac_save_ifs"
2904 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2905 ;;
2906esac
2907fi
2908MSGFMT="$ac_cv_path_MSGFMT"
2909if test -n "$MSGFMT"; then
2910 echo "$ac_t""$MSGFMT" 1>&6
2911else
2912 echo "$ac_t""no" 1>&6
2913fi
2914
2915 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2916set dummy gmsgfmt; ac_word=$2
2917echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002918echo "configure:2919: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002919if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2921else
2922 case "$GMSGFMT" in
2923 /*)
2924 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2925 ;;
2926 ?:/*)
2927 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2928 ;;
2929 *)
2930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2931 ac_dummy="$PATH"
2932 for ac_dir in $ac_dummy; do
2933 test -z "$ac_dir" && ac_dir=.
2934 if test -f $ac_dir/$ac_word; then
2935 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2936 break
2937 fi
2938 done
2939 IFS="$ac_save_ifs"
2940 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2941 ;;
2942esac
2943fi
2944GMSGFMT="$ac_cv_path_GMSGFMT"
2945if test -n "$GMSGFMT"; then
2946 echo "$ac_t""$GMSGFMT" 1>&6
2947else
2948 echo "$ac_t""no" 1>&6
2949fi
2950
2951 # Extract the first word of "xgettext", so it can be a program name with args.
2952set dummy xgettext; ac_word=$2
2953echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00002954echo "configure:2955: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002955if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957else
2958 case "$XGETTEXT" in
2959 /*)
2960 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2961 ;;
2962 *)
2963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2964 for ac_dir in $PATH; do
2965 test -z "$ac_dir" && ac_dir=.
2966 if test -f $ac_dir/$ac_word; then
2967 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2968 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2969 break
2970 fi
2971 fi
2972 done
2973 IFS="$ac_save_ifs"
2974 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2975 ;;
2976esac
2977fi
2978XGETTEXT="$ac_cv_path_XGETTEXT"
2979if test -n "$XGETTEXT"; then
2980 echo "$ac_t""$XGETTEXT" 1>&6
2981else
2982 echo "$ac_t""no" 1>&6
2983fi
2984
2985
2986 USE_INCLUDED_LIBINTL=yes
2987 CATOBJEXT=.gmo
2988 INSTOBJEXT=.mo
2989 DATADIRNAME=share
2990 INTLDEPS='$(top_builddir)/intl/libintl.a'
2991 INTLLIBS=$INTLDEPS
2992 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2993 nls_cv_header_intl=intl/libintl.h
2994 nls_cv_header_libgt=intl/libgettext.h
2995 fi
2996
2997 if test "$XGETTEXT" != ":"; then
2998 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2999 : ;
3000 else
3001 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3002 XGETTEXT=":"
3003 fi
3004 fi
3005
3006 # We need to process the po/ directory.
3007 POSUB=po
3008 else
3009 DATADIRNAME=share
3010 nls_cv_header_intl=intl/libintl.h
3011 nls_cv_header_libgt=intl/libgettext.h
3012 fi
3013
3014
3015
3016
3017 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3018 # because some of the sources are only built for this goal.
3019 if test "$PACKAGE" = gettext; then
3020 USE_NLS=yes
3021 USE_INCLUDED_LIBINTL=yes
3022 fi
3023
3024 for lang in $ALL_LINGUAS; do
3025 GMOFILES="$GMOFILES $lang.gmo"
3026 POFILES="$POFILES $lang.po"
3027 done
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042 if test "x$CATOBJEXT" != "x"; then
3043 if test "x$ALL_LINGUAS" = "x"; then
3044 LINGUAS=
3045 else
3046 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003047echo "configure:3048: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003048 NEW_LINGUAS=
3049 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3050 case "$ALL_LINGUAS" in
3051 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3052 esac
3053 done
3054 LINGUAS=$NEW_LINGUAS
3055 echo "$ac_t""$LINGUAS" 1>&6
3056 fi
3057
3058 if test -n "$LINGUAS"; then
3059 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3060 fi
3061 fi
3062
3063 if test $ac_cv_header_locale_h = yes; then
3064 INCLUDE_LOCALE_H="#include <locale.h>"
3065 else
3066 INCLUDE_LOCALE_H="\
3067/* The system does not provide the header <locale.h>. Take care yourself. */"
3068 fi
3069
3070
3071 test -d intl || mkdir intl
3072 if test "$CATOBJEXT" = ".cat"; then
3073 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3074echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003075echo "configure:3076: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003076if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3078else
3079 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003080#line 3081 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003081#include "confdefs.h"
3082#include <linux/version.h>
3083EOF
3084ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003085{ (eval echo configure:3086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003086ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3087if test -z "$ac_err"; then
3088 rm -rf conftest*
3089 eval "ac_cv_header_$ac_safe=yes"
3090else
3091 echo "$ac_err" >&5
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3094 rm -rf conftest*
3095 eval "ac_cv_header_$ac_safe=no"
3096fi
3097rm -f conftest*
3098fi
3099if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3100 echo "$ac_t""yes" 1>&6
3101 msgformat=linux
3102else
3103 echo "$ac_t""no" 1>&6
3104msgformat=xopen
3105fi
3106
3107
3108 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3109 fi
3110 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3111 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3112
3113 if test "$PACKAGE" = "gettext"; then
3114 GT_NO="#NO#"
3115 GT_YES=
3116 else
3117 GT_NO=
3118 GT_YES="#YES#"
3119 fi
3120
3121
3122
3123 MKINSTALLDIRS=
3124 if test -n "$ac_aux_dir"; then
3125 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3126 fi
3127 if test -z "$MKINSTALLDIRS"; then
3128 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3129 fi
3130
3131
3132 l=
3133
3134
3135 test -d po || mkdir po
3136 if test "x$srcdir" != "x."; then
3137 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3138 posrcprefix="$srcdir/"
3139 else
3140 posrcprefix="../$srcdir/"
3141 fi
3142 else
3143 posrcprefix="../"
3144 fi
3145 rm -f po/POTFILES
3146 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3147 < $srcdir/po/POTFILES.in > po/POTFILES
3148
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003149# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003150if test "${enable_profile+set}" = set; then
3151 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003152 if test "$enableval" = "no"
3153then
3154 PROFILE_CMT=#
3155 MAKEFILE_PROFILE=/dev/null
3156 echo "Disabling profiling libraries"
3157else
3158 PROFILE_CMT=
3159 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003160 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003161 echo "Building profiling libraries"
3162fi
3163
3164else
3165 PROFILE_CMT=#
3166MAKEFILE_PROFILE=/dev/null
3167echo "Disabling profiling libraries by default"
3168
3169fi
3170
3171
3172
3173# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003174if test "${enable_checker+set}" = set; then
3175 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003176 if test "$enableval" = "no"
3177then
3178 CHECKER_CMT=#
3179 MAKEFILE_CHECKER=/dev/null
3180 echo "Disabling checker libraries"
3181else
3182 CHECKER_CMT=
3183 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3184 echo "Building checker libraries"
3185fi
3186
3187else
3188 CHECKER_CMT=#
3189MAKEFILE_CHECKER=/dev/null
3190echo "Disabling checker libraries by default"
3191
3192fi
3193
3194
3195
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003196
3197
3198
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003199# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003200if test "${enable_dynamic_e2fsck+set}" = set; then
3201 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003202 if test "$enableval" = "no"
3203then
3204 E2FSCK_TYPE=static
3205 echo "Building e2fsck statically"
3206else
3207 E2FSCK_TYPE=shared
3208 echo "Building e2fsck dynamically"
3209fi
3210
3211else
3212 E2FSCK_TYPE=static
3213echo "Building e2fsck statically by default"
3214
3215fi
3216
3217
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003218# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003219if test "${enable_fsck+set}" = set; then
3220 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003221 if test "$enableval" = "no"
3222then
3223 FSCK_PROG='' FSCK_MAN=''
3224 echo "Not building fsck wrapper"
3225else
3226 FSCK_PROG=fsck FSCK_MAN=fsck.8
3227 echo "Building fsck wrapper"
3228fi
3229
3230else
3231 case "$host_os" in
3232 gnu*)
3233 FSCK_PROG='' FSCK_MAN=''
3234 echo "Not building fsck wrapper by default"
3235 ;;
3236 *)
3237 FSCK_PROG=fsck FSCK_MAN=fsck.8
3238 echo "Building fsck wrapper by default"
3239esac
3240
3241fi
3242
3243
3244
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003245MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3246
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003247# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003248if test "${enable_old_bitops+set}" = set; then
3249 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003250 if test "$enableval" = "no"
3251then
3252 echo "Using new (standard) bitmask operations"
3253else
3254 cat >> confdefs.h <<\EOF
3255#define EXT2_OLD_BITOPS 1
3256EOF
3257
3258 echo "Using old (native) bitmask operations"
3259
3260fi
3261
3262else
3263 echo "Using standard bitmask operations by default"
3264
3265fi
3266
Theodore Ts'o74becf31997-04-26 14:37:06 +00003267
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003268echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003269echo "configure:3270: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003270set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003271if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3273else
3274 cat > conftestmake <<\EOF
3275all:
3276 @echo 'ac_maketemp="${MAKE}"'
3277EOF
3278# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3279eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3280if test -n "$ac_maketemp"; then
3281 eval ac_cv_prog_make_${ac_make}_set=yes
3282else
3283 eval ac_cv_prog_make_${ac_make}_set=no
3284fi
3285rm -f conftestmake
3286fi
3287if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3289 SET_MAKE=
3290else
3291 echo "$ac_t""no" 1>&6
3292 SET_MAKE="MAKE=${MAKE-make}"
3293fi
3294
3295# Extract the first word of "ln", so it can be a program name with args.
3296set dummy ln; ac_word=$2
3297echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003298echo "configure:3299: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003299if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3301else
3302 case "$LN" in
3303 /*)
3304 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3305 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003306 ?:/*)
3307 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3308 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003309 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3311 ac_dummy="$PATH"
3312 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003313 test -z "$ac_dir" && ac_dir=.
3314 if test -f $ac_dir/$ac_word; then
3315 ac_cv_path_LN="$ac_dir/$ac_word"
3316 break
3317 fi
3318 done
3319 IFS="$ac_save_ifs"
3320 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3321 ;;
3322esac
3323fi
3324LN="$ac_cv_path_LN"
3325if test -n "$LN"; then
3326 echo "$ac_t""$LN" 1>&6
3327else
3328 echo "$ac_t""no" 1>&6
3329fi
3330
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003331echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003332echo "configure:3333: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003333if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3335else
3336 rm -f conftestdata
3337if ln -s X conftestdata 2>/dev/null
3338then
3339 rm -f conftestdata
3340 ac_cv_prog_LN_S="ln -s"
3341else
3342 ac_cv_prog_LN_S=ln
3343fi
3344fi
3345LN_S="$ac_cv_prog_LN_S"
3346if test "$ac_cv_prog_LN_S" = "ln -s"; then
3347 echo "$ac_t""yes" 1>&6
3348else
3349 echo "$ac_t""no" 1>&6
3350fi
3351
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003352# Extract the first word of "mv", so it can be a program name with args.
3353set dummy mv; ac_word=$2
3354echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003355echo "configure:3356: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003356if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3358else
3359 case "$MV" in
3360 /*)
3361 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3362 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003363 ?:/*)
3364 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3365 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003366 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3368 ac_dummy="$PATH"
3369 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003370 test -z "$ac_dir" && ac_dir=.
3371 if test -f $ac_dir/$ac_word; then
3372 ac_cv_path_MV="$ac_dir/$ac_word"
3373 break
3374 fi
3375 done
3376 IFS="$ac_save_ifs"
3377 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3378 ;;
3379esac
3380fi
3381MV="$ac_cv_path_MV"
3382if test -n "$MV"; then
3383 echo "$ac_t""$MV" 1>&6
3384else
3385 echo "$ac_t""no" 1>&6
3386fi
3387
3388# Extract the first word of "cp", so it can be a program name with args.
3389set dummy cp; ac_word=$2
3390echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003391echo "configure:3392: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003392if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394else
3395 case "$CP" in
3396 /*)
3397 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3398 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003399 ?:/*)
3400 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3401 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003402 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3404 ac_dummy="$PATH"
3405 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003406 test -z "$ac_dir" && ac_dir=.
3407 if test -f $ac_dir/$ac_word; then
3408 ac_cv_path_CP="$ac_dir/$ac_word"
3409 break
3410 fi
3411 done
3412 IFS="$ac_save_ifs"
3413 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3414 ;;
3415esac
3416fi
3417CP="$ac_cv_path_CP"
3418if test -n "$CP"; then
3419 echo "$ac_t""$CP" 1>&6
3420else
3421 echo "$ac_t""no" 1>&6
3422fi
3423
3424# Extract the first word of "rm", so it can be a program name with args.
3425set dummy rm; ac_word=$2
3426echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003427echo "configure:3428: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003428if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3430else
3431 case "$RM" in
3432 /*)
3433 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3434 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003435 ?:/*)
3436 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3437 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003438 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3440 ac_dummy="$PATH"
3441 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003442 test -z "$ac_dir" && ac_dir=.
3443 if test -f $ac_dir/$ac_word; then
3444 ac_cv_path_RM="$ac_dir/$ac_word"
3445 break
3446 fi
3447 done
3448 IFS="$ac_save_ifs"
3449 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3450 ;;
3451esac
3452fi
3453RM="$ac_cv_path_RM"
3454if test -n "$RM"; then
3455 echo "$ac_t""$RM" 1>&6
3456else
3457 echo "$ac_t""no" 1>&6
3458fi
3459
3460# Extract the first word of "chmod", so it can be a program name with args.
3461set dummy chmod; ac_word=$2
3462echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003463echo "configure:3464: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003464if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3466else
3467 case "$CHMOD" in
3468 /*)
3469 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3470 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003471 ?:/*)
3472 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3473 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003474 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3476 ac_dummy="$PATH"
3477 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003478 test -z "$ac_dir" && ac_dir=.
3479 if test -f $ac_dir/$ac_word; then
3480 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3481 break
3482 fi
3483 done
3484 IFS="$ac_save_ifs"
3485 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3486 ;;
3487esac
3488fi
3489CHMOD="$ac_cv_path_CHMOD"
3490if test -n "$CHMOD"; then
3491 echo "$ac_t""$CHMOD" 1>&6
3492else
3493 echo "$ac_t""no" 1>&6
3494fi
3495
3496# Extract the first word of "awk", so it can be a program name with args.
3497set dummy awk; ac_word=$2
3498echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003499echo "configure:3500: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003500if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3502else
3503 case "$AWK" in
3504 /*)
3505 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3506 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003507 ?:/*)
3508 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3509 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003510 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3512 ac_dummy="$PATH"
3513 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003514 test -z "$ac_dir" && ac_dir=.
3515 if test -f $ac_dir/$ac_word; then
3516 ac_cv_path_AWK="$ac_dir/$ac_word"
3517 break
3518 fi
3519 done
3520 IFS="$ac_save_ifs"
3521 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3522 ;;
3523esac
3524fi
3525AWK="$ac_cv_path_AWK"
3526if test -n "$AWK"; then
3527 echo "$ac_t""$AWK" 1>&6
3528else
3529 echo "$ac_t""no" 1>&6
3530fi
3531
3532# Extract the first word of "sed", so it can be a program name with args.
3533set dummy sed; ac_word=$2
3534echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003535echo "configure:3536: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003536if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3538else
3539 case "$SED" in
3540 /*)
3541 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3542 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003543 ?:/*)
3544 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3545 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003546 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3548 ac_dummy="$PATH"
3549 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003550 test -z "$ac_dir" && ac_dir=.
3551 if test -f $ac_dir/$ac_word; then
3552 ac_cv_path_SED="$ac_dir/$ac_word"
3553 break
3554 fi
3555 done
3556 IFS="$ac_save_ifs"
3557 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3558 ;;
3559esac
3560fi
3561SED="$ac_cv_path_SED"
3562if test -n "$SED"; then
3563 echo "$ac_t""$SED" 1>&6
3564else
3565 echo "$ac_t""no" 1>&6
3566fi
3567
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003568# Extract the first word of "perl", so it can be a program name with args.
3569set dummy perl; ac_word=$2
3570echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003571echo "configure:3572: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003572if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3574else
3575 case "$PERL" in
3576 /*)
3577 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3578 ;;
3579 ?:/*)
3580 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3581 ;;
3582 *)
3583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3584 ac_dummy="$PATH"
3585 for ac_dir in $ac_dummy; do
3586 test -z "$ac_dir" && ac_dir=.
3587 if test -f $ac_dir/$ac_word; then
3588 ac_cv_path_PERL="$ac_dir/$ac_word"
3589 break
3590 fi
3591 done
3592 IFS="$ac_save_ifs"
3593 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3594 ;;
3595esac
3596fi
3597PERL="$ac_cv_path_PERL"
3598if test -n "$PERL"; then
3599 echo "$ac_t""$PERL" 1>&6
3600else
3601 echo "$ac_t""no" 1>&6
3602fi
3603
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003604echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003605echo "configure:3606: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003606
3607build_alias=$build
3608case "$build_alias" in
3609NONE)
3610 case $nonopt in
3611 NONE) build_alias=$host_alias ;;
3612 *) build_alias=$nonopt ;;
3613 esac ;;
3614esac
3615
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003616build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003617build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3618build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3619build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003620echo "$ac_t""$build" 1>&6
3621
3622if test $host != $build; then
3623 ac_tool_prefix=${host_alias}-
3624else
3625 ac_tool_prefix=
3626fi
3627
3628# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3629set dummy ${ac_tool_prefix}ar; ac_word=$2
3630echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003631echo "configure:3632: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003632if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3634else
3635 if test -n "$AR"; then
3636 ac_cv_prog_AR="$AR" # Let the user override the test.
3637else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3639 ac_dummy="$PATH"
3640 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003641 test -z "$ac_dir" && ac_dir=.
3642 if test -f $ac_dir/$ac_word; then
3643 ac_cv_prog_AR="${ac_tool_prefix}ar"
3644 break
3645 fi
3646 done
3647 IFS="$ac_save_ifs"
3648fi
3649fi
3650AR="$ac_cv_prog_AR"
3651if test -n "$AR"; then
3652 echo "$ac_t""$AR" 1>&6
3653else
3654 echo "$ac_t""no" 1>&6
3655fi
3656
3657
3658if test -z "$ac_cv_prog_AR"; then
3659if test -n "$ac_tool_prefix"; then
3660 # Extract the first word of "ar", so it can be a program name with args.
3661set dummy ar; ac_word=$2
3662echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003663echo "configure:3664: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003664if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3666else
3667 if test -n "$AR"; then
3668 ac_cv_prog_AR="$AR" # Let the user override the test.
3669else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3671 ac_dummy="$PATH"
3672 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003673 test -z "$ac_dir" && ac_dir=.
3674 if test -f $ac_dir/$ac_word; then
3675 ac_cv_prog_AR="ar"
3676 break
3677 fi
3678 done
3679 IFS="$ac_save_ifs"
3680 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3681fi
3682fi
3683AR="$ac_cv_prog_AR"
3684if test -n "$AR"; then
3685 echo "$ac_t""$AR" 1>&6
3686else
3687 echo "$ac_t""no" 1>&6
3688fi
3689
3690else
3691 AR="ar"
3692fi
3693fi
3694
3695# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3696set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3697echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003698echo "configure:3699: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003699if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3701else
3702 if test -n "$RANLIB"; then
3703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3704else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3706 ac_dummy="$PATH"
3707 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003708 test -z "$ac_dir" && ac_dir=.
3709 if test -f $ac_dir/$ac_word; then
3710 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3711 break
3712 fi
3713 done
3714 IFS="$ac_save_ifs"
3715fi
3716fi
3717RANLIB="$ac_cv_prog_RANLIB"
3718if test -n "$RANLIB"; then
3719 echo "$ac_t""$RANLIB" 1>&6
3720else
3721 echo "$ac_t""no" 1>&6
3722fi
3723
3724
3725if test -z "$ac_cv_prog_RANLIB"; then
3726if test -n "$ac_tool_prefix"; then
3727 # Extract the first word of "ranlib", so it can be a program name with args.
3728set dummy ranlib; ac_word=$2
3729echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003730echo "configure:3731: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003731if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3733else
3734 if test -n "$RANLIB"; then
3735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3736else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3738 ac_dummy="$PATH"
3739 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003740 test -z "$ac_dir" && ac_dir=.
3741 if test -f $ac_dir/$ac_word; then
3742 ac_cv_prog_RANLIB="ranlib"
3743 break
3744 fi
3745 done
3746 IFS="$ac_save_ifs"
3747 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3748fi
3749fi
3750RANLIB="$ac_cv_prog_RANLIB"
3751if test -n "$RANLIB"; then
3752 echo "$ac_t""$RANLIB" 1>&6
3753else
3754 echo "$ac_t""no" 1>&6
3755fi
3756
3757else
3758 RANLIB=":"
3759fi
3760fi
3761
3762# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3763set dummy ${ac_tool_prefix}strip; ac_word=$2
3764echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003765echo "configure:3766: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003766if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3768else
3769 if test -n "$STRIP"; then
3770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3771else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3773 ac_dummy="$PATH"
3774 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003775 test -z "$ac_dir" && ac_dir=.
3776 if test -f $ac_dir/$ac_word; then
3777 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3778 break
3779 fi
3780 done
3781 IFS="$ac_save_ifs"
3782fi
3783fi
3784STRIP="$ac_cv_prog_STRIP"
3785if test -n "$STRIP"; then
3786 echo "$ac_t""$STRIP" 1>&6
3787else
3788 echo "$ac_t""no" 1>&6
3789fi
3790
3791
3792if test -z "$ac_cv_prog_STRIP"; then
3793if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "strip", so it can be a program name with args.
3795set dummy strip; ac_word=$2
3796echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003797echo "configure:3798: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003798if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3800else
3801 if test -n "$STRIP"; then
3802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3803else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3805 ac_dummy="$PATH"
3806 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003807 test -z "$ac_dir" && ac_dir=.
3808 if test -f $ac_dir/$ac_word; then
3809 ac_cv_prog_STRIP="strip"
3810 break
3811 fi
3812 done
3813 IFS="$ac_save_ifs"
3814 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3815fi
3816fi
3817STRIP="$ac_cv_prog_STRIP"
3818if test -n "$STRIP"; then
3819 echo "$ac_t""$STRIP" 1>&6
3820else
3821 echo "$ac_t""no" 1>&6
3822fi
3823
3824else
3825 STRIP=":"
3826fi
3827fi
3828
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003829# Find a good install program. We prefer a C program (faster),
3830# so one script is as good as another. But avoid the broken or
3831# incompatible versions:
3832# SysV /etc/install, /usr/sbin/install
3833# SunOS /usr/etc/install
3834# IRIX /sbin/install
3835# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003836# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003837# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3838# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3839# ./install, which can be erroneously created by make from ./install.sh.
3840echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003841echo "configure:3842: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003842if test -z "$INSTALL"; then
3843if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3845else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003846 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003847 for ac_dir in $PATH; do
3848 # Account for people who put trailing slashes in PATH elements.
3849 case "$ac_dir/" in
3850 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3851 *)
3852 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003853 # Don't use installbsd from OSF since it installs stuff as root
3854 # by default.
3855 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003856 if test -f $ac_dir/$ac_prog; then
3857 if test $ac_prog = install &&
3858 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3859 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003860 :
3861 else
3862 ac_cv_path_install="$ac_dir/$ac_prog -c"
3863 break 2
3864 fi
3865 fi
3866 done
3867 ;;
3868 esac
3869 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003870 IFS="$ac_save_IFS"
3871
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003872fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003873 if test "${ac_cv_path_install+set}" = set; then
3874 INSTALL="$ac_cv_path_install"
3875 else
3876 # As a last resort, use the slow shell script. We don't cache a
3877 # path for INSTALL within a source directory, because that will
3878 # break other packages using the cache if that directory is
3879 # removed, or if the path is relative.
3880 INSTALL="$ac_install_sh"
3881 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003882fi
3883echo "$ac_t""$INSTALL" 1>&6
3884
3885# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3886# It thinks the first close brace ends the variable substitution.
3887test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3888
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003889test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3890
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003891test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3892
Theodore Ts'o6c133521999-07-03 20:37:03 +00003893# See if we need a separate native compiler.
3894if test $cross_compiling = no; then
3895 BUILD_CC="$CC"
3896
3897else
3898 for ac_prog in gcc cc
3899do
3900# Extract the first word of "$ac_prog", so it can be a program name with args.
3901set dummy $ac_prog; ac_word=$2
3902echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003903echo "configure:3904: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00003904if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906else
3907 if test -n "$BUILD_CC"; then
3908 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3909else
3910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3911 ac_dummy="$PATH"
3912 for ac_dir in $ac_dummy; do
3913 test -z "$ac_dir" && ac_dir=.
3914 if test -f $ac_dir/$ac_word; then
3915 ac_cv_prog_BUILD_CC="$ac_prog"
3916 break
3917 fi
3918 done
3919 IFS="$ac_save_ifs"
3920fi
3921fi
3922BUILD_CC="$ac_cv_prog_BUILD_CC"
3923if test -n "$BUILD_CC"; then
3924 echo "$ac_t""$BUILD_CC" 1>&6
3925else
3926 echo "$ac_t""no" 1>&6
3927fi
3928
3929test -n "$BUILD_CC" && break
3930done
3931
3932fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003933for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003934do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003935ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003936echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003937echo "configure:3938: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003938if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3940else
3941 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003942#line 3943 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003943#include "confdefs.h"
3944#include <$ac_hdr>
3945EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003946ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003947{ (eval echo configure:3948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003948ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003949if test -z "$ac_err"; then
3950 rm -rf conftest*
3951 eval "ac_cv_header_$ac_safe=yes"
3952else
3953 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003956 rm -rf conftest*
3957 eval "ac_cv_header_$ac_safe=no"
3958fi
3959rm -f conftest*
3960fi
3961if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003964 cat >> confdefs.h <<EOF
3965#define $ac_tr_hdr 1
3966EOF
3967
3968else
3969 echo "$ac_t""no" 1>&6
3970fi
3971done
3972
3973echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003974echo "configure:3975: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003975if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3977else
3978 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003979#line 3980 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003980#include "confdefs.h"
3981/* System header to define __stub macros and hopefully few prototypes,
3982 which can conflict with char vprintf(); below. */
3983#include <assert.h>
3984/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003985/* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3987char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003988
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003989int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003990
3991/* The GNU C library defines this for functions which it implements
3992 to always fail with ENOSYS. Some functions are actually named
3993 something starting with __ and the normal name is an alias. */
3994#if defined (__stub_vprintf) || defined (__stub___vprintf)
3995choke me
3996#else
3997vprintf();
3998#endif
3999
4000; return 0; }
4001EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004002if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004003 rm -rf conftest*
4004 eval "ac_cv_func_vprintf=yes"
4005else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004008 rm -rf conftest*
4009 eval "ac_cv_func_vprintf=no"
4010fi
4011rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004012fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004013
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004014if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4015 echo "$ac_t""yes" 1>&6
4016 cat >> confdefs.h <<\EOF
4017#define HAVE_VPRINTF 1
4018EOF
4019
4020else
4021 echo "$ac_t""no" 1>&6
4022fi
4023
4024if test "$ac_cv_func_vprintf" != yes; then
4025echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004026echo "configure:4027: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004027if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4029else
4030 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004031#line 4032 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004032#include "confdefs.h"
4033/* System header to define __stub macros and hopefully few prototypes,
4034 which can conflict with char _doprnt(); below. */
4035#include <assert.h>
4036/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004037/* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4039char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004040
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004041int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004042
4043/* The GNU C library defines this for functions which it implements
4044 to always fail with ENOSYS. Some functions are actually named
4045 something starting with __ and the normal name is an alias. */
4046#if defined (__stub__doprnt) || defined (__stub____doprnt)
4047choke me
4048#else
4049_doprnt();
4050#endif
4051
4052; return 0; }
4053EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004054if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004055 rm -rf conftest*
4056 eval "ac_cv_func__doprnt=yes"
4057else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004060 rm -rf conftest*
4061 eval "ac_cv_func__doprnt=no"
4062fi
4063rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004064fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004065
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004066if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4067 echo "$ac_t""yes" 1>&6
4068 cat >> confdefs.h <<\EOF
4069#define HAVE_DOPRNT 1
4070EOF
4071
4072else
4073 echo "$ac_t""no" 1>&6
4074fi
4075
4076fi
4077
4078echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004079echo "configure:4080: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004080if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4081 echo $ac_n "(cached) $ac_c" 1>&6
4082else
4083 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004084#line 4085 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004085#include "confdefs.h"
4086#include <sys/types.h>
4087#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004088int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004089struct dirent de; de.d_namlen = 0;
4090; return 0; }
4091EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004092if { (eval echo configure:4093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004093 rm -rf conftest*
4094 e2fsprogs_cv_struct_d_namlen=yes
4095else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004098 rm -rf conftest*
4099 e2fsprogs_cv_struct_d_namlen=no
4100fi
4101rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004102fi
4103
4104echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4105if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4106 cat >> confdefs.h <<\EOF
4107#define HAVE_DIRENT_NAMLEN 1
4108EOF
4109
4110fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004111echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004112echo "configure:4113: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004113if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4114 echo $ac_n "(cached) $ac_c" 1>&6
4115else
4116 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004117#line 4118 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004118#include "confdefs.h"
4119#include <unistd.h>
4120int main() {
4121extern int llseek(int);
4122; return 0; }
4123EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004124if { (eval echo configure:4125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004125 rm -rf conftest*
4126 e2fsprogs_cv_have_llseek_prototype=no
4127else
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4130 rm -rf conftest*
4131 e2fsprogs_cv_have_llseek_prototype=yes
4132fi
4133rm -f conftest*
4134fi
4135
4136echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4137if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4138 cat >> confdefs.h <<\EOF
4139#define HAVE_LLSEEK_PROTOTYPE 1
4140EOF
4141
4142fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004143echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004144echo "configure:4145: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004145if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4147else
4148 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004149#line 4150 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004150#include "confdefs.h"
4151#define _LARGEFILE_SOURCE
4152#define _LARGEFILE64_SOURCE
4153#include <unistd.h>
4154int main() {
4155extern int lseek64(int);
4156; return 0; }
4157EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004158if { (eval echo configure:4159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004159 rm -rf conftest*
4160 e2fsprogs_cv_have_lseek64_prototype=no
4161else
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4164 rm -rf conftest*
4165 e2fsprogs_cv_have_lseek64_prototype=yes
4166fi
4167rm -f conftest*
4168fi
4169
4170echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4171if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4172 cat >> confdefs.h <<\EOF
4173#define HAVE_LSEEK64_PROTOTYPE 1
4174EOF
4175
4176fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004177if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4178 # if cross-compiling, with no cached values, just assume something common.
4179 ac_cv_sizeof_short=2
4180 ac_cv_sizeof_int=4
4181 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004182 ac_cv_sizeof_long_long=8
4183 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004184fi
4185echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004186echo "configure:4187: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004187if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4189else
4190 if test "$cross_compiling" = yes; then
4191 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4192else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004193 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004194#line 4195 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004195#include "confdefs.h"
4196#include <stdio.h>
4197main()
4198{
4199 FILE *f=fopen("conftestval", "w");
4200 if (!f) exit(1);
4201 fprintf(f, "%d\n", sizeof(short));
4202 exit(0);
4203}
4204EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004205if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004206then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004207 ac_cv_sizeof_short=`cat conftestval`
4208else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4211 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004212 ac_cv_sizeof_short=0
4213fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004214rm -fr conftest*
4215fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004216
4217fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004218echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4219cat >> confdefs.h <<EOF
4220#define SIZEOF_SHORT $ac_cv_sizeof_short
4221EOF
4222
4223
4224echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004225echo "configure:4226: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004226if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4228else
4229 if test "$cross_compiling" = yes; then
4230 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4231else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004232 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004233#line 4234 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004234#include "confdefs.h"
4235#include <stdio.h>
4236main()
4237{
4238 FILE *f=fopen("conftestval", "w");
4239 if (!f) exit(1);
4240 fprintf(f, "%d\n", sizeof(int));
4241 exit(0);
4242}
4243EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004244if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004245then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004246 ac_cv_sizeof_int=`cat conftestval`
4247else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004251 ac_cv_sizeof_int=0
4252fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004253rm -fr conftest*
4254fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004255
4256fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004257echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4258cat >> confdefs.h <<EOF
4259#define SIZEOF_INT $ac_cv_sizeof_int
4260EOF
4261
4262
4263echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004264echo "configure:4265: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004265if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4267else
4268 if test "$cross_compiling" = yes; then
4269 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4270else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004271 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004272#line 4273 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004273#include "confdefs.h"
4274#include <stdio.h>
4275main()
4276{
4277 FILE *f=fopen("conftestval", "w");
4278 if (!f) exit(1);
4279 fprintf(f, "%d\n", sizeof(long));
4280 exit(0);
4281}
4282EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004283if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004284then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004285 ac_cv_sizeof_long=`cat conftestval`
4286else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4289 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004290 ac_cv_sizeof_long=0
4291fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004292rm -fr conftest*
4293fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004294
4295fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004296echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4297cat >> confdefs.h <<EOF
4298#define SIZEOF_LONG $ac_cv_sizeof_long
4299EOF
4300
4301
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004302echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004303echo "configure:4304: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004304if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4306else
4307 if test "$cross_compiling" = yes; then
4308 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4309else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004310 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004311#line 4312 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004312#include "confdefs.h"
4313#include <stdio.h>
4314main()
4315{
4316 FILE *f=fopen("conftestval", "w");
4317 if (!f) exit(1);
4318 fprintf(f, "%d\n", sizeof(long long));
4319 exit(0);
4320}
4321EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004322if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004323then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004324 ac_cv_sizeof_long_long=`cat conftestval`
4325else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004329 ac_cv_sizeof_long_long=0
4330fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004331rm -fr conftest*
4332fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004333
4334fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004335echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4336cat >> confdefs.h <<EOF
4337#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4338EOF
4339
4340
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004341SIZEOF_SHORT=$ac_cv_sizeof_short
4342SIZEOF_INT=$ac_cv_sizeof_int
4343SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004344SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4345
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004346
4347
4348
4349echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004350echo "configure:4351: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004351if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4353else
4354 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004355#line 4356 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004356#include "confdefs.h"
4357#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004358int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004359struct stat stat; stat.st_flags = 0;
4360; return 0; }
4361EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004362if { (eval echo configure:4363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004363 rm -rf conftest*
4364 e2fsprogs_cv_struct_st_flags=yes
4365else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004368 rm -rf conftest*
4369 e2fsprogs_cv_struct_st_flags=no
4370fi
4371rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004372fi
4373
4374echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4375if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004376 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004377echo "configure:4378: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004378 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4380else
4381 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004382#line 4383 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004383#include "confdefs.h"
4384#include <sys/stat.h>
4385int main() {
4386struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4387; return 0; }
4388EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004389if { (eval echo configure:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004390 rm -rf conftest*
4391 e2fsprogs_cv_struct_st_flags_immut=yes
4392else
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4395 rm -rf conftest*
4396 e2fsprogs_cv_struct_st_flags_immut=no
4397fi
4398rm -f conftest*
4399fi
4400
4401 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4402 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4403 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004404#define HAVE_STAT_FLAGS 1
4405EOF
4406
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004407 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004408fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004409for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004410do
4411echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004412echo "configure:4413: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004413if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4415else
4416 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004417#line 4418 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004418#include "confdefs.h"
4419/* System header to define __stub macros and hopefully few prototypes,
4420 which can conflict with char $ac_func(); below. */
4421#include <assert.h>
4422/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004423/* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4425char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004426
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004427int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004428
4429/* The GNU C library defines this for functions which it implements
4430 to always fail with ENOSYS. Some functions are actually named
4431 something starting with __ and the normal name is an alias. */
4432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4433choke me
4434#else
4435$ac_func();
4436#endif
4437
4438; return 0; }
4439EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004440if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004441 rm -rf conftest*
4442 eval "ac_cv_func_$ac_func=yes"
4443else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004446 rm -rf conftest*
4447 eval "ac_cv_func_$ac_func=no"
4448fi
4449rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004450fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004451
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004452if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004455 cat >> confdefs.h <<EOF
4456#define $ac_tr_func 1
4457EOF
4458
4459else
4460 echo "$ac_t""no" 1>&6
4461fi
4462done
4463
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004464SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004465echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004466echo "configure:4467: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004467ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4468if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004469 echo $ac_n "(cached) $ac_c" 1>&6
4470else
4471 ac_save_LIBS="$LIBS"
4472LIBS="-lsocket $LIBS"
4473cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004474#line 4475 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004475#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004476/* Override any gcc2 internal prototype to avoid an error. */
4477/* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4479char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004480
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004481int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004482socket()
4483; return 0; }
4484EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004485if { (eval echo configure:4486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004486 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004487 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004488else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004489 echo "configure: failed program was:" >&5
4490 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004491 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004492 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004493fi
4494rm -f conftest*
4495LIBS="$ac_save_LIBS"
4496
4497fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004498if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004499 echo "$ac_t""yes" 1>&6
4500 SOCKET_LIB=-lsocket
4501else
4502 echo "$ac_t""no" 1>&6
4503fi
4504
4505
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004506echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004507echo "configure:4508: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004508if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4510else
4511 cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004512#line 4513 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004513#include "confdefs.h"
4514#include <unistd.h>
4515EOF
4516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517 egrep "optreset" >/dev/null 2>&1; then
4518 rm -rf conftest*
4519 ac_cv_have_optreset=yes
4520else
4521 rm -rf conftest*
4522 ac_cv_have_optreset=no
4523fi
4524rm -f conftest*
4525
4526fi
4527echo "$ac_t""$ac_cv_have_optreset" 1>&6
4528if test $ac_cv_have_optreset = yes; then
4529 cat >> confdefs.h <<\EOF
4530#define HAVE_OPTRESET 1
4531EOF
4532
4533fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004534case "$host_os" in
4535linux*)
4536 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004537#define HAVE_EXT2_IOCTLS 1
4538EOF
4539
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004540 ;;
4541esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004542case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004543linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004544 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4545 root_prefix="";
4546 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004547 fi
4548 ;;
4549esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004550case "$host_os" in
4551linux* | gnu*)
4552 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004553 prefix="/usr";
4554 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004555 fi
4556;;
4557esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004558if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004559 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004560 root_prefix="$ac_default_prefix"
4561 else
4562 root_prefix="$prefix"
4563 fi
4564fi
4565
Theodore Ts'oae851481997-04-29 18:13:24 +00004566echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004567echo "configure:4568: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004568if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4570else
4571 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4572cat > conftest.$ac_ext <<EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004573#line 4574 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004574#include "confdefs.h"
4575#include <stdio.h>
4576int main() {
4577fflush(stdout);
4578; return 0; }
4579EOF
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004580if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004581 rm -rf conftest*
4582 ac_cv_e2fsprogs_use_static=yes
4583else
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4586 rm -rf conftest*
4587 ac_cv_e2fsprogs_use_static=no
4588fi
4589rm -f conftest*
4590LDFLAGS=$SAVE_LDFLAGS
4591fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004592
Theodore Ts'odefde781999-01-04 07:39:19 +00004593case "$host_os" in
4594solaris2.*)
4595 ac_cv_e2fsprogs_use_static=no
4596;;
4597esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004598echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004599LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004600if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004601 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004602fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004603
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004604SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4605ET_DIR=`cd ${srcdir}/lib/et; pwd`
4606
4607
4608if test "$cross_compiling" = yes ; then
4609 DO_TEST_SUITE=
4610else
4611 DO_TEST_SUITE=check
4612fi
4613
4614test -d lib || mkdir lib
4615test -d include || mkdir include
4616test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004617test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004618rmakefile=
4619if test -d ${srcdir}/resize ; then
4620 rmakefile=resize/Makefile
4621fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004622trap '' 1 2 15
4623cat > confcache <<\EOF
4624# This file is a shell script that caches the results of configure
4625# tests run on this system so they can be shared between configure
4626# scripts and configure runs. It is not useful on other systems.
4627# If it contains results you don't want to keep, you may remove or edit it.
4628#
4629# By default, configure uses ./config.cache as the cache file,
4630# creating it if it does not exist already. You can give configure
4631# the --cache-file=FILE option to use a different cache file; that is
4632# what configure does when it calls configure scripts in
4633# subdirectories, so they share the cache.
4634# Giving --cache-file=/dev/null disables caching, for debugging configure.
4635# config.status only pays attention to the cache file if you give it the
4636# --recheck option to rerun configure.
4637#
4638EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004639# The following way of writing the cache mishandles newlines in values,
4640# but we know of no workaround that is simple, portable, and efficient.
4641# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004642# Ultrix sh set writes to stderr and can't be redirected directly,
4643# and sets the high bit in the cache file unless we assign to the vars.
4644(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004645 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004646 *ac_space=\ *)
4647 # `set' does not quote correctly, so add quotes (double-quote substitution
4648 # turns \\\\ into \\, and sed turns \\ into \).
4649 sed -n \
4650 -e "s/'/'\\\\''/g" \
4651 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4652 ;;
4653 *)
4654 # `set' quotes correctly as required by POSIX, so do not add quotes.
4655 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4656 ;;
4657 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004658if cmp -s $cache_file confcache; then
4659 :
4660else
4661 if test -w $cache_file; then
4662 echo "updating cache $cache_file"
4663 cat confcache > $cache_file
4664 else
4665 echo "not updating unwritable cache $cache_file"
4666 fi
4667fi
4668rm -f confcache
4669
4670trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4671
4672test "x$prefix" = xNONE && prefix=$ac_default_prefix
4673# Let make expand exec_prefix.
4674test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4675
4676# Any assignment to VPATH causes Sun make to only execute
4677# the first set of double-colon rules, so remove it if not needed.
4678# If there is a colon in the path, we need to keep it.
4679if test "x$srcdir" = x.; then
4680 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4681fi
4682
4683trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4684
4685# Transform confdefs.h into DEFS.
4686# Protect against shell expansion while executing Makefile rules.
4687# Protect against Makefile macro expansion.
4688cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004689s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004690s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4691s%\[%\\&%g
4692s%\]%\\&%g
4693s%\$%$$%g
4694EOF
4695DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4696rm -f conftest.defs
4697
4698
4699# Without the "./", some shells look in PATH for config.status.
4700: ${CONFIG_STATUS=./config.status}
4701
4702echo creating $CONFIG_STATUS
4703rm -f $CONFIG_STATUS
4704cat > $CONFIG_STATUS <<EOF
4705#! /bin/sh
4706# Generated automatically by configure.
4707# Run this file to recreate the current configuration.
4708# This directory was configured as follows,
4709# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4710#
4711# $0 $ac_configure_args
4712#
4713# Compiler output produced by configure, useful for debugging
4714# configure, is in ./config.log if it exists.
4715
4716ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4717for ac_option
4718do
4719 case "\$ac_option" in
4720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4721 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4722 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4723 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004724 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004725 exit 0 ;;
4726 -help | --help | --hel | --he | --h)
4727 echo "\$ac_cs_usage"; exit 0 ;;
4728 *) echo "\$ac_cs_usage"; exit 1 ;;
4729 esac
4730done
4731
4732ac_given_srcdir=$srcdir
4733ac_given_INSTALL="$INSTALL"
4734
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004735trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004736 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4737 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004738 tests/progs/Makefile $rmakefile doc/Makefile
4739 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004740EOF
4741cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004742
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004743# Protect against being on the right side of a sed subst in config.status.
4744sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4745 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004746$ac_vpsub
4747$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004748s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004749s%@CFLAGS@%$CFLAGS%g
4750s%@CPPFLAGS@%$CPPFLAGS%g
4751s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004752s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004753s%@DEFS@%$DEFS%g
4754s%@LDFLAGS@%$LDFLAGS%g
4755s%@LIBS@%$LIBS%g
4756s%@exec_prefix@%$exec_prefix%g
4757s%@prefix@%$prefix%g
4758s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004759s%@bindir@%$bindir%g
4760s%@sbindir@%$sbindir%g
4761s%@libexecdir@%$libexecdir%g
4762s%@datadir@%$datadir%g
4763s%@sysconfdir@%$sysconfdir%g
4764s%@sharedstatedir@%$sharedstatedir%g
4765s%@localstatedir@%$localstatedir%g
4766s%@libdir@%$libdir%g
4767s%@includedir@%$includedir%g
4768s%@oldincludedir@%$oldincludedir%g
4769s%@infodir@%$infodir%g
4770s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004771/@MCONFIG@/r $MCONFIG
4772s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004773s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4774s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4775s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004776s%@host@%$host%g
4777s%@host_alias@%$host_alias%g
4778s%@host_cpu@%$host_cpu%g
4779s%@host_vendor@%$host_vendor%g
4780s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004781s%@CC@%$CC%g
4782s%@LD@%$LD%g
4783s%@CCOPTS@%$CCOPTS%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004784s%@CPP@%$CPP%g
4785s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004786s%@DLL_CMT@%$DLL_CMT%g
4787/@MAKEFILE_DLL@/r $MAKEFILE_DLL
4788s%@MAKEFILE_DLL@%%g
4789s%@ELF_CMT@%$ELF_CMT%g
4790/@MAKEFILE_ELF@/r $MAKEFILE_ELF
4791s%@MAKEFILE_ELF@%%g
4792s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4793/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4794s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004795s%@PACKAGE@%$PACKAGE%g
4796s%@VERSION@%$VERSION%g
4797s%@SET_MAKE@%$SET_MAKE%g
4798s%@RANLIB@%$RANLIB%g
4799s%@ALLOCA@%$ALLOCA%g
4800s%@USE_NLS@%$USE_NLS%g
4801s%@MSGFMT@%$MSGFMT%g
4802s%@GMSGFMT@%$GMSGFMT%g
4803s%@XGETTEXT@%$XGETTEXT%g
4804s%@GENCAT@%$GENCAT%g
4805s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4806s%@CATALOGS@%$CATALOGS%g
4807s%@CATOBJEXT@%$CATOBJEXT%g
4808s%@DATADIRNAME@%$DATADIRNAME%g
4809s%@GMOFILES@%$GMOFILES%g
4810s%@INSTOBJEXT@%$INSTOBJEXT%g
4811s%@INTLDEPS@%$INTLDEPS%g
4812s%@INTLLIBS@%$INTLLIBS%g
4813s%@INTLOBJS@%$INTLOBJS%g
4814s%@POFILES@%$POFILES%g
4815s%@POSUB@%$POSUB%g
4816s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4817s%@GT_NO@%$GT_NO%g
4818s%@GT_YES@%$GT_YES%g
4819s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4820s%@l@%$l%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004821s%@PROFILE_CMT@%$PROFILE_CMT%g
4822/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4823s%@MAKEFILE_PROFILE@%%g
4824s%@CHECKER_CMT@%$CHECKER_CMT%g
4825/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4826s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004827s%@LIB_EXT@%$LIB_EXT%g
4828s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4829s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004830s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004831s%@FSCK_PROG@%$FSCK_PROG%g
4832s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004833/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4834s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004835s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004836s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004837s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004838s%@MV@%$MV%g
4839s%@CP@%$CP%g
4840s%@RM@%$RM%g
4841s%@CHMOD@%$CHMOD%g
4842s%@AWK@%$AWK%g
4843s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004844s%@PERL@%$PERL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004845s%@build@%$build%g
4846s%@build_alias@%$build_alias%g
4847s%@build_cpu@%$build_cpu%g
4848s%@build_vendor@%$build_vendor%g
4849s%@build_os@%$build_os%g
4850s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004851s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004852s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004853s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004854s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00004855s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004856s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4857s%@SIZEOF_INT@%$SIZEOF_INT%g
4858s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004859s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004860s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004861s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004862s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004863s%@SS_DIR@%$SS_DIR%g
4864s%@ET_DIR@%$ET_DIR%g
4865s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
4866
4867CEOF
4868EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004869
4870cat >> $CONFIG_STATUS <<\EOF
4871
4872# Split the substitutions into bite-sized pieces for seds with
4873# small command number limits, like on Digital OSF/1 and HP-UX.
4874ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4875ac_file=1 # Number of current file.
4876ac_beg=1 # First line for current file.
4877ac_end=$ac_max_sed_cmds # Line after last line for current file.
4878ac_more_lines=:
4879ac_sed_cmds=""
4880while $ac_more_lines; do
4881 if test $ac_beg -gt 1; then
4882 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4883 else
4884 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4885 fi
4886 if test ! -s conftest.s$ac_file; then
4887 ac_more_lines=false
4888 rm -f conftest.s$ac_file
4889 else
4890 if test -z "$ac_sed_cmds"; then
4891 ac_sed_cmds="sed -f conftest.s$ac_file"
4892 else
4893 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4894 fi
4895 ac_file=`expr $ac_file + 1`
4896 ac_beg=$ac_end
4897 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4898 fi
4899done
4900if test -z "$ac_sed_cmds"; then
4901 ac_sed_cmds=cat
4902fi
4903EOF
4904
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004905cat >> $CONFIG_STATUS <<EOF
4906
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004907CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004908 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4909 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004910 tests/progs/Makefile $rmakefile doc/Makefile
4911 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004912EOF
4913cat >> $CONFIG_STATUS <<\EOF
4914for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004915 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004916 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004917 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004918 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4919 *) ac_file_in="${ac_file}.in" ;;
4920 esac
4921
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004922 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004923
4924 # Remove last slash and all that follows it. Not all systems have dirname.
4925 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4926 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4927 # The file is in a subdirectory.
4928 test ! -d "$ac_dir" && mkdir "$ac_dir"
4929 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4930 # A "../" for each directory in $ac_dir_suffix.
4931 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4932 else
4933 ac_dir_suffix= ac_dots=
4934 fi
4935
4936 case "$ac_given_srcdir" in
4937 .) srcdir=.
4938 if test -z "$ac_dots"; then top_srcdir=.
4939 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4940 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4941 *) # Relative path.
4942 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4943 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4944 esac
4945
4946 case "$ac_given_INSTALL" in
4947 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4948 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4949 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004950
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004951 echo creating "$ac_file"
4952 rm -f "$ac_file"
4953 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4954 case "$ac_file" in
4955 *Makefile*) ac_comsub="1i\\
4956# $configure_input" ;;
4957 *) ac_comsub= ;;
4958 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004959
4960 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 +00004961 sed -e "$ac_comsub
4962s%@configure_input@%$configure_input%g
4963s%@srcdir@%$srcdir%g
4964s%@top_srcdir@%$top_srcdir%g
4965s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004966" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004967fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004968rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004969
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004970EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004971
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004972cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004973ac_sources="$nls_cv_header_libgt"
4974ac_dests="$nls_cv_header_intl"
4975EOF
4976
4977cat >> $CONFIG_STATUS <<\EOF
4978srcdir=$ac_given_srcdir
4979while test -n "$ac_sources"; do
4980 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4981 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4982
4983 echo "linking $srcdir/$ac_source to $ac_dest"
4984
4985 if test ! -r $srcdir/$ac_source; then
4986 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4987 fi
4988 rm -f $ac_dest
4989
4990 # Make relative symlinks.
4991 # Remove last slash and all that follows it. Not all systems have dirname.
4992 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4993 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4994 # The dest file is in a subdirectory.
4995 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4996 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4997 # A "../" for each directory in $ac_dest_dir_suffix.
4998 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4999 else
5000 ac_dest_dir_suffix= ac_dots=
5001 fi
5002
5003 case "$srcdir" in
5004 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5005 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5006 esac
5007
5008 # Make a symlink if possible; otherwise try a hard link.
5009 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5010 ln $srcdir/$ac_source $ac_dest; then :
5011 else
5012 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5013 fi
5014done
5015EOF
5016cat >> $CONFIG_STATUS <<EOF
5017
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005018
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005019EOF
5020cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005021case "$CONFIG_FILES" in *po/Makefile.in*)
5022 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5023 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005024
5025exit 0
5026EOF
5027chmod +x $CONFIG_STATUS
5028rm -fr confdefs* $ac_clean_files
5029test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5030