blob: f0f3efcf52cfca11573d4cfa668101ff4c0b7a17 [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'oa64c9c12000-02-08 20:17:21 +000033 --enable-nls Turn on Native Language Support"
34ac_help="$ac_help
35 --with-included-gettext use the GNU gettext library included here"
36ac_help="$ac_help
37 --with-catgets use catgets functions if available"
38ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000039 --enable-profile build profiling libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000040ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000041 --enable-checker build checker libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000042ac_help="$ac_help
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000043 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
Theodore Ts'oa4d09611997-04-29 14:28:00 +000044ac_help="$ac_help
45 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000046ac_help="$ac_help
47 --enable-fsck build fsck wrapper program"
48ac_help="$ac_help
49 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000050
51# Initialize some variables set by options.
52# The variables have the same names as the options, with
53# dashes changed to underlines.
54build=NONE
55cache_file=./config.cache
56exec_prefix=NONE
57host=NONE
58no_create=
59nonopt=NONE
60no_recursion=
61prefix=NONE
62program_prefix=NONE
63program_suffix=NONE
64program_transform_name=s,x,x,
65silent=
66site=
67srcdir=
68target=NONE
69verbose=
70x_includes=NONE
71x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000072bindir='${exec_prefix}/bin'
73sbindir='${exec_prefix}/sbin'
74libexecdir='${exec_prefix}/libexec'
75datadir='${prefix}/share'
76sysconfdir='${prefix}/etc'
77sharedstatedir='${prefix}/com'
78localstatedir='${prefix}/var'
79libdir='${exec_prefix}/lib'
80includedir='${prefix}/include'
81oldincludedir='/usr/include'
82infodir='${prefix}/info'
83mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000084
85# Initialize some other variables.
86subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000087MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000088SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000089# Maximum number of lines to put in a shell here document.
90ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000091
92ac_prev=
93for ac_option
94do
95
96 # If the previous option needs an argument, assign it.
97 if test -n "$ac_prev"; then
98 eval "$ac_prev=\$ac_option"
99 ac_prev=
100 continue
101 fi
102
103 case "$ac_option" in
104 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
105 *) ac_optarg= ;;
106 esac
107
108 # Accept the important Cygnus configure options, so we can diagnose typos.
109
110 case "$ac_option" in
111
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
113 ac_prev=bindir ;;
114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115 bindir="$ac_optarg" ;;
116
117 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000118 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000120 build="$ac_optarg" ;;
121
122 -cache-file | --cache-file | --cache-fil | --cache-fi \
123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
124 ac_prev=cache_file ;;
125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
127 cache_file="$ac_optarg" ;;
128
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000129 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
130 ac_prev=datadir ;;
131 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
132 | --da=*)
133 datadir="$ac_optarg" ;;
134
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000135 -disable-* | --disable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 fi
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}=no" ;;
143
144 -enable-* | --enable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 fi
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 case "$ac_option" in
152 *=*) ;;
153 *) ac_optarg=yes ;;
154 esac
155 eval "enable_${ac_feature}='$ac_optarg'" ;;
156
157 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
158 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
159 | --exec | --exe | --ex)
160 ac_prev=exec_prefix ;;
161 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
162 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
163 | --exec=* | --exe=* | --ex=*)
164 exec_prefix="$ac_optarg" ;;
165
166 -gas | --gas | --ga | --g)
167 # Obsolete; use --with-gas.
168 with_gas=yes ;;
169
170 -help | --help | --hel | --he)
171 # Omit some internal or obsolete options to make the list less imposing.
172 # This message is too long to be a string in the A/UX 3.1 sh.
173 cat << EOF
174Usage: configure [options] [host]
175Options: [defaults in brackets after descriptions]
176Configuration:
177 --cache-file=FILE cache test results in FILE
178 --help print this message
179 --no-create do not create output files
180 --quiet, --silent do not print \`checking...' messages
181 --version print the version of autoconf that created configure
182Directory and file names:
183 --prefix=PREFIX install architecture-independent files in PREFIX
184 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000186 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000187 --bindir=DIR user executables in DIR [EPREFIX/bin]
188 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
189 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
190 --datadir=DIR read-only architecture-independent data in DIR
191 [PREFIX/share]
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
194 [PREFIX/com]
195 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
196 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
197 --includedir=DIR C header files in DIR [PREFIX/include]
198 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
199 --infodir=DIR info documentation in DIR [PREFIX/info]
200 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000201 --srcdir=DIR find the sources in DIR [configure dir or ..]
202 --program-prefix=PREFIX prepend PREFIX to installed program names
203 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000204 --program-transform-name=PROGRAM
205 run sed PROGRAM on installed program names
206EOF
207 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000208Host type:
209 --build=BUILD configure for building on BUILD [BUILD=HOST]
210 --host=HOST configure for HOST [guessed]
211 --target=TARGET configure for TARGET [TARGET=HOST]
212Features and packages:
213 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
214 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
217 --x-includes=DIR X include files are in DIR
218 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000219EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000220 if test -n "$ac_help"; then
221 echo "--enable and --with options recognized:$ac_help"
222 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000223 exit 0 ;;
224
225 -host | --host | --hos | --ho)
226 ac_prev=host ;;
227 -host=* | --host=* | --hos=* | --ho=*)
228 host="$ac_optarg" ;;
229
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000230 -includedir | --includedir | --includedi | --included | --include \
231 | --includ | --inclu | --incl | --inc)
232 ac_prev=includedir ;;
233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234 | --includ=* | --inclu=* | --incl=* | --inc=*)
235 includedir="$ac_optarg" ;;
236
237 -infodir | --infodir | --infodi | --infod | --info | --inf)
238 ac_prev=infodir ;;
239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240 infodir="$ac_optarg" ;;
241
242 -libdir | --libdir | --libdi | --libd)
243 ac_prev=libdir ;;
244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
245 libdir="$ac_optarg" ;;
246
247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248 | --libexe | --libex | --libe)
249 ac_prev=libexecdir ;;
250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251 | --libexe=* | --libex=* | --libe=*)
252 libexecdir="$ac_optarg" ;;
253
254 -localstatedir | --localstatedir | --localstatedi | --localstated \
255 | --localstate | --localstat | --localsta | --localst \
256 | --locals | --local | --loca | --loc | --lo)
257 ac_prev=localstatedir ;;
258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261 localstatedir="$ac_optarg" ;;
262
263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
264 ac_prev=mandir ;;
265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266 mandir="$ac_optarg" ;;
267
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000268 -nfp | --nfp | --nf)
269 # Obsolete; use --without-fp.
270 with_fp=no ;;
271
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273 | --no-cr | --no-c)
274 no_create=yes ;;
275
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
278 no_recursion=yes ;;
279
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282 | --oldin | --oldi | --old | --ol | --o)
283 ac_prev=oldincludedir ;;
284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287 oldincludedir="$ac_optarg" ;;
288
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
290 ac_prev=prefix ;;
291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292 prefix="$ac_optarg" ;;
293
294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
295 | --program-pre | --program-pr | --program-p)
296 ac_prev=program_prefix ;;
297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299 program_prefix="$ac_optarg" ;;
300
301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
302 | --program-suf | --program-su | --program-s)
303 ac_prev=program_suffix ;;
304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306 program_suffix="$ac_optarg" ;;
307
308 -program-transform-name | --program-transform-name \
309 | --program-transform-nam | --program-transform-na \
310 | --program-transform-n | --program-transform- \
311 | --program-transform | --program-transfor \
312 | --program-transfo | --program-transf \
313 | --program-trans | --program-tran \
314 | --progr-tra | --program-tr | --program-t)
315 ac_prev=program_transform_name ;;
316 -program-transform-name=* | --program-transform-name=* \
317 | --program-transform-nam=* | --program-transform-na=* \
318 | --program-transform-n=* | --program-transform-=* \
319 | --program-transform=* | --program-transfor=* \
320 | --program-transfo=* | --program-transf=* \
321 | --program-trans=* | --program-tran=* \
322 | --progr-tra=* | --program-tr=* | --program-t=*)
323 program_transform_name="$ac_optarg" ;;
324
325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326 | -silent | --silent | --silen | --sile | --sil)
327 silent=yes ;;
328
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
330 ac_prev=sbindir ;;
331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
332 | --sbi=* | --sb=*)
333 sbindir="$ac_optarg" ;;
334
335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337 | --sharedst | --shareds | --shared | --share | --shar \
338 | --sha | --sh)
339 ac_prev=sharedstatedir ;;
340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
343 | --sha=* | --sh=*)
344 sharedstatedir="$ac_optarg" ;;
345
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000346 -site | --site | --sit)
347 ac_prev=site ;;
348 -site=* | --site=* | --sit=*)
349 site="$ac_optarg" ;;
350
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352 ac_prev=srcdir ;;
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
355
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357 | --syscon | --sysco | --sysc | --sys | --sy)
358 ac_prev=sysconfdir ;;
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361 sysconfdir="$ac_optarg" ;;
362
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000363 -target | --target | --targe | --targ | --tar | --ta | --t)
364 ac_prev=target ;;
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
367
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 verbose=yes ;;
370
371 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000372 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000373 exit 0 ;;
374
375 -with-* | --with-*)
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 fi
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 case "$ac_option" in
383 *=*) ;;
384 *) ac_optarg=yes ;;
385 esac
386 eval "with_${ac_package}='$ac_optarg'" ;;
387
388 -without-* | --without-*)
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 fi
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
396
397 --x)
398 # Obsolete; use --with-x.
399 with_x=yes ;;
400
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402 | --x-incl | --x-inc | --x-in | --x-i)
403 ac_prev=x_includes ;;
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406 x_includes="$ac_optarg" ;;
407
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410 ac_prev=x_libraries ;;
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413 x_libraries="$ac_optarg" ;;
414
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
416 ;;
417
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000418 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
421 fi
422 if test "x$nonopt" != xNONE; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 fi
425 nonopt="$ac_option"
426 ;;
427
428 esac
429done
430
431if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433fi
434
435trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
436
437# File descriptor usage:
438# 0 standard input
439# 1 file creation
440# 2 errors and warnings
441# 3 some systems may open it to /dev/tty
442# 4 used on the Kubota Titan
443# 6 checking for... messages and results
444# 5 compiler messages saved in config.log
445if test "$silent" = yes; then
446 exec 6>/dev/null
447else
448 exec 6>&1
449fi
450exec 5>./config.log
451
452echo "\
453This file contains any messages produced by compilers while
454running configure, to aid debugging if configure makes a mistake.
455" 1>&5
456
457# Strip out --no-create and --no-recursion so they do not pile up.
458# Also quote any args containing shell metacharacters.
459ac_configure_args=
460for ac_arg
461do
462 case "$ac_arg" in
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c) ;;
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 esac
471done
472
473# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000474# Only set these to C if already set. These must not be set unconditionally
475# because not all systems understand e.g. LANG=C (notably SCO).
476# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000478if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000479if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000482
483# confdefs.h avoids OS command line length limits that DEFS can exceed.
484rm -rf conftest* confdefs.h
485# AIX cpp loses on an empty file, so make sure it contains at least a newline.
486echo > confdefs.h
487
488# A filename unique to this package, relative to the directory that
489# configure is in, which we can look for to find out if srcdir is correct.
490ac_unique_file=version.h
491
492# Find the source files, if location was not specified.
493if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
496 ac_prog=$0
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
499 srcdir=$ac_confdir
500 if test ! -r $srcdir/$ac_unique_file; then
501 srcdir=..
502 fi
503else
504 ac_srcdir_defaulted=no
505fi
506if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509 else
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 fi
512fi
513srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
514
515# Prefer explicitly selected file to automatically selected ones.
516if test -z "$CONFIG_SITE"; then
517 if test "x$prefix" != xNONE; then
518 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
519 else
520 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 fi
522fi
523for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
526 . "$ac_site_file"
527 fi
528done
529
530if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
532 . $cache_file
533else
534 echo "creating cache $cache_file"
535 > $cache_file
536fi
537
538ac_ext=c
539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000542ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000543cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000544
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000545ac_exeext=
546ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000547if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550 ac_n= ac_c='
551' ac_t=' '
552 else
553 ac_n=-n ac_c= ac_t=
554 fi
555else
556 ac_n= ac_c='\c' ac_t=
557fi
558
559
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000560
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000561MCONFIG=./MCONFIG
562
Theodore Ts'o74becf31997-04-26 14:37:06 +0000563BINARY_TYPE=bin
564E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
565 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
566DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
567 | tr \" " "`
568MONTH=`echo $DATE | awk -F- '{print $2}'`
569YEAR=`echo $DATE | awk -F- '{print $3}'`
570
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000571if expr $YEAR ">" 1900 > /dev/null ; then
572 E2FSPROGS_YEAR=$YEAR
573elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000574 E2FSPROGS_YEAR=19$YEAR
575else
576 E2FSPROGS_YEAR=20$YEAR
577fi
578
579case $MONTH in
580Jan) E2FSPROGS_MONTH="January" ;;
581Feb) E2FSPROGS_MONTH="February" ;;
582Mar) E2FSPROGS_MONTH="March" ;;
583Apr) E2FSPROGS_MONTH="April" ;;
584May) E2FSPROGS_MONTH="May" ;;
585Jun) E2FSPROGS_MONTH="June" ;;
586Jul) E2FSPROGS_MONTH="July" ;;
587Aug) E2FSPROGS_MONTH="August" ;;
588Sep) E2FSPROGS_MONTH="September" ;;
589Oct) E2FSPROGS_MONTH="October" ;;
590Nov) E2FSPROGS_MONTH="November" ;;
591Dec) E2FSPROGS_MONTH="December" ;;
592*) echo "Unknown month $MONTH??" ;;
593esac
594
595unset DATE MONTH YEAR
596echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
597echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
598
599
600
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000601
602ac_aux_dir=
603for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
604 if test -f $ac_dir/install-sh; then
605 ac_aux_dir=$ac_dir
606 ac_install_sh="$ac_aux_dir/install-sh -c"
607 break
608 elif test -f $ac_dir/install.sh; then
609 ac_aux_dir=$ac_dir
610 ac_install_sh="$ac_aux_dir/install.sh -c"
611 break
612 fi
613done
614if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
616fi
617ac_config_guess=$ac_aux_dir/config.guess
618ac_config_sub=$ac_aux_dir/config.sub
619ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620
621
622# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000623if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000624else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
625fi
626
627echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +0000628echo "configure:629: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000629
630host_alias=$host
631case "$host_alias" in
632NONE)
633 case $nonopt in
634 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000635 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000636 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
637 fi ;;
638 *) host_alias=$nonopt ;;
639 esac ;;
640esac
641
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000642host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000643host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000646echo "$ac_t""$host" 1>&6
647
Theodore Ts'o74becf31997-04-26 14:37:06 +0000648# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000649if test "${with_cc+set}" = set; then
650 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000651 echo "$ac_t""CC=$withval" 1>&6
652CC=$withval
653else
654 if test -z "$CC" ; then CC=cc; fi
655echo "$ac_t""CC defaults to $CC" 1>&6
656fi
657export CC
658
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000659# Extract the first word of "gcc", so it can be a program name with args.
660set dummy gcc; ac_word=$2
661echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +0000662echo "configure:663: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000663if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
665else
666 if test -n "$CC"; then
667 ac_cv_prog_CC="$CC" # Let the user override the test.
668else
669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 ac_dummy="$PATH"
671 for ac_dir in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
674 ac_cv_prog_CC="gcc"
675 break
676 fi
677 done
678 IFS="$ac_save_ifs"
679fi
680fi
681CC="$ac_cv_prog_CC"
682if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
684else
685 echo "$ac_t""no" 1>&6
686fi
687
688if test -z "$CC"; then
689 # Extract the first word of "cc", so it can be a program name with args.
690set dummy cc; ac_word=$2
691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +0000692echo "configure:693: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000693if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695else
696 if test -n "$CC"; then
697 ac_cv_prog_CC="$CC" # Let the user override the test.
698else
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
700 ac_prog_rejected=no
701 ac_dummy="$PATH"
702 for ac_dir in $ac_dummy; do
703 test -z "$ac_dir" && ac_dir=.
704 if test -f $ac_dir/$ac_word; then
705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
706 ac_prog_rejected=yes
707 continue
708 fi
709 ac_cv_prog_CC="cc"
710 break
711 fi
712 done
713 IFS="$ac_save_ifs"
714if test $ac_prog_rejected = yes; then
715 # We found a bogon in the path, so make sure we never use it.
716 set dummy $ac_cv_prog_CC
717 shift
718 if test $# -gt 0; then
719 # We chose a different compiler from the bogus one.
720 # However, it has the same basename, so the bogon will be chosen
721 # first if we set CC to just the basename; use the full file name.
722 shift
723 set dummy "$ac_dir/$ac_word" "$@"
724 shift
725 ac_cv_prog_CC="$@"
726 fi
727fi
728fi
729fi
730CC="$ac_cv_prog_CC"
731if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
733else
734 echo "$ac_t""no" 1>&6
735fi
736
737 if test -z "$CC"; then
738 case "`uname -s`" in
739 *win32* | *WIN32*)
740 # Extract the first word of "cl", so it can be a program name with args.
741set dummy cl; ac_word=$2
742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +0000743echo "configure:744: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000744if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746else
747 if test -n "$CC"; then
748 ac_cv_prog_CC="$CC" # Let the user override the test.
749else
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 ac_dummy="$PATH"
752 for ac_dir in $ac_dummy; do
753 test -z "$ac_dir" && ac_dir=.
754 if test -f $ac_dir/$ac_word; then
755 ac_cv_prog_CC="cl"
756 break
757 fi
758 done
759 IFS="$ac_save_ifs"
760fi
761fi
762CC="$ac_cv_prog_CC"
763if test -n "$CC"; then
764 echo "$ac_t""$CC" 1>&6
765else
766 echo "$ac_t""no" 1>&6
767fi
768 ;;
769 esac
770 fi
771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
772fi
773
774echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +0000775echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000776
777ac_ext=c
778# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
779ac_cpp='$CPP $CPPFLAGS'
780ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
781ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
782cross_compiling=$ac_cv_prog_cc_cross
783
784cat > conftest.$ac_ext << EOF
785
Theodore Ts'o19178752000-02-11 15:55:07 +0000786#line 787 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000787#include "confdefs.h"
788
789main(){return(0);}
790EOF
Theodore Ts'o19178752000-02-11 15:55:07 +0000791if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000792 ac_cv_prog_cc_works=yes
793 # If we can't run a trivial program, we are probably using a cross compiler.
794 if (./conftest; exit) 2>/dev/null; then
795 ac_cv_prog_cc_cross=no
796 else
797 ac_cv_prog_cc_cross=yes
798 fi
799else
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
802 ac_cv_prog_cc_works=no
803fi
804rm -fr conftest*
805ac_ext=c
806# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807ac_cpp='$CPP $CPPFLAGS'
808ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810cross_compiling=$ac_cv_prog_cc_cross
811
812echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
813if test $ac_cv_prog_cc_works = no; then
814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815fi
816echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +0000817echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000818echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
819cross_compiling=$ac_cv_prog_cc_cross
820
821echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +0000822echo "configure:823: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000823if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
825else
826 cat > conftest.c <<EOF
827#ifdef __GNUC__
828 yes;
829#endif
830EOF
Theodore Ts'o19178752000-02-11 15:55:07 +0000831if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000832 ac_cv_prog_gcc=yes
833else
834 ac_cv_prog_gcc=no
835fi
836fi
837
838echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839
840if test $ac_cv_prog_gcc = yes; then
841 GCC=yes
842else
843 GCC=
844fi
845
846ac_test_CFLAGS="${CFLAGS+set}"
847ac_save_CFLAGS="$CFLAGS"
848CFLAGS=
849echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +0000850echo "configure:851: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000851if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853else
854 echo 'void f(){}' > conftest.c
855if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
856 ac_cv_prog_cc_g=yes
857else
858 ac_cv_prog_cc_g=no
859fi
860rm -f conftest*
861
862fi
863
864echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
865if test "$ac_test_CFLAGS" = set; then
866 CFLAGS="$ac_save_CFLAGS"
867elif test $ac_cv_prog_cc_g = yes; then
868 if test "$GCC" = yes; then
869 CFLAGS="-g -O2"
870 else
871 CFLAGS="-g"
872 fi
873else
874 if test "$GCC" = yes; then
875 CFLAGS="-O2"
876 else
877 CFLAGS=
878 fi
879fi
880
Theodore Ts'o74becf31997-04-26 14:37:06 +0000881# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000882if test "${with_linker+set}" = set; then
883 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000884 echo "$ac_t""LD=$withval" 1>&6
885LD=$withval
886else
887 if test -z "$LD" ; then LD=$CC; fi
888echo "$ac_t""LD defaults to $LD" 1>&6
889fi
890export LD
891
892# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000893if test "${with_ccopts+set}" = set; then
894 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000895 echo "$ac_t""CCOPTS is $withval" 1>&6
896CCOPTS=$withval
897CFLAGS="$CFLAGS $withval"
898else
899 CCOPTS=
900fi
901
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000902echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +0000903echo "configure:904: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000904# On Suns, sometimes $CPP names a directory.
905if test -n "$CPP" && test -d "$CPP"; then
906 CPP=
907fi
908if test -z "$CPP"; then
909if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
911else
912 # This must be in double quotes, not single quotes, because CPP may get
913 # substituted into the Makefile and "${CC-cc}" will confuse make.
914 CPP="${CC-cc} -E"
915 # On the NeXT, cc -E runs the code through the compiler's parser,
916 # not just through cpp.
917 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +0000918#line 919 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000919#include "confdefs.h"
920#include <assert.h>
921Syntax Error
922EOF
923ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o19178752000-02-11 15:55:07 +0000924{ (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000925ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926if test -z "$ac_err"; then
927 :
928else
929 echo "$ac_err" >&5
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 rm -rf conftest*
933 CPP="${CC-cc} -E -traditional-cpp"
934 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +0000935#line 936 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000936#include "confdefs.h"
937#include <assert.h>
938Syntax Error
939EOF
940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o19178752000-02-11 15:55:07 +0000941{ (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943if test -z "$ac_err"; then
944 :
945else
946 echo "$ac_err" >&5
947 echo "configure: failed program was:" >&5
948 cat conftest.$ac_ext >&5
949 rm -rf conftest*
950 CPP="${CC-cc} -nologo -E"
951 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +0000952#line 953 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000953#include "confdefs.h"
954#include <assert.h>
955Syntax Error
956EOF
957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o19178752000-02-11 15:55:07 +0000958{ (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960if test -z "$ac_err"; then
961 :
962else
963 echo "$ac_err" >&5
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
966 rm -rf conftest*
967 CPP=/lib/cpp
968fi
969rm -f conftest*
970fi
971rm -f conftest*
972fi
973rm -f conftest*
974 ac_cv_prog_CPP="$CPP"
975fi
976 CPP="$ac_cv_prog_CPP"
977else
978 ac_cv_prog_CPP="$CPP"
979fi
980echo "$ac_t""$CPP" 1>&6
981
982ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
983echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +0000984echo "configure:985: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000985if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
987else
988 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +0000989#line 990 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000990#include "confdefs.h"
991#include <linux/fs.h>
992EOF
993ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o19178752000-02-11 15:55:07 +0000994{ (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000995ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
996if test -z "$ac_err"; then
997 rm -rf conftest*
998 eval "ac_cv_header_$ac_safe=yes"
999else
1000 echo "$ac_err" >&5
1001 echo "configure: failed program was:" >&5
1002 cat conftest.$ac_ext >&5
1003 rm -rf conftest*
1004 eval "ac_cv_header_$ac_safe=no"
1005fi
1006rm -f conftest*
1007fi
1008if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1009 echo "$ac_t""yes" 1>&6
1010 linux_headers=yes
1011else
1012 echo "$ac_t""no" 1>&6
1013linux_headers=no
1014fi
1015
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001016if test "$linux_headers" != yes; then
1017 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001018fi
1019
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001020LIB_EXT=.a
1021STATIC_LIB_EXT=.a
1022PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001023# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001024if test "${with_ldopts+set}" = set; then
1025 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001026 echo "$ac_t""LDFLAGS is $withval" 1>&6
1027LDFLAGS=$withval
1028else
1029 LDFLAGS=
1030fi
1031
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001032# Check whether --with-root-prefix or --without-root-prefix was given.
1033if test "${with_root_prefix+set}" = set; then
1034 withval="$with_root_prefix"
1035 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001036else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001037 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001038fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001039# Check whether --enable-compression or --disable-compression was given.
1040if test "${enable_compression+set}" = set; then
1041 enableval="$enable_compression"
1042 if test "$enableval" = "no"
1043then
1044 echo "Disabling compression support"
1045else
1046 cat >> confdefs.h <<\EOF
1047#define ENABLE_COMPRESSION 1
1048EOF
1049
1050 echo "Enabling compression support"
1051 echo "WARNING: Compression support is experimental"
1052fi
1053
1054else
1055 echo "Disabling compression support by default"
1056
1057fi
1058
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001059# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001060if test "${enable_dll_shlibs+set}" = set; then
1061 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062 if test "$enableval" = "no"
1063then
1064 DLL_CMT=#
1065 MAKEFILE_DLL=/dev/null
1066 echo "Disabling DLL shared libraries"
1067else
1068 DLL_CMT=
1069 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001070 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001071 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001072 echo "Enabling DLL shared libraries"
1073fi
1074
1075else
1076 MAKEFILE_DLL=/dev/null
1077DLL_CMT=#
1078echo "Disabling DLL shared libraries by default"
1079
1080fi
1081
1082
1083
1084# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001085if test "${enable_elf_shlibs+set}" = set; then
1086 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087 if test "$enableval" = "no"
1088then
1089 ELF_CMT=#
1090 MAKEFILE_ELF=/dev/null
1091 echo "Disabling ELF shared libraries"
1092else
1093 ELF_CMT=
1094 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001095 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001096 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001097 echo "Enabling ELF shared libraries"
1098fi
1099
1100else
1101 MAKEFILE_ELF=/dev/null
1102ELF_CMT=#
1103echo "Disabling ELF shared libraries by default"
1104
1105fi
1106
1107
1108
1109# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001110if test "${enable_bsd_shlibs+set}" = set; then
1111 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112 if test "$enableval" = "no"
1113then
1114 BSDLIB_CMT=#
1115 MAKEFILE_BSDLIB=/dev/null
1116 echo "Disabling BSD shared libraries"
1117else
1118 BSDLIB_CMT=
1119 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001120 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001121 echo "Enabling BSD shared libraries"
1122fi
1123
1124else
1125 MAKEFILE_BSDLIB=/dev/null
1126BSDLIB_CMT=#
1127echo "Disabling BSD shared libraries by default"
1128
1129fi
1130
1131
1132
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001133PACKAGE=e2fsprogs
1134VERSION="$E2FSPROGS_VERSION"
1135cat >> confdefs.h <<EOF
1136#define PACKAGE "$PACKAGE"
1137EOF
1138
1139cat >> confdefs.h <<EOF
1140#define VERSION "$VERSION"
1141EOF
1142
1143
1144
1145
Theodore Ts'o19178752000-02-11 15:55:07 +00001146ALL_LINGUAS="it nyc"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001147echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001148echo "configure:1149: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001149set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1150if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152else
1153 cat > conftestmake <<\EOF
1154all:
1155 @echo 'ac_maketemp="${MAKE}"'
1156EOF
1157# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1158eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1159if test -n "$ac_maketemp"; then
1160 eval ac_cv_prog_make_${ac_make}_set=yes
1161else
1162 eval ac_cv_prog_make_${ac_make}_set=no
1163fi
1164rm -f conftestmake
1165fi
1166if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1167 echo "$ac_t""yes" 1>&6
1168 SET_MAKE=
1169else
1170 echo "$ac_t""no" 1>&6
1171 SET_MAKE="MAKE=${MAKE-make}"
1172fi
1173
1174# Extract the first word of "ranlib", so it can be a program name with args.
1175set dummy ranlib; ac_word=$2
1176echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001177echo "configure:1178: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001178if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1180else
1181 if test -n "$RANLIB"; then
1182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1183else
1184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1185 ac_dummy="$PATH"
1186 for ac_dir in $ac_dummy; do
1187 test -z "$ac_dir" && ac_dir=.
1188 if test -f $ac_dir/$ac_word; then
1189 ac_cv_prog_RANLIB="ranlib"
1190 break
1191 fi
1192 done
1193 IFS="$ac_save_ifs"
1194 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1195fi
1196fi
1197RANLIB="$ac_cv_prog_RANLIB"
1198if test -n "$RANLIB"; then
1199 echo "$ac_t""$RANLIB" 1>&6
1200else
1201 echo "$ac_t""no" 1>&6
1202fi
1203
1204echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001205echo "configure:1206: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001206if test -d /etc/conf/kconfig.d &&
1207 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1208then
1209 echo "$ac_t""yes" 1>&6
1210 ISC=yes # If later tests want to check for ISC.
1211 cat >> confdefs.h <<\EOF
1212#define _POSIX_SOURCE 1
1213EOF
1214
1215 if test "$GCC" = yes; then
1216 CC="$CC -posix"
1217 else
1218 CC="$CC -Xp"
1219 fi
1220else
1221 echo "$ac_t""no" 1>&6
1222 ISC=
1223fi
1224
1225echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001226echo "configure:1227: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001227if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229else
1230 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001231#line 1232 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001232#include "confdefs.h"
1233#include <stdlib.h>
1234#include <stdarg.h>
1235#include <string.h>
1236#include <float.h>
1237EOF
1238ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o19178752000-02-11 15:55:07 +00001239{ (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001240ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1241if test -z "$ac_err"; then
1242 rm -rf conftest*
1243 ac_cv_header_stdc=yes
1244else
1245 echo "$ac_err" >&5
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1248 rm -rf conftest*
1249 ac_cv_header_stdc=no
1250fi
1251rm -f conftest*
1252
1253if test $ac_cv_header_stdc = yes; then
1254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1255cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001256#line 1257 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001257#include "confdefs.h"
1258#include <string.h>
1259EOF
1260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1261 egrep "memchr" >/dev/null 2>&1; then
1262 :
1263else
1264 rm -rf conftest*
1265 ac_cv_header_stdc=no
1266fi
1267rm -f conftest*
1268
1269fi
1270
1271if test $ac_cv_header_stdc = yes; then
1272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1273cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001274#line 1275 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001275#include "confdefs.h"
1276#include <stdlib.h>
1277EOF
1278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1279 egrep "free" >/dev/null 2>&1; then
1280 :
1281else
1282 rm -rf conftest*
1283 ac_cv_header_stdc=no
1284fi
1285rm -f conftest*
1286
1287fi
1288
1289if test $ac_cv_header_stdc = yes; then
1290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1291if test "$cross_compiling" = yes; then
1292 :
1293else
1294 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001295#line 1296 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001296#include "confdefs.h"
1297#include <ctype.h>
1298#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1299#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1300#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1301int main () { int i; for (i = 0; i < 256; i++)
1302if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1303exit (0); }
1304
1305EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001306if { (eval echo configure:1307: \"$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 +00001307then
1308 :
1309else
1310 echo "configure: failed program was:" >&5
1311 cat conftest.$ac_ext >&5
1312 rm -fr conftest*
1313 ac_cv_header_stdc=no
1314fi
1315rm -fr conftest*
1316fi
1317
1318fi
1319fi
1320
1321echo "$ac_t""$ac_cv_header_stdc" 1>&6
1322if test $ac_cv_header_stdc = yes; then
1323 cat >> confdefs.h <<\EOF
1324#define STDC_HEADERS 1
1325EOF
1326
1327fi
1328
1329echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001330echo "configure:1331: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001331if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333else
1334 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001335#line 1336 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001336#include "confdefs.h"
1337
1338int main() {
1339
1340/* Ultrix mips cc rejects this. */
1341typedef int charset[2]; const charset x;
1342/* SunOS 4.1.1 cc rejects this. */
1343char const *const *ccp;
1344char **p;
1345/* NEC SVR4.0.2 mips cc rejects this. */
1346struct point {int x, y;};
1347static struct point const zero = {0,0};
1348/* AIX XL C 1.02.0.0 rejects this.
1349 It does not let you subtract one const X* pointer from another in an arm
1350 of an if-expression whose if-part is not a constant expression */
1351const char *g = "string";
1352ccp = &g + (g ? g-g : 0);
1353/* HPUX 7.0 cc rejects these. */
1354++ccp;
1355p = (char**) ccp;
1356ccp = (char const *const *) p;
1357{ /* SCO 3.2v4 cc rejects this. */
1358 char *t;
1359 char const *s = 0 ? (char *) 0 : (char const *) 0;
1360
1361 *t++ = 0;
1362}
1363{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1364 int x[] = {25, 17};
1365 const int *foo = &x[0];
1366 ++foo;
1367}
1368{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1369 typedef const int *iptr;
1370 iptr p = 0;
1371 ++p;
1372}
1373{ /* AIX XL C 1.02.0.0 rejects this saying
1374 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1375 struct s { int j; const int *ap[3]; };
1376 struct s *b; b->j = 5;
1377}
1378{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1379 const int foo = 10;
1380}
1381
1382; return 0; }
1383EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001384if { (eval echo configure:1385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001385 rm -rf conftest*
1386 ac_cv_c_const=yes
1387else
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1390 rm -rf conftest*
1391 ac_cv_c_const=no
1392fi
1393rm -f conftest*
1394fi
1395
1396echo "$ac_t""$ac_cv_c_const" 1>&6
1397if test $ac_cv_c_const = no; then
1398 cat >> confdefs.h <<\EOF
1399#define const
1400EOF
1401
1402fi
1403
1404echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001405echo "configure:1406: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001406if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1408else
1409 ac_cv_c_inline=no
1410for ac_kw in inline __inline__ __inline; do
1411 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001412#line 1413 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001413#include "confdefs.h"
1414
1415int main() {
1416} $ac_kw foo() {
1417; return 0; }
1418EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001419if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001420 rm -rf conftest*
1421 ac_cv_c_inline=$ac_kw; break
1422else
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1425fi
1426rm -f conftest*
1427done
1428
1429fi
1430
1431echo "$ac_t""$ac_cv_c_inline" 1>&6
1432case "$ac_cv_c_inline" in
1433 inline | yes) ;;
1434 no) cat >> confdefs.h <<\EOF
1435#define inline
1436EOF
1437 ;;
1438 *) cat >> confdefs.h <<EOF
1439#define inline $ac_cv_c_inline
1440EOF
1441 ;;
1442esac
1443
1444echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001445echo "configure:1446: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001446if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1448else
1449 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001450#line 1451 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001451#include "confdefs.h"
1452#include <sys/types.h>
1453#if STDC_HEADERS
1454#include <stdlib.h>
1455#include <stddef.h>
1456#endif
1457EOF
1458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1459 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1460 rm -rf conftest*
1461 ac_cv_type_off_t=yes
1462else
1463 rm -rf conftest*
1464 ac_cv_type_off_t=no
1465fi
1466rm -f conftest*
1467
1468fi
1469echo "$ac_t""$ac_cv_type_off_t" 1>&6
1470if test $ac_cv_type_off_t = no; then
1471 cat >> confdefs.h <<\EOF
1472#define off_t long
1473EOF
1474
1475fi
1476
1477echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001478echo "configure:1479: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001479if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1481else
1482 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001483#line 1484 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001484#include "confdefs.h"
1485#include <sys/types.h>
1486#if STDC_HEADERS
1487#include <stdlib.h>
1488#include <stddef.h>
1489#endif
1490EOF
1491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1492 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1493 rm -rf conftest*
1494 ac_cv_type_size_t=yes
1495else
1496 rm -rf conftest*
1497 ac_cv_type_size_t=no
1498fi
1499rm -f conftest*
1500
1501fi
1502echo "$ac_t""$ac_cv_type_size_t" 1>&6
1503if test $ac_cv_type_size_t = no; then
1504 cat >> confdefs.h <<\EOF
1505#define size_t unsigned
1506EOF
1507
1508fi
1509
1510# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1511# for constant arguments. Useless!
1512echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001513echo "configure:1514: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001514if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1516else
1517 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001518#line 1519 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001519#include "confdefs.h"
1520#include <alloca.h>
1521int main() {
1522char *p = alloca(2 * sizeof(int));
1523; return 0; }
1524EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001525if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001526 rm -rf conftest*
1527 ac_cv_header_alloca_h=yes
1528else
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1531 rm -rf conftest*
1532 ac_cv_header_alloca_h=no
1533fi
1534rm -f conftest*
1535fi
1536
1537echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1538if test $ac_cv_header_alloca_h = yes; then
1539 cat >> confdefs.h <<\EOF
1540#define HAVE_ALLOCA_H 1
1541EOF
1542
1543fi
1544
1545echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001546echo "configure:1547: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001547if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549else
1550 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001551#line 1552 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001552#include "confdefs.h"
1553
1554#ifdef __GNUC__
1555# define alloca __builtin_alloca
1556#else
1557# ifdef _MSC_VER
1558# include <malloc.h>
1559# define alloca _alloca
1560# else
1561# if HAVE_ALLOCA_H
1562# include <alloca.h>
1563# else
1564# ifdef _AIX
1565 #pragma alloca
1566# else
1567# ifndef alloca /* predefined by HP cc +Olibcalls */
1568char *alloca ();
1569# endif
1570# endif
1571# endif
1572# endif
1573#endif
1574
1575int main() {
1576char *p = (char *) alloca(1);
1577; return 0; }
1578EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001579if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001580 rm -rf conftest*
1581 ac_cv_func_alloca_works=yes
1582else
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1585 rm -rf conftest*
1586 ac_cv_func_alloca_works=no
1587fi
1588rm -f conftest*
1589fi
1590
1591echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1592if test $ac_cv_func_alloca_works = yes; then
1593 cat >> confdefs.h <<\EOF
1594#define HAVE_ALLOCA 1
1595EOF
1596
1597fi
1598
1599if test $ac_cv_func_alloca_works = no; then
1600 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1601 # that cause trouble. Some versions do not even contain alloca or
1602 # contain a buggy version. If you still want to use their alloca,
1603 # use ar to extract alloca.o from them instead of compiling alloca.c.
1604 ALLOCA=alloca.${ac_objext}
1605 cat >> confdefs.h <<\EOF
1606#define C_ALLOCA 1
1607EOF
1608
1609
1610echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001611echo "configure:1612: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001612if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1614else
1615 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001616#line 1617 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001617#include "confdefs.h"
1618#if defined(CRAY) && ! defined(CRAY2)
1619webecray
1620#else
1621wenotbecray
1622#endif
1623
1624EOF
1625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1626 egrep "webecray" >/dev/null 2>&1; then
1627 rm -rf conftest*
1628 ac_cv_os_cray=yes
1629else
1630 rm -rf conftest*
1631 ac_cv_os_cray=no
1632fi
1633rm -f conftest*
1634
1635fi
1636
1637echo "$ac_t""$ac_cv_os_cray" 1>&6
1638if test $ac_cv_os_cray = yes; then
1639for ac_func in _getb67 GETB67 getb67; do
1640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001641echo "configure:1642: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001642if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644else
1645 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001646#line 1647 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001647#include "confdefs.h"
1648/* System header to define __stub macros and hopefully few prototypes,
1649 which can conflict with char $ac_func(); below. */
1650#include <assert.h>
1651/* Override any gcc2 internal prototype to avoid an error. */
1652/* We use char because int might match the return type of a gcc2
1653 builtin and then its argument prototype would still apply. */
1654char $ac_func();
1655
1656int main() {
1657
1658/* The GNU C library defines this for functions which it implements
1659 to always fail with ENOSYS. Some functions are actually named
1660 something starting with __ and the normal name is an alias. */
1661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1662choke me
1663#else
1664$ac_func();
1665#endif
1666
1667; return 0; }
1668EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001669if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001670 rm -rf conftest*
1671 eval "ac_cv_func_$ac_func=yes"
1672else
1673 echo "configure: failed program was:" >&5
1674 cat conftest.$ac_ext >&5
1675 rm -rf conftest*
1676 eval "ac_cv_func_$ac_func=no"
1677fi
1678rm -f conftest*
1679fi
1680
1681if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1682 echo "$ac_t""yes" 1>&6
1683 cat >> confdefs.h <<EOF
1684#define CRAY_STACKSEG_END $ac_func
1685EOF
1686
1687 break
1688else
1689 echo "$ac_t""no" 1>&6
1690fi
1691
1692done
1693fi
1694
1695echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001696echo "configure:1697: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001697if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1699else
1700 if test "$cross_compiling" = yes; then
1701 ac_cv_c_stack_direction=0
1702else
1703 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001704#line 1705 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001705#include "confdefs.h"
1706find_stack_direction ()
1707{
1708 static char *addr = 0;
1709 auto char dummy;
1710 if (addr == 0)
1711 {
1712 addr = &dummy;
1713 return find_stack_direction ();
1714 }
1715 else
1716 return (&dummy > addr) ? 1 : -1;
1717}
1718main ()
1719{
1720 exit (find_stack_direction() < 0);
1721}
1722EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001723if { (eval echo configure:1724: \"$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 +00001724then
1725 ac_cv_c_stack_direction=1
1726else
1727 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5
1729 rm -fr conftest*
1730 ac_cv_c_stack_direction=-1
1731fi
1732rm -fr conftest*
1733fi
1734
1735fi
1736
1737echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1738cat >> confdefs.h <<EOF
1739#define STACK_DIRECTION $ac_cv_c_stack_direction
1740EOF
1741
1742fi
1743
1744for ac_hdr in unistd.h
1745do
1746ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1747echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001748echo "configure:1749: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001749if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751else
1752 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001753#line 1754 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001754#include "confdefs.h"
1755#include <$ac_hdr>
1756EOF
1757ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o19178752000-02-11 15:55:07 +00001758{ (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001759ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1760if test -z "$ac_err"; then
1761 rm -rf conftest*
1762 eval "ac_cv_header_$ac_safe=yes"
1763else
1764 echo "$ac_err" >&5
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 rm -rf conftest*
1768 eval "ac_cv_header_$ac_safe=no"
1769fi
1770rm -f conftest*
1771fi
1772if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1773 echo "$ac_t""yes" 1>&6
1774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1775 cat >> confdefs.h <<EOF
1776#define $ac_tr_hdr 1
1777EOF
1778
1779else
1780 echo "$ac_t""no" 1>&6
1781fi
1782done
1783
1784for ac_func in getpagesize
1785do
1786echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001787echo "configure:1788: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001788if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1790else
1791 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001792#line 1793 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001793#include "confdefs.h"
1794/* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char $ac_func(); below. */
1796#include <assert.h>
1797/* Override any gcc2 internal prototype to avoid an error. */
1798/* We use char because int might match the return type of a gcc2
1799 builtin and then its argument prototype would still apply. */
1800char $ac_func();
1801
1802int main() {
1803
1804/* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1808choke me
1809#else
1810$ac_func();
1811#endif
1812
1813; return 0; }
1814EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001815if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001816 rm -rf conftest*
1817 eval "ac_cv_func_$ac_func=yes"
1818else
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1821 rm -rf conftest*
1822 eval "ac_cv_func_$ac_func=no"
1823fi
1824rm -f conftest*
1825fi
1826
1827if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1828 echo "$ac_t""yes" 1>&6
1829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1830 cat >> confdefs.h <<EOF
1831#define $ac_tr_func 1
1832EOF
1833
1834else
1835 echo "$ac_t""no" 1>&6
1836fi
1837done
1838
1839echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00001840echo "configure:1841: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001841if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1843else
1844 if test "$cross_compiling" = yes; then
1845 ac_cv_func_mmap_fixed_mapped=no
1846else
1847 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001848#line 1849 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001849#include "confdefs.h"
1850
1851/* Thanks to Mike Haertel and Jim Avera for this test.
1852 Here is a matrix of mmap possibilities:
1853 mmap private not fixed
1854 mmap private fixed at somewhere currently unmapped
1855 mmap private fixed at somewhere already mapped
1856 mmap shared not fixed
1857 mmap shared fixed at somewhere currently unmapped
1858 mmap shared fixed at somewhere already mapped
1859 For private mappings, we should verify that changes cannot be read()
1860 back from the file, nor mmap's back from the file at a different
1861 address. (There have been systems where private was not correctly
1862 implemented like the infamous i386 svr4.0, and systems where the
1863 VM page cache was not coherent with the filesystem buffer cache
1864 like early versions of FreeBSD and possibly contemporary NetBSD.)
1865 For shared mappings, we should conversely verify that changes get
1866 propogated back to all the places they're supposed to be.
1867
1868 Grep wants private fixed already mapped.
1869 The main things grep needs to know about mmap are:
1870 * does it exist and is it safe to write into the mmap'd area
1871 * how to use it (BSD variants) */
1872#include <sys/types.h>
1873#include <fcntl.h>
1874#include <sys/mman.h>
1875
1876/* This mess was copied from the GNU getpagesize.h. */
1877#ifndef HAVE_GETPAGESIZE
1878# ifdef HAVE_UNISTD_H
1879# include <unistd.h>
1880# endif
1881
1882/* Assume that all systems that can run configure have sys/param.h. */
1883# ifndef HAVE_SYS_PARAM_H
1884# define HAVE_SYS_PARAM_H 1
1885# endif
1886
1887# ifdef _SC_PAGESIZE
1888# define getpagesize() sysconf(_SC_PAGESIZE)
1889# else /* no _SC_PAGESIZE */
1890# ifdef HAVE_SYS_PARAM_H
1891# include <sys/param.h>
1892# ifdef EXEC_PAGESIZE
1893# define getpagesize() EXEC_PAGESIZE
1894# else /* no EXEC_PAGESIZE */
1895# ifdef NBPG
1896# define getpagesize() NBPG * CLSIZE
1897# ifndef CLSIZE
1898# define CLSIZE 1
1899# endif /* no CLSIZE */
1900# else /* no NBPG */
1901# ifdef NBPC
1902# define getpagesize() NBPC
1903# else /* no NBPC */
1904# ifdef PAGESIZE
1905# define getpagesize() PAGESIZE
1906# endif /* PAGESIZE */
1907# endif /* no NBPC */
1908# endif /* no NBPG */
1909# endif /* no EXEC_PAGESIZE */
1910# else /* no HAVE_SYS_PARAM_H */
1911# define getpagesize() 8192 /* punt totally */
1912# endif /* no HAVE_SYS_PARAM_H */
1913# endif /* no _SC_PAGESIZE */
1914
1915#endif /* no HAVE_GETPAGESIZE */
1916
1917#ifdef __cplusplus
1918extern "C" { void *malloc(unsigned); }
1919#else
1920char *malloc();
1921#endif
1922
1923int
1924main()
1925{
1926 char *data, *data2, *data3;
1927 int i, pagesize;
1928 int fd;
1929
1930 pagesize = getpagesize();
1931
1932 /*
1933 * First, make a file with some known garbage in it.
1934 */
1935 data = malloc(pagesize);
1936 if (!data)
1937 exit(1);
1938 for (i = 0; i < pagesize; ++i)
1939 *(data + i) = rand();
1940 umask(0);
1941 fd = creat("conftestmmap", 0600);
1942 if (fd < 0)
1943 exit(1);
1944 if (write(fd, data, pagesize) != pagesize)
1945 exit(1);
1946 close(fd);
1947
1948 /*
1949 * Next, try to mmap the file at a fixed address which
1950 * already has something else allocated at it. If we can,
1951 * also make sure that we see the same garbage.
1952 */
1953 fd = open("conftestmmap", O_RDWR);
1954 if (fd < 0)
1955 exit(1);
1956 data2 = malloc(2 * pagesize);
1957 if (!data2)
1958 exit(1);
1959 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1960 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1962 exit(1);
1963 for (i = 0; i < pagesize; ++i)
1964 if (*(data + i) != *(data2 + i))
1965 exit(1);
1966
1967 /*
1968 * Finally, make sure that changes to the mapped area
1969 * do not percolate back to the file as seen by read().
1970 * (This is a bug on some variants of i386 svr4.0.)
1971 */
1972 for (i = 0; i < pagesize; ++i)
1973 *(data2 + i) = *(data2 + i) + 1;
1974 data3 = malloc(pagesize);
1975 if (!data3)
1976 exit(1);
1977 if (read(fd, data3, pagesize) != pagesize)
1978 exit(1);
1979 for (i = 0; i < pagesize; ++i)
1980 if (*(data + i) != *(data3 + i))
1981 exit(1);
1982 close(fd);
1983 unlink("conftestmmap");
1984 exit(0);
1985}
1986
1987EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001988if { (eval echo configure:1989: \"$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 +00001989then
1990 ac_cv_func_mmap_fixed_mapped=yes
1991else
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 rm -fr conftest*
1995 ac_cv_func_mmap_fixed_mapped=no
1996fi
1997rm -fr conftest*
1998fi
1999
2000fi
2001
2002echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2003if test $ac_cv_func_mmap_fixed_mapped = yes; then
2004 cat >> confdefs.h <<\EOF
2005#define HAVE_MMAP 1
2006EOF
2007
2008fi
2009
2010
2011 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2012unistd.h sys/param.h
2013do
2014ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2015echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002016echo "configure:2017: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002017if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2019else
2020 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002021#line 2022 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002022#include "confdefs.h"
2023#include <$ac_hdr>
2024EOF
2025ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o19178752000-02-11 15:55:07 +00002026{ (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002027ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2028if test -z "$ac_err"; then
2029 rm -rf conftest*
2030 eval "ac_cv_header_$ac_safe=yes"
2031else
2032 echo "$ac_err" >&5
2033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 rm -rf conftest*
2036 eval "ac_cv_header_$ac_safe=no"
2037fi
2038rm -f conftest*
2039fi
2040if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2041 echo "$ac_t""yes" 1>&6
2042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2043 cat >> confdefs.h <<EOF
2044#define $ac_tr_hdr 1
2045EOF
2046
2047else
2048 echo "$ac_t""no" 1>&6
2049fi
2050done
2051
2052 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2053strdup __argz_count __argz_stringify __argz_next
2054do
2055echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002056echo "configure:2057: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002057if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2059else
2060 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002061#line 2062 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002062#include "confdefs.h"
2063/* System header to define __stub macros and hopefully few prototypes,
2064 which can conflict with char $ac_func(); below. */
2065#include <assert.h>
2066/* Override any gcc2 internal prototype to avoid an error. */
2067/* We use char because int might match the return type of a gcc2
2068 builtin and then its argument prototype would still apply. */
2069char $ac_func();
2070
2071int main() {
2072
2073/* The GNU C library defines this for functions which it implements
2074 to always fail with ENOSYS. Some functions are actually named
2075 something starting with __ and the normal name is an alias. */
2076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2077choke me
2078#else
2079$ac_func();
2080#endif
2081
2082; return 0; }
2083EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002084if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002085 rm -rf conftest*
2086 eval "ac_cv_func_$ac_func=yes"
2087else
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2090 rm -rf conftest*
2091 eval "ac_cv_func_$ac_func=no"
2092fi
2093rm -f conftest*
2094fi
2095
2096if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2099 cat >> confdefs.h <<EOF
2100#define $ac_tr_func 1
2101EOF
2102
2103else
2104 echo "$ac_t""no" 1>&6
2105fi
2106done
2107
2108
2109 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2110 for ac_func in stpcpy
2111do
2112echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002113echo "configure:2114: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002114if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2116else
2117 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002118#line 2119 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002119#include "confdefs.h"
2120/* System header to define __stub macros and hopefully few prototypes,
2121 which can conflict with char $ac_func(); below. */
2122#include <assert.h>
2123/* Override any gcc2 internal prototype to avoid an error. */
2124/* We use char because int might match the return type of a gcc2
2125 builtin and then its argument prototype would still apply. */
2126char $ac_func();
2127
2128int main() {
2129
2130/* The GNU C library defines this for functions which it implements
2131 to always fail with ENOSYS. Some functions are actually named
2132 something starting with __ and the normal name is an alias. */
2133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2134choke me
2135#else
2136$ac_func();
2137#endif
2138
2139; return 0; }
2140EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002141if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002142 rm -rf conftest*
2143 eval "ac_cv_func_$ac_func=yes"
2144else
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 rm -rf conftest*
2148 eval "ac_cv_func_$ac_func=no"
2149fi
2150rm -f conftest*
2151fi
2152
2153if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2156 cat >> confdefs.h <<EOF
2157#define $ac_tr_func 1
2158EOF
2159
2160else
2161 echo "$ac_t""no" 1>&6
2162fi
2163done
2164
2165 fi
2166 if test "${ac_cv_func_stpcpy}" = "yes"; then
2167 cat >> confdefs.h <<\EOF
2168#define HAVE_STPCPY 1
2169EOF
2170
2171 fi
2172
2173 if test $ac_cv_header_locale_h = yes; then
2174 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002175echo "configure:2176: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002176if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178else
2179 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002180#line 2181 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002181#include "confdefs.h"
2182#include <locale.h>
2183int main() {
2184return LC_MESSAGES
2185; return 0; }
2186EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002187if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002188 rm -rf conftest*
2189 am_cv_val_LC_MESSAGES=yes
2190else
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2193 rm -rf conftest*
2194 am_cv_val_LC_MESSAGES=no
2195fi
2196rm -f conftest*
2197fi
2198
2199echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2200 if test $am_cv_val_LC_MESSAGES = yes; then
2201 cat >> confdefs.h <<\EOF
2202#define HAVE_LC_MESSAGES 1
2203EOF
2204
2205 fi
2206 fi
2207 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002208echo "configure:2209: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002209 # Check whether --enable-nls or --disable-nls was given.
2210if test "${enable_nls+set}" = set; then
2211 enableval="$enable_nls"
2212 USE_NLS=$enableval
2213else
2214 USE_NLS=no
2215fi
2216
2217 echo "$ac_t""$USE_NLS" 1>&6
2218
2219
2220 USE_INCLUDED_LIBINTL=no
2221
2222 if test "$USE_NLS" = "yes"; then
2223 cat >> confdefs.h <<\EOF
2224#define ENABLE_NLS 1
2225EOF
2226
2227 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002228echo "configure:2229: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002229 # Check whether --with-included-gettext or --without-included-gettext was given.
2230if test "${with_included_gettext+set}" = set; then
2231 withval="$with_included_gettext"
2232 nls_cv_force_use_gnu_gettext=$withval
2233else
2234 nls_cv_force_use_gnu_gettext=no
2235fi
2236
2237 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2238
2239 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2240 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2241 nls_cv_header_intl=
2242 nls_cv_header_libgt=
2243 CATOBJEXT=NONE
2244
2245 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2246echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002247echo "configure:2248: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002248if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2250else
2251 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002252#line 2253 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002253#include "confdefs.h"
2254#include <libintl.h>
2255EOF
2256ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o19178752000-02-11 15:55:07 +00002257{ (eval echo configure:2258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002258ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2259if test -z "$ac_err"; then
2260 rm -rf conftest*
2261 eval "ac_cv_header_$ac_safe=yes"
2262else
2263 echo "$ac_err" >&5
2264 echo "configure: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2266 rm -rf conftest*
2267 eval "ac_cv_header_$ac_safe=no"
2268fi
2269rm -f conftest*
2270fi
2271if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2272 echo "$ac_t""yes" 1>&6
2273 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002274echo "configure:2275: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002275if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2277else
2278 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002279#line 2280 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002280#include "confdefs.h"
2281#include <libintl.h>
2282int main() {
2283return (int) gettext ("")
2284; return 0; }
2285EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002286if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002287 rm -rf conftest*
2288 gt_cv_func_gettext_libc=yes
2289else
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2292 rm -rf conftest*
2293 gt_cv_func_gettext_libc=no
2294fi
2295rm -f conftest*
2296fi
2297
2298echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2299
2300 if test "$gt_cv_func_gettext_libc" != "yes"; then
2301 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002302echo "configure:2303: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002303ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2304if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2306else
2307 ac_save_LIBS="$LIBS"
2308LIBS="-lintl $LIBS"
2309cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002310#line 2311 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002311#include "confdefs.h"
2312/* Override any gcc2 internal prototype to avoid an error. */
2313/* We use char because int might match the return type of a gcc2
2314 builtin and then its argument prototype would still apply. */
2315char bindtextdomain();
2316
2317int main() {
2318bindtextdomain()
2319; return 0; }
2320EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002321if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002322 rm -rf conftest*
2323 eval "ac_cv_lib_$ac_lib_var=yes"
2324else
2325 echo "configure: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2327 rm -rf conftest*
2328 eval "ac_cv_lib_$ac_lib_var=no"
2329fi
2330rm -f conftest*
2331LIBS="$ac_save_LIBS"
2332
2333fi
2334if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2335 echo "$ac_t""yes" 1>&6
2336 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002337echo "configure:2338: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002338if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2340else
2341 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002342echo "configure:2343: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002343ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2344if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2346else
2347 ac_save_LIBS="$LIBS"
2348LIBS="-lintl $LIBS"
2349cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002350#line 2351 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002351#include "confdefs.h"
2352/* Override any gcc2 internal prototype to avoid an error. */
2353/* We use char because int might match the return type of a gcc2
2354 builtin and then its argument prototype would still apply. */
2355char gettext();
2356
2357int main() {
2358gettext()
2359; return 0; }
2360EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002361if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002362 rm -rf conftest*
2363 eval "ac_cv_lib_$ac_lib_var=yes"
2364else
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2367 rm -rf conftest*
2368 eval "ac_cv_lib_$ac_lib_var=no"
2369fi
2370rm -f conftest*
2371LIBS="$ac_save_LIBS"
2372
2373fi
2374if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 gt_cv_func_gettext_libintl=yes
2377else
2378 echo "$ac_t""no" 1>&6
2379gt_cv_func_gettext_libintl=no
2380fi
2381
2382fi
2383
2384echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2385else
2386 echo "$ac_t""no" 1>&6
2387fi
2388
2389 fi
2390
2391 if test "$gt_cv_func_gettext_libc" = "yes" \
2392 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2393 cat >> confdefs.h <<\EOF
2394#define HAVE_GETTEXT 1
2395EOF
2396
2397 # Extract the first word of "msgfmt", so it can be a program name with args.
2398set dummy msgfmt; ac_word=$2
2399echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002400echo "configure:2401: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002401if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2403else
2404 case "$MSGFMT" in
2405 /*)
2406 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2407 ;;
2408 *)
2409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2410 for ac_dir in $PATH; do
2411 test -z "$ac_dir" && ac_dir=.
2412 if test -f $ac_dir/$ac_word; then
2413 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2414 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2415 break
2416 fi
2417 fi
2418 done
2419 IFS="$ac_save_ifs"
2420 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2421 ;;
2422esac
2423fi
2424MSGFMT="$ac_cv_path_MSGFMT"
2425if test -n "$MSGFMT"; then
2426 echo "$ac_t""$MSGFMT" 1>&6
2427else
2428 echo "$ac_t""no" 1>&6
2429fi
2430 if test "$MSGFMT" != "no"; then
2431 for ac_func in dcgettext
2432do
2433echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002434echo "configure:2435: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002435if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2437else
2438 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002439#line 2440 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002440#include "confdefs.h"
2441/* System header to define __stub macros and hopefully few prototypes,
2442 which can conflict with char $ac_func(); below. */
2443#include <assert.h>
2444/* Override any gcc2 internal prototype to avoid an error. */
2445/* We use char because int might match the return type of a gcc2
2446 builtin and then its argument prototype would still apply. */
2447char $ac_func();
2448
2449int main() {
2450
2451/* The GNU C library defines this for functions which it implements
2452 to always fail with ENOSYS. Some functions are actually named
2453 something starting with __ and the normal name is an alias. */
2454#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2455choke me
2456#else
2457$ac_func();
2458#endif
2459
2460; return 0; }
2461EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002462if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002463 rm -rf conftest*
2464 eval "ac_cv_func_$ac_func=yes"
2465else
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2468 rm -rf conftest*
2469 eval "ac_cv_func_$ac_func=no"
2470fi
2471rm -f conftest*
2472fi
2473
2474if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2475 echo "$ac_t""yes" 1>&6
2476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2477 cat >> confdefs.h <<EOF
2478#define $ac_tr_func 1
2479EOF
2480
2481else
2482 echo "$ac_t""no" 1>&6
2483fi
2484done
2485
2486 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2487set dummy gmsgfmt; ac_word=$2
2488echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002489echo "configure:2490: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002490if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2492else
2493 case "$GMSGFMT" in
2494 /*)
2495 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2496 ;;
2497 ?:/*)
2498 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2499 ;;
2500 *)
2501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2502 ac_dummy="$PATH"
2503 for ac_dir in $ac_dummy; do
2504 test -z "$ac_dir" && ac_dir=.
2505 if test -f $ac_dir/$ac_word; then
2506 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2507 break
2508 fi
2509 done
2510 IFS="$ac_save_ifs"
2511 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2512 ;;
2513esac
2514fi
2515GMSGFMT="$ac_cv_path_GMSGFMT"
2516if test -n "$GMSGFMT"; then
2517 echo "$ac_t""$GMSGFMT" 1>&6
2518else
2519 echo "$ac_t""no" 1>&6
2520fi
2521
2522 # Extract the first word of "xgettext", so it can be a program name with args.
2523set dummy xgettext; ac_word=$2
2524echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002525echo "configure:2526: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002526if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2528else
2529 case "$XGETTEXT" in
2530 /*)
2531 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2532 ;;
2533 *)
2534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2535 for ac_dir in $PATH; do
2536 test -z "$ac_dir" && ac_dir=.
2537 if test -f $ac_dir/$ac_word; then
2538 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2539 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2540 break
2541 fi
2542 fi
2543 done
2544 IFS="$ac_save_ifs"
2545 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2546 ;;
2547esac
2548fi
2549XGETTEXT="$ac_cv_path_XGETTEXT"
2550if test -n "$XGETTEXT"; then
2551 echo "$ac_t""$XGETTEXT" 1>&6
2552else
2553 echo "$ac_t""no" 1>&6
2554fi
2555
2556 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002557#line 2558 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002558#include "confdefs.h"
2559
2560int main() {
2561extern int _nl_msg_cat_cntr;
2562 return _nl_msg_cat_cntr
2563; return 0; }
2564EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002565if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002566 rm -rf conftest*
2567 CATOBJEXT=.gmo
2568 DATADIRNAME=share
2569else
2570 echo "configure: failed program was:" >&5
2571 cat conftest.$ac_ext >&5
2572 rm -rf conftest*
2573 CATOBJEXT=.mo
2574 DATADIRNAME=lib
2575fi
2576rm -f conftest*
2577 INSTOBJEXT=.mo
2578 fi
2579 fi
2580
2581else
2582 echo "$ac_t""no" 1>&6
2583fi
2584
2585
2586 if test "$CATOBJEXT" = "NONE"; then
2587 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002588echo "configure:2589: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002589 # Check whether --with-catgets or --without-catgets was given.
2590if test "${with_catgets+set}" = set; then
2591 withval="$with_catgets"
2592 nls_cv_use_catgets=$withval
2593else
2594 nls_cv_use_catgets=no
2595fi
2596
2597 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2598
2599 if test "$nls_cv_use_catgets" = "yes"; then
2600 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002601echo "configure:2602: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002602ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2603if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2605else
2606 ac_save_LIBS="$LIBS"
2607LIBS="-li $LIBS"
2608cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002609#line 2610 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002610#include "confdefs.h"
2611
2612int main() {
2613main()
2614; return 0; }
2615EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002616if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002617 rm -rf conftest*
2618 eval "ac_cv_lib_$ac_lib_var=yes"
2619else
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2622 rm -rf conftest*
2623 eval "ac_cv_lib_$ac_lib_var=no"
2624fi
2625rm -f conftest*
2626LIBS="$ac_save_LIBS"
2627
2628fi
2629if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2630 echo "$ac_t""yes" 1>&6
2631 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2632 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2633 cat >> confdefs.h <<EOF
2634#define $ac_tr_lib 1
2635EOF
2636
2637 LIBS="-li $LIBS"
2638
2639else
2640 echo "$ac_t""no" 1>&6
2641fi
2642
2643 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002644echo "configure:2645: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002645if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2647else
2648 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002649#line 2650 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002650#include "confdefs.h"
2651/* System header to define __stub macros and hopefully few prototypes,
2652 which can conflict with char catgets(); below. */
2653#include <assert.h>
2654/* Override any gcc2 internal prototype to avoid an error. */
2655/* We use char because int might match the return type of a gcc2
2656 builtin and then its argument prototype would still apply. */
2657char catgets();
2658
2659int main() {
2660
2661/* The GNU C library defines this for functions which it implements
2662 to always fail with ENOSYS. Some functions are actually named
2663 something starting with __ and the normal name is an alias. */
2664#if defined (__stub_catgets) || defined (__stub___catgets)
2665choke me
2666#else
2667catgets();
2668#endif
2669
2670; return 0; }
2671EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002672if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002673 rm -rf conftest*
2674 eval "ac_cv_func_catgets=yes"
2675else
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2678 rm -rf conftest*
2679 eval "ac_cv_func_catgets=no"
2680fi
2681rm -f conftest*
2682fi
2683
2684if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2685 echo "$ac_t""yes" 1>&6
2686 cat >> confdefs.h <<\EOF
2687#define HAVE_CATGETS 1
2688EOF
2689
2690 INTLOBJS="\$(CATOBJS)"
2691 # Extract the first word of "gencat", so it can be a program name with args.
2692set dummy gencat; ac_word=$2
2693echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002694echo "configure:2695: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002695if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2697else
2698 case "$GENCAT" in
2699 /*)
2700 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2701 ;;
2702 ?:/*)
2703 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2704 ;;
2705 *)
2706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2707 ac_dummy="$PATH"
2708 for ac_dir in $ac_dummy; do
2709 test -z "$ac_dir" && ac_dir=.
2710 if test -f $ac_dir/$ac_word; then
2711 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2712 break
2713 fi
2714 done
2715 IFS="$ac_save_ifs"
2716 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2717 ;;
2718esac
2719fi
2720GENCAT="$ac_cv_path_GENCAT"
2721if test -n "$GENCAT"; then
2722 echo "$ac_t""$GENCAT" 1>&6
2723else
2724 echo "$ac_t""no" 1>&6
2725fi
2726 if test "$GENCAT" != "no"; then
2727 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2728set dummy gmsgfmt; ac_word=$2
2729echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002730echo "configure:2731: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002731if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2733else
2734 case "$GMSGFMT" in
2735 /*)
2736 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2737 ;;
2738 ?:/*)
2739 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2740 ;;
2741 *)
2742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2743 ac_dummy="$PATH"
2744 for ac_dir in $ac_dummy; do
2745 test -z "$ac_dir" && ac_dir=.
2746 if test -f $ac_dir/$ac_word; then
2747 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2748 break
2749 fi
2750 done
2751 IFS="$ac_save_ifs"
2752 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2753 ;;
2754esac
2755fi
2756GMSGFMT="$ac_cv_path_GMSGFMT"
2757if test -n "$GMSGFMT"; then
2758 echo "$ac_t""$GMSGFMT" 1>&6
2759else
2760 echo "$ac_t""no" 1>&6
2761fi
2762
2763 if test "$GMSGFMT" = "no"; then
2764 # Extract the first word of "msgfmt", so it can be a program name with args.
2765set dummy msgfmt; ac_word=$2
2766echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002767echo "configure:2768: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002768if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2770else
2771 case "$GMSGFMT" in
2772 /*)
2773 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2774 ;;
2775 *)
2776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2777 for ac_dir in $PATH; do
2778 test -z "$ac_dir" && ac_dir=.
2779 if test -f $ac_dir/$ac_word; then
2780 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2781 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2782 break
2783 fi
2784 fi
2785 done
2786 IFS="$ac_save_ifs"
2787 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2788 ;;
2789esac
2790fi
2791GMSGFMT="$ac_cv_path_GMSGFMT"
2792if test -n "$GMSGFMT"; then
2793 echo "$ac_t""$GMSGFMT" 1>&6
2794else
2795 echo "$ac_t""no" 1>&6
2796fi
2797
2798 fi
2799 # Extract the first word of "xgettext", so it can be a program name with args.
2800set dummy xgettext; ac_word=$2
2801echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002802echo "configure:2803: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002803if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2805else
2806 case "$XGETTEXT" in
2807 /*)
2808 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2809 ;;
2810 *)
2811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2812 for ac_dir in $PATH; do
2813 test -z "$ac_dir" && ac_dir=.
2814 if test -f $ac_dir/$ac_word; then
2815 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2816 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2817 break
2818 fi
2819 fi
2820 done
2821 IFS="$ac_save_ifs"
2822 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2823 ;;
2824esac
2825fi
2826XGETTEXT="$ac_cv_path_XGETTEXT"
2827if test -n "$XGETTEXT"; then
2828 echo "$ac_t""$XGETTEXT" 1>&6
2829else
2830 echo "$ac_t""no" 1>&6
2831fi
2832
2833 USE_INCLUDED_LIBINTL=yes
2834 CATOBJEXT=.cat
2835 INSTOBJEXT=.cat
2836 DATADIRNAME=lib
2837 INTLDEPS='$(top_builddir)/intl/libintl.a'
2838 INTLLIBS=$INTLDEPS
2839 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2840 nls_cv_header_intl=intl/libintl.h
2841 nls_cv_header_libgt=intl/libgettext.h
2842 fi
2843else
2844 echo "$ac_t""no" 1>&6
2845fi
2846
2847 fi
2848 fi
2849
2850 if test "$CATOBJEXT" = "NONE"; then
2851 nls_cv_use_gnu_gettext=yes
2852 fi
2853 fi
2854
2855 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2856 INTLOBJS="\$(GETTOBJS)"
2857 # Extract the first word of "msgfmt", so it can be a program name with args.
2858set dummy msgfmt; ac_word=$2
2859echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002860echo "configure:2861: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002861if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2863else
2864 case "$MSGFMT" in
2865 /*)
2866 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2867 ;;
2868 *)
2869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2870 for ac_dir in $PATH; do
2871 test -z "$ac_dir" && ac_dir=.
2872 if test -f $ac_dir/$ac_word; then
2873 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2874 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2875 break
2876 fi
2877 fi
2878 done
2879 IFS="$ac_save_ifs"
2880 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2881 ;;
2882esac
2883fi
2884MSGFMT="$ac_cv_path_MSGFMT"
2885if test -n "$MSGFMT"; then
2886 echo "$ac_t""$MSGFMT" 1>&6
2887else
2888 echo "$ac_t""no" 1>&6
2889fi
2890
2891 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2892set dummy gmsgfmt; ac_word=$2
2893echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002894echo "configure:2895: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002895if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2897else
2898 case "$GMSGFMT" in
2899 /*)
2900 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2901 ;;
2902 ?:/*)
2903 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2904 ;;
2905 *)
2906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2907 ac_dummy="$PATH"
2908 for ac_dir in $ac_dummy; do
2909 test -z "$ac_dir" && ac_dir=.
2910 if test -f $ac_dir/$ac_word; then
2911 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2912 break
2913 fi
2914 done
2915 IFS="$ac_save_ifs"
2916 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2917 ;;
2918esac
2919fi
2920GMSGFMT="$ac_cv_path_GMSGFMT"
2921if test -n "$GMSGFMT"; then
2922 echo "$ac_t""$GMSGFMT" 1>&6
2923else
2924 echo "$ac_t""no" 1>&6
2925fi
2926
2927 # Extract the first word of "xgettext", so it can be a program name with args.
2928set dummy xgettext; ac_word=$2
2929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00002930echo "configure:2931: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002931if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2933else
2934 case "$XGETTEXT" in
2935 /*)
2936 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2937 ;;
2938 *)
2939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2940 for ac_dir in $PATH; do
2941 test -z "$ac_dir" && ac_dir=.
2942 if test -f $ac_dir/$ac_word; then
2943 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2945 break
2946 fi
2947 fi
2948 done
2949 IFS="$ac_save_ifs"
2950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2951 ;;
2952esac
2953fi
2954XGETTEXT="$ac_cv_path_XGETTEXT"
2955if test -n "$XGETTEXT"; then
2956 echo "$ac_t""$XGETTEXT" 1>&6
2957else
2958 echo "$ac_t""no" 1>&6
2959fi
2960
2961
2962 USE_INCLUDED_LIBINTL=yes
2963 CATOBJEXT=.gmo
2964 INSTOBJEXT=.mo
2965 DATADIRNAME=share
2966 INTLDEPS='$(top_builddir)/intl/libintl.a'
2967 INTLLIBS=$INTLDEPS
2968 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2969 nls_cv_header_intl=intl/libintl.h
2970 nls_cv_header_libgt=intl/libgettext.h
2971 fi
2972
2973 if test "$XGETTEXT" != ":"; then
2974 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2975 : ;
2976 else
2977 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2978 XGETTEXT=":"
2979 fi
2980 fi
2981
2982 # We need to process the po/ directory.
2983 POSUB=po
2984 else
2985 DATADIRNAME=share
2986 nls_cv_header_intl=intl/libintl.h
2987 nls_cv_header_libgt=intl/libgettext.h
2988 fi
2989
2990
2991
2992
2993 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2994 # because some of the sources are only built for this goal.
2995 if test "$PACKAGE" = gettext; then
2996 USE_NLS=yes
2997 USE_INCLUDED_LIBINTL=yes
2998 fi
2999
3000 for lang in $ALL_LINGUAS; do
3001 GMOFILES="$GMOFILES $lang.gmo"
3002 POFILES="$POFILES $lang.po"
3003 done
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018 if test "x$CATOBJEXT" != "x"; then
3019 if test "x$ALL_LINGUAS" = "x"; then
3020 LINGUAS=
3021 else
3022 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003023echo "configure:3024: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003024 NEW_LINGUAS=
3025 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3026 case "$ALL_LINGUAS" in
3027 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3028 esac
3029 done
3030 LINGUAS=$NEW_LINGUAS
3031 echo "$ac_t""$LINGUAS" 1>&6
3032 fi
3033
3034 if test -n "$LINGUAS"; then
3035 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3036 fi
3037 fi
3038
3039 if test $ac_cv_header_locale_h = yes; then
3040 INCLUDE_LOCALE_H="#include <locale.h>"
3041 else
3042 INCLUDE_LOCALE_H="\
3043/* The system does not provide the header <locale.h>. Take care yourself. */"
3044 fi
3045
3046
3047 test -d intl || mkdir intl
3048 if test "$CATOBJEXT" = ".cat"; then
3049 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3050echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003051echo "configure:3052: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003052if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3054else
3055 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003056#line 3057 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003057#include "confdefs.h"
3058#include <linux/version.h>
3059EOF
3060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o19178752000-02-11 15:55:07 +00003061{ (eval echo configure:3062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3063if test -z "$ac_err"; then
3064 rm -rf conftest*
3065 eval "ac_cv_header_$ac_safe=yes"
3066else
3067 echo "$ac_err" >&5
3068 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3070 rm -rf conftest*
3071 eval "ac_cv_header_$ac_safe=no"
3072fi
3073rm -f conftest*
3074fi
3075if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3076 echo "$ac_t""yes" 1>&6
3077 msgformat=linux
3078else
3079 echo "$ac_t""no" 1>&6
3080msgformat=xopen
3081fi
3082
3083
3084 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3085 fi
3086 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3087 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3088
3089 if test "$PACKAGE" = "gettext"; then
3090 GT_NO="#NO#"
3091 GT_YES=
3092 else
3093 GT_NO=
3094 GT_YES="#YES#"
3095 fi
3096
3097
3098
3099 MKINSTALLDIRS=
3100 if test -n "$ac_aux_dir"; then
3101 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3102 fi
3103 if test -z "$MKINSTALLDIRS"; then
3104 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3105 fi
3106
3107
3108 l=
3109
3110
3111 test -d po || mkdir po
3112 if test "x$srcdir" != "x."; then
3113 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3114 posrcprefix="$srcdir/"
3115 else
3116 posrcprefix="../$srcdir/"
3117 fi
3118 else
3119 posrcprefix="../"
3120 fi
3121 rm -f po/POTFILES
3122 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3123 < $srcdir/po/POTFILES.in > po/POTFILES
3124
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003125# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003126if test "${enable_profile+set}" = set; then
3127 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003128 if test "$enableval" = "no"
3129then
3130 PROFILE_CMT=#
3131 MAKEFILE_PROFILE=/dev/null
3132 echo "Disabling profiling libraries"
3133else
3134 PROFILE_CMT=
3135 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003136 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003137 echo "Building profiling libraries"
3138fi
3139
3140else
3141 PROFILE_CMT=#
3142MAKEFILE_PROFILE=/dev/null
3143echo "Disabling profiling libraries by default"
3144
3145fi
3146
3147
3148
3149# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003150if test "${enable_checker+set}" = set; then
3151 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003152 if test "$enableval" = "no"
3153then
3154 CHECKER_CMT=#
3155 MAKEFILE_CHECKER=/dev/null
3156 echo "Disabling checker libraries"
3157else
3158 CHECKER_CMT=
3159 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3160 echo "Building checker libraries"
3161fi
3162
3163else
3164 CHECKER_CMT=#
3165MAKEFILE_CHECKER=/dev/null
3166echo "Disabling checker libraries by default"
3167
3168fi
3169
3170
3171
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003172
3173
3174
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003175# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003176if test "${enable_gcc_wall+set}" = set; then
3177 enableval="$enable_gcc_wall"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003178 if test "$enableval" = "no"
3179then
3180 W=#
3181 echo "Disabling GCC warnings"
3182else
3183 W=
3184 echo "Enabling GCC warnings"
3185fi
3186
3187else
3188 W=#
3189echo "Disabling GCC warnings by default"
3190
3191fi
3192
3193
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003194# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003195if test "${enable_dynamic_e2fsck+set}" = set; then
3196 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003197 if test "$enableval" = "no"
3198then
3199 E2FSCK_TYPE=static
3200 echo "Building e2fsck statically"
3201else
3202 E2FSCK_TYPE=shared
3203 echo "Building e2fsck dynamically"
3204fi
3205
3206else
3207 E2FSCK_TYPE=static
3208echo "Building e2fsck statically by default"
3209
3210fi
3211
3212
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003213# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003214if test "${enable_fsck+set}" = set; then
3215 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003216 if test "$enableval" = "no"
3217then
3218 FSCK_PROG='' FSCK_MAN=''
3219 echo "Not building fsck wrapper"
3220else
3221 FSCK_PROG=fsck FSCK_MAN=fsck.8
3222 echo "Building fsck wrapper"
3223fi
3224
3225else
3226 case "$host_os" in
3227 gnu*)
3228 FSCK_PROG='' FSCK_MAN=''
3229 echo "Not building fsck wrapper by default"
3230 ;;
3231 *)
3232 FSCK_PROG=fsck FSCK_MAN=fsck.8
3233 echo "Building fsck wrapper by default"
3234esac
3235
3236fi
3237
3238
3239
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003240MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3241
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003242# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003243if test "${enable_old_bitops+set}" = set; then
3244 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003245 if test "$enableval" = "no"
3246then
3247 echo "Using new (standard) bitmask operations"
3248else
3249 cat >> confdefs.h <<\EOF
3250#define EXT2_OLD_BITOPS 1
3251EOF
3252
3253 echo "Using old (native) bitmask operations"
3254
3255fi
3256
3257else
3258 echo "Using standard bitmask operations by default"
3259
3260fi
3261
Theodore Ts'o74becf31997-04-26 14:37:06 +00003262
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003263echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003264echo "configure:3265: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003265set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003266if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3268else
3269 cat > conftestmake <<\EOF
3270all:
3271 @echo 'ac_maketemp="${MAKE}"'
3272EOF
3273# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3274eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3275if test -n "$ac_maketemp"; then
3276 eval ac_cv_prog_make_${ac_make}_set=yes
3277else
3278 eval ac_cv_prog_make_${ac_make}_set=no
3279fi
3280rm -f conftestmake
3281fi
3282if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3283 echo "$ac_t""yes" 1>&6
3284 SET_MAKE=
3285else
3286 echo "$ac_t""no" 1>&6
3287 SET_MAKE="MAKE=${MAKE-make}"
3288fi
3289
3290# Extract the first word of "ln", so it can be a program name with args.
3291set dummy ln; ac_word=$2
3292echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003293echo "configure:3294: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003294if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3296else
3297 case "$LN" in
3298 /*)
3299 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3300 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003301 ?:/*)
3302 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3303 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003304 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3306 ac_dummy="$PATH"
3307 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003308 test -z "$ac_dir" && ac_dir=.
3309 if test -f $ac_dir/$ac_word; then
3310 ac_cv_path_LN="$ac_dir/$ac_word"
3311 break
3312 fi
3313 done
3314 IFS="$ac_save_ifs"
3315 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3316 ;;
3317esac
3318fi
3319LN="$ac_cv_path_LN"
3320if test -n "$LN"; then
3321 echo "$ac_t""$LN" 1>&6
3322else
3323 echo "$ac_t""no" 1>&6
3324fi
3325
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003326echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003327echo "configure:3328: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003328if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3330else
3331 rm -f conftestdata
3332if ln -s X conftestdata 2>/dev/null
3333then
3334 rm -f conftestdata
3335 ac_cv_prog_LN_S="ln -s"
3336else
3337 ac_cv_prog_LN_S=ln
3338fi
3339fi
3340LN_S="$ac_cv_prog_LN_S"
3341if test "$ac_cv_prog_LN_S" = "ln -s"; then
3342 echo "$ac_t""yes" 1>&6
3343else
3344 echo "$ac_t""no" 1>&6
3345fi
3346
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003347# Extract the first word of "mv", so it can be a program name with args.
3348set dummy mv; ac_word=$2
3349echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003350echo "configure:3351: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003351if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3353else
3354 case "$MV" in
3355 /*)
3356 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3357 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003358 ?:/*)
3359 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3360 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003361 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3363 ac_dummy="$PATH"
3364 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003365 test -z "$ac_dir" && ac_dir=.
3366 if test -f $ac_dir/$ac_word; then
3367 ac_cv_path_MV="$ac_dir/$ac_word"
3368 break
3369 fi
3370 done
3371 IFS="$ac_save_ifs"
3372 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3373 ;;
3374esac
3375fi
3376MV="$ac_cv_path_MV"
3377if test -n "$MV"; then
3378 echo "$ac_t""$MV" 1>&6
3379else
3380 echo "$ac_t""no" 1>&6
3381fi
3382
3383# Extract the first word of "cp", so it can be a program name with args.
3384set dummy cp; ac_word=$2
3385echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003386echo "configure:3387: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003387if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3389else
3390 case "$CP" in
3391 /*)
3392 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3393 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003394 ?:/*)
3395 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3396 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003397 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3399 ac_dummy="$PATH"
3400 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003401 test -z "$ac_dir" && ac_dir=.
3402 if test -f $ac_dir/$ac_word; then
3403 ac_cv_path_CP="$ac_dir/$ac_word"
3404 break
3405 fi
3406 done
3407 IFS="$ac_save_ifs"
3408 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3409 ;;
3410esac
3411fi
3412CP="$ac_cv_path_CP"
3413if test -n "$CP"; then
3414 echo "$ac_t""$CP" 1>&6
3415else
3416 echo "$ac_t""no" 1>&6
3417fi
3418
3419# Extract the first word of "rm", so it can be a program name with args.
3420set dummy rm; ac_word=$2
3421echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003422echo "configure:3423: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003423if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3425else
3426 case "$RM" in
3427 /*)
3428 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3429 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003430 ?:/*)
3431 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3432 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003433 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3435 ac_dummy="$PATH"
3436 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003437 test -z "$ac_dir" && ac_dir=.
3438 if test -f $ac_dir/$ac_word; then
3439 ac_cv_path_RM="$ac_dir/$ac_word"
3440 break
3441 fi
3442 done
3443 IFS="$ac_save_ifs"
3444 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3445 ;;
3446esac
3447fi
3448RM="$ac_cv_path_RM"
3449if test -n "$RM"; then
3450 echo "$ac_t""$RM" 1>&6
3451else
3452 echo "$ac_t""no" 1>&6
3453fi
3454
3455# Extract the first word of "chmod", so it can be a program name with args.
3456set dummy chmod; ac_word=$2
3457echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003458echo "configure:3459: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003459if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461else
3462 case "$CHMOD" in
3463 /*)
3464 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3465 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003466 ?:/*)
3467 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3468 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003469 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3471 ac_dummy="$PATH"
3472 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003473 test -z "$ac_dir" && ac_dir=.
3474 if test -f $ac_dir/$ac_word; then
3475 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3476 break
3477 fi
3478 done
3479 IFS="$ac_save_ifs"
3480 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3481 ;;
3482esac
3483fi
3484CHMOD="$ac_cv_path_CHMOD"
3485if test -n "$CHMOD"; then
3486 echo "$ac_t""$CHMOD" 1>&6
3487else
3488 echo "$ac_t""no" 1>&6
3489fi
3490
3491# Extract the first word of "awk", so it can be a program name with args.
3492set dummy awk; ac_word=$2
3493echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003494echo "configure:3495: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003495if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3497else
3498 case "$AWK" in
3499 /*)
3500 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3501 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003502 ?:/*)
3503 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3504 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003505 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3507 ac_dummy="$PATH"
3508 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003509 test -z "$ac_dir" && ac_dir=.
3510 if test -f $ac_dir/$ac_word; then
3511 ac_cv_path_AWK="$ac_dir/$ac_word"
3512 break
3513 fi
3514 done
3515 IFS="$ac_save_ifs"
3516 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3517 ;;
3518esac
3519fi
3520AWK="$ac_cv_path_AWK"
3521if test -n "$AWK"; then
3522 echo "$ac_t""$AWK" 1>&6
3523else
3524 echo "$ac_t""no" 1>&6
3525fi
3526
3527# Extract the first word of "sed", so it can be a program name with args.
3528set dummy sed; ac_word=$2
3529echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003530echo "configure:3531: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003531if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3533else
3534 case "$SED" in
3535 /*)
3536 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3537 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003538 ?:/*)
3539 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3540 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003541 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3543 ac_dummy="$PATH"
3544 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003545 test -z "$ac_dir" && ac_dir=.
3546 if test -f $ac_dir/$ac_word; then
3547 ac_cv_path_SED="$ac_dir/$ac_word"
3548 break
3549 fi
3550 done
3551 IFS="$ac_save_ifs"
3552 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3553 ;;
3554esac
3555fi
3556SED="$ac_cv_path_SED"
3557if test -n "$SED"; then
3558 echo "$ac_t""$SED" 1>&6
3559else
3560 echo "$ac_t""no" 1>&6
3561fi
3562
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003563# Extract the first word of "perl", so it can be a program name with args.
3564set dummy perl; ac_word=$2
3565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003566echo "configure:3567: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003567if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3569else
3570 case "$PERL" in
3571 /*)
3572 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3573 ;;
3574 ?:/*)
3575 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3576 ;;
3577 *)
3578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3579 ac_dummy="$PATH"
3580 for ac_dir in $ac_dummy; do
3581 test -z "$ac_dir" && ac_dir=.
3582 if test -f $ac_dir/$ac_word; then
3583 ac_cv_path_PERL="$ac_dir/$ac_word"
3584 break
3585 fi
3586 done
3587 IFS="$ac_save_ifs"
3588 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3589 ;;
3590esac
3591fi
3592PERL="$ac_cv_path_PERL"
3593if test -n "$PERL"; then
3594 echo "$ac_t""$PERL" 1>&6
3595else
3596 echo "$ac_t""no" 1>&6
3597fi
3598
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003599echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003600echo "configure:3601: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003601
3602build_alias=$build
3603case "$build_alias" in
3604NONE)
3605 case $nonopt in
3606 NONE) build_alias=$host_alias ;;
3607 *) build_alias=$nonopt ;;
3608 esac ;;
3609esac
3610
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003611build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003612build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3613build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3614build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003615echo "$ac_t""$build" 1>&6
3616
3617if test $host != $build; then
3618 ac_tool_prefix=${host_alias}-
3619else
3620 ac_tool_prefix=
3621fi
3622
3623# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3624set dummy ${ac_tool_prefix}ar; ac_word=$2
3625echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003626echo "configure:3627: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003627if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3629else
3630 if test -n "$AR"; then
3631 ac_cv_prog_AR="$AR" # Let the user override the test.
3632else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3634 ac_dummy="$PATH"
3635 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003636 test -z "$ac_dir" && ac_dir=.
3637 if test -f $ac_dir/$ac_word; then
3638 ac_cv_prog_AR="${ac_tool_prefix}ar"
3639 break
3640 fi
3641 done
3642 IFS="$ac_save_ifs"
3643fi
3644fi
3645AR="$ac_cv_prog_AR"
3646if test -n "$AR"; then
3647 echo "$ac_t""$AR" 1>&6
3648else
3649 echo "$ac_t""no" 1>&6
3650fi
3651
3652
3653if test -z "$ac_cv_prog_AR"; then
3654if test -n "$ac_tool_prefix"; then
3655 # Extract the first word of "ar", so it can be a program name with args.
3656set dummy ar; ac_word=$2
3657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003658echo "configure:3659: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003659if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3661else
3662 if test -n "$AR"; then
3663 ac_cv_prog_AR="$AR" # Let the user override the test.
3664else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3666 ac_dummy="$PATH"
3667 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003668 test -z "$ac_dir" && ac_dir=.
3669 if test -f $ac_dir/$ac_word; then
3670 ac_cv_prog_AR="ar"
3671 break
3672 fi
3673 done
3674 IFS="$ac_save_ifs"
3675 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3676fi
3677fi
3678AR="$ac_cv_prog_AR"
3679if test -n "$AR"; then
3680 echo "$ac_t""$AR" 1>&6
3681else
3682 echo "$ac_t""no" 1>&6
3683fi
3684
3685else
3686 AR="ar"
3687fi
3688fi
3689
3690# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3691set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3692echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003693echo "configure:3694: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003694if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3696else
3697 if test -n "$RANLIB"; then
3698 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3699else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3701 ac_dummy="$PATH"
3702 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003703 test -z "$ac_dir" && ac_dir=.
3704 if test -f $ac_dir/$ac_word; then
3705 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3706 break
3707 fi
3708 done
3709 IFS="$ac_save_ifs"
3710fi
3711fi
3712RANLIB="$ac_cv_prog_RANLIB"
3713if test -n "$RANLIB"; then
3714 echo "$ac_t""$RANLIB" 1>&6
3715else
3716 echo "$ac_t""no" 1>&6
3717fi
3718
3719
3720if test -z "$ac_cv_prog_RANLIB"; then
3721if test -n "$ac_tool_prefix"; then
3722 # Extract the first word of "ranlib", so it can be a program name with args.
3723set dummy ranlib; ac_word=$2
3724echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003725echo "configure:3726: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003726if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3728else
3729 if test -n "$RANLIB"; then
3730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3731else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3733 ac_dummy="$PATH"
3734 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003735 test -z "$ac_dir" && ac_dir=.
3736 if test -f $ac_dir/$ac_word; then
3737 ac_cv_prog_RANLIB="ranlib"
3738 break
3739 fi
3740 done
3741 IFS="$ac_save_ifs"
3742 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3743fi
3744fi
3745RANLIB="$ac_cv_prog_RANLIB"
3746if test -n "$RANLIB"; then
3747 echo "$ac_t""$RANLIB" 1>&6
3748else
3749 echo "$ac_t""no" 1>&6
3750fi
3751
3752else
3753 RANLIB=":"
3754fi
3755fi
3756
3757# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3758set dummy ${ac_tool_prefix}strip; ac_word=$2
3759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003760echo "configure:3761: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003761if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3763else
3764 if test -n "$STRIP"; then
3765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3768 ac_dummy="$PATH"
3769 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003770 test -z "$ac_dir" && ac_dir=.
3771 if test -f $ac_dir/$ac_word; then
3772 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3773 break
3774 fi
3775 done
3776 IFS="$ac_save_ifs"
3777fi
3778fi
3779STRIP="$ac_cv_prog_STRIP"
3780if test -n "$STRIP"; then
3781 echo "$ac_t""$STRIP" 1>&6
3782else
3783 echo "$ac_t""no" 1>&6
3784fi
3785
3786
3787if test -z "$ac_cv_prog_STRIP"; then
3788if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "strip", so it can be a program name with args.
3790set dummy strip; ac_word=$2
3791echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003792echo "configure:3793: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003793if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3794 echo $ac_n "(cached) $ac_c" 1>&6
3795else
3796 if test -n "$STRIP"; then
3797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3798else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3800 ac_dummy="$PATH"
3801 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003802 test -z "$ac_dir" && ac_dir=.
3803 if test -f $ac_dir/$ac_word; then
3804 ac_cv_prog_STRIP="strip"
3805 break
3806 fi
3807 done
3808 IFS="$ac_save_ifs"
3809 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3810fi
3811fi
3812STRIP="$ac_cv_prog_STRIP"
3813if test -n "$STRIP"; then
3814 echo "$ac_t""$STRIP" 1>&6
3815else
3816 echo "$ac_t""no" 1>&6
3817fi
3818
3819else
3820 STRIP=":"
3821fi
3822fi
3823
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003824# Find a good install program. We prefer a C program (faster),
3825# so one script is as good as another. But avoid the broken or
3826# incompatible versions:
3827# SysV /etc/install, /usr/sbin/install
3828# SunOS /usr/etc/install
3829# IRIX /sbin/install
3830# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003831# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003832# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3833# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3834# ./install, which can be erroneously created by make from ./install.sh.
3835echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003836echo "configure:3837: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003837if test -z "$INSTALL"; then
3838if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3840else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003841 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003842 for ac_dir in $PATH; do
3843 # Account for people who put trailing slashes in PATH elements.
3844 case "$ac_dir/" in
3845 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3846 *)
3847 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003848 # Don't use installbsd from OSF since it installs stuff as root
3849 # by default.
3850 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003851 if test -f $ac_dir/$ac_prog; then
3852 if test $ac_prog = install &&
3853 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3854 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003855 :
3856 else
3857 ac_cv_path_install="$ac_dir/$ac_prog -c"
3858 break 2
3859 fi
3860 fi
3861 done
3862 ;;
3863 esac
3864 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003865 IFS="$ac_save_IFS"
3866
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003867fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003868 if test "${ac_cv_path_install+set}" = set; then
3869 INSTALL="$ac_cv_path_install"
3870 else
3871 # As a last resort, use the slow shell script. We don't cache a
3872 # path for INSTALL within a source directory, because that will
3873 # break other packages using the cache if that directory is
3874 # removed, or if the path is relative.
3875 INSTALL="$ac_install_sh"
3876 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003877fi
3878echo "$ac_t""$INSTALL" 1>&6
3879
3880# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3881# It thinks the first close brace ends the variable substitution.
3882test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3883
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003884test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3885
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003886test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3887
Theodore Ts'o6c133521999-07-03 20:37:03 +00003888# See if we need a separate native compiler.
3889if test $cross_compiling = no; then
3890 BUILD_CC="$CC"
3891
3892else
3893 for ac_prog in gcc cc
3894do
3895# Extract the first word of "$ac_prog", so it can be a program name with args.
3896set dummy $ac_prog; ac_word=$2
3897echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003898echo "configure:3899: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00003899if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3901else
3902 if test -n "$BUILD_CC"; then
3903 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3904else
3905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3906 ac_dummy="$PATH"
3907 for ac_dir in $ac_dummy; do
3908 test -z "$ac_dir" && ac_dir=.
3909 if test -f $ac_dir/$ac_word; then
3910 ac_cv_prog_BUILD_CC="$ac_prog"
3911 break
3912 fi
3913 done
3914 IFS="$ac_save_ifs"
3915fi
3916fi
3917BUILD_CC="$ac_cv_prog_BUILD_CC"
3918if test -n "$BUILD_CC"; then
3919 echo "$ac_t""$BUILD_CC" 1>&6
3920else
3921 echo "$ac_t""no" 1>&6
3922fi
3923
3924test -n "$BUILD_CC" && break
3925done
3926
3927fi
Theodore Ts'oc81c6ce1999-10-26 04:28:53 +00003928for 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/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 +00003929do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003930ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003931echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003932echo "configure:3933: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003933if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3935else
3936 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003937#line 3938 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003938#include "confdefs.h"
3939#include <$ac_hdr>
3940EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003941ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o19178752000-02-11 15:55:07 +00003942{ (eval echo configure:3943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003943ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003944if test -z "$ac_err"; then
3945 rm -rf conftest*
3946 eval "ac_cv_header_$ac_safe=yes"
3947else
3948 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003949 echo "configure: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003951 rm -rf conftest*
3952 eval "ac_cv_header_$ac_safe=no"
3953fi
3954rm -f conftest*
3955fi
3956if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3957 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003959 cat >> confdefs.h <<EOF
3960#define $ac_tr_hdr 1
3961EOF
3962
3963else
3964 echo "$ac_t""no" 1>&6
3965fi
3966done
3967
3968echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00003969echo "configure:3970: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003970if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3972else
3973 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003974#line 3975 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003975#include "confdefs.h"
3976/* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char vprintf(); below. */
3978#include <assert.h>
3979/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003980/* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3982char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003983
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003984int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003985
3986/* The GNU C library defines this for functions which it implements
3987 to always fail with ENOSYS. Some functions are actually named
3988 something starting with __ and the normal name is an alias. */
3989#if defined (__stub_vprintf) || defined (__stub___vprintf)
3990choke me
3991#else
3992vprintf();
3993#endif
3994
3995; return 0; }
3996EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003997if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003998 rm -rf conftest*
3999 eval "ac_cv_func_vprintf=yes"
4000else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004003 rm -rf conftest*
4004 eval "ac_cv_func_vprintf=no"
4005fi
4006rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004007fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004008
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004009if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011 cat >> confdefs.h <<\EOF
4012#define HAVE_VPRINTF 1
4013EOF
4014
4015else
4016 echo "$ac_t""no" 1>&6
4017fi
4018
4019if test "$ac_cv_func_vprintf" != yes; then
4020echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00004021echo "configure:4022: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004022if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4024else
4025 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00004026#line 4027 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004027#include "confdefs.h"
4028/* System header to define __stub macros and hopefully few prototypes,
4029 which can conflict with char _doprnt(); below. */
4030#include <assert.h>
4031/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004032/* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4034char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004035
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004036int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004037
4038/* The GNU C library defines this for functions which it implements
4039 to always fail with ENOSYS. Some functions are actually named
4040 something starting with __ and the normal name is an alias. */
4041#if defined (__stub__doprnt) || defined (__stub____doprnt)
4042choke me
4043#else
4044_doprnt();
4045#endif
4046
4047; return 0; }
4048EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00004049if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004050 rm -rf conftest*
4051 eval "ac_cv_func__doprnt=yes"
4052else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004055 rm -rf conftest*
4056 eval "ac_cv_func__doprnt=no"
4057fi
4058rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004059fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004060
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004061if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4062 echo "$ac_t""yes" 1>&6
4063 cat >> confdefs.h <<\EOF
4064#define HAVE_DOPRNT 1
4065EOF
4066
4067else
4068 echo "$ac_t""no" 1>&6
4069fi
4070
4071fi
4072
4073echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00004074echo "configure:4075: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004075if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4077else
4078 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00004079#line 4080 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004080#include "confdefs.h"
4081#include <sys/types.h>
4082#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004083int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004084struct dirent de; de.d_namlen = 0;
4085; return 0; }
4086EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00004087if { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004088 rm -rf conftest*
4089 e2fsprogs_cv_struct_d_namlen=yes
4090else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004093 rm -rf conftest*
4094 e2fsprogs_cv_struct_d_namlen=no
4095fi
4096rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004097fi
4098
4099echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4100if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4101 cat >> confdefs.h <<\EOF
4102#define HAVE_DIRENT_NAMLEN 1
4103EOF
4104
4105fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004106echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o19178752000-02-11 15:55:07 +00004107echo "configure:4108: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004108if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4110else
4111 cat > conftest.$ac_ext <<EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00004112#line 4113 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004113#include "confdefs.h"
4114#include <unistd.h>
4115int main() {
4116extern int llseek(int);
4117; return 0; }
4118EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00004119if { (eval echo configure:4120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004120 rm -rf conftest*
4121 e2fsprogs_cv_have_llseek_prototype=no
4122else
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4125 rm -rf conftest*
4126 e2fsprogs_cv_have_llseek_prototype=yes
4127fi
4128rm -f conftest*
4129fi
4130
4131echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4132if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4133 cat >> confdefs.h <<\EOF
4134#define HAVE_LLSEEK_PROTOTYPE 1
4135EOF
4136
4137fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004138echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
4139echo "configure:4140: checking whether lseek64 declared in unistd.h" >&5
4140if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4142else
4143 cat > conftest.$ac_ext <<EOF
4144#line 4145 "configure"
4145#include "confdefs.h"
4146#define _LARGEFILE_SOURCE
4147#define _LARGEFILE64_SOURCE
4148#include <unistd.h>
4149int main() {
4150extern int lseek64(int);
4151; return 0; }
4152EOF
4153if { (eval echo configure:4154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4154 rm -rf conftest*
4155 e2fsprogs_cv_have_lseek64_prototype=no
4156else
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4159 rm -rf conftest*
4160 e2fsprogs_cv_have_lseek64_prototype=yes
4161fi
4162rm -f conftest*
4163fi
4164
4165echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4166if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4167 cat >> confdefs.h <<\EOF
4168#define HAVE_LSEEK64_PROTOTYPE 1
4169EOF
4170
4171fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004172if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4173 # if cross-compiling, with no cached values, just assume something common.
4174 ac_cv_sizeof_short=2
4175 ac_cv_sizeof_int=4
4176 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004177 ac_cv_sizeof_long_long=8
4178 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 +00004179fi
4180echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004181echo "configure:4182: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004182if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4184else
4185 if test "$cross_compiling" = yes; then
4186 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4187else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004188 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004189#line 4190 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004190#include "confdefs.h"
4191#include <stdio.h>
4192main()
4193{
4194 FILE *f=fopen("conftestval", "w");
4195 if (!f) exit(1);
4196 fprintf(f, "%d\n", sizeof(short));
4197 exit(0);
4198}
4199EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004200if { (eval echo configure:4201: \"$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 +00004201then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004202 ac_cv_sizeof_short=`cat conftestval`
4203else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4206 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004207 ac_cv_sizeof_short=0
4208fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004209rm -fr conftest*
4210fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004211
4212fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004213echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4214cat >> confdefs.h <<EOF
4215#define SIZEOF_SHORT $ac_cv_sizeof_short
4216EOF
4217
4218
4219echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004220echo "configure:4221: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004221if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4223else
4224 if test "$cross_compiling" = yes; then
4225 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4226else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004227 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004228#line 4229 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004229#include "confdefs.h"
4230#include <stdio.h>
4231main()
4232{
4233 FILE *f=fopen("conftestval", "w");
4234 if (!f) exit(1);
4235 fprintf(f, "%d\n", sizeof(int));
4236 exit(0);
4237}
4238EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004239if { (eval echo configure:4240: \"$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 +00004240then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004241 ac_cv_sizeof_int=`cat conftestval`
4242else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004243 echo "configure: failed program was:" >&5
4244 cat conftest.$ac_ext >&5
4245 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004246 ac_cv_sizeof_int=0
4247fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004248rm -fr conftest*
4249fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004250
4251fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004252echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4253cat >> confdefs.h <<EOF
4254#define SIZEOF_INT $ac_cv_sizeof_int
4255EOF
4256
4257
4258echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004259echo "configure:4260: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004260if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4262else
4263 if test "$cross_compiling" = yes; then
4264 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4265else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004266 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004267#line 4268 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004268#include "confdefs.h"
4269#include <stdio.h>
4270main()
4271{
4272 FILE *f=fopen("conftestval", "w");
4273 if (!f) exit(1);
4274 fprintf(f, "%d\n", sizeof(long));
4275 exit(0);
4276}
4277EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004278if { (eval echo configure:4279: \"$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 +00004279then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004280 ac_cv_sizeof_long=`cat conftestval`
4281else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004282 echo "configure: failed program was:" >&5
4283 cat conftest.$ac_ext >&5
4284 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004285 ac_cv_sizeof_long=0
4286fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004287rm -fr conftest*
4288fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004289
4290fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004291echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4292cat >> confdefs.h <<EOF
4293#define SIZEOF_LONG $ac_cv_sizeof_long
4294EOF
4295
4296
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004297echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004298echo "configure:4299: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004299if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4301else
4302 if test "$cross_compiling" = yes; then
4303 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4304else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004305 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004306#line 4307 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004307#include "confdefs.h"
4308#include <stdio.h>
4309main()
4310{
4311 FILE *f=fopen("conftestval", "w");
4312 if (!f) exit(1);
4313 fprintf(f, "%d\n", sizeof(long long));
4314 exit(0);
4315}
4316EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004317if { (eval echo configure:4318: \"$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 +00004318then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004319 ac_cv_sizeof_long_long=`cat conftestval`
4320else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004321 echo "configure: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4323 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004324 ac_cv_sizeof_long_long=0
4325fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004326rm -fr conftest*
4327fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004328
4329fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004330echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4331cat >> confdefs.h <<EOF
4332#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4333EOF
4334
4335
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004336SIZEOF_SHORT=$ac_cv_sizeof_short
4337SIZEOF_INT=$ac_cv_sizeof_int
4338SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004339SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4340
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004341
4342
4343
4344echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004345echo "configure:4346: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004346if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4348else
4349 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004350#line 4351 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004351#include "confdefs.h"
4352#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004353int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004354struct stat stat; stat.st_flags = 0;
4355; return 0; }
4356EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004357if { (eval echo configure:4358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004358 rm -rf conftest*
4359 e2fsprogs_cv_struct_st_flags=yes
4360else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004363 rm -rf conftest*
4364 e2fsprogs_cv_struct_st_flags=no
4365fi
4366rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004367fi
4368
4369echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4370if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004371 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004372echo "configure:4373: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004373 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4375else
4376 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004377#line 4378 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004378#include "confdefs.h"
4379#include <sys/stat.h>
4380int main() {
4381struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4382; return 0; }
4383EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004384if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004385 rm -rf conftest*
4386 e2fsprogs_cv_struct_st_flags_immut=yes
4387else
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4390 rm -rf conftest*
4391 e2fsprogs_cv_struct_st_flags_immut=no
4392fi
4393rm -f conftest*
4394fi
4395
4396 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4397 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4398 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004399#define HAVE_STAT_FLAGS 1
4400EOF
4401
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004402 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004403fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004404for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004405do
4406echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004407echo "configure:4408: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004408if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4410else
4411 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004412#line 4413 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004413#include "confdefs.h"
4414/* System header to define __stub macros and hopefully few prototypes,
4415 which can conflict with char $ac_func(); below. */
4416#include <assert.h>
4417/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004418/* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4420char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004421
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004422int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004423
4424/* The GNU C library defines this for functions which it implements
4425 to always fail with ENOSYS. Some functions are actually named
4426 something starting with __ and the normal name is an alias. */
4427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4428choke me
4429#else
4430$ac_func();
4431#endif
4432
4433; return 0; }
4434EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004435if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004436 rm -rf conftest*
4437 eval "ac_cv_func_$ac_func=yes"
4438else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004441 rm -rf conftest*
4442 eval "ac_cv_func_$ac_func=no"
4443fi
4444rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004445fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004446
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004447if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004450 cat >> confdefs.h <<EOF
4451#define $ac_tr_func 1
4452EOF
4453
4454else
4455 echo "$ac_t""no" 1>&6
4456fi
4457done
4458
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004459echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004460echo "configure:4461: checking ino_t defined by sys/types.h" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004461if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4463else
4464 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004465#line 4466 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004466#include "confdefs.h"
4467#include <sys/types.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004468int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004469ino_t ino; ino = 0;
4470; return 0; }
4471EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004472if { (eval echo configure:4473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004473 rm -rf conftest*
4474 e2fsprogs_cv_ino_t=yes
4475else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004478 rm -rf conftest*
4479 e2fsprogs_cv_ino_t=no
4480fi
4481rm -f conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004482fi
4483
4484echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
4485if test "$e2fsprogs_cv_ino_t" = yes; then
4486 cat >> confdefs.h <<\EOF
4487#define HAVE_INO_T 1
4488EOF
4489
4490fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004491SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004492echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004493echo "configure:4494: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004494ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4495if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004496 echo $ac_n "(cached) $ac_c" 1>&6
4497else
4498 ac_save_LIBS="$LIBS"
4499LIBS="-lsocket $LIBS"
4500cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004501#line 4502 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004502#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004503/* Override any gcc2 internal prototype to avoid an error. */
4504/* We use char because int might match the return type of a gcc2
4505 builtin and then its argument prototype would still apply. */
4506char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004507
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004508int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004509socket()
4510; return 0; }
4511EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004512if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004513 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004514 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004515else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004518 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004519 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004520fi
4521rm -f conftest*
4522LIBS="$ac_save_LIBS"
4523
4524fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004525if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004526 echo "$ac_t""yes" 1>&6
4527 SOCKET_LIB=-lsocket
4528else
4529 echo "$ac_t""no" 1>&6
4530fi
4531
4532
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004533echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004534echo "configure:4535: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004535if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4537else
4538 cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004539#line 4540 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004540#include "confdefs.h"
4541#include <unistd.h>
4542EOF
4543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 egrep "optreset" >/dev/null 2>&1; then
4545 rm -rf conftest*
4546 ac_cv_have_optreset=yes
4547else
4548 rm -rf conftest*
4549 ac_cv_have_optreset=no
4550fi
4551rm -f conftest*
4552
4553fi
4554echo "$ac_t""$ac_cv_have_optreset" 1>&6
4555if test $ac_cv_have_optreset = yes; then
4556 cat >> confdefs.h <<\EOF
4557#define HAVE_OPTRESET 1
4558EOF
4559
4560fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004561case "$host_os" in
4562linux*)
4563 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004564#define HAVE_EXT2_IOCTLS 1
4565EOF
4566
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004567 ;;
4568esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004569case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004570linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004571 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4572 root_prefix="";
4573 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004574 fi
4575 ;;
4576esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004577case "$host_os" in
4578linux* | gnu*)
4579 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004580 prefix="/usr";
4581 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004582 fi
4583;;
4584esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004585if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004586 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004587 root_prefix="$ac_default_prefix"
4588 else
4589 root_prefix="$prefix"
4590 fi
4591fi
4592
Theodore Ts'oae851481997-04-29 18:13:24 +00004593echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004594echo "configure:4595: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004595if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4596 echo $ac_n "(cached) $ac_c" 1>&6
4597else
4598 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4599cat > conftest.$ac_ext <<EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004600#line 4601 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004601#include "confdefs.h"
4602#include <stdio.h>
4603int main() {
4604fflush(stdout);
4605; return 0; }
4606EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004607if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004608 rm -rf conftest*
4609 ac_cv_e2fsprogs_use_static=yes
4610else
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4613 rm -rf conftest*
4614 ac_cv_e2fsprogs_use_static=no
4615fi
4616rm -f conftest*
4617LDFLAGS=$SAVE_LDFLAGS
4618fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004619
Theodore Ts'odefde781999-01-04 07:39:19 +00004620case "$host_os" in
4621solaris2.*)
4622 ac_cv_e2fsprogs_use_static=no
4623;;
4624esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004625echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004626LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004627if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004628 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004629fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004630
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004631SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4632ET_DIR=`cd ${srcdir}/lib/et; pwd`
4633
4634
4635if test "$cross_compiling" = yes ; then
4636 DO_TEST_SUITE=
4637else
4638 DO_TEST_SUITE=check
4639fi
4640
4641test -d lib || mkdir lib
4642test -d include || mkdir include
4643test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004644test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004645rmakefile=
4646if test -d ${srcdir}/resize ; then
4647 rmakefile=resize/Makefile
4648fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004649trap '' 1 2 15
4650cat > confcache <<\EOF
4651# This file is a shell script that caches the results of configure
4652# tests run on this system so they can be shared between configure
4653# scripts and configure runs. It is not useful on other systems.
4654# If it contains results you don't want to keep, you may remove or edit it.
4655#
4656# By default, configure uses ./config.cache as the cache file,
4657# creating it if it does not exist already. You can give configure
4658# the --cache-file=FILE option to use a different cache file; that is
4659# what configure does when it calls configure scripts in
4660# subdirectories, so they share the cache.
4661# Giving --cache-file=/dev/null disables caching, for debugging configure.
4662# config.status only pays attention to the cache file if you give it the
4663# --recheck option to rerun configure.
4664#
4665EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004666# The following way of writing the cache mishandles newlines in values,
4667# but we know of no workaround that is simple, portable, and efficient.
4668# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004669# Ultrix sh set writes to stderr and can't be redirected directly,
4670# and sets the high bit in the cache file unless we assign to the vars.
4671(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004672 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004673 *ac_space=\ *)
4674 # `set' does not quote correctly, so add quotes (double-quote substitution
4675 # turns \\\\ into \\, and sed turns \\ into \).
4676 sed -n \
4677 -e "s/'/'\\\\''/g" \
4678 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4679 ;;
4680 *)
4681 # `set' quotes correctly as required by POSIX, so do not add quotes.
4682 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4683 ;;
4684 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004685if cmp -s $cache_file confcache; then
4686 :
4687else
4688 if test -w $cache_file; then
4689 echo "updating cache $cache_file"
4690 cat confcache > $cache_file
4691 else
4692 echo "not updating unwritable cache $cache_file"
4693 fi
4694fi
4695rm -f confcache
4696
4697trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4698
4699test "x$prefix" = xNONE && prefix=$ac_default_prefix
4700# Let make expand exec_prefix.
4701test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4702
4703# Any assignment to VPATH causes Sun make to only execute
4704# the first set of double-colon rules, so remove it if not needed.
4705# If there is a colon in the path, we need to keep it.
4706if test "x$srcdir" = x.; then
4707 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4708fi
4709
4710trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4711
4712# Transform confdefs.h into DEFS.
4713# Protect against shell expansion while executing Makefile rules.
4714# Protect against Makefile macro expansion.
4715cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004716s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004717s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4718s%\[%\\&%g
4719s%\]%\\&%g
4720s%\$%$$%g
4721EOF
4722DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4723rm -f conftest.defs
4724
4725
4726# Without the "./", some shells look in PATH for config.status.
4727: ${CONFIG_STATUS=./config.status}
4728
4729echo creating $CONFIG_STATUS
4730rm -f $CONFIG_STATUS
4731cat > $CONFIG_STATUS <<EOF
4732#! /bin/sh
4733# Generated automatically by configure.
4734# Run this file to recreate the current configuration.
4735# This directory was configured as follows,
4736# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4737#
4738# $0 $ac_configure_args
4739#
4740# Compiler output produced by configure, useful for debugging
4741# configure, is in ./config.log if it exists.
4742
4743ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4744for ac_option
4745do
4746 case "\$ac_option" in
4747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4748 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4749 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4750 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004751 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004752 exit 0 ;;
4753 -help | --help | --hel | --he | --h)
4754 echo "\$ac_cs_usage"; exit 0 ;;
4755 *) echo "\$ac_cs_usage"; exit 1 ;;
4756 esac
4757done
4758
4759ac_given_srcdir=$srcdir
4760ac_given_INSTALL="$INSTALL"
4761
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004762trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004763 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4764 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004765 tests/progs/Makefile $rmakefile doc/Makefile
4766 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004767EOF
4768cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004769
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004770# Protect against being on the right side of a sed subst in config.status.
4771sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4772 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004773$ac_vpsub
4774$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004775s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004776s%@CFLAGS@%$CFLAGS%g
4777s%@CPPFLAGS@%$CPPFLAGS%g
4778s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004779s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004780s%@DEFS@%$DEFS%g
4781s%@LDFLAGS@%$LDFLAGS%g
4782s%@LIBS@%$LIBS%g
4783s%@exec_prefix@%$exec_prefix%g
4784s%@prefix@%$prefix%g
4785s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004786s%@bindir@%$bindir%g
4787s%@sbindir@%$sbindir%g
4788s%@libexecdir@%$libexecdir%g
4789s%@datadir@%$datadir%g
4790s%@sysconfdir@%$sysconfdir%g
4791s%@sharedstatedir@%$sharedstatedir%g
4792s%@localstatedir@%$localstatedir%g
4793s%@libdir@%$libdir%g
4794s%@includedir@%$includedir%g
4795s%@oldincludedir@%$oldincludedir%g
4796s%@infodir@%$infodir%g
4797s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004798/@MCONFIG@/r $MCONFIG
4799s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004800s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4801s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4802s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004803s%@host@%$host%g
4804s%@host_alias@%$host_alias%g
4805s%@host_cpu@%$host_cpu%g
4806s%@host_vendor@%$host_vendor%g
4807s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004808s%@CC@%$CC%g
4809s%@LD@%$LD%g
4810s%@CCOPTS@%$CCOPTS%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004811s%@CPP@%$CPP%g
4812s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004813s%@DLL_CMT@%$DLL_CMT%g
4814/@MAKEFILE_DLL@/r $MAKEFILE_DLL
4815s%@MAKEFILE_DLL@%%g
4816s%@ELF_CMT@%$ELF_CMT%g
4817/@MAKEFILE_ELF@/r $MAKEFILE_ELF
4818s%@MAKEFILE_ELF@%%g
4819s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4820/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4821s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004822s%@PACKAGE@%$PACKAGE%g
4823s%@VERSION@%$VERSION%g
4824s%@SET_MAKE@%$SET_MAKE%g
4825s%@RANLIB@%$RANLIB%g
4826s%@ALLOCA@%$ALLOCA%g
4827s%@USE_NLS@%$USE_NLS%g
4828s%@MSGFMT@%$MSGFMT%g
4829s%@GMSGFMT@%$GMSGFMT%g
4830s%@XGETTEXT@%$XGETTEXT%g
4831s%@GENCAT@%$GENCAT%g
4832s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4833s%@CATALOGS@%$CATALOGS%g
4834s%@CATOBJEXT@%$CATOBJEXT%g
4835s%@DATADIRNAME@%$DATADIRNAME%g
4836s%@GMOFILES@%$GMOFILES%g
4837s%@INSTOBJEXT@%$INSTOBJEXT%g
4838s%@INTLDEPS@%$INTLDEPS%g
4839s%@INTLLIBS@%$INTLLIBS%g
4840s%@INTLOBJS@%$INTLOBJS%g
4841s%@POFILES@%$POFILES%g
4842s%@POSUB@%$POSUB%g
4843s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4844s%@GT_NO@%$GT_NO%g
4845s%@GT_YES@%$GT_YES%g
4846s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4847s%@l@%$l%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004848s%@PROFILE_CMT@%$PROFILE_CMT%g
4849/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4850s%@MAKEFILE_PROFILE@%%g
4851s%@CHECKER_CMT@%$CHECKER_CMT%g
4852/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4853s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004854s%@LIB_EXT@%$LIB_EXT%g
4855s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4856s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004857s%@W@%$W%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004858s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004859s%@FSCK_PROG@%$FSCK_PROG%g
4860s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004861/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4862s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004863s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004864s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004865s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004866s%@MV@%$MV%g
4867s%@CP@%$CP%g
4868s%@RM@%$RM%g
4869s%@CHMOD@%$CHMOD%g
4870s%@AWK@%$AWK%g
4871s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004872s%@PERL@%$PERL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004873s%@build@%$build%g
4874s%@build_alias@%$build_alias%g
4875s%@build_cpu@%$build_cpu%g
4876s%@build_vendor@%$build_vendor%g
4877s%@build_os@%$build_os%g
4878s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004879s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004880s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004881s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004882s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00004883s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004884s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
4885s%@SIZEOF_INT@%$SIZEOF_INT%g
4886s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004887s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004888s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004889s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004890s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004891s%@SS_DIR@%$SS_DIR%g
4892s%@ET_DIR@%$ET_DIR%g
4893s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
4894
4895CEOF
4896EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004897
4898cat >> $CONFIG_STATUS <<\EOF
4899
4900# Split the substitutions into bite-sized pieces for seds with
4901# small command number limits, like on Digital OSF/1 and HP-UX.
4902ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4903ac_file=1 # Number of current file.
4904ac_beg=1 # First line for current file.
4905ac_end=$ac_max_sed_cmds # Line after last line for current file.
4906ac_more_lines=:
4907ac_sed_cmds=""
4908while $ac_more_lines; do
4909 if test $ac_beg -gt 1; then
4910 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4911 else
4912 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4913 fi
4914 if test ! -s conftest.s$ac_file; then
4915 ac_more_lines=false
4916 rm -f conftest.s$ac_file
4917 else
4918 if test -z "$ac_sed_cmds"; then
4919 ac_sed_cmds="sed -f conftest.s$ac_file"
4920 else
4921 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4922 fi
4923 ac_file=`expr $ac_file + 1`
4924 ac_beg=$ac_end
4925 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4926 fi
4927done
4928if test -z "$ac_sed_cmds"; then
4929 ac_sed_cmds=cat
4930fi
4931EOF
4932
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004933cat >> $CONFIG_STATUS <<EOF
4934
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004935CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004936 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4937 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004938 tests/progs/Makefile $rmakefile doc/Makefile
4939 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004940EOF
4941cat >> $CONFIG_STATUS <<\EOF
4942for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004944 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004945 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004946 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4947 *) ac_file_in="${ac_file}.in" ;;
4948 esac
4949
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004950 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004951
4952 # Remove last slash and all that follows it. Not all systems have dirname.
4953 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4954 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4955 # The file is in a subdirectory.
4956 test ! -d "$ac_dir" && mkdir "$ac_dir"
4957 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4958 # A "../" for each directory in $ac_dir_suffix.
4959 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4960 else
4961 ac_dir_suffix= ac_dots=
4962 fi
4963
4964 case "$ac_given_srcdir" in
4965 .) srcdir=.
4966 if test -z "$ac_dots"; then top_srcdir=.
4967 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4968 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4969 *) # Relative path.
4970 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4971 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4972 esac
4973
4974 case "$ac_given_INSTALL" in
4975 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4976 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4977 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004978
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004979 echo creating "$ac_file"
4980 rm -f "$ac_file"
4981 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4982 case "$ac_file" in
4983 *Makefile*) ac_comsub="1i\\
4984# $configure_input" ;;
4985 *) ac_comsub= ;;
4986 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004987
4988 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 +00004989 sed -e "$ac_comsub
4990s%@configure_input@%$configure_input%g
4991s%@srcdir@%$srcdir%g
4992s%@top_srcdir@%$top_srcdir%g
4993s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004994" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004995fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004996rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004997
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004998EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004999
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005000cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005001ac_sources="$nls_cv_header_libgt"
5002ac_dests="$nls_cv_header_intl"
5003EOF
5004
5005cat >> $CONFIG_STATUS <<\EOF
5006srcdir=$ac_given_srcdir
5007while test -n "$ac_sources"; do
5008 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5009 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5010
5011 echo "linking $srcdir/$ac_source to $ac_dest"
5012
5013 if test ! -r $srcdir/$ac_source; then
5014 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5015 fi
5016 rm -f $ac_dest
5017
5018 # Make relative symlinks.
5019 # Remove last slash and all that follows it. Not all systems have dirname.
5020 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5021 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5022 # The dest file is in a subdirectory.
5023 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5024 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5025 # A "../" for each directory in $ac_dest_dir_suffix.
5026 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5027 else
5028 ac_dest_dir_suffix= ac_dots=
5029 fi
5030
5031 case "$srcdir" in
5032 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5033 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5034 esac
5035
5036 # Make a symlink if possible; otherwise try a hard link.
5037 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5038 ln $srcdir/$ac_source $ac_dest; then :
5039 else
5040 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5041 fi
5042done
5043EOF
5044cat >> $CONFIG_STATUS <<EOF
5045
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005046
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005047EOF
5048cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005049case "$CONFIG_FILES" in *po/Makefile.in*)
5050 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5051 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005052
5053exit 0
5054EOF
5055chmod +x $CONFIG_STATUS
5056rm -fr confdefs* $ac_clean_files
5057test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5058