blob: 7972a30755924be8d61a6466516bc21c29f95391 [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'ob0b9c4d1997-10-20 23:36:30 +000045 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
Theodore Ts'oa4d09611997-04-29 14:28:00 +000046ac_help="$ac_help
47 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000048ac_help="$ac_help
49 --enable-fsck build fsck wrapper program"
50ac_help="$ac_help
51 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000052
53# Initialize some variables set by options.
54# The variables have the same names as the options, with
55# dashes changed to underlines.
56build=NONE
57cache_file=./config.cache
58exec_prefix=NONE
59host=NONE
60no_create=
61nonopt=NONE
62no_recursion=
63prefix=NONE
64program_prefix=NONE
65program_suffix=NONE
66program_transform_name=s,x,x,
67silent=
68site=
69srcdir=
70target=NONE
71verbose=
72x_includes=NONE
73x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000074bindir='${exec_prefix}/bin'
75sbindir='${exec_prefix}/sbin'
76libexecdir='${exec_prefix}/libexec'
77datadir='${prefix}/share'
78sysconfdir='${prefix}/etc'
79sharedstatedir='${prefix}/com'
80localstatedir='${prefix}/var'
81libdir='${exec_prefix}/lib'
82includedir='${prefix}/include'
83oldincludedir='/usr/include'
84infodir='${prefix}/info'
85mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000086
87# Initialize some other variables.
88subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000089MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000090SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000091# Maximum number of lines to put in a shell here document.
92ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000093
94ac_prev=
95for ac_option
96do
97
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
101 ac_prev=
102 continue
103 fi
104
105 case "$ac_option" in
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107 *) ac_optarg= ;;
108 esac
109
110 # Accept the important Cygnus configure options, so we can diagnose typos.
111
112 case "$ac_option" in
113
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
115 ac_prev=bindir ;;
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
118
119 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000120 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000122 build="$ac_optarg" ;;
123
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
130
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
132 ac_prev=datadir ;;
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
134 | --da=*)
135 datadir="$ac_optarg" ;;
136
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 fi
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
145
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 fi
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 case "$ac_option" in
154 *=*) ;;
155 *) ac_optarg=yes ;;
156 esac
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
158
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
167
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
170 with_gas=yes ;;
171
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
175 cat << EOF
176Usage: configure [options] [host]
177Options: [defaults in brackets after descriptions]
178Configuration:
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
186 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000188 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
193 [PREFIX/share]
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
196 [PREFIX/com]
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
208EOF
209 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000210Host type:
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000221EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
224 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000225 exit 0 ;;
226
227 -host | --host | --hos | --ho)
228 ac_prev=host ;;
229 -host=* | --host=* | --hos=* | --ho=*)
230 host="$ac_optarg" ;;
231
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
238
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
240 ac_prev=infodir ;;
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
243
244 -libdir | --libdir | --libdi | --libd)
245 ac_prev=libdir ;;
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
248
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
255
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
264
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266 ac_prev=mandir ;;
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
269
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000270 -nfp | --nfp | --nf)
271 # Obsolete; use --without-fp.
272 with_fp=no ;;
273
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c)
276 no_create=yes ;;
277
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 no_recursion=yes ;;
281
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
290
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292 ac_prev=prefix ;;
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
295
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
302
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
309
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
326
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
329 silent=yes ;;
330
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332 ac_prev=sbindir ;;
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334 | --sbi=* | --sb=*)
335 sbindir="$ac_optarg" ;;
336
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
340 | --sha | --sh)
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345 | --sha=* | --sh=*)
346 sharedstatedir="$ac_optarg" ;;
347
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000348 -site | --site | --sit)
349 ac_prev=site ;;
350 -site=* | --site=* | --sit=*)
351 site="$ac_optarg" ;;
352
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
354 ac_prev=srcdir ;;
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
357
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
364
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000365 -target | --target | --targe | --targ | --tar | --ta | --t)
366 ac_prev=target ;;
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
369
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
371 verbose=yes ;;
372
373 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000374 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000375 exit 0 ;;
376
377 -with-* | --with-*)
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 fi
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 case "$ac_option" in
385 *=*) ;;
386 *) ac_optarg=yes ;;
387 esac
388 eval "with_${ac_package}='$ac_optarg'" ;;
389
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 fi
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
398
399 --x)
400 # Obsolete; use --with-x.
401 with_x=yes ;;
402
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
409
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
416
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
418 ;;
419
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000420 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
423 fi
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 fi
427 nonopt="$ac_option"
428 ;;
429
430 esac
431done
432
433if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435fi
436
437trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438
439# File descriptor usage:
440# 0 standard input
441# 1 file creation
442# 2 errors and warnings
443# 3 some systems may open it to /dev/tty
444# 4 used on the Kubota Titan
445# 6 checking for... messages and results
446# 5 compiler messages saved in config.log
447if test "$silent" = yes; then
448 exec 6>/dev/null
449else
450 exec 6>&1
451fi
452exec 5>./config.log
453
454echo "\
455This file contains any messages produced by compilers while
456running configure, to aid debugging if configure makes a mistake.
457" 1>&5
458
459# Strip out --no-create and --no-recursion so they do not pile up.
460# Also quote any args containing shell metacharacters.
461ac_configure_args=
462for ac_arg
463do
464 case "$ac_arg" in
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472 esac
473done
474
475# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000476# Only set these to C if already set. These must not be set unconditionally
477# because not all systems understand e.g. LANG=C (notably SCO).
478# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000480if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000481if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000484
485# confdefs.h avoids OS command line length limits that DEFS can exceed.
486rm -rf conftest* confdefs.h
487# AIX cpp loses on an empty file, so make sure it contains at least a newline.
488echo > confdefs.h
489
490# A filename unique to this package, relative to the directory that
491# configure is in, which we can look for to find out if srcdir is correct.
492ac_unique_file=version.h
493
494# Find the source files, if location was not specified.
495if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
498 ac_prog=$0
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501 srcdir=$ac_confdir
502 if test ! -r $srcdir/$ac_unique_file; then
503 srcdir=..
504 fi
505else
506 ac_srcdir_defaulted=no
507fi
508if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511 else
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 fi
514fi
515srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516
517# Prefer explicitly selected file to automatically selected ones.
518if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
521 else
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 fi
524fi
525for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
528 . "$ac_site_file"
529 fi
530done
531
532if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
534 . $cache_file
535else
536 echo "creating cache $cache_file"
537 > $cache_file
538fi
539
540ac_ext=c
541# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000543ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000544ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000545cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000546
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000547ac_exeext=
548ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000549if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='
553' ac_t=' '
554 else
555 ac_n=-n ac_c= ac_t=
556 fi
557else
558 ac_n= ac_c='\c' ac_t=
559fi
560
561
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000562
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000563MCONFIG=./MCONFIG
564
Theodore Ts'o74becf31997-04-26 14:37:06 +0000565BINARY_TYPE=bin
566E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
567 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
568DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
569 | tr \" " "`
570MONTH=`echo $DATE | awk -F- '{print $2}'`
571YEAR=`echo $DATE | awk -F- '{print $3}'`
572
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000573if expr $YEAR ">" 1900 > /dev/null ; then
574 E2FSPROGS_YEAR=$YEAR
575elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000576 E2FSPROGS_YEAR=19$YEAR
577else
578 E2FSPROGS_YEAR=20$YEAR
579fi
580
581case $MONTH in
582Jan) E2FSPROGS_MONTH="January" ;;
583Feb) E2FSPROGS_MONTH="February" ;;
584Mar) E2FSPROGS_MONTH="March" ;;
585Apr) E2FSPROGS_MONTH="April" ;;
586May) E2FSPROGS_MONTH="May" ;;
587Jun) E2FSPROGS_MONTH="June" ;;
588Jul) E2FSPROGS_MONTH="July" ;;
589Aug) E2FSPROGS_MONTH="August" ;;
590Sep) E2FSPROGS_MONTH="September" ;;
591Oct) E2FSPROGS_MONTH="October" ;;
592Nov) E2FSPROGS_MONTH="November" ;;
593Dec) E2FSPROGS_MONTH="December" ;;
594*) echo "Unknown month $MONTH??" ;;
595esac
596
597unset DATE MONTH YEAR
598echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
599echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
600
601
602
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000603
604ac_aux_dir=
605for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
606 if test -f $ac_dir/install-sh; then
607 ac_aux_dir=$ac_dir
608 ac_install_sh="$ac_aux_dir/install-sh -c"
609 break
610 elif test -f $ac_dir/install.sh; then
611 ac_aux_dir=$ac_dir
612 ac_install_sh="$ac_aux_dir/install.sh -c"
613 break
614 fi
615done
616if test -z "$ac_aux_dir"; then
617 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
618fi
619ac_config_guess=$ac_aux_dir/config.guess
620ac_config_sub=$ac_aux_dir/config.sub
621ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622
623
624# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000625if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000626else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
627fi
628
629echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000630echo "configure:631: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000631
632host_alias=$host
633case "$host_alias" in
634NONE)
635 case $nonopt in
636 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000637 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000638 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
639 fi ;;
640 *) host_alias=$nonopt ;;
641 esac ;;
642esac
643
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000644host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000645host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
646host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
647host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000648echo "$ac_t""$host" 1>&6
649
Theodore Ts'o74becf31997-04-26 14:37:06 +0000650# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000651if test "${with_cc+set}" = set; then
652 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000653 echo "$ac_t""CC=$withval" 1>&6
654CC=$withval
655else
656 if test -z "$CC" ; then CC=cc; fi
657echo "$ac_t""CC defaults to $CC" 1>&6
658fi
659export CC
660
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000661# Extract the first word of "gcc", so it can be a program name with args.
662set dummy gcc; ac_word=$2
663echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000664echo "configure:665: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000665if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
667else
668 if test -n "$CC"; then
669 ac_cv_prog_CC="$CC" # Let the user override the test.
670else
671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
672 ac_dummy="$PATH"
673 for ac_dir in $ac_dummy; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
676 ac_cv_prog_CC="gcc"
677 break
678 fi
679 done
680 IFS="$ac_save_ifs"
681fi
682fi
683CC="$ac_cv_prog_CC"
684if test -n "$CC"; then
685 echo "$ac_t""$CC" 1>&6
686else
687 echo "$ac_t""no" 1>&6
688fi
689
690if test -z "$CC"; then
691 # Extract the first word of "cc", so it can be a program name with args.
692set dummy cc; ac_word=$2
693echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000694echo "configure:695: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000695if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
697else
698 if test -n "$CC"; then
699 ac_cv_prog_CC="$CC" # Let the user override the test.
700else
701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
702 ac_prog_rejected=no
703 ac_dummy="$PATH"
704 for ac_dir in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
708 ac_prog_rejected=yes
709 continue
710 fi
711 ac_cv_prog_CC="cc"
712 break
713 fi
714 done
715 IFS="$ac_save_ifs"
716if test $ac_prog_rejected = yes; then
717 # We found a bogon in the path, so make sure we never use it.
718 set dummy $ac_cv_prog_CC
719 shift
720 if test $# -gt 0; then
721 # We chose a different compiler from the bogus one.
722 # However, it has the same basename, so the bogon will be chosen
723 # first if we set CC to just the basename; use the full file name.
724 shift
725 set dummy "$ac_dir/$ac_word" "$@"
726 shift
727 ac_cv_prog_CC="$@"
728 fi
729fi
730fi
731fi
732CC="$ac_cv_prog_CC"
733if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
735else
736 echo "$ac_t""no" 1>&6
737fi
738
739 if test -z "$CC"; then
740 case "`uname -s`" in
741 *win32* | *WIN32*)
742 # Extract the first word of "cl", so it can be a program name with args.
743set dummy cl; ac_word=$2
744echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000745echo "configure:746: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000746if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
748else
749 if test -n "$CC"; then
750 ac_cv_prog_CC="$CC" # Let the user override the test.
751else
752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
753 ac_dummy="$PATH"
754 for ac_dir in $ac_dummy; do
755 test -z "$ac_dir" && ac_dir=.
756 if test -f $ac_dir/$ac_word; then
757 ac_cv_prog_CC="cl"
758 break
759 fi
760 done
761 IFS="$ac_save_ifs"
762fi
763fi
764CC="$ac_cv_prog_CC"
765if test -n "$CC"; then
766 echo "$ac_t""$CC" 1>&6
767else
768 echo "$ac_t""no" 1>&6
769fi
770 ;;
771 esac
772 fi
773 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
774fi
775
776echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000777echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000778
779ac_ext=c
780# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
781ac_cpp='$CPP $CPPFLAGS'
782ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
783ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784cross_compiling=$ac_cv_prog_cc_cross
785
786cat > conftest.$ac_ext << EOF
787
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000788#line 789 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000789#include "confdefs.h"
790
791main(){return(0);}
792EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000793if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000794 ac_cv_prog_cc_works=yes
795 # If we can't run a trivial program, we are probably using a cross compiler.
796 if (./conftest; exit) 2>/dev/null; then
797 ac_cv_prog_cc_cross=no
798 else
799 ac_cv_prog_cc_cross=yes
800 fi
801else
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
804 ac_cv_prog_cc_works=no
805fi
806rm -fr conftest*
807ac_ext=c
808# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
809ac_cpp='$CPP $CPPFLAGS'
810ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
811ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
812cross_compiling=$ac_cv_prog_cc_cross
813
814echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
815if test $ac_cv_prog_cc_works = no; then
816 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
817fi
818echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000819echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000820echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
821cross_compiling=$ac_cv_prog_cc_cross
822
823echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000824echo "configure:825: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000825if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
827else
828 cat > conftest.c <<EOF
829#ifdef __GNUC__
830 yes;
831#endif
832EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000833if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000834 ac_cv_prog_gcc=yes
835else
836 ac_cv_prog_gcc=no
837fi
838fi
839
840echo "$ac_t""$ac_cv_prog_gcc" 1>&6
841
842if test $ac_cv_prog_gcc = yes; then
843 GCC=yes
844else
845 GCC=
846fi
847
848ac_test_CFLAGS="${CFLAGS+set}"
849ac_save_CFLAGS="$CFLAGS"
850CFLAGS=
851echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000852echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000853if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
855else
856 echo 'void f(){}' > conftest.c
857if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
858 ac_cv_prog_cc_g=yes
859else
860 ac_cv_prog_cc_g=no
861fi
862rm -f conftest*
863
864fi
865
866echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
867if test "$ac_test_CFLAGS" = set; then
868 CFLAGS="$ac_save_CFLAGS"
869elif test $ac_cv_prog_cc_g = yes; then
870 if test "$GCC" = yes; then
871 CFLAGS="-g -O2"
872 else
873 CFLAGS="-g"
874 fi
875else
876 if test "$GCC" = yes; then
877 CFLAGS="-O2"
878 else
879 CFLAGS=
880 fi
881fi
882
Theodore Ts'o74becf31997-04-26 14:37:06 +0000883# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000884if test "${with_linker+set}" = set; then
885 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000886 echo "$ac_t""LD=$withval" 1>&6
887LD=$withval
888else
889 if test -z "$LD" ; then LD=$CC; fi
890echo "$ac_t""LD defaults to $LD" 1>&6
891fi
892export LD
893
894# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000895if test "${with_ccopts+set}" = set; then
896 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000897 echo "$ac_t""CCOPTS is $withval" 1>&6
898CCOPTS=$withval
899CFLAGS="$CFLAGS $withval"
900else
901 CCOPTS=
902fi
903
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000904echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000905echo "configure:906: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000906# On Suns, sometimes $CPP names a directory.
907if test -n "$CPP" && test -d "$CPP"; then
908 CPP=
909fi
910if test -z "$CPP"; then
911if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
913else
914 # This must be in double quotes, not single quotes, because CPP may get
915 # substituted into the Makefile and "${CC-cc}" will confuse make.
916 CPP="${CC-cc} -E"
917 # On the NeXT, cc -E runs the code through the compiler's parser,
918 # not just through cpp.
919 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000920#line 921 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000921#include "confdefs.h"
922#include <assert.h>
923Syntax Error
924EOF
925ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000926{ (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000927ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
928if test -z "$ac_err"; then
929 :
930else
931 echo "$ac_err" >&5
932 echo "configure: failed program was:" >&5
933 cat conftest.$ac_ext >&5
934 rm -rf conftest*
935 CPP="${CC-cc} -E -traditional-cpp"
936 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000937#line 938 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000938#include "confdefs.h"
939#include <assert.h>
940Syntax Error
941EOF
942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000943{ (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
945if test -z "$ac_err"; then
946 :
947else
948 echo "$ac_err" >&5
949 echo "configure: failed program was:" >&5
950 cat conftest.$ac_ext >&5
951 rm -rf conftest*
952 CPP="${CC-cc} -nologo -E"
953 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000954#line 955 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000955#include "confdefs.h"
956#include <assert.h>
957Syntax Error
958EOF
959ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000960{ (eval echo configure:961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000961ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
962if test -z "$ac_err"; then
963 :
964else
965 echo "$ac_err" >&5
966 echo "configure: failed program was:" >&5
967 cat conftest.$ac_ext >&5
968 rm -rf conftest*
969 CPP=/lib/cpp
970fi
971rm -f conftest*
972fi
973rm -f conftest*
974fi
975rm -f conftest*
976 ac_cv_prog_CPP="$CPP"
977fi
978 CPP="$ac_cv_prog_CPP"
979else
980 ac_cv_prog_CPP="$CPP"
981fi
982echo "$ac_t""$CPP" 1>&6
983
984ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
985echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000986echo "configure:987: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000987if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989else
990 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000991#line 992 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000992#include "confdefs.h"
993#include <linux/fs.h>
994EOF
995ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +0000996{ (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000997ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
998if test -z "$ac_err"; then
999 rm -rf conftest*
1000 eval "ac_cv_header_$ac_safe=yes"
1001else
1002 echo "$ac_err" >&5
1003 echo "configure: failed program was:" >&5
1004 cat conftest.$ac_ext >&5
1005 rm -rf conftest*
1006 eval "ac_cv_header_$ac_safe=no"
1007fi
1008rm -f conftest*
1009fi
1010if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1011 echo "$ac_t""yes" 1>&6
1012 linux_headers=yes
1013else
1014 echo "$ac_t""no" 1>&6
1015linux_headers=no
1016fi
1017
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001018if test "$linux_headers" != yes; then
1019 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001020fi
1021
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001022LIB_EXT=.a
1023STATIC_LIB_EXT=.a
1024PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001025# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001026if test "${with_ldopts+set}" = set; then
1027 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001028 echo "$ac_t""LDFLAGS is $withval" 1>&6
1029LDFLAGS=$withval
1030else
1031 LDFLAGS=
1032fi
1033
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001034# Check whether --with-root-prefix or --without-root-prefix was given.
1035if test "${with_root_prefix+set}" = set; then
1036 withval="$with_root_prefix"
1037 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001038else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001039 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001040fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001041# Check whether --enable-compression or --disable-compression was given.
1042if test "${enable_compression+set}" = set; then
1043 enableval="$enable_compression"
1044 if test "$enableval" = "no"
1045then
1046 echo "Disabling compression support"
1047else
1048 cat >> confdefs.h <<\EOF
1049#define ENABLE_COMPRESSION 1
1050EOF
1051
1052 echo "Enabling compression support"
1053 echo "WARNING: Compression support is experimental"
1054fi
1055
1056else
1057 echo "Disabling compression support by default"
1058
1059fi
1060
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001061# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001062if test "${enable_dll_shlibs+set}" = set; then
1063 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001064 if test "$enableval" = "no"
1065then
1066 DLL_CMT=#
1067 MAKEFILE_DLL=/dev/null
1068 echo "Disabling DLL shared libraries"
1069else
1070 DLL_CMT=
1071 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001072 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001073 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001074 echo "Enabling DLL shared libraries"
1075fi
1076
1077else
1078 MAKEFILE_DLL=/dev/null
1079DLL_CMT=#
1080echo "Disabling DLL shared libraries by default"
1081
1082fi
1083
1084
1085
1086# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001087if test "${enable_elf_shlibs+set}" = set; then
1088 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001089 if test "$enableval" = "no"
1090then
1091 ELF_CMT=#
1092 MAKEFILE_ELF=/dev/null
1093 echo "Disabling ELF shared libraries"
1094else
1095 ELF_CMT=
1096 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001097 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001098 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001099 echo "Enabling ELF shared libraries"
1100fi
1101
1102else
1103 MAKEFILE_ELF=/dev/null
1104ELF_CMT=#
1105echo "Disabling ELF shared libraries by default"
1106
1107fi
1108
1109
1110
1111# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001112if test "${enable_bsd_shlibs+set}" = set; then
1113 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001114 if test "$enableval" = "no"
1115then
1116 BSDLIB_CMT=#
1117 MAKEFILE_BSDLIB=/dev/null
1118 echo "Disabling BSD shared libraries"
1119else
1120 BSDLIB_CMT=
1121 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001122 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001123 echo "Enabling BSD shared libraries"
1124fi
1125
1126else
1127 MAKEFILE_BSDLIB=/dev/null
1128BSDLIB_CMT=#
1129echo "Disabling BSD shared libraries by default"
1130
1131fi
1132
1133
1134
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001135# Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1136if test "${enable_jfs_debug+set}" = set; then
1137 enableval="$enable_jfs_debug"
1138 if test "$enableval" = "no"
1139then
1140 echo "Disabling journal debugging"
1141else
1142 cat >> confdefs.h <<\EOF
1143#define JFS_DEBUG 1
1144EOF
1145
1146 echo "Enabling journal debugging"
1147fi
1148
1149else
1150 echo "Disabling journal debugging by default"
1151
1152fi
1153
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001154PACKAGE=e2fsprogs
1155VERSION="$E2FSPROGS_VERSION"
1156cat >> confdefs.h <<EOF
1157#define PACKAGE "$PACKAGE"
1158EOF
1159
1160cat >> confdefs.h <<EOF
1161#define VERSION "$VERSION"
1162EOF
1163
1164
1165
1166
Theodore Ts'o19178752000-02-11 15:55:07 +00001167ALL_LINGUAS="it nyc"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001168echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001169echo "configure:1170: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001170set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1171if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1173else
1174 cat > conftestmake <<\EOF
1175all:
1176 @echo 'ac_maketemp="${MAKE}"'
1177EOF
1178# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1179eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1180if test -n "$ac_maketemp"; then
1181 eval ac_cv_prog_make_${ac_make}_set=yes
1182else
1183 eval ac_cv_prog_make_${ac_make}_set=no
1184fi
1185rm -f conftestmake
1186fi
1187if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1188 echo "$ac_t""yes" 1>&6
1189 SET_MAKE=
1190else
1191 echo "$ac_t""no" 1>&6
1192 SET_MAKE="MAKE=${MAKE-make}"
1193fi
1194
1195# Extract the first word of "ranlib", so it can be a program name with args.
1196set dummy ranlib; ac_word=$2
1197echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001198echo "configure:1199: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001199if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201else
1202 if test -n "$RANLIB"; then
1203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1204else
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1206 ac_dummy="$PATH"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_RANLIB="ranlib"
1211 break
1212 fi
1213 done
1214 IFS="$ac_save_ifs"
1215 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1216fi
1217fi
1218RANLIB="$ac_cv_prog_RANLIB"
1219if test -n "$RANLIB"; then
1220 echo "$ac_t""$RANLIB" 1>&6
1221else
1222 echo "$ac_t""no" 1>&6
1223fi
1224
1225echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001226echo "configure:1227: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001227if test -d /etc/conf/kconfig.d &&
1228 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1229then
1230 echo "$ac_t""yes" 1>&6
1231 ISC=yes # If later tests want to check for ISC.
1232 cat >> confdefs.h <<\EOF
1233#define _POSIX_SOURCE 1
1234EOF
1235
1236 if test "$GCC" = yes; then
1237 CC="$CC -posix"
1238 else
1239 CC="$CC -Xp"
1240 fi
1241else
1242 echo "$ac_t""no" 1>&6
1243 ISC=
1244fi
1245
1246echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001247echo "configure:1248: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001248if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1250else
1251 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001252#line 1253 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001253#include "confdefs.h"
1254#include <stdlib.h>
1255#include <stdarg.h>
1256#include <string.h>
1257#include <float.h>
1258EOF
1259ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001260{ (eval echo configure:1261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001261ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1262if test -z "$ac_err"; then
1263 rm -rf conftest*
1264 ac_cv_header_stdc=yes
1265else
1266 echo "$ac_err" >&5
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1269 rm -rf conftest*
1270 ac_cv_header_stdc=no
1271fi
1272rm -f conftest*
1273
1274if test $ac_cv_header_stdc = yes; then
1275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1276cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001277#line 1278 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001278#include "confdefs.h"
1279#include <string.h>
1280EOF
1281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1282 egrep "memchr" >/dev/null 2>&1; then
1283 :
1284else
1285 rm -rf conftest*
1286 ac_cv_header_stdc=no
1287fi
1288rm -f conftest*
1289
1290fi
1291
1292if test $ac_cv_header_stdc = yes; then
1293 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1294cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001295#line 1296 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001296#include "confdefs.h"
1297#include <stdlib.h>
1298EOF
1299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1300 egrep "free" >/dev/null 2>&1; then
1301 :
1302else
1303 rm -rf conftest*
1304 ac_cv_header_stdc=no
1305fi
1306rm -f conftest*
1307
1308fi
1309
1310if test $ac_cv_header_stdc = yes; then
1311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1312if test "$cross_compiling" = yes; then
1313 :
1314else
1315 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001316#line 1317 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001317#include "confdefs.h"
1318#include <ctype.h>
1319#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1320#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1321#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1322int main () { int i; for (i = 0; i < 256; i++)
1323if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1324exit (0); }
1325
1326EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001327if { (eval echo configure:1328: \"$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 +00001328then
1329 :
1330else
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1333 rm -fr conftest*
1334 ac_cv_header_stdc=no
1335fi
1336rm -fr conftest*
1337fi
1338
1339fi
1340fi
1341
1342echo "$ac_t""$ac_cv_header_stdc" 1>&6
1343if test $ac_cv_header_stdc = yes; then
1344 cat >> confdefs.h <<\EOF
1345#define STDC_HEADERS 1
1346EOF
1347
1348fi
1349
1350echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001351echo "configure:1352: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001352if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1354else
1355 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001356#line 1357 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001357#include "confdefs.h"
1358
1359int main() {
1360
1361/* Ultrix mips cc rejects this. */
1362typedef int charset[2]; const charset x;
1363/* SunOS 4.1.1 cc rejects this. */
1364char const *const *ccp;
1365char **p;
1366/* NEC SVR4.0.2 mips cc rejects this. */
1367struct point {int x, y;};
1368static struct point const zero = {0,0};
1369/* AIX XL C 1.02.0.0 rejects this.
1370 It does not let you subtract one const X* pointer from another in an arm
1371 of an if-expression whose if-part is not a constant expression */
1372const char *g = "string";
1373ccp = &g + (g ? g-g : 0);
1374/* HPUX 7.0 cc rejects these. */
1375++ccp;
1376p = (char**) ccp;
1377ccp = (char const *const *) p;
1378{ /* SCO 3.2v4 cc rejects this. */
1379 char *t;
1380 char const *s = 0 ? (char *) 0 : (char const *) 0;
1381
1382 *t++ = 0;
1383}
1384{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1385 int x[] = {25, 17};
1386 const int *foo = &x[0];
1387 ++foo;
1388}
1389{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1390 typedef const int *iptr;
1391 iptr p = 0;
1392 ++p;
1393}
1394{ /* AIX XL C 1.02.0.0 rejects this saying
1395 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1396 struct s { int j; const int *ap[3]; };
1397 struct s *b; b->j = 5;
1398}
1399{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1400 const int foo = 10;
1401}
1402
1403; return 0; }
1404EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001405if { (eval echo configure:1406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001406 rm -rf conftest*
1407 ac_cv_c_const=yes
1408else
1409 echo "configure: failed program was:" >&5
1410 cat conftest.$ac_ext >&5
1411 rm -rf conftest*
1412 ac_cv_c_const=no
1413fi
1414rm -f conftest*
1415fi
1416
1417echo "$ac_t""$ac_cv_c_const" 1>&6
1418if test $ac_cv_c_const = no; then
1419 cat >> confdefs.h <<\EOF
1420#define const
1421EOF
1422
1423fi
1424
1425echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001426echo "configure:1427: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001427if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1429else
1430 ac_cv_c_inline=no
1431for ac_kw in inline __inline__ __inline; do
1432 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001433#line 1434 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001434#include "confdefs.h"
1435
1436int main() {
1437} $ac_kw foo() {
1438; return 0; }
1439EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001440if { (eval echo configure:1441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001441 rm -rf conftest*
1442 ac_cv_c_inline=$ac_kw; break
1443else
1444 echo "configure: failed program was:" >&5
1445 cat conftest.$ac_ext >&5
1446fi
1447rm -f conftest*
1448done
1449
1450fi
1451
1452echo "$ac_t""$ac_cv_c_inline" 1>&6
1453case "$ac_cv_c_inline" in
1454 inline | yes) ;;
1455 no) cat >> confdefs.h <<\EOF
1456#define inline
1457EOF
1458 ;;
1459 *) cat >> confdefs.h <<EOF
1460#define inline $ac_cv_c_inline
1461EOF
1462 ;;
1463esac
1464
1465echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001466echo "configure:1467: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001467if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1469else
1470 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001471#line 1472 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001472#include "confdefs.h"
1473#include <sys/types.h>
1474#if STDC_HEADERS
1475#include <stdlib.h>
1476#include <stddef.h>
1477#endif
1478EOF
1479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1480 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1481 rm -rf conftest*
1482 ac_cv_type_off_t=yes
1483else
1484 rm -rf conftest*
1485 ac_cv_type_off_t=no
1486fi
1487rm -f conftest*
1488
1489fi
1490echo "$ac_t""$ac_cv_type_off_t" 1>&6
1491if test $ac_cv_type_off_t = no; then
1492 cat >> confdefs.h <<\EOF
1493#define off_t long
1494EOF
1495
1496fi
1497
1498echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001499echo "configure:1500: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001500if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1502else
1503 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001504#line 1505 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001505#include "confdefs.h"
1506#include <sys/types.h>
1507#if STDC_HEADERS
1508#include <stdlib.h>
1509#include <stddef.h>
1510#endif
1511EOF
1512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1513 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1514 rm -rf conftest*
1515 ac_cv_type_size_t=yes
1516else
1517 rm -rf conftest*
1518 ac_cv_type_size_t=no
1519fi
1520rm -f conftest*
1521
1522fi
1523echo "$ac_t""$ac_cv_type_size_t" 1>&6
1524if test $ac_cv_type_size_t = no; then
1525 cat >> confdefs.h <<\EOF
1526#define size_t unsigned
1527EOF
1528
1529fi
1530
1531# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1532# for constant arguments. Useless!
1533echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001534echo "configure:1535: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001535if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1537else
1538 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001539#line 1540 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001540#include "confdefs.h"
1541#include <alloca.h>
1542int main() {
1543char *p = alloca(2 * sizeof(int));
1544; return 0; }
1545EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001546if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001547 rm -rf conftest*
1548 ac_cv_header_alloca_h=yes
1549else
1550 echo "configure: failed program was:" >&5
1551 cat conftest.$ac_ext >&5
1552 rm -rf conftest*
1553 ac_cv_header_alloca_h=no
1554fi
1555rm -f conftest*
1556fi
1557
1558echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1559if test $ac_cv_header_alloca_h = yes; then
1560 cat >> confdefs.h <<\EOF
1561#define HAVE_ALLOCA_H 1
1562EOF
1563
1564fi
1565
1566echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001567echo "configure:1568: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001568if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1570else
1571 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001572#line 1573 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001573#include "confdefs.h"
1574
1575#ifdef __GNUC__
1576# define alloca __builtin_alloca
1577#else
1578# ifdef _MSC_VER
1579# include <malloc.h>
1580# define alloca _alloca
1581# else
1582# if HAVE_ALLOCA_H
1583# include <alloca.h>
1584# else
1585# ifdef _AIX
1586 #pragma alloca
1587# else
1588# ifndef alloca /* predefined by HP cc +Olibcalls */
1589char *alloca ();
1590# endif
1591# endif
1592# endif
1593# endif
1594#endif
1595
1596int main() {
1597char *p = (char *) alloca(1);
1598; return 0; }
1599EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001600if { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001601 rm -rf conftest*
1602 ac_cv_func_alloca_works=yes
1603else
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1606 rm -rf conftest*
1607 ac_cv_func_alloca_works=no
1608fi
1609rm -f conftest*
1610fi
1611
1612echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1613if test $ac_cv_func_alloca_works = yes; then
1614 cat >> confdefs.h <<\EOF
1615#define HAVE_ALLOCA 1
1616EOF
1617
1618fi
1619
1620if test $ac_cv_func_alloca_works = no; then
1621 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1622 # that cause trouble. Some versions do not even contain alloca or
1623 # contain a buggy version. If you still want to use their alloca,
1624 # use ar to extract alloca.o from them instead of compiling alloca.c.
1625 ALLOCA=alloca.${ac_objext}
1626 cat >> confdefs.h <<\EOF
1627#define C_ALLOCA 1
1628EOF
1629
1630
1631echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001632echo "configure:1633: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001633if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635else
1636 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001637#line 1638 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001638#include "confdefs.h"
1639#if defined(CRAY) && ! defined(CRAY2)
1640webecray
1641#else
1642wenotbecray
1643#endif
1644
1645EOF
1646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1647 egrep "webecray" >/dev/null 2>&1; then
1648 rm -rf conftest*
1649 ac_cv_os_cray=yes
1650else
1651 rm -rf conftest*
1652 ac_cv_os_cray=no
1653fi
1654rm -f conftest*
1655
1656fi
1657
1658echo "$ac_t""$ac_cv_os_cray" 1>&6
1659if test $ac_cv_os_cray = yes; then
1660for ac_func in _getb67 GETB67 getb67; do
1661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001662echo "configure:1663: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001663if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1665else
1666 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001667#line 1668 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001668#include "confdefs.h"
1669/* System header to define __stub macros and hopefully few prototypes,
1670 which can conflict with char $ac_func(); below. */
1671#include <assert.h>
1672/* Override any gcc2 internal prototype to avoid an error. */
1673/* We use char because int might match the return type of a gcc2
1674 builtin and then its argument prototype would still apply. */
1675char $ac_func();
1676
1677int main() {
1678
1679/* The GNU C library defines this for functions which it implements
1680 to always fail with ENOSYS. Some functions are actually named
1681 something starting with __ and the normal name is an alias. */
1682#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1683choke me
1684#else
1685$ac_func();
1686#endif
1687
1688; return 0; }
1689EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001690if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001691 rm -rf conftest*
1692 eval "ac_cv_func_$ac_func=yes"
1693else
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1696 rm -rf conftest*
1697 eval "ac_cv_func_$ac_func=no"
1698fi
1699rm -f conftest*
1700fi
1701
1702if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1703 echo "$ac_t""yes" 1>&6
1704 cat >> confdefs.h <<EOF
1705#define CRAY_STACKSEG_END $ac_func
1706EOF
1707
1708 break
1709else
1710 echo "$ac_t""no" 1>&6
1711fi
1712
1713done
1714fi
1715
1716echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001717echo "configure:1718: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001718if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1720else
1721 if test "$cross_compiling" = yes; then
1722 ac_cv_c_stack_direction=0
1723else
1724 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001725#line 1726 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001726#include "confdefs.h"
1727find_stack_direction ()
1728{
1729 static char *addr = 0;
1730 auto char dummy;
1731 if (addr == 0)
1732 {
1733 addr = &dummy;
1734 return find_stack_direction ();
1735 }
1736 else
1737 return (&dummy > addr) ? 1 : -1;
1738}
1739main ()
1740{
1741 exit (find_stack_direction() < 0);
1742}
1743EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001744if { (eval echo configure:1745: \"$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 +00001745then
1746 ac_cv_c_stack_direction=1
1747else
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1750 rm -fr conftest*
1751 ac_cv_c_stack_direction=-1
1752fi
1753rm -fr conftest*
1754fi
1755
1756fi
1757
1758echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1759cat >> confdefs.h <<EOF
1760#define STACK_DIRECTION $ac_cv_c_stack_direction
1761EOF
1762
1763fi
1764
1765for ac_hdr in unistd.h
1766do
1767ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1768echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001769echo "configure:1770: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001770if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1772else
1773 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001774#line 1775 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001775#include "confdefs.h"
1776#include <$ac_hdr>
1777EOF
1778ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001779{ (eval echo configure:1780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001780ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1781if test -z "$ac_err"; then
1782 rm -rf conftest*
1783 eval "ac_cv_header_$ac_safe=yes"
1784else
1785 echo "$ac_err" >&5
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1788 rm -rf conftest*
1789 eval "ac_cv_header_$ac_safe=no"
1790fi
1791rm -f conftest*
1792fi
1793if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1796 cat >> confdefs.h <<EOF
1797#define $ac_tr_hdr 1
1798EOF
1799
1800else
1801 echo "$ac_t""no" 1>&6
1802fi
1803done
1804
1805for ac_func in getpagesize
1806do
1807echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001808echo "configure:1809: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001809if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1811else
1812 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001813#line 1814 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001814#include "confdefs.h"
1815/* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $ac_func(); below. */
1817#include <assert.h>
1818/* Override any gcc2 internal prototype to avoid an error. */
1819/* We use char because int might match the return type of a gcc2
1820 builtin and then its argument prototype would still apply. */
1821char $ac_func();
1822
1823int main() {
1824
1825/* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1829choke me
1830#else
1831$ac_func();
1832#endif
1833
1834; return 0; }
1835EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001836if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001837 rm -rf conftest*
1838 eval "ac_cv_func_$ac_func=yes"
1839else
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1842 rm -rf conftest*
1843 eval "ac_cv_func_$ac_func=no"
1844fi
1845rm -f conftest*
1846fi
1847
1848if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1849 echo "$ac_t""yes" 1>&6
1850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1851 cat >> confdefs.h <<EOF
1852#define $ac_tr_func 1
1853EOF
1854
1855else
1856 echo "$ac_t""no" 1>&6
1857fi
1858done
1859
1860echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001861echo "configure:1862: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001862if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1864else
1865 if test "$cross_compiling" = yes; then
1866 ac_cv_func_mmap_fixed_mapped=no
1867else
1868 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001869#line 1870 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001870#include "confdefs.h"
1871
1872/* Thanks to Mike Haertel and Jim Avera for this test.
1873 Here is a matrix of mmap possibilities:
1874 mmap private not fixed
1875 mmap private fixed at somewhere currently unmapped
1876 mmap private fixed at somewhere already mapped
1877 mmap shared not fixed
1878 mmap shared fixed at somewhere currently unmapped
1879 mmap shared fixed at somewhere already mapped
1880 For private mappings, we should verify that changes cannot be read()
1881 back from the file, nor mmap's back from the file at a different
1882 address. (There have been systems where private was not correctly
1883 implemented like the infamous i386 svr4.0, and systems where the
1884 VM page cache was not coherent with the filesystem buffer cache
1885 like early versions of FreeBSD and possibly contemporary NetBSD.)
1886 For shared mappings, we should conversely verify that changes get
1887 propogated back to all the places they're supposed to be.
1888
1889 Grep wants private fixed already mapped.
1890 The main things grep needs to know about mmap are:
1891 * does it exist and is it safe to write into the mmap'd area
1892 * how to use it (BSD variants) */
1893#include <sys/types.h>
1894#include <fcntl.h>
1895#include <sys/mman.h>
1896
1897/* This mess was copied from the GNU getpagesize.h. */
1898#ifndef HAVE_GETPAGESIZE
1899# ifdef HAVE_UNISTD_H
1900# include <unistd.h>
1901# endif
1902
1903/* Assume that all systems that can run configure have sys/param.h. */
1904# ifndef HAVE_SYS_PARAM_H
1905# define HAVE_SYS_PARAM_H 1
1906# endif
1907
1908# ifdef _SC_PAGESIZE
1909# define getpagesize() sysconf(_SC_PAGESIZE)
1910# else /* no _SC_PAGESIZE */
1911# ifdef HAVE_SYS_PARAM_H
1912# include <sys/param.h>
1913# ifdef EXEC_PAGESIZE
1914# define getpagesize() EXEC_PAGESIZE
1915# else /* no EXEC_PAGESIZE */
1916# ifdef NBPG
1917# define getpagesize() NBPG * CLSIZE
1918# ifndef CLSIZE
1919# define CLSIZE 1
1920# endif /* no CLSIZE */
1921# else /* no NBPG */
1922# ifdef NBPC
1923# define getpagesize() NBPC
1924# else /* no NBPC */
1925# ifdef PAGESIZE
1926# define getpagesize() PAGESIZE
1927# endif /* PAGESIZE */
1928# endif /* no NBPC */
1929# endif /* no NBPG */
1930# endif /* no EXEC_PAGESIZE */
1931# else /* no HAVE_SYS_PARAM_H */
1932# define getpagesize() 8192 /* punt totally */
1933# endif /* no HAVE_SYS_PARAM_H */
1934# endif /* no _SC_PAGESIZE */
1935
1936#endif /* no HAVE_GETPAGESIZE */
1937
1938#ifdef __cplusplus
1939extern "C" { void *malloc(unsigned); }
1940#else
1941char *malloc();
1942#endif
1943
1944int
1945main()
1946{
1947 char *data, *data2, *data3;
1948 int i, pagesize;
1949 int fd;
1950
1951 pagesize = getpagesize();
1952
1953 /*
1954 * First, make a file with some known garbage in it.
1955 */
1956 data = malloc(pagesize);
1957 if (!data)
1958 exit(1);
1959 for (i = 0; i < pagesize; ++i)
1960 *(data + i) = rand();
1961 umask(0);
1962 fd = creat("conftestmmap", 0600);
1963 if (fd < 0)
1964 exit(1);
1965 if (write(fd, data, pagesize) != pagesize)
1966 exit(1);
1967 close(fd);
1968
1969 /*
1970 * Next, try to mmap the file at a fixed address which
1971 * already has something else allocated at it. If we can,
1972 * also make sure that we see the same garbage.
1973 */
1974 fd = open("conftestmmap", O_RDWR);
1975 if (fd < 0)
1976 exit(1);
1977 data2 = malloc(2 * pagesize);
1978 if (!data2)
1979 exit(1);
1980 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1981 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1982 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1983 exit(1);
1984 for (i = 0; i < pagesize; ++i)
1985 if (*(data + i) != *(data2 + i))
1986 exit(1);
1987
1988 /*
1989 * Finally, make sure that changes to the mapped area
1990 * do not percolate back to the file as seen by read().
1991 * (This is a bug on some variants of i386 svr4.0.)
1992 */
1993 for (i = 0; i < pagesize; ++i)
1994 *(data2 + i) = *(data2 + i) + 1;
1995 data3 = malloc(pagesize);
1996 if (!data3)
1997 exit(1);
1998 if (read(fd, data3, pagesize) != pagesize)
1999 exit(1);
2000 for (i = 0; i < pagesize; ++i)
2001 if (*(data + i) != *(data3 + i))
2002 exit(1);
2003 close(fd);
2004 unlink("conftestmmap");
2005 exit(0);
2006}
2007
2008EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002009if { (eval echo configure:2010: \"$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 +00002010then
2011 ac_cv_func_mmap_fixed_mapped=yes
2012else
2013 echo "configure: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2015 rm -fr conftest*
2016 ac_cv_func_mmap_fixed_mapped=no
2017fi
2018rm -fr conftest*
2019fi
2020
2021fi
2022
2023echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2024if test $ac_cv_func_mmap_fixed_mapped = yes; then
2025 cat >> confdefs.h <<\EOF
2026#define HAVE_MMAP 1
2027EOF
2028
2029fi
2030
2031
2032 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2033unistd.h sys/param.h
2034do
2035ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2036echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002037echo "configure:2038: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002038if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2040else
2041 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002042#line 2043 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002043#include "confdefs.h"
2044#include <$ac_hdr>
2045EOF
2046ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002047{ (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002048ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049if test -z "$ac_err"; then
2050 rm -rf conftest*
2051 eval "ac_cv_header_$ac_safe=yes"
2052else
2053 echo "$ac_err" >&5
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2056 rm -rf conftest*
2057 eval "ac_cv_header_$ac_safe=no"
2058fi
2059rm -f conftest*
2060fi
2061if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2064 cat >> confdefs.h <<EOF
2065#define $ac_tr_hdr 1
2066EOF
2067
2068else
2069 echo "$ac_t""no" 1>&6
2070fi
2071done
2072
2073 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2074strdup __argz_count __argz_stringify __argz_next
2075do
2076echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002077echo "configure:2078: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002078if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2080else
2081 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002082#line 2083 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002083#include "confdefs.h"
2084/* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char $ac_func(); below. */
2086#include <assert.h>
2087/* Override any gcc2 internal prototype to avoid an error. */
2088/* We use char because int might match the return type of a gcc2
2089 builtin and then its argument prototype would still apply. */
2090char $ac_func();
2091
2092int main() {
2093
2094/* The GNU C library defines this for functions which it implements
2095 to always fail with ENOSYS. Some functions are actually named
2096 something starting with __ and the normal name is an alias. */
2097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2098choke me
2099#else
2100$ac_func();
2101#endif
2102
2103; return 0; }
2104EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002105if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002106 rm -rf conftest*
2107 eval "ac_cv_func_$ac_func=yes"
2108else
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2111 rm -rf conftest*
2112 eval "ac_cv_func_$ac_func=no"
2113fi
2114rm -f conftest*
2115fi
2116
2117if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2118 echo "$ac_t""yes" 1>&6
2119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2120 cat >> confdefs.h <<EOF
2121#define $ac_tr_func 1
2122EOF
2123
2124else
2125 echo "$ac_t""no" 1>&6
2126fi
2127done
2128
2129
2130 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2131 for ac_func in stpcpy
2132do
2133echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002134echo "configure:2135: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002135if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2137else
2138 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002139#line 2140 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002140#include "confdefs.h"
2141/* System header to define __stub macros and hopefully few prototypes,
2142 which can conflict with char $ac_func(); below. */
2143#include <assert.h>
2144/* Override any gcc2 internal prototype to avoid an error. */
2145/* We use char because int might match the return type of a gcc2
2146 builtin and then its argument prototype would still apply. */
2147char $ac_func();
2148
2149int main() {
2150
2151/* The GNU C library defines this for functions which it implements
2152 to always fail with ENOSYS. Some functions are actually named
2153 something starting with __ and the normal name is an alias. */
2154#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2155choke me
2156#else
2157$ac_func();
2158#endif
2159
2160; return 0; }
2161EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002162if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002163 rm -rf conftest*
2164 eval "ac_cv_func_$ac_func=yes"
2165else
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 rm -rf conftest*
2169 eval "ac_cv_func_$ac_func=no"
2170fi
2171rm -f conftest*
2172fi
2173
2174if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2177 cat >> confdefs.h <<EOF
2178#define $ac_tr_func 1
2179EOF
2180
2181else
2182 echo "$ac_t""no" 1>&6
2183fi
2184done
2185
2186 fi
2187 if test "${ac_cv_func_stpcpy}" = "yes"; then
2188 cat >> confdefs.h <<\EOF
2189#define HAVE_STPCPY 1
2190EOF
2191
2192 fi
2193
2194 if test $ac_cv_header_locale_h = yes; then
2195 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002196echo "configure:2197: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002197if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2199else
2200 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002201#line 2202 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002202#include "confdefs.h"
2203#include <locale.h>
2204int main() {
2205return LC_MESSAGES
2206; return 0; }
2207EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002208if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002209 rm -rf conftest*
2210 am_cv_val_LC_MESSAGES=yes
2211else
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2214 rm -rf conftest*
2215 am_cv_val_LC_MESSAGES=no
2216fi
2217rm -f conftest*
2218fi
2219
2220echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2221 if test $am_cv_val_LC_MESSAGES = yes; then
2222 cat >> confdefs.h <<\EOF
2223#define HAVE_LC_MESSAGES 1
2224EOF
2225
2226 fi
2227 fi
2228 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002229echo "configure:2230: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002230 # Check whether --enable-nls or --disable-nls was given.
2231if test "${enable_nls+set}" = set; then
2232 enableval="$enable_nls"
2233 USE_NLS=$enableval
2234else
2235 USE_NLS=no
2236fi
2237
2238 echo "$ac_t""$USE_NLS" 1>&6
2239
2240
2241 USE_INCLUDED_LIBINTL=no
2242
2243 if test "$USE_NLS" = "yes"; then
2244 cat >> confdefs.h <<\EOF
2245#define ENABLE_NLS 1
2246EOF
2247
2248 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002249echo "configure:2250: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002250 # Check whether --with-included-gettext or --without-included-gettext was given.
2251if test "${with_included_gettext+set}" = set; then
2252 withval="$with_included_gettext"
2253 nls_cv_force_use_gnu_gettext=$withval
2254else
2255 nls_cv_force_use_gnu_gettext=no
2256fi
2257
2258 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2259
2260 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2261 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2262 nls_cv_header_intl=
2263 nls_cv_header_libgt=
2264 CATOBJEXT=NONE
2265
2266 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2267echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002268echo "configure:2269: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002269if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2271else
2272 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002273#line 2274 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002274#include "confdefs.h"
2275#include <libintl.h>
2276EOF
2277ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002278{ (eval echo configure:2279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002279ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2280if test -z "$ac_err"; then
2281 rm -rf conftest*
2282 eval "ac_cv_header_$ac_safe=yes"
2283else
2284 echo "$ac_err" >&5
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2287 rm -rf conftest*
2288 eval "ac_cv_header_$ac_safe=no"
2289fi
2290rm -f conftest*
2291fi
2292if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2294 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002295echo "configure:2296: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002296if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2298else
2299 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002300#line 2301 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002301#include "confdefs.h"
2302#include <libintl.h>
2303int main() {
2304return (int) gettext ("")
2305; return 0; }
2306EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002307if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002308 rm -rf conftest*
2309 gt_cv_func_gettext_libc=yes
2310else
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2313 rm -rf conftest*
2314 gt_cv_func_gettext_libc=no
2315fi
2316rm -f conftest*
2317fi
2318
2319echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2320
2321 if test "$gt_cv_func_gettext_libc" != "yes"; then
2322 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002323echo "configure:2324: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002324ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2325if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2327else
2328 ac_save_LIBS="$LIBS"
2329LIBS="-lintl $LIBS"
2330cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002331#line 2332 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002332#include "confdefs.h"
2333/* Override any gcc2 internal prototype to avoid an error. */
2334/* We use char because int might match the return type of a gcc2
2335 builtin and then its argument prototype would still apply. */
2336char bindtextdomain();
2337
2338int main() {
2339bindtextdomain()
2340; return 0; }
2341EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002342if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002343 rm -rf conftest*
2344 eval "ac_cv_lib_$ac_lib_var=yes"
2345else
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2348 rm -rf conftest*
2349 eval "ac_cv_lib_$ac_lib_var=no"
2350fi
2351rm -f conftest*
2352LIBS="$ac_save_LIBS"
2353
2354fi
2355if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2356 echo "$ac_t""yes" 1>&6
2357 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002358echo "configure:2359: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002359if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2361else
2362 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002363echo "configure:2364: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002364ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2365if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2367else
2368 ac_save_LIBS="$LIBS"
2369LIBS="-lintl $LIBS"
2370cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002371#line 2372 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002372#include "confdefs.h"
2373/* Override any gcc2 internal prototype to avoid an error. */
2374/* We use char because int might match the return type of a gcc2
2375 builtin and then its argument prototype would still apply. */
2376char gettext();
2377
2378int main() {
2379gettext()
2380; return 0; }
2381EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002382if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002383 rm -rf conftest*
2384 eval "ac_cv_lib_$ac_lib_var=yes"
2385else
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2388 rm -rf conftest*
2389 eval "ac_cv_lib_$ac_lib_var=no"
2390fi
2391rm -f conftest*
2392LIBS="$ac_save_LIBS"
2393
2394fi
2395if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2396 echo "$ac_t""yes" 1>&6
2397 gt_cv_func_gettext_libintl=yes
2398else
2399 echo "$ac_t""no" 1>&6
2400gt_cv_func_gettext_libintl=no
2401fi
2402
2403fi
2404
2405echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2406else
2407 echo "$ac_t""no" 1>&6
2408fi
2409
2410 fi
2411
2412 if test "$gt_cv_func_gettext_libc" = "yes" \
2413 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2414 cat >> confdefs.h <<\EOF
2415#define HAVE_GETTEXT 1
2416EOF
2417
2418 # Extract the first word of "msgfmt", so it can be a program name with args.
2419set dummy msgfmt; ac_word=$2
2420echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002421echo "configure:2422: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002422if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2424else
2425 case "$MSGFMT" in
2426 /*)
2427 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2428 ;;
2429 *)
2430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2431 for ac_dir in $PATH; do
2432 test -z "$ac_dir" && ac_dir=.
2433 if test -f $ac_dir/$ac_word; then
2434 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2435 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2436 break
2437 fi
2438 fi
2439 done
2440 IFS="$ac_save_ifs"
2441 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2442 ;;
2443esac
2444fi
2445MSGFMT="$ac_cv_path_MSGFMT"
2446if test -n "$MSGFMT"; then
2447 echo "$ac_t""$MSGFMT" 1>&6
2448else
2449 echo "$ac_t""no" 1>&6
2450fi
2451 if test "$MSGFMT" != "no"; then
2452 for ac_func in dcgettext
2453do
2454echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002455echo "configure:2456: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002456if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2458else
2459 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002460#line 2461 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002461#include "confdefs.h"
2462/* System header to define __stub macros and hopefully few prototypes,
2463 which can conflict with char $ac_func(); below. */
2464#include <assert.h>
2465/* Override any gcc2 internal prototype to avoid an error. */
2466/* We use char because int might match the return type of a gcc2
2467 builtin and then its argument prototype would still apply. */
2468char $ac_func();
2469
2470int main() {
2471
2472/* The GNU C library defines this for functions which it implements
2473 to always fail with ENOSYS. Some functions are actually named
2474 something starting with __ and the normal name is an alias. */
2475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2476choke me
2477#else
2478$ac_func();
2479#endif
2480
2481; return 0; }
2482EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002483if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002484 rm -rf conftest*
2485 eval "ac_cv_func_$ac_func=yes"
2486else
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2489 rm -rf conftest*
2490 eval "ac_cv_func_$ac_func=no"
2491fi
2492rm -f conftest*
2493fi
2494
2495if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2498 cat >> confdefs.h <<EOF
2499#define $ac_tr_func 1
2500EOF
2501
2502else
2503 echo "$ac_t""no" 1>&6
2504fi
2505done
2506
2507 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2508set dummy gmsgfmt; ac_word=$2
2509echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002510echo "configure:2511: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002511if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513else
2514 case "$GMSGFMT" in
2515 /*)
2516 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2517 ;;
2518 ?:/*)
2519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2520 ;;
2521 *)
2522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2523 ac_dummy="$PATH"
2524 for ac_dir in $ac_dummy; do
2525 test -z "$ac_dir" && ac_dir=.
2526 if test -f $ac_dir/$ac_word; then
2527 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2528 break
2529 fi
2530 done
2531 IFS="$ac_save_ifs"
2532 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2533 ;;
2534esac
2535fi
2536GMSGFMT="$ac_cv_path_GMSGFMT"
2537if test -n "$GMSGFMT"; then
2538 echo "$ac_t""$GMSGFMT" 1>&6
2539else
2540 echo "$ac_t""no" 1>&6
2541fi
2542
2543 # Extract the first word of "xgettext", so it can be a program name with args.
2544set dummy xgettext; ac_word=$2
2545echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002546echo "configure:2547: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002547if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2549else
2550 case "$XGETTEXT" in
2551 /*)
2552 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2553 ;;
2554 *)
2555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2556 for ac_dir in $PATH; do
2557 test -z "$ac_dir" && ac_dir=.
2558 if test -f $ac_dir/$ac_word; then
2559 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2560 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2561 break
2562 fi
2563 fi
2564 done
2565 IFS="$ac_save_ifs"
2566 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2567 ;;
2568esac
2569fi
2570XGETTEXT="$ac_cv_path_XGETTEXT"
2571if test -n "$XGETTEXT"; then
2572 echo "$ac_t""$XGETTEXT" 1>&6
2573else
2574 echo "$ac_t""no" 1>&6
2575fi
2576
2577 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002578#line 2579 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002579#include "confdefs.h"
2580
2581int main() {
2582extern int _nl_msg_cat_cntr;
2583 return _nl_msg_cat_cntr
2584; return 0; }
2585EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002586if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002587 rm -rf conftest*
2588 CATOBJEXT=.gmo
2589 DATADIRNAME=share
2590else
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 rm -rf conftest*
2594 CATOBJEXT=.mo
2595 DATADIRNAME=lib
2596fi
2597rm -f conftest*
2598 INSTOBJEXT=.mo
2599 fi
2600 fi
2601
2602else
2603 echo "$ac_t""no" 1>&6
2604fi
2605
2606
2607 if test "$CATOBJEXT" = "NONE"; then
2608 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002609echo "configure:2610: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002610 # Check whether --with-catgets or --without-catgets was given.
2611if test "${with_catgets+set}" = set; then
2612 withval="$with_catgets"
2613 nls_cv_use_catgets=$withval
2614else
2615 nls_cv_use_catgets=no
2616fi
2617
2618 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2619
2620 if test "$nls_cv_use_catgets" = "yes"; then
2621 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002622echo "configure:2623: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002623ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2624if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2626else
2627 ac_save_LIBS="$LIBS"
2628LIBS="-li $LIBS"
2629cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002630#line 2631 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002631#include "confdefs.h"
2632
2633int main() {
2634main()
2635; return 0; }
2636EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002637if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002638 rm -rf conftest*
2639 eval "ac_cv_lib_$ac_lib_var=yes"
2640else
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 rm -rf conftest*
2644 eval "ac_cv_lib_$ac_lib_var=no"
2645fi
2646rm -f conftest*
2647LIBS="$ac_save_LIBS"
2648
2649fi
2650if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2651 echo "$ac_t""yes" 1>&6
2652 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2653 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2654 cat >> confdefs.h <<EOF
2655#define $ac_tr_lib 1
2656EOF
2657
2658 LIBS="-li $LIBS"
2659
2660else
2661 echo "$ac_t""no" 1>&6
2662fi
2663
2664 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002665echo "configure:2666: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002666if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2668else
2669 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002670#line 2671 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002671#include "confdefs.h"
2672/* System header to define __stub macros and hopefully few prototypes,
2673 which can conflict with char catgets(); below. */
2674#include <assert.h>
2675/* Override any gcc2 internal prototype to avoid an error. */
2676/* We use char because int might match the return type of a gcc2
2677 builtin and then its argument prototype would still apply. */
2678char catgets();
2679
2680int main() {
2681
2682/* The GNU C library defines this for functions which it implements
2683 to always fail with ENOSYS. Some functions are actually named
2684 something starting with __ and the normal name is an alias. */
2685#if defined (__stub_catgets) || defined (__stub___catgets)
2686choke me
2687#else
2688catgets();
2689#endif
2690
2691; return 0; }
2692EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002693if { (eval echo configure:2694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002694 rm -rf conftest*
2695 eval "ac_cv_func_catgets=yes"
2696else
2697 echo "configure: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2699 rm -rf conftest*
2700 eval "ac_cv_func_catgets=no"
2701fi
2702rm -f conftest*
2703fi
2704
2705if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 cat >> confdefs.h <<\EOF
2708#define HAVE_CATGETS 1
2709EOF
2710
2711 INTLOBJS="\$(CATOBJS)"
2712 # Extract the first word of "gencat", so it can be a program name with args.
2713set dummy gencat; ac_word=$2
2714echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002715echo "configure:2716: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002716if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2718else
2719 case "$GENCAT" in
2720 /*)
2721 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2722 ;;
2723 ?:/*)
2724 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2725 ;;
2726 *)
2727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2728 ac_dummy="$PATH"
2729 for ac_dir in $ac_dummy; do
2730 test -z "$ac_dir" && ac_dir=.
2731 if test -f $ac_dir/$ac_word; then
2732 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2733 break
2734 fi
2735 done
2736 IFS="$ac_save_ifs"
2737 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2738 ;;
2739esac
2740fi
2741GENCAT="$ac_cv_path_GENCAT"
2742if test -n "$GENCAT"; then
2743 echo "$ac_t""$GENCAT" 1>&6
2744else
2745 echo "$ac_t""no" 1>&6
2746fi
2747 if test "$GENCAT" != "no"; then
2748 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2749set dummy gmsgfmt; ac_word=$2
2750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002751echo "configure:2752: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002752if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2754else
2755 case "$GMSGFMT" in
2756 /*)
2757 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2758 ;;
2759 ?:/*)
2760 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2761 ;;
2762 *)
2763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2764 ac_dummy="$PATH"
2765 for ac_dir in $ac_dummy; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2769 break
2770 fi
2771 done
2772 IFS="$ac_save_ifs"
2773 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2774 ;;
2775esac
2776fi
2777GMSGFMT="$ac_cv_path_GMSGFMT"
2778if test -n "$GMSGFMT"; then
2779 echo "$ac_t""$GMSGFMT" 1>&6
2780else
2781 echo "$ac_t""no" 1>&6
2782fi
2783
2784 if test "$GMSGFMT" = "no"; then
2785 # Extract the first word of "msgfmt", so it can be a program name with args.
2786set dummy msgfmt; ac_word=$2
2787echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002788echo "configure:2789: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002789if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2791else
2792 case "$GMSGFMT" in
2793 /*)
2794 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2795 ;;
2796 *)
2797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2798 for ac_dir in $PATH; do
2799 test -z "$ac_dir" && ac_dir=.
2800 if test -f $ac_dir/$ac_word; then
2801 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2802 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2803 break
2804 fi
2805 fi
2806 done
2807 IFS="$ac_save_ifs"
2808 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2809 ;;
2810esac
2811fi
2812GMSGFMT="$ac_cv_path_GMSGFMT"
2813if test -n "$GMSGFMT"; then
2814 echo "$ac_t""$GMSGFMT" 1>&6
2815else
2816 echo "$ac_t""no" 1>&6
2817fi
2818
2819 fi
2820 # Extract the first word of "xgettext", so it can be a program name with args.
2821set dummy xgettext; ac_word=$2
2822echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002823echo "configure:2824: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002824if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2826else
2827 case "$XGETTEXT" in
2828 /*)
2829 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2830 ;;
2831 *)
2832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2833 for ac_dir in $PATH; do
2834 test -z "$ac_dir" && ac_dir=.
2835 if test -f $ac_dir/$ac_word; then
2836 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2837 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2838 break
2839 fi
2840 fi
2841 done
2842 IFS="$ac_save_ifs"
2843 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2844 ;;
2845esac
2846fi
2847XGETTEXT="$ac_cv_path_XGETTEXT"
2848if test -n "$XGETTEXT"; then
2849 echo "$ac_t""$XGETTEXT" 1>&6
2850else
2851 echo "$ac_t""no" 1>&6
2852fi
2853
2854 USE_INCLUDED_LIBINTL=yes
2855 CATOBJEXT=.cat
2856 INSTOBJEXT=.cat
2857 DATADIRNAME=lib
2858 INTLDEPS='$(top_builddir)/intl/libintl.a'
2859 INTLLIBS=$INTLDEPS
2860 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2861 nls_cv_header_intl=intl/libintl.h
2862 nls_cv_header_libgt=intl/libgettext.h
2863 fi
2864else
2865 echo "$ac_t""no" 1>&6
2866fi
2867
2868 fi
2869 fi
2870
2871 if test "$CATOBJEXT" = "NONE"; then
2872 nls_cv_use_gnu_gettext=yes
2873 fi
2874 fi
2875
2876 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2877 INTLOBJS="\$(GETTOBJS)"
2878 # Extract the first word of "msgfmt", so it can be a program name with args.
2879set dummy msgfmt; ac_word=$2
2880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002881echo "configure:2882: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002882if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2884else
2885 case "$MSGFMT" in
2886 /*)
2887 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2888 ;;
2889 *)
2890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2891 for ac_dir in $PATH; do
2892 test -z "$ac_dir" && ac_dir=.
2893 if test -f $ac_dir/$ac_word; then
2894 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2895 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2896 break
2897 fi
2898 fi
2899 done
2900 IFS="$ac_save_ifs"
2901 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2902 ;;
2903esac
2904fi
2905MSGFMT="$ac_cv_path_MSGFMT"
2906if test -n "$MSGFMT"; then
2907 echo "$ac_t""$MSGFMT" 1>&6
2908else
2909 echo "$ac_t""no" 1>&6
2910fi
2911
2912 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2913set dummy gmsgfmt; ac_word=$2
2914echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002915echo "configure:2916: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002916if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2918else
2919 case "$GMSGFMT" in
2920 /*)
2921 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2922 ;;
2923 ?:/*)
2924 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2925 ;;
2926 *)
2927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2928 ac_dummy="$PATH"
2929 for ac_dir in $ac_dummy; do
2930 test -z "$ac_dir" && ac_dir=.
2931 if test -f $ac_dir/$ac_word; then
2932 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2933 break
2934 fi
2935 done
2936 IFS="$ac_save_ifs"
2937 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2938 ;;
2939esac
2940fi
2941GMSGFMT="$ac_cv_path_GMSGFMT"
2942if test -n "$GMSGFMT"; then
2943 echo "$ac_t""$GMSGFMT" 1>&6
2944else
2945 echo "$ac_t""no" 1>&6
2946fi
2947
2948 # Extract the first word of "xgettext", so it can be a program name with args.
2949set dummy xgettext; ac_word=$2
2950echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002951echo "configure:2952: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002952if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2954else
2955 case "$XGETTEXT" in
2956 /*)
2957 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2958 ;;
2959 *)
2960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2961 for ac_dir in $PATH; do
2962 test -z "$ac_dir" && ac_dir=.
2963 if test -f $ac_dir/$ac_word; then
2964 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2965 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2966 break
2967 fi
2968 fi
2969 done
2970 IFS="$ac_save_ifs"
2971 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2972 ;;
2973esac
2974fi
2975XGETTEXT="$ac_cv_path_XGETTEXT"
2976if test -n "$XGETTEXT"; then
2977 echo "$ac_t""$XGETTEXT" 1>&6
2978else
2979 echo "$ac_t""no" 1>&6
2980fi
2981
2982
2983 USE_INCLUDED_LIBINTL=yes
2984 CATOBJEXT=.gmo
2985 INSTOBJEXT=.mo
2986 DATADIRNAME=share
2987 INTLDEPS='$(top_builddir)/intl/libintl.a'
2988 INTLLIBS=$INTLDEPS
2989 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2990 nls_cv_header_intl=intl/libintl.h
2991 nls_cv_header_libgt=intl/libgettext.h
2992 fi
2993
2994 if test "$XGETTEXT" != ":"; then
2995 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2996 : ;
2997 else
2998 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2999 XGETTEXT=":"
3000 fi
3001 fi
3002
3003 # We need to process the po/ directory.
3004 POSUB=po
3005 else
3006 DATADIRNAME=share
3007 nls_cv_header_intl=intl/libintl.h
3008 nls_cv_header_libgt=intl/libgettext.h
3009 fi
3010
3011
3012
3013
3014 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3015 # because some of the sources are only built for this goal.
3016 if test "$PACKAGE" = gettext; then
3017 USE_NLS=yes
3018 USE_INCLUDED_LIBINTL=yes
3019 fi
3020
3021 for lang in $ALL_LINGUAS; do
3022 GMOFILES="$GMOFILES $lang.gmo"
3023 POFILES="$POFILES $lang.po"
3024 done
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039 if test "x$CATOBJEXT" != "x"; then
3040 if test "x$ALL_LINGUAS" = "x"; then
3041 LINGUAS=
3042 else
3043 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003044echo "configure:3045: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003045 NEW_LINGUAS=
3046 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3047 case "$ALL_LINGUAS" in
3048 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3049 esac
3050 done
3051 LINGUAS=$NEW_LINGUAS
3052 echo "$ac_t""$LINGUAS" 1>&6
3053 fi
3054
3055 if test -n "$LINGUAS"; then
3056 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3057 fi
3058 fi
3059
3060 if test $ac_cv_header_locale_h = yes; then
3061 INCLUDE_LOCALE_H="#include <locale.h>"
3062 else
3063 INCLUDE_LOCALE_H="\
3064/* The system does not provide the header <locale.h>. Take care yourself. */"
3065 fi
3066
3067
3068 test -d intl || mkdir intl
3069 if test "$CATOBJEXT" = ".cat"; then
3070 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3071echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003072echo "configure:3073: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003073if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3075else
3076 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003077#line 3078 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003078#include "confdefs.h"
3079#include <linux/version.h>
3080EOF
3081ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003082{ (eval echo configure:3083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003083ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3084if test -z "$ac_err"; then
3085 rm -rf conftest*
3086 eval "ac_cv_header_$ac_safe=yes"
3087else
3088 echo "$ac_err" >&5
3089 echo "configure: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3091 rm -rf conftest*
3092 eval "ac_cv_header_$ac_safe=no"
3093fi
3094rm -f conftest*
3095fi
3096if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3097 echo "$ac_t""yes" 1>&6
3098 msgformat=linux
3099else
3100 echo "$ac_t""no" 1>&6
3101msgformat=xopen
3102fi
3103
3104
3105 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3106 fi
3107 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3108 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3109
3110 if test "$PACKAGE" = "gettext"; then
3111 GT_NO="#NO#"
3112 GT_YES=
3113 else
3114 GT_NO=
3115 GT_YES="#YES#"
3116 fi
3117
3118
3119
3120 MKINSTALLDIRS=
3121 if test -n "$ac_aux_dir"; then
3122 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3123 fi
3124 if test -z "$MKINSTALLDIRS"; then
3125 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3126 fi
3127
3128
3129 l=
3130
3131
3132 test -d po || mkdir po
3133 if test "x$srcdir" != "x."; then
3134 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3135 posrcprefix="$srcdir/"
3136 else
3137 posrcprefix="../$srcdir/"
3138 fi
3139 else
3140 posrcprefix="../"
3141 fi
3142 rm -f po/POTFILES
3143 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3144 < $srcdir/po/POTFILES.in > po/POTFILES
3145
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003146# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003147if test "${enable_profile+set}" = set; then
3148 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003149 if test "$enableval" = "no"
3150then
3151 PROFILE_CMT=#
3152 MAKEFILE_PROFILE=/dev/null
3153 echo "Disabling profiling libraries"
3154else
3155 PROFILE_CMT=
3156 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003157 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003158 echo "Building profiling libraries"
3159fi
3160
3161else
3162 PROFILE_CMT=#
3163MAKEFILE_PROFILE=/dev/null
3164echo "Disabling profiling libraries by default"
3165
3166fi
3167
3168
3169
3170# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003171if test "${enable_checker+set}" = set; then
3172 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003173 if test "$enableval" = "no"
3174then
3175 CHECKER_CMT=#
3176 MAKEFILE_CHECKER=/dev/null
3177 echo "Disabling checker libraries"
3178else
3179 CHECKER_CMT=
3180 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3181 echo "Building checker libraries"
3182fi
3183
3184else
3185 CHECKER_CMT=#
3186MAKEFILE_CHECKER=/dev/null
3187echo "Disabling checker libraries by default"
3188
3189fi
3190
3191
3192
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003193
3194
3195
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003196# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003197if test "${enable_gcc_wall+set}" = set; then
3198 enableval="$enable_gcc_wall"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003199 if test "$enableval" = "no"
3200then
3201 W=#
3202 echo "Disabling GCC warnings"
3203else
3204 W=
3205 echo "Enabling GCC warnings"
3206fi
3207
3208else
3209 W=#
3210echo "Disabling GCC warnings by default"
3211
3212fi
3213
3214
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003215# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003216if test "${enable_dynamic_e2fsck+set}" = set; then
3217 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003218 if test "$enableval" = "no"
3219then
3220 E2FSCK_TYPE=static
3221 echo "Building e2fsck statically"
3222else
3223 E2FSCK_TYPE=shared
3224 echo "Building e2fsck dynamically"
3225fi
3226
3227else
3228 E2FSCK_TYPE=static
3229echo "Building e2fsck statically by default"
3230
3231fi
3232
3233
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003234# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003235if test "${enable_fsck+set}" = set; then
3236 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003237 if test "$enableval" = "no"
3238then
3239 FSCK_PROG='' FSCK_MAN=''
3240 echo "Not building fsck wrapper"
3241else
3242 FSCK_PROG=fsck FSCK_MAN=fsck.8
3243 echo "Building fsck wrapper"
3244fi
3245
3246else
3247 case "$host_os" in
3248 gnu*)
3249 FSCK_PROG='' FSCK_MAN=''
3250 echo "Not building fsck wrapper by default"
3251 ;;
3252 *)
3253 FSCK_PROG=fsck FSCK_MAN=fsck.8
3254 echo "Building fsck wrapper by default"
3255esac
3256
3257fi
3258
3259
3260
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003261MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3262
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003263# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003264if test "${enable_old_bitops+set}" = set; then
3265 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003266 if test "$enableval" = "no"
3267then
3268 echo "Using new (standard) bitmask operations"
3269else
3270 cat >> confdefs.h <<\EOF
3271#define EXT2_OLD_BITOPS 1
3272EOF
3273
3274 echo "Using old (native) bitmask operations"
3275
3276fi
3277
3278else
3279 echo "Using standard bitmask operations by default"
3280
3281fi
3282
Theodore Ts'o74becf31997-04-26 14:37:06 +00003283
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003284echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003285echo "configure:3286: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003286set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003287if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3289else
3290 cat > conftestmake <<\EOF
3291all:
3292 @echo 'ac_maketemp="${MAKE}"'
3293EOF
3294# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3295eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3296if test -n "$ac_maketemp"; then
3297 eval ac_cv_prog_make_${ac_make}_set=yes
3298else
3299 eval ac_cv_prog_make_${ac_make}_set=no
3300fi
3301rm -f conftestmake
3302fi
3303if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3305 SET_MAKE=
3306else
3307 echo "$ac_t""no" 1>&6
3308 SET_MAKE="MAKE=${MAKE-make}"
3309fi
3310
3311# Extract the first word of "ln", so it can be a program name with args.
3312set dummy ln; ac_word=$2
3313echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003314echo "configure:3315: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003315if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3317else
3318 case "$LN" in
3319 /*)
3320 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3321 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003322 ?:/*)
3323 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3324 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003325 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3327 ac_dummy="$PATH"
3328 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003329 test -z "$ac_dir" && ac_dir=.
3330 if test -f $ac_dir/$ac_word; then
3331 ac_cv_path_LN="$ac_dir/$ac_word"
3332 break
3333 fi
3334 done
3335 IFS="$ac_save_ifs"
3336 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3337 ;;
3338esac
3339fi
3340LN="$ac_cv_path_LN"
3341if test -n "$LN"; then
3342 echo "$ac_t""$LN" 1>&6
3343else
3344 echo "$ac_t""no" 1>&6
3345fi
3346
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003347echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003348echo "configure:3349: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003349if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3351else
3352 rm -f conftestdata
3353if ln -s X conftestdata 2>/dev/null
3354then
3355 rm -f conftestdata
3356 ac_cv_prog_LN_S="ln -s"
3357else
3358 ac_cv_prog_LN_S=ln
3359fi
3360fi
3361LN_S="$ac_cv_prog_LN_S"
3362if test "$ac_cv_prog_LN_S" = "ln -s"; then
3363 echo "$ac_t""yes" 1>&6
3364else
3365 echo "$ac_t""no" 1>&6
3366fi
3367
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003368# Extract the first word of "mv", so it can be a program name with args.
3369set dummy mv; ac_word=$2
3370echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003371echo "configure:3372: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003372if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3374else
3375 case "$MV" in
3376 /*)
3377 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3378 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003379 ?:/*)
3380 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3381 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003382 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3384 ac_dummy="$PATH"
3385 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003386 test -z "$ac_dir" && ac_dir=.
3387 if test -f $ac_dir/$ac_word; then
3388 ac_cv_path_MV="$ac_dir/$ac_word"
3389 break
3390 fi
3391 done
3392 IFS="$ac_save_ifs"
3393 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3394 ;;
3395esac
3396fi
3397MV="$ac_cv_path_MV"
3398if test -n "$MV"; then
3399 echo "$ac_t""$MV" 1>&6
3400else
3401 echo "$ac_t""no" 1>&6
3402fi
3403
3404# Extract the first word of "cp", so it can be a program name with args.
3405set dummy cp; ac_word=$2
3406echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003407echo "configure:3408: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003408if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3409 echo $ac_n "(cached) $ac_c" 1>&6
3410else
3411 case "$CP" in
3412 /*)
3413 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3414 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003415 ?:/*)
3416 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3417 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003418 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3420 ac_dummy="$PATH"
3421 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003422 test -z "$ac_dir" && ac_dir=.
3423 if test -f $ac_dir/$ac_word; then
3424 ac_cv_path_CP="$ac_dir/$ac_word"
3425 break
3426 fi
3427 done
3428 IFS="$ac_save_ifs"
3429 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3430 ;;
3431esac
3432fi
3433CP="$ac_cv_path_CP"
3434if test -n "$CP"; then
3435 echo "$ac_t""$CP" 1>&6
3436else
3437 echo "$ac_t""no" 1>&6
3438fi
3439
3440# Extract the first word of "rm", so it can be a program name with args.
3441set dummy rm; ac_word=$2
3442echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003443echo "configure:3444: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003444if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3446else
3447 case "$RM" in
3448 /*)
3449 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3450 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003451 ?:/*)
3452 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3453 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003454 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3456 ac_dummy="$PATH"
3457 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003458 test -z "$ac_dir" && ac_dir=.
3459 if test -f $ac_dir/$ac_word; then
3460 ac_cv_path_RM="$ac_dir/$ac_word"
3461 break
3462 fi
3463 done
3464 IFS="$ac_save_ifs"
3465 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3466 ;;
3467esac
3468fi
3469RM="$ac_cv_path_RM"
3470if test -n "$RM"; then
3471 echo "$ac_t""$RM" 1>&6
3472else
3473 echo "$ac_t""no" 1>&6
3474fi
3475
3476# Extract the first word of "chmod", so it can be a program name with args.
3477set dummy chmod; ac_word=$2
3478echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003479echo "configure:3480: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003480if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3482else
3483 case "$CHMOD" in
3484 /*)
3485 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3486 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003487 ?:/*)
3488 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3489 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003490 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3492 ac_dummy="$PATH"
3493 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003494 test -z "$ac_dir" && ac_dir=.
3495 if test -f $ac_dir/$ac_word; then
3496 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3497 break
3498 fi
3499 done
3500 IFS="$ac_save_ifs"
3501 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3502 ;;
3503esac
3504fi
3505CHMOD="$ac_cv_path_CHMOD"
3506if test -n "$CHMOD"; then
3507 echo "$ac_t""$CHMOD" 1>&6
3508else
3509 echo "$ac_t""no" 1>&6
3510fi
3511
3512# Extract the first word of "awk", so it can be a program name with args.
3513set dummy awk; ac_word=$2
3514echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003515echo "configure:3516: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003516if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3518else
3519 case "$AWK" in
3520 /*)
3521 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3522 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003523 ?:/*)
3524 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3525 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003526 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3528 ac_dummy="$PATH"
3529 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003530 test -z "$ac_dir" && ac_dir=.
3531 if test -f $ac_dir/$ac_word; then
3532 ac_cv_path_AWK="$ac_dir/$ac_word"
3533 break
3534 fi
3535 done
3536 IFS="$ac_save_ifs"
3537 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3538 ;;
3539esac
3540fi
3541AWK="$ac_cv_path_AWK"
3542if test -n "$AWK"; then
3543 echo "$ac_t""$AWK" 1>&6
3544else
3545 echo "$ac_t""no" 1>&6
3546fi
3547
3548# Extract the first word of "sed", so it can be a program name with args.
3549set dummy sed; ac_word=$2
3550echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003551echo "configure:3552: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003552if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3554else
3555 case "$SED" in
3556 /*)
3557 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3558 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003559 ?:/*)
3560 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3561 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003562 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3564 ac_dummy="$PATH"
3565 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003566 test -z "$ac_dir" && ac_dir=.
3567 if test -f $ac_dir/$ac_word; then
3568 ac_cv_path_SED="$ac_dir/$ac_word"
3569 break
3570 fi
3571 done
3572 IFS="$ac_save_ifs"
3573 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3574 ;;
3575esac
3576fi
3577SED="$ac_cv_path_SED"
3578if test -n "$SED"; then
3579 echo "$ac_t""$SED" 1>&6
3580else
3581 echo "$ac_t""no" 1>&6
3582fi
3583
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003584# Extract the first word of "perl", so it can be a program name with args.
3585set dummy perl; ac_word=$2
3586echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003587echo "configure:3588: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003588if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3590else
3591 case "$PERL" in
3592 /*)
3593 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3594 ;;
3595 ?:/*)
3596 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3597 ;;
3598 *)
3599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3600 ac_dummy="$PATH"
3601 for ac_dir in $ac_dummy; do
3602 test -z "$ac_dir" && ac_dir=.
3603 if test -f $ac_dir/$ac_word; then
3604 ac_cv_path_PERL="$ac_dir/$ac_word"
3605 break
3606 fi
3607 done
3608 IFS="$ac_save_ifs"
3609 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3610 ;;
3611esac
3612fi
3613PERL="$ac_cv_path_PERL"
3614if test -n "$PERL"; then
3615 echo "$ac_t""$PERL" 1>&6
3616else
3617 echo "$ac_t""no" 1>&6
3618fi
3619
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003620echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003621echo "configure:3622: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003622
3623build_alias=$build
3624case "$build_alias" in
3625NONE)
3626 case $nonopt in
3627 NONE) build_alias=$host_alias ;;
3628 *) build_alias=$nonopt ;;
3629 esac ;;
3630esac
3631
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003632build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003633build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3634build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3635build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003636echo "$ac_t""$build" 1>&6
3637
3638if test $host != $build; then
3639 ac_tool_prefix=${host_alias}-
3640else
3641 ac_tool_prefix=
3642fi
3643
3644# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3645set dummy ${ac_tool_prefix}ar; ac_word=$2
3646echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003647echo "configure:3648: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003648if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3650else
3651 if test -n "$AR"; then
3652 ac_cv_prog_AR="$AR" # Let the user override the test.
3653else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3655 ac_dummy="$PATH"
3656 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003657 test -z "$ac_dir" && ac_dir=.
3658 if test -f $ac_dir/$ac_word; then
3659 ac_cv_prog_AR="${ac_tool_prefix}ar"
3660 break
3661 fi
3662 done
3663 IFS="$ac_save_ifs"
3664fi
3665fi
3666AR="$ac_cv_prog_AR"
3667if test -n "$AR"; then
3668 echo "$ac_t""$AR" 1>&6
3669else
3670 echo "$ac_t""no" 1>&6
3671fi
3672
3673
3674if test -z "$ac_cv_prog_AR"; then
3675if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "ar", so it can be a program name with args.
3677set dummy ar; ac_word=$2
3678echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003679echo "configure:3680: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003680if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3682else
3683 if test -n "$AR"; then
3684 ac_cv_prog_AR="$AR" # Let the user override the test.
3685else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3687 ac_dummy="$PATH"
3688 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003689 test -z "$ac_dir" && ac_dir=.
3690 if test -f $ac_dir/$ac_word; then
3691 ac_cv_prog_AR="ar"
3692 break
3693 fi
3694 done
3695 IFS="$ac_save_ifs"
3696 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3697fi
3698fi
3699AR="$ac_cv_prog_AR"
3700if test -n "$AR"; then
3701 echo "$ac_t""$AR" 1>&6
3702else
3703 echo "$ac_t""no" 1>&6
3704fi
3705
3706else
3707 AR="ar"
3708fi
3709fi
3710
3711# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3712set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3713echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003714echo "configure:3715: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003715if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3717else
3718 if test -n "$RANLIB"; then
3719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3720else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3722 ac_dummy="$PATH"
3723 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003724 test -z "$ac_dir" && ac_dir=.
3725 if test -f $ac_dir/$ac_word; then
3726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3727 break
3728 fi
3729 done
3730 IFS="$ac_save_ifs"
3731fi
3732fi
3733RANLIB="$ac_cv_prog_RANLIB"
3734if test -n "$RANLIB"; then
3735 echo "$ac_t""$RANLIB" 1>&6
3736else
3737 echo "$ac_t""no" 1>&6
3738fi
3739
3740
3741if test -z "$ac_cv_prog_RANLIB"; then
3742if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "ranlib", so it can be a program name with args.
3744set dummy ranlib; ac_word=$2
3745echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003746echo "configure:3747: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003747if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3749else
3750 if test -n "$RANLIB"; then
3751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3752else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3754 ac_dummy="$PATH"
3755 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003756 test -z "$ac_dir" && ac_dir=.
3757 if test -f $ac_dir/$ac_word; then
3758 ac_cv_prog_RANLIB="ranlib"
3759 break
3760 fi
3761 done
3762 IFS="$ac_save_ifs"
3763 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3764fi
3765fi
3766RANLIB="$ac_cv_prog_RANLIB"
3767if test -n "$RANLIB"; then
3768 echo "$ac_t""$RANLIB" 1>&6
3769else
3770 echo "$ac_t""no" 1>&6
3771fi
3772
3773else
3774 RANLIB=":"
3775fi
3776fi
3777
3778# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3779set dummy ${ac_tool_prefix}strip; ac_word=$2
3780echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003781echo "configure:3782: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003782if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3784else
3785 if test -n "$STRIP"; then
3786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3787else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3789 ac_dummy="$PATH"
3790 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003791 test -z "$ac_dir" && ac_dir=.
3792 if test -f $ac_dir/$ac_word; then
3793 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3794 break
3795 fi
3796 done
3797 IFS="$ac_save_ifs"
3798fi
3799fi
3800STRIP="$ac_cv_prog_STRIP"
3801if test -n "$STRIP"; then
3802 echo "$ac_t""$STRIP" 1>&6
3803else
3804 echo "$ac_t""no" 1>&6
3805fi
3806
3807
3808if test -z "$ac_cv_prog_STRIP"; then
3809if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "strip", so it can be a program name with args.
3811set dummy strip; ac_word=$2
3812echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003813echo "configure:3814: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003814if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3816else
3817 if test -n "$STRIP"; then
3818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3819else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3821 ac_dummy="$PATH"
3822 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003823 test -z "$ac_dir" && ac_dir=.
3824 if test -f $ac_dir/$ac_word; then
3825 ac_cv_prog_STRIP="strip"
3826 break
3827 fi
3828 done
3829 IFS="$ac_save_ifs"
3830 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3831fi
3832fi
3833STRIP="$ac_cv_prog_STRIP"
3834if test -n "$STRIP"; then
3835 echo "$ac_t""$STRIP" 1>&6
3836else
3837 echo "$ac_t""no" 1>&6
3838fi
3839
3840else
3841 STRIP=":"
3842fi
3843fi
3844
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003845# Find a good install program. We prefer a C program (faster),
3846# so one script is as good as another. But avoid the broken or
3847# incompatible versions:
3848# SysV /etc/install, /usr/sbin/install
3849# SunOS /usr/etc/install
3850# IRIX /sbin/install
3851# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003852# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003853# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3854# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3855# ./install, which can be erroneously created by make from ./install.sh.
3856echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003857echo "configure:3858: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003858if test -z "$INSTALL"; then
3859if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3861else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003862 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003863 for ac_dir in $PATH; do
3864 # Account for people who put trailing slashes in PATH elements.
3865 case "$ac_dir/" in
3866 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3867 *)
3868 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003869 # Don't use installbsd from OSF since it installs stuff as root
3870 # by default.
3871 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003872 if test -f $ac_dir/$ac_prog; then
3873 if test $ac_prog = install &&
3874 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3875 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003876 :
3877 else
3878 ac_cv_path_install="$ac_dir/$ac_prog -c"
3879 break 2
3880 fi
3881 fi
3882 done
3883 ;;
3884 esac
3885 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003886 IFS="$ac_save_IFS"
3887
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003888fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003889 if test "${ac_cv_path_install+set}" = set; then
3890 INSTALL="$ac_cv_path_install"
3891 else
3892 # As a last resort, use the slow shell script. We don't cache a
3893 # path for INSTALL within a source directory, because that will
3894 # break other packages using the cache if that directory is
3895 # removed, or if the path is relative.
3896 INSTALL="$ac_install_sh"
3897 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003898fi
3899echo "$ac_t""$INSTALL" 1>&6
3900
3901# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3902# It thinks the first close brace ends the variable substitution.
3903test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3904
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003905test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3906
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003907test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3908
Theodore Ts'o6c133521999-07-03 20:37:03 +00003909# See if we need a separate native compiler.
3910if test $cross_compiling = no; then
3911 BUILD_CC="$CC"
3912
3913else
3914 for ac_prog in gcc cc
3915do
3916# Extract the first word of "$ac_prog", so it can be a program name with args.
3917set dummy $ac_prog; ac_word=$2
3918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003919echo "configure:3920: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00003920if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3922else
3923 if test -n "$BUILD_CC"; then
3924 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3925else
3926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3927 ac_dummy="$PATH"
3928 for ac_dir in $ac_dummy; do
3929 test -z "$ac_dir" && ac_dir=.
3930 if test -f $ac_dir/$ac_word; then
3931 ac_cv_prog_BUILD_CC="$ac_prog"
3932 break
3933 fi
3934 done
3935 IFS="$ac_save_ifs"
3936fi
3937fi
3938BUILD_CC="$ac_cv_prog_BUILD_CC"
3939if test -n "$BUILD_CC"; then
3940 echo "$ac_t""$BUILD_CC" 1>&6
3941else
3942 echo "$ac_t""no" 1>&6
3943fi
3944
3945test -n "$BUILD_CC" && break
3946done
3947
3948fi
Theodore Ts'oa2980712000-08-14 14:30:50 +00003949for 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/mount.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003950do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003951ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003952echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003953echo "configure:3954: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003954if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3956else
3957 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003958#line 3959 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003959#include "confdefs.h"
3960#include <$ac_hdr>
3961EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003962ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003963{ (eval echo configure:3964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003964ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003965if test -z "$ac_err"; then
3966 rm -rf conftest*
3967 eval "ac_cv_header_$ac_safe=yes"
3968else
3969 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003972 rm -rf conftest*
3973 eval "ac_cv_header_$ac_safe=no"
3974fi
3975rm -f conftest*
3976fi
3977if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003980 cat >> confdefs.h <<EOF
3981#define $ac_tr_hdr 1
3982EOF
3983
3984else
3985 echo "$ac_t""no" 1>&6
3986fi
3987done
3988
3989echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003990echo "configure:3991: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003991if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3993else
3994 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003995#line 3996 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003996#include "confdefs.h"
3997/* System header to define __stub macros and hopefully few prototypes,
3998 which can conflict with char vprintf(); below. */
3999#include <assert.h>
4000/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004001/* We use char because int might match the return type of a gcc2
4002 builtin and then its argument prototype would still apply. */
4003char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004004
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004005int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004006
4007/* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010#if defined (__stub_vprintf) || defined (__stub___vprintf)
4011choke me
4012#else
4013vprintf();
4014#endif
4015
4016; return 0; }
4017EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004018if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004019 rm -rf conftest*
4020 eval "ac_cv_func_vprintf=yes"
4021else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004024 rm -rf conftest*
4025 eval "ac_cv_func_vprintf=no"
4026fi
4027rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004028fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004029
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004030if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 cat >> confdefs.h <<\EOF
4033#define HAVE_VPRINTF 1
4034EOF
4035
4036else
4037 echo "$ac_t""no" 1>&6
4038fi
4039
4040if test "$ac_cv_func_vprintf" != yes; then
4041echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004042echo "configure:4043: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004043if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4045else
4046 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004047#line 4048 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004048#include "confdefs.h"
4049/* System header to define __stub macros and hopefully few prototypes,
4050 which can conflict with char _doprnt(); below. */
4051#include <assert.h>
4052/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004053/* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */
4055char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004056
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004057int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004058
4059/* The GNU C library defines this for functions which it implements
4060 to always fail with ENOSYS. Some functions are actually named
4061 something starting with __ and the normal name is an alias. */
4062#if defined (__stub__doprnt) || defined (__stub____doprnt)
4063choke me
4064#else
4065_doprnt();
4066#endif
4067
4068; return 0; }
4069EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004070if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004071 rm -rf conftest*
4072 eval "ac_cv_func__doprnt=yes"
4073else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004074 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004076 rm -rf conftest*
4077 eval "ac_cv_func__doprnt=no"
4078fi
4079rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004080fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004081
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004082if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4083 echo "$ac_t""yes" 1>&6
4084 cat >> confdefs.h <<\EOF
4085#define HAVE_DOPRNT 1
4086EOF
4087
4088else
4089 echo "$ac_t""no" 1>&6
4090fi
4091
4092fi
4093
4094echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004095echo "configure:4096: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004096if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4098else
4099 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004100#line 4101 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004101#include "confdefs.h"
4102#include <sys/types.h>
4103#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004104int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004105struct dirent de; de.d_namlen = 0;
4106; return 0; }
4107EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004108if { (eval echo configure:4109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004109 rm -rf conftest*
4110 e2fsprogs_cv_struct_d_namlen=yes
4111else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004114 rm -rf conftest*
4115 e2fsprogs_cv_struct_d_namlen=no
4116fi
4117rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004118fi
4119
4120echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4121if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4122 cat >> confdefs.h <<\EOF
4123#define HAVE_DIRENT_NAMLEN 1
4124EOF
4125
4126fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004127echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004128echo "configure:4129: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004129if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4131else
4132 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004133#line 4134 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004134#include "confdefs.h"
4135#include <unistd.h>
4136int main() {
4137extern int llseek(int);
4138; return 0; }
4139EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004140if { (eval echo configure:4141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004141 rm -rf conftest*
4142 e2fsprogs_cv_have_llseek_prototype=no
4143else
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4146 rm -rf conftest*
4147 e2fsprogs_cv_have_llseek_prototype=yes
4148fi
4149rm -f conftest*
4150fi
4151
4152echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4153if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4154 cat >> confdefs.h <<\EOF
4155#define HAVE_LLSEEK_PROTOTYPE 1
4156EOF
4157
4158fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004159echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004160echo "configure:4161: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004161if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4163else
4164 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004165#line 4166 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004166#include "confdefs.h"
4167#define _LARGEFILE_SOURCE
4168#define _LARGEFILE64_SOURCE
4169#include <unistd.h>
4170int main() {
4171extern int lseek64(int);
4172; return 0; }
4173EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004174if { (eval echo configure:4175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004175 rm -rf conftest*
4176 e2fsprogs_cv_have_lseek64_prototype=no
4177else
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4180 rm -rf conftest*
4181 e2fsprogs_cv_have_lseek64_prototype=yes
4182fi
4183rm -f conftest*
4184fi
4185
4186echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4187if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4188 cat >> confdefs.h <<\EOF
4189#define HAVE_LSEEK64_PROTOTYPE 1
4190EOF
4191
4192fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004193if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4194 # if cross-compiling, with no cached values, just assume something common.
4195 ac_cv_sizeof_short=2
4196 ac_cv_sizeof_int=4
4197 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004198 ac_cv_sizeof_long_long=8
4199 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 +00004200fi
4201echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004202echo "configure:4203: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004203if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4205else
4206 if test "$cross_compiling" = yes; then
4207 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4208else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004209 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004210#line 4211 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004211#include "confdefs.h"
4212#include <stdio.h>
4213main()
4214{
4215 FILE *f=fopen("conftestval", "w");
4216 if (!f) exit(1);
4217 fprintf(f, "%d\n", sizeof(short));
4218 exit(0);
4219}
4220EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004221if { (eval echo configure:4222: \"$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 +00004222then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004223 ac_cv_sizeof_short=`cat conftestval`
4224else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004228 ac_cv_sizeof_short=0
4229fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004230rm -fr conftest*
4231fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004232
4233fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004234echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4235cat >> confdefs.h <<EOF
4236#define SIZEOF_SHORT $ac_cv_sizeof_short
4237EOF
4238
4239
4240echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004241echo "configure:4242: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004242if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4244else
4245 if test "$cross_compiling" = yes; then
4246 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4247else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004248 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004249#line 4250 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004250#include "confdefs.h"
4251#include <stdio.h>
4252main()
4253{
4254 FILE *f=fopen("conftestval", "w");
4255 if (!f) exit(1);
4256 fprintf(f, "%d\n", sizeof(int));
4257 exit(0);
4258}
4259EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004260if { (eval echo configure:4261: \"$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 +00004261then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004262 ac_cv_sizeof_int=`cat conftestval`
4263else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4266 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004267 ac_cv_sizeof_int=0
4268fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004269rm -fr conftest*
4270fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004271
4272fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004273echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4274cat >> confdefs.h <<EOF
4275#define SIZEOF_INT $ac_cv_sizeof_int
4276EOF
4277
4278
4279echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004280echo "configure:4281: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004281if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4283else
4284 if test "$cross_compiling" = yes; then
4285 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4286else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004287 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004288#line 4289 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004289#include "confdefs.h"
4290#include <stdio.h>
4291main()
4292{
4293 FILE *f=fopen("conftestval", "w");
4294 if (!f) exit(1);
4295 fprintf(f, "%d\n", sizeof(long));
4296 exit(0);
4297}
4298EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004299if { (eval echo configure:4300: \"$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 +00004300then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004301 ac_cv_sizeof_long=`cat conftestval`
4302else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004306 ac_cv_sizeof_long=0
4307fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004308rm -fr conftest*
4309fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004310
4311fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004312echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4313cat >> confdefs.h <<EOF
4314#define SIZEOF_LONG $ac_cv_sizeof_long
4315EOF
4316
4317
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004318echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004319echo "configure:4320: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004320if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4322else
4323 if test "$cross_compiling" = yes; then
4324 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4325else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004326 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004327#line 4328 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004328#include "confdefs.h"
4329#include <stdio.h>
4330main()
4331{
4332 FILE *f=fopen("conftestval", "w");
4333 if (!f) exit(1);
4334 fprintf(f, "%d\n", sizeof(long long));
4335 exit(0);
4336}
4337EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004338if { (eval echo configure:4339: \"$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 +00004339then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004340 ac_cv_sizeof_long_long=`cat conftestval`
4341else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4344 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004345 ac_cv_sizeof_long_long=0
4346fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004347rm -fr conftest*
4348fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004349
4350fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004351echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4352cat >> confdefs.h <<EOF
4353#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4354EOF
4355
4356
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004357SIZEOF_SHORT=$ac_cv_sizeof_short
4358SIZEOF_INT=$ac_cv_sizeof_int
4359SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004360SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4361
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004362
4363
4364
4365echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004366echo "configure:4367: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004367if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4369else
4370 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004371#line 4372 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004372#include "confdefs.h"
4373#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004374int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004375struct stat stat; stat.st_flags = 0;
4376; return 0; }
4377EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004378if { (eval echo configure:4379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004379 rm -rf conftest*
4380 e2fsprogs_cv_struct_st_flags=yes
4381else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004384 rm -rf conftest*
4385 e2fsprogs_cv_struct_st_flags=no
4386fi
4387rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004388fi
4389
4390echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4391if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004392 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004393echo "configure:4394: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004394 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4396else
4397 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004398#line 4399 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004399#include "confdefs.h"
4400#include <sys/stat.h>
4401int main() {
4402struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4403; return 0; }
4404EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004405if { (eval echo configure:4406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004406 rm -rf conftest*
4407 e2fsprogs_cv_struct_st_flags_immut=yes
4408else
4409 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4411 rm -rf conftest*
4412 e2fsprogs_cv_struct_st_flags_immut=no
4413fi
4414rm -f conftest*
4415fi
4416
4417 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4418 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4419 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004420#define HAVE_STAT_FLAGS 1
4421EOF
4422
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004423 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004424fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004425for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004426do
4427echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004428echo "configure:4429: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004429if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4431else
4432 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004433#line 4434 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004434#include "confdefs.h"
4435/* System header to define __stub macros and hopefully few prototypes,
4436 which can conflict with char $ac_func(); below. */
4437#include <assert.h>
4438/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004439/* We use char because int might match the return type of a gcc2
4440 builtin and then its argument prototype would still apply. */
4441char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004442
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004443int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004444
4445/* The GNU C library defines this for functions which it implements
4446 to always fail with ENOSYS. Some functions are actually named
4447 something starting with __ and the normal name is an alias. */
4448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4449choke me
4450#else
4451$ac_func();
4452#endif
4453
4454; return 0; }
4455EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004456if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004457 rm -rf conftest*
4458 eval "ac_cv_func_$ac_func=yes"
4459else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004462 rm -rf conftest*
4463 eval "ac_cv_func_$ac_func=no"
4464fi
4465rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004466fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004467
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004468if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004471 cat >> confdefs.h <<EOF
4472#define $ac_tr_func 1
4473EOF
4474
4475else
4476 echo "$ac_t""no" 1>&6
4477fi
4478done
4479
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004480echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004481echo "configure:4482: checking ino_t defined by sys/types.h" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004482if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4484else
4485 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004486#line 4487 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004487#include "confdefs.h"
4488#include <sys/types.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004489int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004490ino_t ino; ino = 0;
4491; return 0; }
4492EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004493if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004494 rm -rf conftest*
4495 e2fsprogs_cv_ino_t=yes
4496else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004499 rm -rf conftest*
4500 e2fsprogs_cv_ino_t=no
4501fi
4502rm -f conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004503fi
4504
4505echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
4506if test "$e2fsprogs_cv_ino_t" = yes; then
4507 cat >> confdefs.h <<\EOF
4508#define HAVE_INO_T 1
4509EOF
4510
4511fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004512SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004513echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004514echo "configure:4515: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004515ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4516if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004517 echo $ac_n "(cached) $ac_c" 1>&6
4518else
4519 ac_save_LIBS="$LIBS"
4520LIBS="-lsocket $LIBS"
4521cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004522#line 4523 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004523#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004524/* Override any gcc2 internal prototype to avoid an error. */
4525/* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4527char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004528
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004529int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004530socket()
4531; return 0; }
4532EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004533if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004534 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004535 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004536else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004539 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004540 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004541fi
4542rm -f conftest*
4543LIBS="$ac_save_LIBS"
4544
4545fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004546if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004547 echo "$ac_t""yes" 1>&6
4548 SOCKET_LIB=-lsocket
4549else
4550 echo "$ac_t""no" 1>&6
4551fi
4552
4553
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004554echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004555echo "configure:4556: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004556if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4558else
4559 cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004560#line 4561 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004561#include "confdefs.h"
4562#include <unistd.h>
4563EOF
4564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 egrep "optreset" >/dev/null 2>&1; then
4566 rm -rf conftest*
4567 ac_cv_have_optreset=yes
4568else
4569 rm -rf conftest*
4570 ac_cv_have_optreset=no
4571fi
4572rm -f conftest*
4573
4574fi
4575echo "$ac_t""$ac_cv_have_optreset" 1>&6
4576if test $ac_cv_have_optreset = yes; then
4577 cat >> confdefs.h <<\EOF
4578#define HAVE_OPTRESET 1
4579EOF
4580
4581fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004582case "$host_os" in
4583linux*)
4584 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004585#define HAVE_EXT2_IOCTLS 1
4586EOF
4587
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004588 ;;
4589esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004590case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004591linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004592 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4593 root_prefix="";
4594 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004595 fi
4596 ;;
4597esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004598case "$host_os" in
4599linux* | gnu*)
4600 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004601 prefix="/usr";
4602 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004603 fi
4604;;
4605esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004606if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004607 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004608 root_prefix="$ac_default_prefix"
4609 else
4610 root_prefix="$prefix"
4611 fi
4612fi
4613
Theodore Ts'oae851481997-04-29 18:13:24 +00004614echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004615echo "configure:4616: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004616if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4618else
4619 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4620cat > conftest.$ac_ext <<EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004621#line 4622 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004622#include "confdefs.h"
4623#include <stdio.h>
4624int main() {
4625fflush(stdout);
4626; return 0; }
4627EOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004628if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004629 rm -rf conftest*
4630 ac_cv_e2fsprogs_use_static=yes
4631else
4632 echo "configure: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4634 rm -rf conftest*
4635 ac_cv_e2fsprogs_use_static=no
4636fi
4637rm -f conftest*
4638LDFLAGS=$SAVE_LDFLAGS
4639fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004640
Theodore Ts'odefde781999-01-04 07:39:19 +00004641case "$host_os" in
4642solaris2.*)
4643 ac_cv_e2fsprogs_use_static=no
4644;;
4645esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004646echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004647LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004648if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004649 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004650fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004651
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004652SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4653ET_DIR=`cd ${srcdir}/lib/et; pwd`
4654
4655
4656if test "$cross_compiling" = yes ; then
4657 DO_TEST_SUITE=
4658else
4659 DO_TEST_SUITE=check
4660fi
4661
4662test -d lib || mkdir lib
4663test -d include || mkdir include
4664test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004665test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004666rmakefile=
4667if test -d ${srcdir}/resize ; then
4668 rmakefile=resize/Makefile
4669fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004670trap '' 1 2 15
4671cat > confcache <<\EOF
4672# This file is a shell script that caches the results of configure
4673# tests run on this system so they can be shared between configure
4674# scripts and configure runs. It is not useful on other systems.
4675# If it contains results you don't want to keep, you may remove or edit it.
4676#
4677# By default, configure uses ./config.cache as the cache file,
4678# creating it if it does not exist already. You can give configure
4679# the --cache-file=FILE option to use a different cache file; that is
4680# what configure does when it calls configure scripts in
4681# subdirectories, so they share the cache.
4682# Giving --cache-file=/dev/null disables caching, for debugging configure.
4683# config.status only pays attention to the cache file if you give it the
4684# --recheck option to rerun configure.
4685#
4686EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004687# The following way of writing the cache mishandles newlines in values,
4688# but we know of no workaround that is simple, portable, and efficient.
4689# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004690# Ultrix sh set writes to stderr and can't be redirected directly,
4691# and sets the high bit in the cache file unless we assign to the vars.
4692(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004693 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004694 *ac_space=\ *)
4695 # `set' does not quote correctly, so add quotes (double-quote substitution
4696 # turns \\\\ into \\, and sed turns \\ into \).
4697 sed -n \
4698 -e "s/'/'\\\\''/g" \
4699 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4700 ;;
4701 *)
4702 # `set' quotes correctly as required by POSIX, so do not add quotes.
4703 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4704 ;;
4705 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004706if cmp -s $cache_file confcache; then
4707 :
4708else
4709 if test -w $cache_file; then
4710 echo "updating cache $cache_file"
4711 cat confcache > $cache_file
4712 else
4713 echo "not updating unwritable cache $cache_file"
4714 fi
4715fi
4716rm -f confcache
4717
4718trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4719
4720test "x$prefix" = xNONE && prefix=$ac_default_prefix
4721# Let make expand exec_prefix.
4722test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4723
4724# Any assignment to VPATH causes Sun make to only execute
4725# the first set of double-colon rules, so remove it if not needed.
4726# If there is a colon in the path, we need to keep it.
4727if test "x$srcdir" = x.; then
4728 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4729fi
4730
4731trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4732
4733# Transform confdefs.h into DEFS.
4734# Protect against shell expansion while executing Makefile rules.
4735# Protect against Makefile macro expansion.
4736cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004737s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004738s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4739s%\[%\\&%g
4740s%\]%\\&%g
4741s%\$%$$%g
4742EOF
4743DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4744rm -f conftest.defs
4745
4746
4747# Without the "./", some shells look in PATH for config.status.
4748: ${CONFIG_STATUS=./config.status}
4749
4750echo creating $CONFIG_STATUS
4751rm -f $CONFIG_STATUS
4752cat > $CONFIG_STATUS <<EOF
4753#! /bin/sh
4754# Generated automatically by configure.
4755# Run this file to recreate the current configuration.
4756# This directory was configured as follows,
4757# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4758#
4759# $0 $ac_configure_args
4760#
4761# Compiler output produced by configure, useful for debugging
4762# configure, is in ./config.log if it exists.
4763
4764ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4765for ac_option
4766do
4767 case "\$ac_option" in
4768 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4769 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4770 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4771 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004772 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004773 exit 0 ;;
4774 -help | --help | --hel | --he | --h)
4775 echo "\$ac_cs_usage"; exit 0 ;;
4776 *) echo "\$ac_cs_usage"; exit 1 ;;
4777 esac
4778done
4779
4780ac_given_srcdir=$srcdir
4781ac_given_INSTALL="$INSTALL"
4782
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004783trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004784 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4785 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004786 tests/progs/Makefile $rmakefile doc/Makefile
4787 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004788EOF
4789cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004790
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004791# Protect against being on the right side of a sed subst in config.status.
4792sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4793 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004794$ac_vpsub
4795$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004796s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004797s%@CFLAGS@%$CFLAGS%g
4798s%@CPPFLAGS@%$CPPFLAGS%g
4799s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004800s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004801s%@DEFS@%$DEFS%g
4802s%@LDFLAGS@%$LDFLAGS%g
4803s%@LIBS@%$LIBS%g
4804s%@exec_prefix@%$exec_prefix%g
4805s%@prefix@%$prefix%g
4806s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004807s%@bindir@%$bindir%g
4808s%@sbindir@%$sbindir%g
4809s%@libexecdir@%$libexecdir%g
4810s%@datadir@%$datadir%g
4811s%@sysconfdir@%$sysconfdir%g
4812s%@sharedstatedir@%$sharedstatedir%g
4813s%@localstatedir@%$localstatedir%g
4814s%@libdir@%$libdir%g
4815s%@includedir@%$includedir%g
4816s%@oldincludedir@%$oldincludedir%g
4817s%@infodir@%$infodir%g
4818s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004819/@MCONFIG@/r $MCONFIG
4820s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004821s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4822s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4823s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004824s%@host@%$host%g
4825s%@host_alias@%$host_alias%g
4826s%@host_cpu@%$host_cpu%g
4827s%@host_vendor@%$host_vendor%g
4828s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004829s%@CC@%$CC%g
4830s%@LD@%$LD%g
4831s%@CCOPTS@%$CCOPTS%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004832s%@CPP@%$CPP%g
4833s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004834s%@DLL_CMT@%$DLL_CMT%g
4835/@MAKEFILE_DLL@/r $MAKEFILE_DLL
4836s%@MAKEFILE_DLL@%%g
4837s%@ELF_CMT@%$ELF_CMT%g
4838/@MAKEFILE_ELF@/r $MAKEFILE_ELF
4839s%@MAKEFILE_ELF@%%g
4840s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4841/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4842s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004843s%@PACKAGE@%$PACKAGE%g
4844s%@VERSION@%$VERSION%g
4845s%@SET_MAKE@%$SET_MAKE%g
4846s%@RANLIB@%$RANLIB%g
4847s%@ALLOCA@%$ALLOCA%g
4848s%@USE_NLS@%$USE_NLS%g
4849s%@MSGFMT@%$MSGFMT%g
4850s%@GMSGFMT@%$GMSGFMT%g
4851s%@XGETTEXT@%$XGETTEXT%g
4852s%@GENCAT@%$GENCAT%g
4853s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4854s%@CATALOGS@%$CATALOGS%g
4855s%@CATOBJEXT@%$CATOBJEXT%g
4856s%@DATADIRNAME@%$DATADIRNAME%g
4857s%@GMOFILES@%$GMOFILES%g
4858s%@INSTOBJEXT@%$INSTOBJEXT%g
4859s%@INTLDEPS@%$INTLDEPS%g
4860s%@INTLLIBS@%$INTLLIBS%g
4861s%@INTLOBJS@%$INTLOBJS%g
4862s%@POFILES@%$POFILES%g
4863s%@POSUB@%$POSUB%g
4864s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4865s%@GT_NO@%$GT_NO%g
4866s%@GT_YES@%$GT_YES%g
4867s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4868s%@l@%$l%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004869s%@PROFILE_CMT@%$PROFILE_CMT%g
4870/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4871s%@MAKEFILE_PROFILE@%%g
4872s%@CHECKER_CMT@%$CHECKER_CMT%g
4873/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4874s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004875s%@LIB_EXT@%$LIB_EXT%g
4876s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4877s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004878s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004879s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004880s%@FSCK_PROG@%$FSCK_PROG%g
4881s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004882/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4883s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004884s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004885s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004886s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004887s%@MV@%$MV%g
4888s%@CP@%$CP%g
4889s%@RM@%$RM%g
4890s%@CHMOD@%$CHMOD%g
4891s%@AWK@%$AWK%g
4892s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004893s%@PERL@%$PERL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004894s%@build@%$build%g
4895s%@build_alias@%$build_alias%g
4896s%@build_cpu@%$build_cpu%g
4897s%@build_vendor@%$build_vendor%g
4898s%@build_os@%$build_os%g
4899s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004900s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004901s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004902s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004903s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00004904s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004905s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4906s%@SIZEOF_INT@%$SIZEOF_INT%g
4907s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004908s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004909s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004910s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004911s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004912s%@SS_DIR@%$SS_DIR%g
4913s%@ET_DIR@%$ET_DIR%g
4914s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
4915
4916CEOF
4917EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004918
4919cat >> $CONFIG_STATUS <<\EOF
4920
4921# Split the substitutions into bite-sized pieces for seds with
4922# small command number limits, like on Digital OSF/1 and HP-UX.
4923ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4924ac_file=1 # Number of current file.
4925ac_beg=1 # First line for current file.
4926ac_end=$ac_max_sed_cmds # Line after last line for current file.
4927ac_more_lines=:
4928ac_sed_cmds=""
4929while $ac_more_lines; do
4930 if test $ac_beg -gt 1; then
4931 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4932 else
4933 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4934 fi
4935 if test ! -s conftest.s$ac_file; then
4936 ac_more_lines=false
4937 rm -f conftest.s$ac_file
4938 else
4939 if test -z "$ac_sed_cmds"; then
4940 ac_sed_cmds="sed -f conftest.s$ac_file"
4941 else
4942 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4943 fi
4944 ac_file=`expr $ac_file + 1`
4945 ac_beg=$ac_end
4946 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4947 fi
4948done
4949if test -z "$ac_sed_cmds"; then
4950 ac_sed_cmds=cat
4951fi
4952EOF
4953
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004954cat >> $CONFIG_STATUS <<EOF
4955
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004956CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004957 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4958 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004959 tests/progs/Makefile $rmakefile doc/Makefile
4960 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004961EOF
4962cat >> $CONFIG_STATUS <<\EOF
4963for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004965 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004966 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004967 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4968 *) ac_file_in="${ac_file}.in" ;;
4969 esac
4970
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004971 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004972
4973 # Remove last slash and all that follows it. Not all systems have dirname.
4974 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4975 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4976 # The file is in a subdirectory.
4977 test ! -d "$ac_dir" && mkdir "$ac_dir"
4978 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4979 # A "../" for each directory in $ac_dir_suffix.
4980 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4981 else
4982 ac_dir_suffix= ac_dots=
4983 fi
4984
4985 case "$ac_given_srcdir" in
4986 .) srcdir=.
4987 if test -z "$ac_dots"; then top_srcdir=.
4988 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4989 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4990 *) # Relative path.
4991 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4992 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4993 esac
4994
4995 case "$ac_given_INSTALL" in
4996 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4997 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4998 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004999
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005000 echo creating "$ac_file"
5001 rm -f "$ac_file"
5002 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5003 case "$ac_file" in
5004 *Makefile*) ac_comsub="1i\\
5005# $configure_input" ;;
5006 *) ac_comsub= ;;
5007 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005008
5009 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 +00005010 sed -e "$ac_comsub
5011s%@configure_input@%$configure_input%g
5012s%@srcdir@%$srcdir%g
5013s%@top_srcdir@%$top_srcdir%g
5014s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005015" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005016fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005017rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005018
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005019EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005020
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005021cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005022ac_sources="$nls_cv_header_libgt"
5023ac_dests="$nls_cv_header_intl"
5024EOF
5025
5026cat >> $CONFIG_STATUS <<\EOF
5027srcdir=$ac_given_srcdir
5028while test -n "$ac_sources"; do
5029 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5030 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5031
5032 echo "linking $srcdir/$ac_source to $ac_dest"
5033
5034 if test ! -r $srcdir/$ac_source; then
5035 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5036 fi
5037 rm -f $ac_dest
5038
5039 # Make relative symlinks.
5040 # Remove last slash and all that follows it. Not all systems have dirname.
5041 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5042 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5043 # The dest file is in a subdirectory.
5044 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5045 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5046 # A "../" for each directory in $ac_dest_dir_suffix.
5047 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5048 else
5049 ac_dest_dir_suffix= ac_dots=
5050 fi
5051
5052 case "$srcdir" in
5053 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5054 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5055 esac
5056
5057 # Make a symlink if possible; otherwise try a hard link.
5058 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5059 ln $srcdir/$ac_source $ac_dest; then :
5060 else
5061 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5062 fi
5063done
5064EOF
5065cat >> $CONFIG_STATUS <<EOF
5066
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005067
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005068EOF
5069cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005070case "$CONFIG_FILES" in *po/Makefile.in*)
5071 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5072 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005073
5074exit 0
5075EOF
5076chmod +x $CONFIG_STATUS
5077rm -fr confdefs* $ac_clean_files
5078test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5079