blob: ce1bf5e3cfa364bfaff22a2daea5bc4ad3f77052 [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'od21ae6c2003-05-05 09:00:24 -040015 --with-diet-libc Use diet libc"
16ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000017 --with-cc=COMPILER select compiler to use"
18ac_help="$ac_help
19 --with-linker=LINKER select linker to use"
20ac_help="$ac_help
21 --with-ccopts=CCOPTS select compiler command line options"
22ac_help="$ac_help
23 --with-ldopts=LDOPTS select linker command line options"
24ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000025 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000026ac_help="$ac_help
Theodore Ts'o19178752000-02-11 15:55:07 +000027 --enable-compression enable EXPERIMENTAL compression support"
28ac_help="$ac_help
Theodore Ts'o8fdc9982002-06-25 23:26:34 -040029 --enable-htree enable EXPERIMENTAL htree directory support"
30ac_help="$ac_help
31 --enable-htree-clear clear htree because we don't trust e2fsck"
32ac_help="$ac_help
Theodore Ts'od21ae6c2003-05-05 09:00:24 -040033 --disable-evms don't build EVMS plugin"
34ac_help="$ac_help
Theodore Ts'oa9d799a2002-11-08 13:50:51 -050035 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)"
36ac_help="$ac_help
Theodore Ts'obb988b22003-05-13 23:32:32 -040037 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.2)"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -040038ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000039 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000040ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000041 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000042ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000043 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000044ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000045 --enable-profile build profiling libraries"
46ac_help="$ac_help
47 --enable-checker build checker libraries"
48ac_help="$ac_help
Theodore Ts'o782bebf2002-11-08 18:46:45 -050049 --enable-jbd-debug enable journal debugging"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000050ac_help="$ac_help
Theodore Ts'od21ae6c2003-05-05 09:00:24 -040051 --enable-blkid-debug enable blkid debugging"
Theodore Ts'of0a22d02003-02-22 13:19:53 -050052ac_help="$ac_help
Theodore Ts'o2a29f132003-05-05 12:08:47 -040053 --enable-testio-debug enable the use of the test I/O manager for debugging"
54ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000055 --disable-swapfs disable support of legacy byte-swapped filesystems"
56ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000057 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000058ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000059 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000060ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000061 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000062ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000063 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000064ac_help="$ac_help
65 --enable-fsck build fsck wrapper program"
66ac_help="$ac_help
67 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000068ac_help="$ac_help
Theodore Ts'oa04eba32003-05-03 16:35:17 -040069 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
70ac_help="$ac_help
71 --disable-rpath do not hardcode runtime library paths"
72ac_help="$ac_help
73 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
74 --without-libiconv-prefix don't search for libiconv in includedir and libdir"
75ac_help="$ac_help
76 --disable-nls do not use Native Language Support"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000077ac_help="$ac_help
78 --with-included-gettext use the GNU gettext library included here"
79ac_help="$ac_help
Theodore Ts'oa04eba32003-05-03 16:35:17 -040080 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
81 --without-libintl-prefix don't search for libintl in includedir and libdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000082
83# Initialize some variables set by options.
84# The variables have the same names as the options, with
85# dashes changed to underlines.
86build=NONE
87cache_file=./config.cache
88exec_prefix=NONE
89host=NONE
90no_create=
91nonopt=NONE
92no_recursion=
93prefix=NONE
94program_prefix=NONE
95program_suffix=NONE
96program_transform_name=s,x,x,
97silent=
98site=
99srcdir=
100target=NONE
101verbose=
102x_includes=NONE
103x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000104bindir='${exec_prefix}/bin'
105sbindir='${exec_prefix}/sbin'
106libexecdir='${exec_prefix}/libexec'
107datadir='${prefix}/share'
108sysconfdir='${prefix}/etc'
109sharedstatedir='${prefix}/com'
110localstatedir='${prefix}/var'
111libdir='${exec_prefix}/lib'
112includedir='${prefix}/include'
113oldincludedir='/usr/include'
114infodir='${prefix}/info'
115mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000116
117# Initialize some other variables.
118subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000119MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000120SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000121# Maximum number of lines to put in a shell here document.
122ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000123
124ac_prev=
125for ac_option
126do
127
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
131 ac_prev=
132 continue
133 fi
134
135 case "$ac_option" in
136 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 *) ac_optarg= ;;
138 esac
139
140 # Accept the important Cygnus configure options, so we can diagnose typos.
141
142 case "$ac_option" in
143
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
145 ac_prev=bindir ;;
146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
147 bindir="$ac_optarg" ;;
148
149 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000150 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000152 build="$ac_optarg" ;;
153
154 -cache-file | --cache-file | --cache-fil | --cache-fi \
155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156 ac_prev=cache_file ;;
157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
159 cache_file="$ac_optarg" ;;
160
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000161 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
162 ac_prev=datadir ;;
163 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
164 | --da=*)
165 datadir="$ac_optarg" ;;
166
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000167 -disable-* | --disable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 fi
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
175
176 -enable-* | --enable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 fi
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 case "$ac_option" in
184 *=*) ;;
185 *) ac_optarg=yes ;;
186 esac
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
188
189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
191 | --exec | --exe | --ex)
192 ac_prev=exec_prefix ;;
193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
195 | --exec=* | --exe=* | --ex=*)
196 exec_prefix="$ac_optarg" ;;
197
198 -gas | --gas | --ga | --g)
199 # Obsolete; use --with-gas.
200 with_gas=yes ;;
201
202 -help | --help | --hel | --he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
205 cat << EOF
206Usage: configure [options] [host]
207Options: [defaults in brackets after descriptions]
208Configuration:
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
216 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000218 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
223 [PREFIX/share]
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 [PREFIX/com]
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
238EOF
239 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000240Host type:
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000251EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
254 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000255 exit 0 ;;
256
257 -host | --host | --hos | --ho)
258 ac_prev=host ;;
259 -host=* | --host=* | --hos=* | --ho=*)
260 host="$ac_optarg" ;;
261
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000262 -includedir | --includedir | --includedi | --included | --include \
263 | --includ | --inclu | --incl | --inc)
264 ac_prev=includedir ;;
265 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
266 | --includ=* | --inclu=* | --incl=* | --inc=*)
267 includedir="$ac_optarg" ;;
268
269 -infodir | --infodir | --infodi | --infod | --info | --inf)
270 ac_prev=infodir ;;
271 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
272 infodir="$ac_optarg" ;;
273
274 -libdir | --libdir | --libdi | --libd)
275 ac_prev=libdir ;;
276 -libdir=* | --libdir=* | --libdi=* | --libd=*)
277 libdir="$ac_optarg" ;;
278
279 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
280 | --libexe | --libex | --libe)
281 ac_prev=libexecdir ;;
282 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
283 | --libexe=* | --libex=* | --libe=*)
284 libexecdir="$ac_optarg" ;;
285
286 -localstatedir | --localstatedir | --localstatedi | --localstated \
287 | --localstate | --localstat | --localsta | --localst \
288 | --locals | --local | --loca | --loc | --lo)
289 ac_prev=localstatedir ;;
290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
291 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
292 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
293 localstatedir="$ac_optarg" ;;
294
295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 ac_prev=mandir ;;
297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
298 mandir="$ac_optarg" ;;
299
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000300 -nfp | --nfp | --nf)
301 # Obsolete; use --without-fp.
302 with_fp=no ;;
303
304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
305 | --no-cr | --no-c)
306 no_create=yes ;;
307
308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310 no_recursion=yes ;;
311
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
314 | --oldin | --oldi | --old | --ol | --o)
315 ac_prev=oldincludedir ;;
316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
319 oldincludedir="$ac_optarg" ;;
320
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 ac_prev=prefix ;;
323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
324 prefix="$ac_optarg" ;;
325
326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
327 | --program-pre | --program-pr | --program-p)
328 ac_prev=program_prefix ;;
329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
331 program_prefix="$ac_optarg" ;;
332
333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
334 | --program-suf | --program-su | --program-s)
335 ac_prev=program_suffix ;;
336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
338 program_suffix="$ac_optarg" ;;
339
340 -program-transform-name | --program-transform-name \
341 | --program-transform-nam | --program-transform-na \
342 | --program-transform-n | --program-transform- \
343 | --program-transform | --program-transfor \
344 | --program-transfo | --program-transf \
345 | --program-trans | --program-tran \
346 | --progr-tra | --program-tr | --program-t)
347 ac_prev=program_transform_name ;;
348 -program-transform-name=* | --program-transform-name=* \
349 | --program-transform-nam=* | --program-transform-na=* \
350 | --program-transform-n=* | --program-transform-=* \
351 | --program-transform=* | --program-transfor=* \
352 | --program-transfo=* | --program-transf=* \
353 | --program-trans=* | --program-tran=* \
354 | --progr-tra=* | --program-tr=* | --program-t=*)
355 program_transform_name="$ac_optarg" ;;
356
357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
358 | -silent | --silent | --silen | --sile | --sil)
359 silent=yes ;;
360
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 ac_prev=sbindir ;;
363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 | --sbi=* | --sb=*)
365 sbindir="$ac_optarg" ;;
366
367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
369 | --sharedst | --shareds | --shared | --share | --shar \
370 | --sha | --sh)
371 ac_prev=sharedstatedir ;;
372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 | --sha=* | --sh=*)
376 sharedstatedir="$ac_optarg" ;;
377
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000378 -site | --site | --sit)
379 ac_prev=site ;;
380 -site=* | --site=* | --sit=*)
381 site="$ac_optarg" ;;
382
383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 ac_prev=srcdir ;;
385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
386 srcdir="$ac_optarg" ;;
387
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
389 | --syscon | --sysco | --sysc | --sys | --sy)
390 ac_prev=sysconfdir ;;
391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
393 sysconfdir="$ac_optarg" ;;
394
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000395 -target | --target | --targe | --targ | --tar | --ta | --t)
396 ac_prev=target ;;
397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
398 target="$ac_optarg" ;;
399
400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
401 verbose=yes ;;
402
403 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000404 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000405 exit 0 ;;
406
407 -with-* | --with-*)
408 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 fi
413 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 case "$ac_option" in
415 *=*) ;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "with_${ac_package}='$ac_optarg'" ;;
419
420 -without-* | --without-*)
421 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 fi
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
428
429 --x)
430 # Obsolete; use --with-x.
431 with_x=yes ;;
432
433 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434 | --x-incl | --x-inc | --x-in | --x-i)
435 ac_prev=x_includes ;;
436 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
438 x_includes="$ac_optarg" ;;
439
440 -x-libraries | --x-libraries | --x-librarie | --x-librari \
441 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442 ac_prev=x_libraries ;;
443 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
445 x_libraries="$ac_optarg" ;;
446
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 ;;
449
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000450 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 fi
454 if test "x$nonopt" != xNONE; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 fi
457 nonopt="$ac_option"
458 ;;
459
460 esac
461done
462
463if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465fi
466
467trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468
469# File descriptor usage:
470# 0 standard input
471# 1 file creation
472# 2 errors and warnings
473# 3 some systems may open it to /dev/tty
474# 4 used on the Kubota Titan
475# 6 checking for... messages and results
476# 5 compiler messages saved in config.log
477if test "$silent" = yes; then
478 exec 6>/dev/null
479else
480 exec 6>&1
481fi
482exec 5>./config.log
483
484echo "\
485This file contains any messages produced by compilers while
486running configure, to aid debugging if configure makes a mistake.
487" 1>&5
488
489# Strip out --no-create and --no-recursion so they do not pile up.
490# Also quote any args containing shell metacharacters.
491ac_configure_args=
492for ac_arg
493do
494 case "$ac_arg" in
495 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
496 | --no-cr | --no-c) ;;
497 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502 esac
503done
504
505# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000506# Only set these to C if already set. These must not be set unconditionally
507# because not all systems understand e.g. LANG=C (notably SCO).
508# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000510if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000511if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
512if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
513if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000514
515# confdefs.h avoids OS command line length limits that DEFS can exceed.
516rm -rf conftest* confdefs.h
517# AIX cpp loses on an empty file, so make sure it contains at least a newline.
518echo > confdefs.h
519
520# A filename unique to this package, relative to the directory that
521# configure is in, which we can look for to find out if srcdir is correct.
522ac_unique_file=version.h
523
524# Find the source files, if location was not specified.
525if test -z "$srcdir"; then
526 ac_srcdir_defaulted=yes
527 # Try the directory containing this script, then its parent.
528 ac_prog=$0
529 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531 srcdir=$ac_confdir
532 if test ! -r $srcdir/$ac_unique_file; then
533 srcdir=..
534 fi
535else
536 ac_srcdir_defaulted=no
537fi
538if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 else
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 fi
544fi
545srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546
547# Prefer explicitly selected file to automatically selected ones.
548if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE; then
550 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
551 else
552 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 fi
554fi
555for ac_site_file in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
558 . "$ac_site_file"
559 fi
560done
561
562if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
564 . $cache_file
565else
566 echo "creating cache $cache_file"
567 > $cache_file
568fi
569
570ac_ext=c
571# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000573ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000574ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000575cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000576
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000577ac_exeext=
578ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000579if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='
583' ac_t=' '
584 else
585 ac_n=-n ac_c= ac_t=
586 fi
587else
588 ac_n= ac_c='\c' ac_t=
589fi
590
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400591# Check whether --with-gnu-ld or --without-gnu-ld was given.
592if test "${with_gnu_ld+set}" = set; then
593 withval="$with_gnu_ld"
594 test "$withval" = no || with_gnu_ld=yes
595else
596 with_gnu_ld=no
597fi
598
599ac_prog=ld
600if test "$GCC" = yes; then
601 # Check if gcc -print-prog-name=ld gives a path.
602 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400603echo "configure:604: checking for ld used by GCC" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400604 case $host in
605 *-*-mingw*)
606 # gcc leaves a trailing carriage return which upsets mingw
607 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
608 *)
609 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
610 esac
611 case $ac_prog in
612 # Accept absolute paths.
613 [\\/]* | [A-Za-z]:[\\/]*)
614 re_direlt='/[^/][^/]*/\.\./'
615 # Canonicalize the path of ld
616 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
617 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
618 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
619 done
620 test -z "$LD" && LD="$ac_prog"
621 ;;
622 "")
623 # If it fails, then pretend we aren't using GCC.
624 ac_prog=ld
625 ;;
626 *)
627 # If it is relative, then search for the first ld in PATH.
628 with_gnu_ld=unknown
629 ;;
630 esac
631elif test "$with_gnu_ld" = yes; then
632 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400633echo "configure:634: checking for GNU ld" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400634else
635 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400636echo "configure:637: checking for non-GNU ld" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400637fi
638if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
640else
641 if test -z "$LD"; then
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
643 for ac_dir in $PATH; do
644 test -z "$ac_dir" && ac_dir=.
645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
646 acl_cv_path_LD="$ac_dir/$ac_prog"
647 # Check to see if the program is GNU ld. I'd rather use --version,
648 # but apparently some GNU ld's only accept -v.
649 # Break only if it was the GNU/non-GNU ld that we prefer.
650 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
651 test "$with_gnu_ld" != no && break
652 else
653 test "$with_gnu_ld" != yes && break
654 fi
655 fi
656 done
657 IFS="$ac_save_ifs"
658else
659 acl_cv_path_LD="$LD" # Let the user override the test with a path.
660fi
661fi
662
663LD="$acl_cv_path_LD"
664if test -n "$LD"; then
665 echo "$ac_t""$LD" 1>&6
666else
667 echo "$ac_t""no" 1>&6
668fi
669test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
670echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400671echo "configure:672: checking if the linker ($LD) is GNU ld" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -0400672if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
674else
675 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
676if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
677 acl_cv_prog_gnu_ld=yes
678else
679 acl_cv_prog_gnu_ld=no
680fi
681fi
682
683echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6
684with_gnu_ld=$acl_cv_prog_gnu_ld
685
686
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000687
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000688
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000689MCONFIG=./MCONFIG
690
Theodore Ts'o74becf31997-04-26 14:37:06 +0000691BINARY_TYPE=bin
692E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
693 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
694DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
695 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500696E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +0000697MONTH=`echo $DATE | awk -F- '{print $2}'`
698YEAR=`echo $DATE | awk -F- '{print $3}'`
699
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000700if expr $YEAR ">" 1900 > /dev/null ; then
701 E2FSPROGS_YEAR=$YEAR
702elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000703 E2FSPROGS_YEAR=19$YEAR
704else
705 E2FSPROGS_YEAR=20$YEAR
706fi
707
708case $MONTH in
709Jan) E2FSPROGS_MONTH="January" ;;
710Feb) E2FSPROGS_MONTH="February" ;;
711Mar) E2FSPROGS_MONTH="March" ;;
712Apr) E2FSPROGS_MONTH="April" ;;
713May) E2FSPROGS_MONTH="May" ;;
714Jun) E2FSPROGS_MONTH="June" ;;
715Jul) E2FSPROGS_MONTH="July" ;;
716Aug) E2FSPROGS_MONTH="August" ;;
717Sep) E2FSPROGS_MONTH="September" ;;
718Oct) E2FSPROGS_MONTH="October" ;;
719Nov) E2FSPROGS_MONTH="November" ;;
720Dec) E2FSPROGS_MONTH="December" ;;
721*) echo "Unknown month $MONTH??" ;;
722esac
723
724unset DATE MONTH YEAR
725echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
726echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
727
728
729
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500730
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000731ac_aux_dir=
732for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
733 if test -f $ac_dir/install-sh; then
734 ac_aux_dir=$ac_dir
735 ac_install_sh="$ac_aux_dir/install-sh -c"
736 break
737 elif test -f $ac_dir/install.sh; then
738 ac_aux_dir=$ac_dir
739 ac_install_sh="$ac_aux_dir/install.sh -c"
740 break
741 fi
742done
743if test -z "$ac_aux_dir"; then
744 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
745fi
746ac_config_guess=$ac_aux_dir/config.guess
747ac_config_sub=$ac_aux_dir/config.sub
748ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
749
750
751# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000752if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000753else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
754fi
755
756echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400757echo "configure:758: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000758
759host_alias=$host
760case "$host_alias" in
761NONE)
762 case $nonopt in
763 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000764 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000765 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
766 fi ;;
767 *) host_alias=$nonopt ;;
768 esac ;;
769esac
770
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000771host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000772host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
773host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
774host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000775echo "$ac_t""$host" 1>&6
776
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400777EVMS_CMT=
778
779# Check whether --with-diet-libc or --without-diet-libc was given.
780if test "${with_diet_libc+set}" = set; then
781 withval="$with_diet_libc"
782 CC="diet cc -nostdinc"
783EVMS_CMT="#"
784echo "$ac_t""CC=$CC" 1>&6
785fi
Theodore Ts'o74becf31997-04-26 14:37:06 +0000786# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000787if test "${with_cc+set}" = set; then
788 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000789 echo "$ac_t""CC=$withval" 1>&6
790CC=$withval
791else
792 if test -z "$CC" ; then CC=cc; fi
793echo "$ac_t""CC defaults to $CC" 1>&6
794fi
795export CC
796
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000797# Extract the first word of "gcc", so it can be a program name with args.
798set dummy gcc; ac_word=$2
799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400800echo "configure:801: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000801if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
803else
804 if test -n "$CC"; then
805 ac_cv_prog_CC="$CC" # Let the user override the test.
806else
807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
808 ac_dummy="$PATH"
809 for ac_dir in $ac_dummy; do
810 test -z "$ac_dir" && ac_dir=.
811 if test -f $ac_dir/$ac_word; then
812 ac_cv_prog_CC="gcc"
813 break
814 fi
815 done
816 IFS="$ac_save_ifs"
817fi
818fi
819CC="$ac_cv_prog_CC"
820if test -n "$CC"; then
821 echo "$ac_t""$CC" 1>&6
822else
823 echo "$ac_t""no" 1>&6
824fi
825
826if test -z "$CC"; then
827 # Extract the first word of "cc", so it can be a program name with args.
828set dummy cc; ac_word=$2
829echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400830echo "configure:831: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000831if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
833else
834 if test -n "$CC"; then
835 ac_cv_prog_CC="$CC" # Let the user override the test.
836else
837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
838 ac_prog_rejected=no
839 ac_dummy="$PATH"
840 for ac_dir in $ac_dummy; do
841 test -z "$ac_dir" && ac_dir=.
842 if test -f $ac_dir/$ac_word; then
843 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
844 ac_prog_rejected=yes
845 continue
846 fi
847 ac_cv_prog_CC="cc"
848 break
849 fi
850 done
851 IFS="$ac_save_ifs"
852if test $ac_prog_rejected = yes; then
853 # We found a bogon in the path, so make sure we never use it.
854 set dummy $ac_cv_prog_CC
855 shift
856 if test $# -gt 0; then
857 # We chose a different compiler from the bogus one.
858 # However, it has the same basename, so the bogon will be chosen
859 # first if we set CC to just the basename; use the full file name.
860 shift
861 set dummy "$ac_dir/$ac_word" "$@"
862 shift
863 ac_cv_prog_CC="$@"
864 fi
865fi
866fi
867fi
868CC="$ac_cv_prog_CC"
869if test -n "$CC"; then
870 echo "$ac_t""$CC" 1>&6
871else
872 echo "$ac_t""no" 1>&6
873fi
874
875 if test -z "$CC"; then
876 case "`uname -s`" in
877 *win32* | *WIN32*)
878 # Extract the first word of "cl", so it can be a program name with args.
879set dummy cl; ac_word=$2
880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400881echo "configure:882: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000882if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
884else
885 if test -n "$CC"; then
886 ac_cv_prog_CC="$CC" # Let the user override the test.
887else
888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
889 ac_dummy="$PATH"
890 for ac_dir in $ac_dummy; do
891 test -z "$ac_dir" && ac_dir=.
892 if test -f $ac_dir/$ac_word; then
893 ac_cv_prog_CC="cl"
894 break
895 fi
896 done
897 IFS="$ac_save_ifs"
898fi
899fi
900CC="$ac_cv_prog_CC"
901if test -n "$CC"; then
902 echo "$ac_t""$CC" 1>&6
903else
904 echo "$ac_t""no" 1>&6
905fi
906 ;;
907 esac
908 fi
909 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
910fi
911
912echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400913echo "configure:914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000914
915ac_ext=c
916# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
917ac_cpp='$CPP $CPPFLAGS'
918ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
919ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
920cross_compiling=$ac_cv_prog_cc_cross
921
922cat > conftest.$ac_ext << EOF
923
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400924#line 925 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000925#include "confdefs.h"
926
927main(){return(0);}
928EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400929if { (eval echo configure:930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000930 ac_cv_prog_cc_works=yes
931 # If we can't run a trivial program, we are probably using a cross compiler.
932 if (./conftest; exit) 2>/dev/null; then
933 ac_cv_prog_cc_cross=no
934 else
935 ac_cv_prog_cc_cross=yes
936 fi
937else
938 echo "configure: failed program was:" >&5
939 cat conftest.$ac_ext >&5
940 ac_cv_prog_cc_works=no
941fi
942rm -fr conftest*
943ac_ext=c
944# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
945ac_cpp='$CPP $CPPFLAGS'
946ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
947ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
948cross_compiling=$ac_cv_prog_cc_cross
949
950echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
951if test $ac_cv_prog_cc_works = no; then
952 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
953fi
954echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400955echo "configure:956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000956echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
957cross_compiling=$ac_cv_prog_cc_cross
958
959echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400960echo "configure:961: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000961if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
963else
964 cat > conftest.c <<EOF
965#ifdef __GNUC__
966 yes;
967#endif
968EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400969if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000970 ac_cv_prog_gcc=yes
971else
972 ac_cv_prog_gcc=no
973fi
974fi
975
976echo "$ac_t""$ac_cv_prog_gcc" 1>&6
977
978if test $ac_cv_prog_gcc = yes; then
979 GCC=yes
980else
981 GCC=
982fi
983
984ac_test_CFLAGS="${CFLAGS+set}"
985ac_save_CFLAGS="$CFLAGS"
986CFLAGS=
987echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -0400988echo "configure:989: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000989if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
991else
992 echo 'void f(){}' > conftest.c
993if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
994 ac_cv_prog_cc_g=yes
995else
996 ac_cv_prog_cc_g=no
997fi
998rm -f conftest*
999
1000fi
1001
1002echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1003if test "$ac_test_CFLAGS" = set; then
1004 CFLAGS="$ac_save_CFLAGS"
1005elif test $ac_cv_prog_cc_g = yes; then
1006 if test "$GCC" = yes; then
1007 CFLAGS="-g -O2"
1008 else
1009 CFLAGS="-g"
1010 fi
1011else
1012 if test "$GCC" = yes; then
1013 CFLAGS="-O2"
1014 else
1015 CFLAGS=
1016 fi
1017fi
1018
Theodore Ts'o74becf31997-04-26 14:37:06 +00001019# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001020if test "${with_linker+set}" = set; then
1021 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001022 echo "$ac_t""LD=$withval" 1>&6
1023LD=$withval
1024else
1025 if test -z "$LD" ; then LD=$CC; fi
1026echo "$ac_t""LD defaults to $LD" 1>&6
1027fi
1028export LD
1029
1030# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001031if test "${with_ccopts+set}" = set; then
1032 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001033 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001034CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +00001035fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001036echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001037echo "configure:1038: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001038# On Suns, sometimes $CPP names a directory.
1039if test -n "$CPP" && test -d "$CPP"; then
1040 CPP=
1041fi
1042if test -z "$CPP"; then
1043if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045else
1046 # This must be in double quotes, not single quotes, because CPP may get
1047 # substituted into the Makefile and "${CC-cc}" will confuse make.
1048 CPP="${CC-cc} -E"
1049 # On the NeXT, cc -E runs the code through the compiler's parser,
1050 # not just through cpp.
1051 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001052#line 1053 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001053#include "confdefs.h"
1054#include <assert.h>
1055Syntax Error
1056EOF
1057ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001058{ (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001059ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1060if test -z "$ac_err"; then
1061 :
1062else
1063 echo "$ac_err" >&5
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1066 rm -rf conftest*
1067 CPP="${CC-cc} -E -traditional-cpp"
1068 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001069#line 1070 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001070#include "confdefs.h"
1071#include <assert.h>
1072Syntax Error
1073EOF
1074ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001075{ (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001076ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1077if test -z "$ac_err"; then
1078 :
1079else
1080 echo "$ac_err" >&5
1081 echo "configure: failed program was:" >&5
1082 cat conftest.$ac_ext >&5
1083 rm -rf conftest*
1084 CPP="${CC-cc} -nologo -E"
1085 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001086#line 1087 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001087#include "confdefs.h"
1088#include <assert.h>
1089Syntax Error
1090EOF
1091ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001092{ (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001093ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1094if test -z "$ac_err"; then
1095 :
1096else
1097 echo "$ac_err" >&5
1098 echo "configure: failed program was:" >&5
1099 cat conftest.$ac_ext >&5
1100 rm -rf conftest*
1101 CPP=/lib/cpp
1102fi
1103rm -f conftest*
1104fi
1105rm -f conftest*
1106fi
1107rm -f conftest*
1108 ac_cv_prog_CPP="$CPP"
1109fi
1110 CPP="$ac_cv_prog_CPP"
1111else
1112 ac_cv_prog_CPP="$CPP"
1113fi
1114echo "$ac_t""$CPP" 1>&6
1115
1116ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
1117echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001118echo "configure:1119: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001119if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1121else
1122 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001123#line 1124 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001124#include "confdefs.h"
1125#include <linux/fs.h>
1126EOF
1127ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001128{ (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001129ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1130if test -z "$ac_err"; then
1131 rm -rf conftest*
1132 eval "ac_cv_header_$ac_safe=yes"
1133else
1134 echo "$ac_err" >&5
1135 echo "configure: failed program was:" >&5
1136 cat conftest.$ac_ext >&5
1137 rm -rf conftest*
1138 eval "ac_cv_header_$ac_safe=no"
1139fi
1140rm -f conftest*
1141fi
1142if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1143 echo "$ac_t""yes" 1>&6
1144 linux_headers=yes
1145else
1146 echo "$ac_t""no" 1>&6
1147linux_headers=no
1148fi
1149
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001150if test "$linux_headers" != yes; then
1151 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001152fi
1153
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001154LIB_EXT=.a
1155STATIC_LIB_EXT=.a
1156PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001157# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001158if test "${with_ldopts+set}" = set; then
1159 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001160 echo "$ac_t""LDFLAGS is $withval" 1>&6
1161LDFLAGS=$withval
1162else
1163 LDFLAGS=
1164fi
1165
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001166# Check whether --with-root-prefix or --without-root-prefix was given.
1167if test "${with_root_prefix+set}" = set; then
1168 withval="$with_root_prefix"
1169 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001170else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001171 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001172fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001173# Check whether --enable-compression or --disable-compression was given.
1174if test "${enable_compression+set}" = set; then
1175 enableval="$enable_compression"
1176 if test "$enableval" = "no"
1177then
1178 echo "Disabling compression support"
1179else
1180 cat >> confdefs.h <<\EOF
1181#define ENABLE_COMPRESSION 1
1182EOF
1183
1184 echo "Enabling compression support"
1185 echo "WARNING: Compression support is experimental"
1186fi
1187
1188else
1189 echo "Disabling compression support by default"
1190
1191fi
1192
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001193# Check whether --enable-htree or --disable-htree was given.
1194if test "${enable_htree+set}" = set; then
1195 enableval="$enable_htree"
1196 if test "$enableval" = "no"
1197then
1198 HTREE_CMT=#
1199 echo "Disabling htree directory support"
1200else
1201 HTREE_CMT=
1202 cat >> confdefs.h <<\EOF
1203#define ENABLE_HTREE 1
1204EOF
1205
1206 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001207fi
1208
1209else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001210 HTREE_CMT=
1211cat >> confdefs.h <<\EOF
1212#define ENABLE_HTREE 1
1213EOF
1214
1215echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001216
1217fi
1218
1219
1220# Check whether --enable-htree-clear or --disable-htree-clear was given.
1221if test "${enable_htree_clear+set}" = set; then
1222 enableval="$enable_htree_clear"
1223 if test "$enableval" = "no"
1224then
1225 HTREE_CLR_CMT=#
1226 echo "Disabling htree clearing"
1227else
1228 HTREE_CLR_CMT=
1229 cat >> confdefs.h <<\EOF
1230#define ENABLE_HTREE_CLEAR 1
1231EOF
1232
1233 echo "Enabling htree clearing"
1234fi
1235
1236else
1237 HTREE_CLR_CMT=#
1238echo "Disabling htree clearing by default"
1239
1240fi
1241
1242
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001243# Check whether --enable-evms or --disable-evms was given.
1244if test "${enable_evms+set}" = set; then
1245 enableval="$enable_evms"
1246 if test "$enableval" != "no"
1247then
1248 EVMS_CMT="#"
1249 echo "Disabling EVMS plugin"
1250fi
1251
1252fi
1253
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001254EVMS_ABI_CODE=120
1255# Check whether --enable-evms-10 or --disable-evms-10 was given.
1256if test "${enable_evms_10+set}" = set; then
1257 enableval="$enable_evms_10"
1258 if test "$enableval" != "no"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001259then
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001260 EVMS_ABI_CODE=100
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001261 echo "Enabling EVMS 1.0.0 ABI"
1262fi
1263
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001264fi
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001265
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001266# Check whether --enable-evms-11 or --disable-evms-11 was given.
1267if test "${enable_evms_11+set}" = set; then
1268 enableval="$enable_evms_11"
1269 if test "$enableval" != "no"
1270then
1271 EVMS_ABI_CODE=110
1272 echo "Enabling EVMS 1.1.0 ABI"
1273fi
1274
1275fi
1276
1277if test "$EVMS_ABI_CODE" = "120"
1278then
1279 echo "Using EVMS 1.2.0 ABI by default"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001280fi
1281
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001282# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001283if test "${enable_dll_shlibs+set}" = set; then
1284 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001285 if test "$enableval" = "no"
1286then
1287 DLL_CMT=#
1288 MAKEFILE_DLL=/dev/null
1289 echo "Disabling DLL shared libraries"
1290else
1291 DLL_CMT=
1292 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001293 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001294 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001295 echo "Enabling DLL shared libraries"
1296fi
1297
1298else
1299 MAKEFILE_DLL=/dev/null
1300DLL_CMT=#
1301echo "Disabling DLL shared libraries by default"
1302
1303fi
1304
1305
1306
1307# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001308if test "${enable_elf_shlibs+set}" = set; then
1309 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001310 if test "$enableval" = "no"
1311then
1312 ELF_CMT=#
1313 MAKEFILE_ELF=/dev/null
1314 echo "Disabling ELF shared libraries"
1315else
1316 ELF_CMT=
1317 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001318 case "$host_os" in
1319 solaris2.*)
1320 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1321 ;;
1322 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001323 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001324 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001325 echo "Enabling ELF shared libraries"
1326fi
1327
1328else
1329 MAKEFILE_ELF=/dev/null
1330ELF_CMT=#
1331echo "Disabling ELF shared libraries by default"
1332
1333fi
1334
1335
1336
1337# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001338if test "${enable_bsd_shlibs+set}" = set; then
1339 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001340 if test "$enableval" = "no"
1341then
1342 BSDLIB_CMT=#
1343 MAKEFILE_BSDLIB=/dev/null
1344 echo "Disabling BSD shared libraries"
1345else
1346 BSDLIB_CMT=
1347 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001348 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001349 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05001350 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001351 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
1352 LIB_EXT=.dylib
1353 ;;
1354 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001355 echo "Enabling BSD shared libraries"
1356fi
1357
1358else
1359 MAKEFILE_BSDLIB=/dev/null
1360BSDLIB_CMT=#
1361echo "Disabling BSD shared libraries by default"
1362
1363fi
1364
1365
1366
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001367# Check whether --enable-profile or --disable-profile was given.
1368if test "${enable_profile+set}" = set; then
1369 enableval="$enable_profile"
1370 if test "$enableval" = "no"
1371then
1372 PROFILE_CMT=#
1373 MAKEFILE_PROFILE=/dev/null
1374 echo "Disabling profiling libraries"
1375else
1376 PROFILE_CMT=
1377 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1378 PROFILED_LIB_EXT=_p.a
1379 echo "Building profiling libraries"
1380fi
1381
1382else
1383 PROFILE_CMT=#
1384MAKEFILE_PROFILE=/dev/null
1385echo "Disabling profiling libraries by default"
1386
1387fi
1388
1389
1390
1391# Check whether --enable-checker or --disable-checker was given.
1392if test "${enable_checker+set}" = set; then
1393 enableval="$enable_checker"
1394 if test "$enableval" = "no"
1395then
1396 CHECKER_CMT=#
1397 MAKEFILE_CHECKER=/dev/null
1398 echo "Disabling checker libraries"
1399else
1400 CHECKER_CMT=
1401 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1402 echo "Building checker libraries"
1403fi
1404
1405else
1406 CHECKER_CMT=#
1407MAKEFILE_CHECKER=/dev/null
1408echo "Disabling checker libraries by default"
1409
1410fi
1411
1412
1413
1414
1415
1416
Theodore Ts'o782bebf2002-11-08 18:46:45 -05001417# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1418if test "${enable_jbd_debug+set}" = set; then
1419 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001420 if test "$enableval" = "no"
1421then
1422 echo "Disabling journal debugging"
1423else
1424 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001425#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001426EOF
1427
1428 echo "Enabling journal debugging"
1429fi
1430
1431else
1432 echo "Disabling journal debugging by default"
1433
1434fi
1435
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001436# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1437if test "${enable_blkid_debug+set}" = set; then
1438 enableval="$enable_blkid_debug"
1439 if test "$enableval" = "no"
1440then
1441 echo "Disabling blkid debugging"
1442else
1443 cat >> confdefs.h <<\EOF
1444#define CONFIG_BLKID_DEBUG 1
1445EOF
1446
1447 echo "Enabling blkid debugging"
1448fi
1449
1450else
1451 echo "Disabling blkid debugging by default"
1452
1453fi
1454
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001455# Check whether --enable-testio-debug or --disable-testio-debug was given.
1456if test "${enable_testio_debug+set}" = set; then
1457 enableval="$enable_testio_debug"
1458 if test "$enableval" = "no"
1459then
1460 echo "Disabling testio debugging"
1461else
1462 cat >> confdefs.h <<\EOF
1463#define CONFIG_TESTIO_DEBUG 1
1464EOF
1465
1466 echo "Enabling testio debugging"
1467fi
1468
1469else
1470 echo "Disabling testio debugging by default"
1471
1472fi
1473
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001474# Check whether --enable-swapfs or --disable-swapfs was given.
1475if test "${enable_swapfs+set}" = set; then
1476 enableval="$enable_swapfs"
1477 if test "$enableval" = "no"
1478then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001479 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001480 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001481else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001482 SWAPFS_CMT=
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001483 cat >> confdefs.h <<\EOF
1484#define ENABLE_SWAPFS 1
1485EOF
1486
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001487 echo "Enabling swapfs support"
1488fi
1489
1490else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001491 SWAPFS_CMT=
1492echo "Enabling swapfs support by default"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001493cat >> confdefs.h <<\EOF
1494#define ENABLE_SWAPFS 1
1495EOF
1496
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001497
1498fi
1499
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001500
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001501# Check whether --enable-debugfs or --disable-debugfs was given.
1502if test "${enable_debugfs+set}" = set; then
1503 enableval="$enable_debugfs"
1504 if test "$enableval" = "no"
1505then
1506 echo "Disabling debugfs support"
1507 DEBUGFS_CMT="#"
1508else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001509 DEBUGFS_CMT=
1510 echo "Enabling debugfs support"
1511fi
1512
1513else
1514 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001515DEBUGFS_CMT=
1516
1517fi
1518
1519
1520# Check whether --enable-imager or --disable-imager was given.
1521if test "${enable_imager+set}" = set; then
1522 enableval="$enable_imager"
1523 if test "$enableval" = "no"
1524then
1525 echo "Disabling e2image support"
1526 IMAGER_CMT="#"
1527else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001528 IMAGER_CMT=
1529 echo "Enabling e2image support"
1530fi
1531
1532else
1533 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001534IMAGER_CMT=
1535
1536fi
1537
1538
1539# Check whether --enable-resizer or --disable-resizer was given.
1540if test "${enable_resizer+set}" = set; then
1541 enableval="$enable_resizer"
1542 if test "$enableval" = "no"
1543then
1544 echo "Disabling e2resize support"
1545 RESIZER_CMT="#"
1546else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001547 RESIZER_CMT=
1548 echo "Enabling e2resize support"
1549fi
1550
1551else
1552 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001553RESIZER_CMT=
1554
1555fi
1556
1557
1558# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1559if test "${enable_dynamic_e2fsck+set}" = set; then
1560 enableval="$enable_dynamic_e2fsck"
1561 if test "$enableval" = "no"
1562then
1563 E2FSCK_TYPE=static
1564 echo "Building e2fsck statically"
1565else
1566 E2FSCK_TYPE=shared
1567 echo "Building e2fsck dynamically"
1568fi
1569
1570else
1571 E2FSCK_TYPE=static
1572echo "Building e2fsck statically by default"
1573
1574fi
1575
1576
1577# Check whether --enable-fsck or --disable-fsck was given.
1578if test "${enable_fsck+set}" = set; then
1579 enableval="$enable_fsck"
1580 if test "$enableval" = "no"
1581then
1582 FSCK_PROG='' FSCK_MAN=''
1583 echo "Not building fsck wrapper"
1584else
1585 FSCK_PROG=fsck FSCK_MAN=fsck.8
1586 echo "Building fsck wrapper"
1587fi
1588
1589else
1590 case "$host_os" in
1591 gnu*)
1592 FSCK_PROG='' FSCK_MAN=''
1593 echo "Not building fsck wrapper by default"
1594 ;;
1595 *)
1596 FSCK_PROG=fsck FSCK_MAN=fsck.8
1597 echo "Building fsck wrapper by default"
1598esac
1599
1600fi
1601
1602
1603
1604MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1605
1606# Check whether --enable-old-bitops or --disable-old-bitops was given.
1607if test "${enable_old_bitops+set}" = set; then
1608 enableval="$enable_old_bitops"
1609 if test "$enableval" = "no"
1610then
1611 echo "Using new (standard) bitmask operations"
1612else
1613 cat >> confdefs.h <<\EOF
1614#define EXT2_OLD_BITOPS 1
1615EOF
1616
1617 echo "Using old (native) bitmask operations"
1618
1619fi
1620
1621else
1622 echo "Using standard bitmask operations by default"
1623
1624fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001625
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001626PACKAGE=e2fsprogs
1627VERSION="$E2FSPROGS_VERSION"
1628cat >> confdefs.h <<EOF
1629#define PACKAGE "$PACKAGE"
1630EOF
1631
1632cat >> confdefs.h <<EOF
1633#define VERSION "$VERSION"
1634EOF
1635
1636
1637
1638
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001639
1640 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001641echo "configure:1642: checking for inttypes.h" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001642if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644else
1645 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001646#line 1647 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001647#include "confdefs.h"
1648#include <sys/types.h>
1649#include <inttypes.h>
1650int main() {
1651uintmax_t i = (uintmax_t) -1;
1652; return 0; }
1653EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001654if { (eval echo configure:1655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001655 rm -rf conftest*
1656 jm_ac_cv_header_inttypes_h=yes
1657else
1658 echo "configure: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1660 rm -rf conftest*
1661 jm_ac_cv_header_inttypes_h=no
1662fi
1663rm -f conftest*
1664fi
1665
1666echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6
1667 if test $jm_ac_cv_header_inttypes_h = yes; then
1668 cat >> confdefs.h <<EOF
1669#define HAVE_INTTYPES_H_WITH_UINTMAX 1
1670EOF
1671
1672 fi
1673
1674
1675 echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001676echo "configure:1677: checking for stdint.h" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001677if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1679else
1680 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001681#line 1682 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001682#include "confdefs.h"
1683#include <sys/types.h>
1684#include <stdint.h>
1685int main() {
1686uintmax_t i = (uintmax_t) -1;
1687; return 0; }
1688EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001689if { (eval echo configure:1690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001690 rm -rf conftest*
1691 jm_ac_cv_header_stdint_h=yes
1692else
1693 echo "configure: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1695 rm -rf conftest*
1696 jm_ac_cv_header_stdint_h=no
1697fi
1698rm -f conftest*
1699fi
1700
1701echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6
1702 if test $jm_ac_cv_header_stdint_h = yes; then
1703 cat >> confdefs.h <<EOF
1704#define HAVE_STDINT_H_WITH_UINTMAX 1
1705EOF
1706
1707 fi
1708
1709
1710 echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001711echo "configure:1712: checking for unsigned long long" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001712if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1714else
1715 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001716#line 1717 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001717#include "confdefs.h"
1718unsigned long long ull = 1; int i = 63;
1719int main() {
1720unsigned long long ullmax = (unsigned long long) -1;
1721 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
1722; return 0; }
1723EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001724if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001725 rm -rf conftest*
1726 ac_cv_type_unsigned_long_long=yes
1727else
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1730 rm -rf conftest*
1731 ac_cv_type_unsigned_long_long=no
1732fi
1733rm -f conftest*
1734fi
1735
1736echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6
1737 if test $ac_cv_type_unsigned_long_long = yes; then
1738 cat >> confdefs.h <<\EOF
1739#define HAVE_UNSIGNED_LONG_LONG 1
1740EOF
1741
1742 fi
1743
1744
1745 if test "X$prefix" = "XNONE"; then
1746 acl_final_prefix="$ac_default_prefix"
1747 else
1748 acl_final_prefix="$prefix"
1749 fi
1750 if test "X$exec_prefix" = "XNONE"; then
1751 acl_final_exec_prefix='${prefix}'
1752 else
1753 acl_final_exec_prefix="$exec_prefix"
1754 fi
1755 acl_save_prefix="$prefix"
1756 prefix="$acl_final_prefix"
1757 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1758 prefix="$acl_save_prefix"
1759
1760
1761 echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001762echo "configure:1763: checking for shared library run path origin" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001763if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1765else
1766
1767 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1768 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1769 . ./conftest.sh
1770 rm -f ./conftest.sh
1771 acl_cv_rpath=done
1772
1773fi
1774
1775echo "$ac_t""$acl_cv_rpath" 1>&6
1776 wl="$acl_cv_wl"
1777 libext="$acl_cv_libext"
1778 shlibext="$acl_cv_shlibext"
1779 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1780 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1781 hardcode_direct="$acl_cv_hardcode_direct"
1782 hardcode_minus_L="$acl_cv_hardcode_minus_L"
1783 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
1784 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
1785 # Check whether --enable-rpath or --disable-rpath was given.
1786if test "${enable_rpath+set}" = set; then
1787 enableval="$enable_rpath"
1788 :
1789else
1790 enable_rpath=yes
1791fi
1792
1793
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001794echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001795echo "configure:1796: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001796set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1797if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1799else
1800 cat > conftestmake <<\EOF
1801all:
1802 @echo 'ac_maketemp="${MAKE}"'
1803EOF
1804# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1805eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1806if test -n "$ac_maketemp"; then
1807 eval ac_cv_prog_make_${ac_make}_set=yes
1808else
1809 eval ac_cv_prog_make_${ac_make}_set=no
1810fi
1811rm -f conftestmake
1812fi
1813if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1814 echo "$ac_t""yes" 1>&6
1815 SET_MAKE=
1816else
1817 echo "$ac_t""no" 1>&6
1818 SET_MAKE="MAKE=${MAKE-make}"
1819fi
1820
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001821# Find a good install program. We prefer a C program (faster),
1822# so one script is as good as another. But avoid the broken or
1823# incompatible versions:
1824# SysV /etc/install, /usr/sbin/install
1825# SunOS /usr/etc/install
1826# IRIX /sbin/install
1827# AIX /bin/install
1828# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1829# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1830# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1831# ./install, which can be erroneously created by make from ./install.sh.
1832echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001833echo "configure:1834: checking for a BSD compatible install" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001834if test -z "$INSTALL"; then
1835if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1837else
1838 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1839 for ac_dir in $PATH; do
1840 # Account for people who put trailing slashes in PATH elements.
1841 case "$ac_dir/" in
1842 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1843 *)
1844 # OSF1 and SCO ODT 3.0 have their own names for install.
1845 # Don't use installbsd from OSF since it installs stuff as root
1846 # by default.
1847 for ac_prog in ginstall scoinst install; do
1848 if test -f $ac_dir/$ac_prog; then
1849 if test $ac_prog = install &&
1850 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1851 # AIX install. It has an incompatible calling convention.
1852 :
1853 else
1854 ac_cv_path_install="$ac_dir/$ac_prog -c"
1855 break 2
1856 fi
1857 fi
1858 done
1859 ;;
1860 esac
1861 done
1862 IFS="$ac_save_IFS"
1863
1864fi
1865 if test "${ac_cv_path_install+set}" = set; then
1866 INSTALL="$ac_cv_path_install"
1867 else
1868 # As a last resort, use the slow shell script. We don't cache a
1869 # path for INSTALL within a source directory, because that will
1870 # break other packages using the cache if that directory is
1871 # removed, or if the path is relative.
1872 INSTALL="$ac_install_sh"
1873 fi
1874fi
1875echo "$ac_t""$INSTALL" 1>&6
1876
1877# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1878# It thinks the first close brace ends the variable substitution.
1879test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1880
1881test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1882
1883test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1884
1885
1886 MKINSTALLDIRS=
1887 if test -n "$ac_aux_dir"; then
1888 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1889 fi
1890 if test -z "$MKINSTALLDIRS"; then
1891 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1892 fi
1893
1894
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001895# Extract the first word of "ranlib", so it can be a program name with args.
1896set dummy ranlib; ac_word=$2
1897echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001898echo "configure:1899: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001899if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1901else
1902 if test -n "$RANLIB"; then
1903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1904else
1905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1906 ac_dummy="$PATH"
1907 for ac_dir in $ac_dummy; do
1908 test -z "$ac_dir" && ac_dir=.
1909 if test -f $ac_dir/$ac_word; then
1910 ac_cv_prog_RANLIB="ranlib"
1911 break
1912 fi
1913 done
1914 IFS="$ac_save_ifs"
1915 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1916fi
1917fi
1918RANLIB="$ac_cv_prog_RANLIB"
1919if test -n "$RANLIB"; then
1920 echo "$ac_t""$RANLIB" 1>&6
1921else
1922 echo "$ac_t""no" 1>&6
1923fi
1924
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001925
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001926 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001927echo "configure:1928: checking for strerror in -lcposix" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001928ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1929if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1931else
1932 ac_save_LIBS="$LIBS"
1933LIBS="-lcposix $LIBS"
1934cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001935#line 1936 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001936#include "confdefs.h"
1937/* Override any gcc2 internal prototype to avoid an error. */
1938/* We use char because int might match the return type of a gcc2
1939 builtin and then its argument prototype would still apply. */
1940char strerror();
1941
1942int main() {
1943strerror()
1944; return 0; }
1945EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001946if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001947 rm -rf conftest*
1948 eval "ac_cv_lib_$ac_lib_var=yes"
1949else
1950 echo "configure: failed program was:" >&5
1951 cat conftest.$ac_ext >&5
1952 rm -rf conftest*
1953 eval "ac_cv_lib_$ac_lib_var=no"
1954fi
1955rm -f conftest*
1956LIBS="$ac_save_LIBS"
1957
1958fi
1959if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1960 echo "$ac_t""yes" 1>&6
1961 LIBS="$LIBS -lcposix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001962else
1963 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001964fi
1965
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001966
1967
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001968echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001969echo "configure:1970: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001970if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1972else
1973 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001974#line 1975 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001975#include "confdefs.h"
1976#include <stdlib.h>
1977#include <stdarg.h>
1978#include <string.h>
1979#include <float.h>
1980EOF
1981ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001982{ (eval echo configure:1983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001983ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1984if test -z "$ac_err"; then
1985 rm -rf conftest*
1986 ac_cv_header_stdc=yes
1987else
1988 echo "$ac_err" >&5
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1991 rm -rf conftest*
1992 ac_cv_header_stdc=no
1993fi
1994rm -f conftest*
1995
1996if test $ac_cv_header_stdc = yes; then
1997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1998cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001999#line 2000 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002000#include "confdefs.h"
2001#include <string.h>
2002EOF
2003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2004 egrep "memchr" >/dev/null 2>&1; then
2005 :
2006else
2007 rm -rf conftest*
2008 ac_cv_header_stdc=no
2009fi
2010rm -f conftest*
2011
2012fi
2013
2014if test $ac_cv_header_stdc = yes; then
2015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2016cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002017#line 2018 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002018#include "confdefs.h"
2019#include <stdlib.h>
2020EOF
2021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2022 egrep "free" >/dev/null 2>&1; then
2023 :
2024else
2025 rm -rf conftest*
2026 ac_cv_header_stdc=no
2027fi
2028rm -f conftest*
2029
2030fi
2031
2032if test $ac_cv_header_stdc = yes; then
2033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2034if test "$cross_compiling" = yes; then
2035 :
2036else
2037 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002038#line 2039 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002039#include "confdefs.h"
2040#include <ctype.h>
2041#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2042#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2043#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2044int main () { int i; for (i = 0; i < 256; i++)
2045if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2046exit (0); }
2047
2048EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002049if { (eval echo configure:2050: \"$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 +00002050then
2051 :
2052else
2053 echo "configure: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2055 rm -fr conftest*
2056 ac_cv_header_stdc=no
2057fi
2058rm -fr conftest*
2059fi
2060
2061fi
2062fi
2063
2064echo "$ac_t""$ac_cv_header_stdc" 1>&6
2065if test $ac_cv_header_stdc = yes; then
2066 cat >> confdefs.h <<\EOF
2067#define STDC_HEADERS 1
2068EOF
2069
2070fi
2071
2072echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002073echo "configure:2074: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002074if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2076else
2077 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002078#line 2079 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002079#include "confdefs.h"
2080
2081int main() {
2082
2083/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002084typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002085/* SunOS 4.1.1 cc rejects this. */
2086char const *const *ccp;
2087char **p;
2088/* NEC SVR4.0.2 mips cc rejects this. */
2089struct point {int x, y;};
2090static struct point const zero = {0,0};
2091/* AIX XL C 1.02.0.0 rejects this.
2092 It does not let you subtract one const X* pointer from another in an arm
2093 of an if-expression whose if-part is not a constant expression */
2094const char *g = "string";
2095ccp = &g + (g ? g-g : 0);
2096/* HPUX 7.0 cc rejects these. */
2097++ccp;
2098p = (char**) ccp;
2099ccp = (char const *const *) p;
2100{ /* SCO 3.2v4 cc rejects this. */
2101 char *t;
2102 char const *s = 0 ? (char *) 0 : (char const *) 0;
2103
2104 *t++ = 0;
2105}
2106{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2107 int x[] = {25, 17};
2108 const int *foo = &x[0];
2109 ++foo;
2110}
2111{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2112 typedef const int *iptr;
2113 iptr p = 0;
2114 ++p;
2115}
2116{ /* AIX XL C 1.02.0.0 rejects this saying
2117 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2118 struct s { int j; const int *ap[3]; };
2119 struct s *b; b->j = 5;
2120}
2121{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2122 const int foo = 10;
2123}
2124
2125; return 0; }
2126EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002127if { (eval echo configure:2128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002128 rm -rf conftest*
2129 ac_cv_c_const=yes
2130else
2131 echo "configure: failed program was:" >&5
2132 cat conftest.$ac_ext >&5
2133 rm -rf conftest*
2134 ac_cv_c_const=no
2135fi
2136rm -f conftest*
2137fi
2138
2139echo "$ac_t""$ac_cv_c_const" 1>&6
2140if test $ac_cv_c_const = no; then
2141 cat >> confdefs.h <<\EOF
2142#define const
2143EOF
2144
2145fi
2146
2147echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002148echo "configure:2149: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002149if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2151else
2152 ac_cv_c_inline=no
2153for ac_kw in inline __inline__ __inline; do
2154 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002155#line 2156 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002156#include "confdefs.h"
2157
2158int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002159} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002160; return 0; }
2161EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002162if { (eval echo configure:2163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002163 rm -rf conftest*
2164 ac_cv_c_inline=$ac_kw; break
2165else
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168fi
2169rm -f conftest*
2170done
2171
2172fi
2173
2174echo "$ac_t""$ac_cv_c_inline" 1>&6
2175case "$ac_cv_c_inline" in
2176 inline | yes) ;;
2177 no) cat >> confdefs.h <<\EOF
2178#define inline
2179EOF
2180 ;;
2181 *) cat >> confdefs.h <<EOF
2182#define inline $ac_cv_c_inline
2183EOF
2184 ;;
2185esac
2186
2187echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002188echo "configure:2189: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002189if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2191else
2192 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002193#line 2194 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002194#include "confdefs.h"
2195#include <sys/types.h>
2196#if STDC_HEADERS
2197#include <stdlib.h>
2198#include <stddef.h>
2199#endif
2200EOF
2201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2202 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2203 rm -rf conftest*
2204 ac_cv_type_off_t=yes
2205else
2206 rm -rf conftest*
2207 ac_cv_type_off_t=no
2208fi
2209rm -f conftest*
2210
2211fi
2212echo "$ac_t""$ac_cv_type_off_t" 1>&6
2213if test $ac_cv_type_off_t = no; then
2214 cat >> confdefs.h <<\EOF
2215#define off_t long
2216EOF
2217
2218fi
2219
2220echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002221echo "configure:2222: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002222if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2224else
2225 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002226#line 2227 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002227#include "confdefs.h"
2228#include <sys/types.h>
2229#if STDC_HEADERS
2230#include <stdlib.h>
2231#include <stddef.h>
2232#endif
2233EOF
2234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2235 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2236 rm -rf conftest*
2237 ac_cv_type_size_t=yes
2238else
2239 rm -rf conftest*
2240 ac_cv_type_size_t=no
2241fi
2242rm -f conftest*
2243
2244fi
2245echo "$ac_t""$ac_cv_type_size_t" 1>&6
2246if test $ac_cv_type_size_t = no; then
2247 cat >> confdefs.h <<\EOF
2248#define size_t unsigned
2249EOF
2250
2251fi
2252
2253# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2254# for constant arguments. Useless!
2255echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002256echo "configure:2257: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002257if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2259else
2260 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002261#line 2262 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002262#include "confdefs.h"
2263#include <alloca.h>
2264int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002265char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002266; return 0; }
2267EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002268if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002269 rm -rf conftest*
2270 ac_cv_header_alloca_h=yes
2271else
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2274 rm -rf conftest*
2275 ac_cv_header_alloca_h=no
2276fi
2277rm -f conftest*
2278fi
2279
2280echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2281if test $ac_cv_header_alloca_h = yes; then
2282 cat >> confdefs.h <<\EOF
2283#define HAVE_ALLOCA_H 1
2284EOF
2285
2286fi
2287
2288echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002289echo "configure:2290: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002290if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2292else
2293 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002294#line 2295 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002295#include "confdefs.h"
2296
2297#ifdef __GNUC__
2298# define alloca __builtin_alloca
2299#else
2300# ifdef _MSC_VER
2301# include <malloc.h>
2302# define alloca _alloca
2303# else
2304# if HAVE_ALLOCA_H
2305# include <alloca.h>
2306# else
2307# ifdef _AIX
2308 #pragma alloca
2309# else
2310# ifndef alloca /* predefined by HP cc +Olibcalls */
2311char *alloca ();
2312# endif
2313# endif
2314# endif
2315# endif
2316#endif
2317
2318int main() {
2319char *p = (char *) alloca(1);
2320; return 0; }
2321EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002322if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002323 rm -rf conftest*
2324 ac_cv_func_alloca_works=yes
2325else
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2328 rm -rf conftest*
2329 ac_cv_func_alloca_works=no
2330fi
2331rm -f conftest*
2332fi
2333
2334echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2335if test $ac_cv_func_alloca_works = yes; then
2336 cat >> confdefs.h <<\EOF
2337#define HAVE_ALLOCA 1
2338EOF
2339
2340fi
2341
2342if test $ac_cv_func_alloca_works = no; then
2343 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2344 # that cause trouble. Some versions do not even contain alloca or
2345 # contain a buggy version. If you still want to use their alloca,
2346 # use ar to extract alloca.o from them instead of compiling alloca.c.
2347 ALLOCA=alloca.${ac_objext}
2348 cat >> confdefs.h <<\EOF
2349#define C_ALLOCA 1
2350EOF
2351
2352
2353echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002354echo "configure:2355: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002355if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2357else
2358 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002359#line 2360 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002360#include "confdefs.h"
2361#if defined(CRAY) && ! defined(CRAY2)
2362webecray
2363#else
2364wenotbecray
2365#endif
2366
2367EOF
2368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2369 egrep "webecray" >/dev/null 2>&1; then
2370 rm -rf conftest*
2371 ac_cv_os_cray=yes
2372else
2373 rm -rf conftest*
2374 ac_cv_os_cray=no
2375fi
2376rm -f conftest*
2377
2378fi
2379
2380echo "$ac_t""$ac_cv_os_cray" 1>&6
2381if test $ac_cv_os_cray = yes; then
2382for ac_func in _getb67 GETB67 getb67; do
2383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002384echo "configure:2385: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002385if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2387else
2388 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002389#line 2390 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002390#include "confdefs.h"
2391/* System header to define __stub macros and hopefully few prototypes,
2392 which can conflict with char $ac_func(); below. */
2393#include <assert.h>
2394/* Override any gcc2 internal prototype to avoid an error. */
2395/* We use char because int might match the return type of a gcc2
2396 builtin and then its argument prototype would still apply. */
2397char $ac_func();
2398
2399int main() {
2400
2401/* The GNU C library defines this for functions which it implements
2402 to always fail with ENOSYS. Some functions are actually named
2403 something starting with __ and the normal name is an alias. */
2404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2405choke me
2406#else
2407$ac_func();
2408#endif
2409
2410; return 0; }
2411EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002412if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002413 rm -rf conftest*
2414 eval "ac_cv_func_$ac_func=yes"
2415else
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2418 rm -rf conftest*
2419 eval "ac_cv_func_$ac_func=no"
2420fi
2421rm -f conftest*
2422fi
2423
2424if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2425 echo "$ac_t""yes" 1>&6
2426 cat >> confdefs.h <<EOF
2427#define CRAY_STACKSEG_END $ac_func
2428EOF
2429
2430 break
2431else
2432 echo "$ac_t""no" 1>&6
2433fi
2434
2435done
2436fi
2437
2438echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002439echo "configure:2440: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002440if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2442else
2443 if test "$cross_compiling" = yes; then
2444 ac_cv_c_stack_direction=0
2445else
2446 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002447#line 2448 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002448#include "confdefs.h"
2449find_stack_direction ()
2450{
2451 static char *addr = 0;
2452 auto char dummy;
2453 if (addr == 0)
2454 {
2455 addr = &dummy;
2456 return find_stack_direction ();
2457 }
2458 else
2459 return (&dummy > addr) ? 1 : -1;
2460}
2461main ()
2462{
2463 exit (find_stack_direction() < 0);
2464}
2465EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002466if { (eval echo configure:2467: \"$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 +00002467then
2468 ac_cv_c_stack_direction=1
2469else
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2472 rm -fr conftest*
2473 ac_cv_c_stack_direction=-1
2474fi
2475rm -fr conftest*
2476fi
2477
2478fi
2479
2480echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2481cat >> confdefs.h <<EOF
2482#define STACK_DIRECTION $ac_cv_c_stack_direction
2483EOF
2484
2485fi
2486
2487for ac_hdr in unistd.h
2488do
2489ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2490echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002491echo "configure:2492: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002492if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2494else
2495 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002496#line 2497 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002497#include "confdefs.h"
2498#include <$ac_hdr>
2499EOF
2500ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002501{ (eval echo configure:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002502ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2503if test -z "$ac_err"; then
2504 rm -rf conftest*
2505 eval "ac_cv_header_$ac_safe=yes"
2506else
2507 echo "$ac_err" >&5
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 rm -rf conftest*
2511 eval "ac_cv_header_$ac_safe=no"
2512fi
2513rm -f conftest*
2514fi
2515if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2516 echo "$ac_t""yes" 1>&6
2517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2518 cat >> confdefs.h <<EOF
2519#define $ac_tr_hdr 1
2520EOF
2521
2522else
2523 echo "$ac_t""no" 1>&6
2524fi
2525done
2526
2527for ac_func in getpagesize
2528do
2529echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002530echo "configure:2531: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002531if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2533else
2534 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002535#line 2536 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002536#include "confdefs.h"
2537/* System header to define __stub macros and hopefully few prototypes,
2538 which can conflict with char $ac_func(); below. */
2539#include <assert.h>
2540/* Override any gcc2 internal prototype to avoid an error. */
2541/* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2543char $ac_func();
2544
2545int main() {
2546
2547/* The GNU C library defines this for functions which it implements
2548 to always fail with ENOSYS. Some functions are actually named
2549 something starting with __ and the normal name is an alias. */
2550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2551choke me
2552#else
2553$ac_func();
2554#endif
2555
2556; return 0; }
2557EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002558if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002559 rm -rf conftest*
2560 eval "ac_cv_func_$ac_func=yes"
2561else
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2564 rm -rf conftest*
2565 eval "ac_cv_func_$ac_func=no"
2566fi
2567rm -f conftest*
2568fi
2569
2570if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2573 cat >> confdefs.h <<EOF
2574#define $ac_tr_func 1
2575EOF
2576
2577else
2578 echo "$ac_t""no" 1>&6
2579fi
2580done
2581
2582echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002583echo "configure:2584: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002584if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586else
2587 if test "$cross_compiling" = yes; then
2588 ac_cv_func_mmap_fixed_mapped=no
2589else
2590 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002591#line 2592 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002592#include "confdefs.h"
2593
2594/* Thanks to Mike Haertel and Jim Avera for this test.
2595 Here is a matrix of mmap possibilities:
2596 mmap private not fixed
2597 mmap private fixed at somewhere currently unmapped
2598 mmap private fixed at somewhere already mapped
2599 mmap shared not fixed
2600 mmap shared fixed at somewhere currently unmapped
2601 mmap shared fixed at somewhere already mapped
2602 For private mappings, we should verify that changes cannot be read()
2603 back from the file, nor mmap's back from the file at a different
2604 address. (There have been systems where private was not correctly
2605 implemented like the infamous i386 svr4.0, and systems where the
2606 VM page cache was not coherent with the filesystem buffer cache
2607 like early versions of FreeBSD and possibly contemporary NetBSD.)
2608 For shared mappings, we should conversely verify that changes get
2609 propogated back to all the places they're supposed to be.
2610
2611 Grep wants private fixed already mapped.
2612 The main things grep needs to know about mmap are:
2613 * does it exist and is it safe to write into the mmap'd area
2614 * how to use it (BSD variants) */
2615#include <sys/types.h>
2616#include <fcntl.h>
2617#include <sys/mman.h>
2618
2619/* This mess was copied from the GNU getpagesize.h. */
2620#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002621# ifdef HAVE_UNISTD_H
2622# include <unistd.h>
2623# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002624
2625/* Assume that all systems that can run configure have sys/param.h. */
2626# ifndef HAVE_SYS_PARAM_H
2627# define HAVE_SYS_PARAM_H 1
2628# endif
2629
2630# ifdef _SC_PAGESIZE
2631# define getpagesize() sysconf(_SC_PAGESIZE)
2632# else /* no _SC_PAGESIZE */
2633# ifdef HAVE_SYS_PARAM_H
2634# include <sys/param.h>
2635# ifdef EXEC_PAGESIZE
2636# define getpagesize() EXEC_PAGESIZE
2637# else /* no EXEC_PAGESIZE */
2638# ifdef NBPG
2639# define getpagesize() NBPG * CLSIZE
2640# ifndef CLSIZE
2641# define CLSIZE 1
2642# endif /* no CLSIZE */
2643# else /* no NBPG */
2644# ifdef NBPC
2645# define getpagesize() NBPC
2646# else /* no NBPC */
2647# ifdef PAGESIZE
2648# define getpagesize() PAGESIZE
2649# endif /* PAGESIZE */
2650# endif /* no NBPC */
2651# endif /* no NBPG */
2652# endif /* no EXEC_PAGESIZE */
2653# else /* no HAVE_SYS_PARAM_H */
2654# define getpagesize() 8192 /* punt totally */
2655# endif /* no HAVE_SYS_PARAM_H */
2656# endif /* no _SC_PAGESIZE */
2657
2658#endif /* no HAVE_GETPAGESIZE */
2659
2660#ifdef __cplusplus
2661extern "C" { void *malloc(unsigned); }
2662#else
2663char *malloc();
2664#endif
2665
2666int
2667main()
2668{
2669 char *data, *data2, *data3;
2670 int i, pagesize;
2671 int fd;
2672
2673 pagesize = getpagesize();
2674
2675 /*
2676 * First, make a file with some known garbage in it.
2677 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002678 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002679 if (!data)
2680 exit(1);
2681 for (i = 0; i < pagesize; ++i)
2682 *(data + i) = rand();
2683 umask(0);
2684 fd = creat("conftestmmap", 0600);
2685 if (fd < 0)
2686 exit(1);
2687 if (write(fd, data, pagesize) != pagesize)
2688 exit(1);
2689 close(fd);
2690
2691 /*
2692 * Next, try to mmap the file at a fixed address which
2693 * already has something else allocated at it. If we can,
2694 * also make sure that we see the same garbage.
2695 */
2696 fd = open("conftestmmap", O_RDWR);
2697 if (fd < 0)
2698 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002699 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002700 if (!data2)
2701 exit(1);
2702 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2703 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2704 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2705 exit(1);
2706 for (i = 0; i < pagesize; ++i)
2707 if (*(data + i) != *(data2 + i))
2708 exit(1);
2709
2710 /*
2711 * Finally, make sure that changes to the mapped area
2712 * do not percolate back to the file as seen by read().
2713 * (This is a bug on some variants of i386 svr4.0.)
2714 */
2715 for (i = 0; i < pagesize; ++i)
2716 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002717 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002718 if (!data3)
2719 exit(1);
2720 if (read(fd, data3, pagesize) != pagesize)
2721 exit(1);
2722 for (i = 0; i < pagesize; ++i)
2723 if (*(data + i) != *(data3 + i))
2724 exit(1);
2725 close(fd);
2726 unlink("conftestmmap");
2727 exit(0);
2728}
2729
2730EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002731if { (eval echo configure:2732: \"$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 +00002732then
2733 ac_cv_func_mmap_fixed_mapped=yes
2734else
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2737 rm -fr conftest*
2738 ac_cv_func_mmap_fixed_mapped=no
2739fi
2740rm -fr conftest*
2741fi
2742
2743fi
2744
2745echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2746if test $ac_cv_func_mmap_fixed_mapped = yes; then
2747 cat >> confdefs.h <<\EOF
2748#define HAVE_MMAP 1
2749EOF
2750
2751fi
2752
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002753
2754 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002755echo "configure:2756: checking whether we are using the GNU C Library 2.1 or newer" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002756if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2758else
2759 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002760#line 2761 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002761#include "confdefs.h"
2762
2763#include <features.h>
2764#ifdef __GNU_LIBRARY__
2765 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2766 Lucky GNU user
2767 #endif
2768#endif
2769
2770EOF
2771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2772 egrep "Lucky GNU user" >/dev/null 2>&1; then
2773 rm -rf conftest*
2774 ac_cv_gnu_library_2_1=yes
2775else
2776 rm -rf conftest*
2777 ac_cv_gnu_library_2_1=no
2778fi
2779rm -f conftest*
2780
2781
2782
2783fi
2784
2785echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2786
2787 GLIBC21="$ac_cv_gnu_library_2_1"
2788
2789
2790
2791
2792 echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002793echo "configure:2794: checking whether integer division by zero raises SIGFPE" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002794if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796else
2797
2798 if test "$cross_compiling" = yes; then
2799
2800 # Guess based on the CPU.
2801 case "$host_cpu" in
2802 alpha* | i3456786 | m68k | s390*)
2803 gt_cv_int_divbyzero_sigfpe="guessing yes";;
2804 *)
2805 gt_cv_int_divbyzero_sigfpe="guessing no";;
2806 esac
2807
2808else
2809 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002810#line 2811 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002811#include "confdefs.h"
2812
2813#include <stdlib.h>
2814#include <signal.h>
2815
2816static void
2817#ifdef __cplusplus
2818sigfpe_handler (int sig)
2819#else
2820sigfpe_handler (sig) int sig;
2821#endif
2822{
2823 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
2824 exit (sig != SIGFPE);
2825}
2826
2827int x = 1;
2828int y = 0;
2829int z;
2830int nan;
2831
2832int main ()
2833{
2834 signal (SIGFPE, sigfpe_handler);
2835/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
2836#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
2837 signal (SIGTRAP, sigfpe_handler);
2838#endif
2839/* Linux/SPARC yields signal SIGILL. */
2840#if defined (__sparc__) && defined (__linux__)
2841 signal (SIGILL, sigfpe_handler);
2842#endif
2843
2844 z = x / y;
2845 nan = y / y;
2846 exit (1);
2847}
2848
2849EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002850if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002851then
2852 gt_cv_int_divbyzero_sigfpe=yes
2853else
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2856 rm -fr conftest*
2857 gt_cv_int_divbyzero_sigfpe=no
2858fi
2859rm -fr conftest*
2860fi
2861
2862
2863fi
2864
2865echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6
2866 case "$gt_cv_int_divbyzero_sigfpe" in
2867 *yes) value=1;;
2868 *) value=0;;
2869 esac
2870 cat >> confdefs.h <<EOF
2871#define INTDIV0_RAISES_SIGFPE $value
2872EOF
2873
2874
2875
2876
2877
2878 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
2879
2880 test $ac_cv_type_unsigned_long_long = yes \
2881 && ac_type='unsigned long long' \
2882 || ac_type='unsigned long'
2883 cat >> confdefs.h <<EOF
2884#define uintmax_t $ac_type
2885EOF
2886
2887 fi
2888
2889
2890 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002891echo "configure:2892: checking for inttypes.h" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002892if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2894else
2895
2896 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002897#line 2898 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002898#include "confdefs.h"
2899#include <sys/types.h>
2900#include <inttypes.h>
2901int main() {
2902
2903; return 0; }
2904EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002905if { (eval echo configure:2906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002906 rm -rf conftest*
2907 gt_cv_header_inttypes_h=yes
2908else
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2911 rm -rf conftest*
2912 gt_cv_header_inttypes_h=no
2913fi
2914rm -f conftest*
2915
2916fi
2917
2918echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6
2919 if test $gt_cv_header_inttypes_h = yes; then
2920 cat >> confdefs.h <<EOF
2921#define HAVE_INTTYPES_H 1
2922EOF
2923
2924 fi
2925
2926
2927
2928 if test $gt_cv_header_inttypes_h = yes; then
2929 echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002930echo "configure:2931: checking whether the inttypes.h PRIxNN macros are broken" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002931if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2933else
2934
2935 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002936#line 2937 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002937#include "confdefs.h"
2938#include <inttypes.h>
2939#ifdef PRId32
2940char *p = PRId32;
2941#endif
2942
2943int main() {
2944
2945; return 0; }
2946EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002947if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002948 rm -rf conftest*
2949 gt_cv_inttypes_pri_broken=no
2950else
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 rm -rf conftest*
2954 gt_cv_inttypes_pri_broken=yes
2955fi
2956rm -f conftest*
2957
2958fi
2959
2960echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6
2961 fi
2962 if test "$gt_cv_inttypes_pri_broken" = yes; then
2963 cat >> confdefs.h <<EOF
2964#define PRI_MACROS_BROKEN 1
2965EOF
2966
2967 fi
2968
2969
2970
2971
2972
2973
2974
2975 use_additional=yes
2976
2977 acl_save_prefix="$prefix"
2978 prefix="$acl_final_prefix"
2979 acl_save_exec_prefix="$exec_prefix"
2980 exec_prefix="$acl_final_exec_prefix"
2981
2982 eval additional_includedir=\"$includedir\"
2983 eval additional_libdir=\"$libdir\"
2984
2985 exec_prefix="$acl_save_exec_prefix"
2986 prefix="$acl_save_prefix"
2987
2988 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2989if test "${with_libiconv_prefix+set}" = set; then
2990 withval="$with_libiconv_prefix"
2991
2992 if test "X$withval" = "Xno"; then
2993 use_additional=no
2994 else
2995 if test "X$withval" = "X"; then
2996
2997 acl_save_prefix="$prefix"
2998 prefix="$acl_final_prefix"
2999 acl_save_exec_prefix="$exec_prefix"
3000 exec_prefix="$acl_final_exec_prefix"
3001
3002 eval additional_includedir=\"$includedir\"
3003 eval additional_libdir=\"$libdir\"
3004
3005 exec_prefix="$acl_save_exec_prefix"
3006 prefix="$acl_save_prefix"
3007
3008 else
3009 additional_includedir="$withval/include"
3010 additional_libdir="$withval/lib"
3011 fi
3012 fi
3013
3014fi
3015
3016 LIBICONV=
3017 LTLIBICONV=
3018 INCICONV=
3019 rpathdirs=
3020 ltrpathdirs=
3021 names_already_handled=
3022 names_next_round='iconv '
3023 while test -n "$names_next_round"; do
3024 names_this_round="$names_next_round"
3025 names_next_round=
3026 for name in $names_this_round; do
3027 already_handled=
3028 for n in $names_already_handled; do
3029 if test "$n" = "$name"; then
3030 already_handled=yes
3031 break
3032 fi
3033 done
3034 if test -z "$already_handled"; then
3035 names_already_handled="$names_already_handled $name"
3036 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3037 eval value=\"\$HAVE_LIB$uppername\"
3038 if test -n "$value"; then
3039 if test "$value" = yes; then
3040 eval value=\"\$LIB$uppername\"
3041 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3042 eval value=\"\$LTLIB$uppername\"
3043 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3044 else
3045 :
3046 fi
3047 else
3048 found_dir=
3049 found_la=
3050 found_so=
3051 found_a=
3052 if test $use_additional = yes; then
3053 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3054 found_dir="$additional_libdir"
3055 found_so="$additional_libdir/lib$name.$shlibext"
3056 if test -f "$additional_libdir/lib$name.la"; then
3057 found_la="$additional_libdir/lib$name.la"
3058 fi
3059 else
3060 if test -f "$additional_libdir/lib$name.$libext"; then
3061 found_dir="$additional_libdir"
3062 found_a="$additional_libdir/lib$name.$libext"
3063 if test -f "$additional_libdir/lib$name.la"; then
3064 found_la="$additional_libdir/lib$name.la"
3065 fi
3066 fi
3067 fi
3068 fi
3069 if test "X$found_dir" = "X"; then
3070 for x in $LDFLAGS $LTLIBICONV; do
3071
3072 acl_save_prefix="$prefix"
3073 prefix="$acl_final_prefix"
3074 acl_save_exec_prefix="$exec_prefix"
3075 exec_prefix="$acl_final_exec_prefix"
3076 eval x=\"$x\"
3077 exec_prefix="$acl_save_exec_prefix"
3078 prefix="$acl_save_prefix"
3079
3080 case "$x" in
3081 -L*)
3082 dir=`echo "X$x" | sed -e 's/^X-L//'`
3083 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3084 found_dir="$dir"
3085 found_so="$dir/lib$name.$shlibext"
3086 if test -f "$dir/lib$name.la"; then
3087 found_la="$dir/lib$name.la"
3088 fi
3089 else
3090 if test -f "$dir/lib$name.$libext"; then
3091 found_dir="$dir"
3092 found_a="$dir/lib$name.$libext"
3093 if test -f "$dir/lib$name.la"; then
3094 found_la="$dir/lib$name.la"
3095 fi
3096 fi
3097 fi
3098 ;;
3099 esac
3100 if test "X$found_dir" != "X"; then
3101 break
3102 fi
3103 done
3104 fi
3105 if test "X$found_dir" != "X"; then
3106 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3107 if test "X$found_so" != "X"; then
3108 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3109 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3110 else
3111 haveit=
3112 for x in $ltrpathdirs; do
3113 if test "X$x" = "X$found_dir"; then
3114 haveit=yes
3115 break
3116 fi
3117 done
3118 if test -z "$haveit"; then
3119 ltrpathdirs="$ltrpathdirs $found_dir"
3120 fi
3121 if test "$hardcode_direct" = yes; then
3122 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3123 else
3124 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3126 haveit=
3127 for x in $rpathdirs; do
3128 if test "X$x" = "X$found_dir"; then
3129 haveit=yes
3130 break
3131 fi
3132 done
3133 if test -z "$haveit"; then
3134 rpathdirs="$rpathdirs $found_dir"
3135 fi
3136 else
3137 haveit=
3138 for x in $LDFLAGS $LIBICONV; do
3139
3140 acl_save_prefix="$prefix"
3141 prefix="$acl_final_prefix"
3142 acl_save_exec_prefix="$exec_prefix"
3143 exec_prefix="$acl_final_exec_prefix"
3144 eval x=\"$x\"
3145 exec_prefix="$acl_save_exec_prefix"
3146 prefix="$acl_save_prefix"
3147
3148 if test "X$x" = "X-L$found_dir"; then
3149 haveit=yes
3150 break
3151 fi
3152 done
3153 if test -z "$haveit"; then
3154 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3155 fi
3156 if test "$hardcode_minus_L" != no; then
3157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3158 else
3159 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3160 fi
3161 fi
3162 fi
3163 fi
3164 else
3165 if test "X$found_a" != "X"; then
3166 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3167 else
3168 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3169 fi
3170 fi
3171 additional_includedir=
3172 case "$found_dir" in
3173 */lib | */lib/)
3174 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3175 additional_includedir="$basedir/include"
3176 ;;
3177 esac
3178 if test "X$additional_includedir" != "X"; then
3179 if test "X$additional_includedir" != "X/usr/include"; then
3180 haveit=
3181 if test "X$additional_includedir" = "X/usr/local/include"; then
3182 if test -n "$GCC"; then
3183 case $host_os in
3184 linux*) haveit=yes;;
3185 esac
3186 fi
3187 fi
3188 if test -z "$haveit"; then
3189 for x in $CPPFLAGS $INCICONV; do
3190
3191 acl_save_prefix="$prefix"
3192 prefix="$acl_final_prefix"
3193 acl_save_exec_prefix="$exec_prefix"
3194 exec_prefix="$acl_final_exec_prefix"
3195 eval x=\"$x\"
3196 exec_prefix="$acl_save_exec_prefix"
3197 prefix="$acl_save_prefix"
3198
3199 if test "X$x" = "X-I$additional_includedir"; then
3200 haveit=yes
3201 break
3202 fi
3203 done
3204 if test -z "$haveit"; then
3205 if test -d "$additional_includedir"; then
3206 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3207 fi
3208 fi
3209 fi
3210 fi
3211 fi
3212 if test -n "$found_la"; then
3213 save_libdir="$libdir"
3214 case "$found_la" in
3215 */* | *\\*) . "$found_la" ;;
3216 *) . "./$found_la" ;;
3217 esac
3218 libdir="$save_libdir"
3219 for dep in $dependency_libs; do
3220 case "$dep" in
3221 -L*)
3222 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3223 if test "X$additional_libdir" != "X/usr/lib"; then
3224 haveit=
3225 if test "X$additional_libdir" = "X/usr/local/lib"; then
3226 if test -n "$GCC"; then
3227 case $host_os in
3228 linux*) haveit=yes;;
3229 esac
3230 fi
3231 fi
3232 if test -z "$haveit"; then
3233 haveit=
3234 for x in $LDFLAGS $LIBICONV; do
3235
3236 acl_save_prefix="$prefix"
3237 prefix="$acl_final_prefix"
3238 acl_save_exec_prefix="$exec_prefix"
3239 exec_prefix="$acl_final_exec_prefix"
3240 eval x=\"$x\"
3241 exec_prefix="$acl_save_exec_prefix"
3242 prefix="$acl_save_prefix"
3243
3244 if test "X$x" = "X-L$additional_libdir"; then
3245 haveit=yes
3246 break
3247 fi
3248 done
3249 if test -z "$haveit"; then
3250 if test -d "$additional_libdir"; then
3251 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3252 fi
3253 fi
3254 haveit=
3255 for x in $LDFLAGS $LTLIBICONV; do
3256
3257 acl_save_prefix="$prefix"
3258 prefix="$acl_final_prefix"
3259 acl_save_exec_prefix="$exec_prefix"
3260 exec_prefix="$acl_final_exec_prefix"
3261 eval x=\"$x\"
3262 exec_prefix="$acl_save_exec_prefix"
3263 prefix="$acl_save_prefix"
3264
3265 if test "X$x" = "X-L$additional_libdir"; then
3266 haveit=yes
3267 break
3268 fi
3269 done
3270 if test -z "$haveit"; then
3271 if test -d "$additional_libdir"; then
3272 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3273 fi
3274 fi
3275 fi
3276 fi
3277 ;;
3278 -R*)
3279 dir=`echo "X$dep" | sed -e 's/^X-R//'`
3280 if test "$enable_rpath" != no; then
3281 haveit=
3282 for x in $rpathdirs; do
3283 if test "X$x" = "X$dir"; then
3284 haveit=yes
3285 break
3286 fi
3287 done
3288 if test -z "$haveit"; then
3289 rpathdirs="$rpathdirs $dir"
3290 fi
3291 haveit=
3292 for x in $ltrpathdirs; do
3293 if test "X$x" = "X$dir"; then
3294 haveit=yes
3295 break
3296 fi
3297 done
3298 if test -z "$haveit"; then
3299 ltrpathdirs="$ltrpathdirs $dir"
3300 fi
3301 fi
3302 ;;
3303 -l*)
3304 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3305 ;;
3306 *.la)
3307 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3308 ;;
3309 *)
3310 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3311 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3312 ;;
3313 esac
3314 done
3315 fi
3316 else
3317 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3318 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3319 fi
3320 fi
3321 fi
3322 done
3323 done
3324 if test "X$rpathdirs" != "X"; then
3325 if test -n "$hardcode_libdir_separator"; then
3326 alldirs=
3327 for found_dir in $rpathdirs; do
3328 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3329 done
3330 acl_save_libdir="$libdir"
3331 libdir="$alldirs"
3332 eval flag=\"$hardcode_libdir_flag_spec\"
3333 libdir="$acl_save_libdir"
3334 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3335 else
3336 for found_dir in $rpathdirs; do
3337 acl_save_libdir="$libdir"
3338 libdir="$found_dir"
3339 eval flag=\"$hardcode_libdir_flag_spec\"
3340 libdir="$acl_save_libdir"
3341 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3342 done
3343 fi
3344 fi
3345 if test "X$ltrpathdirs" != "X"; then
3346 for found_dir in $ltrpathdirs; do
3347 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3348 done
3349 fi
3350
3351
3352
3353
3354
3355 # Extract the first word of "msgfmt", so it can be a program name with args.
3356set dummy msgfmt; ac_word=$2
3357echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003358echo "configure:3359: checking for $ac_word" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003359if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3361else
3362 case "$MSGFMT" in
3363 /*)
3364 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3365 ;;
3366 *)
3367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3368 for ac_dir in $PATH; do
3369 test -z "$ac_dir" && ac_dir=.
3370 if test -f $ac_dir/$ac_word; then
3371 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3372 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3373 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3374 break
3375 fi
3376 fi
3377 done
3378 IFS="$ac_save_ifs"
3379 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3380 ;;
3381esac
3382fi
3383MSGFMT="$ac_cv_path_MSGFMT"
3384if test "$MSGFMT" != ":"; then
3385 echo "$ac_t""$MSGFMT" 1>&6
3386else
3387 echo "$ac_t""no" 1>&6
3388fi
3389
3390 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3391set dummy gmsgfmt; ac_word=$2
3392echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003393echo "configure:3394: checking for $ac_word" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003394if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3396else
3397 case "$GMSGFMT" in
3398 /*)
3399 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3400 ;;
3401 ?:/*)
3402 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3403 ;;
3404 *)
3405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3406 ac_dummy="$PATH"
3407 for ac_dir in $ac_dummy; do
3408 test -z "$ac_dir" && ac_dir=.
3409 if test -f $ac_dir/$ac_word; then
3410 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3411 break
3412 fi
3413 done
3414 IFS="$ac_save_ifs"
3415 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3416 ;;
3417esac
3418fi
3419GMSGFMT="$ac_cv_path_GMSGFMT"
3420if test -n "$GMSGFMT"; then
3421 echo "$ac_t""$GMSGFMT" 1>&6
3422else
3423 echo "$ac_t""no" 1>&6
3424fi
3425
3426
3427 # Extract the first word of "xgettext", so it can be a program name with args.
3428set dummy xgettext; ac_word=$2
3429echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003430echo "configure:3431: checking for $ac_word" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003431if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3433else
3434 case "$XGETTEXT" in
3435 /*)
3436 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3437 ;;
3438 *)
3439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3440 for ac_dir in $PATH; do
3441 test -z "$ac_dir" && ac_dir=.
3442 if test -f $ac_dir/$ac_word; then
3443 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3444 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3445 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3446 break
3447 fi
3448 fi
3449 done
3450 IFS="$ac_save_ifs"
3451 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3452 ;;
3453esac
3454fi
3455XGETTEXT="$ac_cv_path_XGETTEXT"
3456if test "$XGETTEXT" != ":"; then
3457 echo "$ac_t""$XGETTEXT" 1>&6
3458else
3459 echo "$ac_t""no" 1>&6
3460fi
3461
3462 rm -f messages.po
3463
3464 # Extract the first word of "msgmerge", so it can be a program name with args.
3465set dummy msgmerge; ac_word=$2
3466echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003467echo "configure:3468: checking for $ac_word" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003468if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3470else
3471 case "$MSGMERGE" in
3472 /*)
3473 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3474 ;;
3475 *)
3476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3477 for ac_dir in $PATH; do
3478 test -z "$ac_dir" && ac_dir=.
3479 if test -f $ac_dir/$ac_word; then
3480 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3481 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3482 break
3483 fi
3484 fi
3485 done
3486 IFS="$ac_save_ifs"
3487 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3488 ;;
3489esac
3490fi
3491MSGMERGE="$ac_cv_path_MSGMERGE"
3492if test "$MSGMERGE" != ":"; then
3493 echo "$ac_t""$MSGMERGE" 1>&6
3494else
3495 echo "$ac_t""no" 1>&6
3496fi
3497
3498
3499 if test "$GMSGFMT" != ":"; then
3500 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3501 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3502 : ;
3503 else
3504 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3505 echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6
3506 GMSGFMT=":"
3507 fi
3508 fi
3509
3510 if test "$XGETTEXT" != ":"; then
3511 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3512 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3513 : ;
3514 else
3515 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3516 XGETTEXT=":"
3517 fi
3518 rm -f messages.po
3519 fi
3520
3521
3522
3523
3524
3525 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3526stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003527do
3528ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3529echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003530echo "configure:3531: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003531if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3533else
3534 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003535#line 3536 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003536#include "confdefs.h"
3537#include <$ac_hdr>
3538EOF
3539ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003540{ (eval echo configure:3541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003541ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3542if test -z "$ac_err"; then
3543 rm -rf conftest*
3544 eval "ac_cv_header_$ac_safe=yes"
3545else
3546 echo "$ac_err" >&5
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3549 rm -rf conftest*
3550 eval "ac_cv_header_$ac_safe=no"
3551fi
3552rm -f conftest*
3553fi
3554if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3555 echo "$ac_t""yes" 1>&6
3556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3557 cat >> confdefs.h <<EOF
3558#define $ac_tr_hdr 1
3559EOF
3560
3561else
3562 echo "$ac_t""no" 1>&6
3563fi
3564done
3565
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003566 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
3567geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
3568strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003569do
3570echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003571echo "configure:3572: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003572if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3574else
3575 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003576#line 3577 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003577#include "confdefs.h"
3578/* System header to define __stub macros and hopefully few prototypes,
3579 which can conflict with char $ac_func(); below. */
3580#include <assert.h>
3581/* Override any gcc2 internal prototype to avoid an error. */
3582/* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3584char $ac_func();
3585
3586int main() {
3587
3588/* The GNU C library defines this for functions which it implements
3589 to always fail with ENOSYS. Some functions are actually named
3590 something starting with __ and the normal name is an alias. */
3591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3592choke me
3593#else
3594$ac_func();
3595#endif
3596
3597; return 0; }
3598EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003599if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003600 rm -rf conftest*
3601 eval "ac_cv_func_$ac_func=yes"
3602else
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3605 rm -rf conftest*
3606 eval "ac_cv_func_$ac_func=no"
3607fi
3608rm -f conftest*
3609fi
3610
3611if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3614 cat >> confdefs.h <<EOF
3615#define $ac_tr_func 1
3616EOF
3617
3618else
3619 echo "$ac_t""no" 1>&6
3620fi
3621done
3622
3623
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003624
3625
3626
3627
3628
3629 am_save_CPPFLAGS="$CPPFLAGS"
3630
3631 for element in $INCICONV; do
3632 haveit=
3633 for x in $CPPFLAGS; do
3634
3635 acl_save_prefix="$prefix"
3636 prefix="$acl_final_prefix"
3637 acl_save_exec_prefix="$exec_prefix"
3638 exec_prefix="$acl_final_exec_prefix"
3639 eval x=\"$x\"
3640 exec_prefix="$acl_save_exec_prefix"
3641 prefix="$acl_save_prefix"
3642
3643 if test "X$x" = "X$element"; then
3644 haveit=yes
3645 break
3646 fi
3647 done
3648 if test -z "$haveit"; then
3649 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3650 fi
3651 done
3652
3653
3654 echo $ac_n "checking for iconv""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003655echo "configure:3656: checking for iconv" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003656if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003657 echo $ac_n "(cached) $ac_c" 1>&6
3658else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003659
3660 am_cv_func_iconv="no, consider installing GNU libiconv"
3661 am_cv_lib_iconv=no
3662 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003663#line 3664 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003664#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003665#include <stdlib.h>
3666#include <iconv.h>
3667int main() {
3668iconv_t cd = iconv_open("","");
3669 iconv(cd,NULL,NULL,NULL,NULL);
3670 iconv_close(cd);
3671; return 0; }
3672EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003673if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003674 rm -rf conftest*
3675 am_cv_func_iconv=yes
3676else
3677 echo "configure: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3679fi
3680rm -f conftest*
3681 if test "$am_cv_func_iconv" != yes; then
3682 am_save_LIBS="$LIBS"
3683 LIBS="$LIBS $LIBICONV"
3684 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003685#line 3686 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003686#include "confdefs.h"
3687#include <stdlib.h>
3688#include <iconv.h>
3689int main() {
3690iconv_t cd = iconv_open("","");
3691 iconv(cd,NULL,NULL,NULL,NULL);
3692 iconv_close(cd);
3693; return 0; }
3694EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003695if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003696 rm -rf conftest*
3697 am_cv_lib_iconv=yes
3698 am_cv_func_iconv=yes
3699else
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3702fi
3703rm -f conftest*
3704 LIBS="$am_save_LIBS"
3705 fi
3706
3707fi
3708
3709echo "$ac_t""$am_cv_func_iconv" 1>&6
3710 if test "$am_cv_func_iconv" = yes; then
3711 cat >> confdefs.h <<\EOF
3712#define HAVE_ICONV 1
3713EOF
3714
3715 fi
3716 if test "$am_cv_lib_iconv" = yes; then
3717 echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003718echo "configure:3719: checking how to link with libiconv" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003719 echo "$ac_t""$LIBICONV" 1>&6
3720 else
3721 CPPFLAGS="$am_save_CPPFLAGS"
3722 LIBICONV=
3723 LTLIBICONV=
3724 fi
3725
3726
3727
3728 if test "$am_cv_func_iconv" = yes; then
3729 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003730echo "configure:3731: checking for iconv declaration" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003731 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3733else
3734
3735 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003736#line 3737 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003737#include "confdefs.h"
3738
3739#include <stdlib.h>
3740#include <iconv.h>
3741extern
3742#ifdef __cplusplus
3743"C"
3744#endif
3745#if defined(__STDC__) || defined(__cplusplus)
3746size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3747#else
3748size_t iconv();
3749#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003750
3751int main() {
3752
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003753; return 0; }
3754EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003755if { (eval echo configure:3756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003756 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003757 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003758else
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3761 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003762 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003763fi
3764rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003765 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003766fi
3767
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003768 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3769 echo "$ac_t""${ac_t:-
3770 }$am_cv_proto_iconv" 1>&6
3771 cat >> confdefs.h <<EOF
3772#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003773EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003774
3775 fi
3776
3777
3778 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003779echo "configure:3780: checking for nl_langinfo and CODESET" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003780if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003782else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003783 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003784#line 3785 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003785#include "confdefs.h"
3786#include <langinfo.h>
3787int main() {
3788char* cs = nl_langinfo(CODESET);
3789; return 0; }
3790EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003791if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003792 rm -rf conftest*
3793 am_cv_langinfo_codeset=yes
3794else
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 rm -rf conftest*
3798 am_cv_langinfo_codeset=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003799fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003800rm -f conftest*
3801
3802fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003803
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003804echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
3805 if test $am_cv_langinfo_codeset = yes; then
3806 cat >> confdefs.h <<\EOF
3807#define HAVE_LANGINFO_CODESET 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003808EOF
3809
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003810 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003811
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003812 if test $ac_cv_header_locale_h = yes; then
3813
3814 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003815echo "configure:3816: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003816if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3818else
3819 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003820#line 3821 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003821#include "confdefs.h"
3822#include <locale.h>
3823int main() {
3824return LC_MESSAGES
3825; return 0; }
3826EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003827if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003828 rm -rf conftest*
3829 am_cv_val_LC_MESSAGES=yes
3830else
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 rm -rf conftest*
3834 am_cv_val_LC_MESSAGES=no
3835fi
3836rm -f conftest*
3837fi
3838
3839echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003840 if test $am_cv_val_LC_MESSAGES = yes; then
3841 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003842#define HAVE_LC_MESSAGES 1
3843EOF
3844
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003845 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003846
3847 fi
3848
3849 for ac_prog in bison
3850do
3851# Extract the first word of "$ac_prog", so it can be a program name with args.
3852set dummy $ac_prog; ac_word=$2
3853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003854echo "configure:3855: checking for $ac_word" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003855if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3857else
3858 if test -n "$INTLBISON"; then
3859 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3860else
3861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3862 ac_dummy="$PATH"
3863 for ac_dir in $ac_dummy; do
3864 test -z "$ac_dir" && ac_dir=.
3865 if test -f $ac_dir/$ac_word; then
3866 ac_cv_prog_INTLBISON="$ac_prog"
3867 break
3868 fi
3869 done
3870 IFS="$ac_save_ifs"
3871fi
3872fi
3873INTLBISON="$ac_cv_prog_INTLBISON"
3874if test -n "$INTLBISON"; then
3875 echo "$ac_t""$INTLBISON" 1>&6
3876else
3877 echo "$ac_t""no" 1>&6
3878fi
3879
3880test -n "$INTLBISON" && break
3881done
3882
3883 if test -z "$INTLBISON"; then
3884 ac_verc_fail=yes
3885 else
3886 echo $ac_n "checking version of bison""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003887echo "configure:3888: checking version of bison" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003888 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3889 case $ac_prog_version in
3890 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3891 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3892 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3893 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3894 esac
3895 echo "$ac_t""$ac_prog_version" 1>&6
3896 fi
3897 if test $ac_verc_fail = yes; then
3898 INTLBISON=:
3899 fi
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003916echo "configure:3917: checking whether NLS is requested" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003917 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003918if test "${enable_nls+set}" = set; then
3919 enableval="$enable_nls"
3920 USE_NLS=$enableval
3921else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003922 USE_NLS=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003923fi
3924
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003925 echo "$ac_t""$USE_NLS" 1>&6
3926
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003927
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003928
3929 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003930 USE_INCLUDED_LIBINTL=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003931
3932 LIBINTL=
3933 LTLIBINTL=
3934 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003935
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003936 if test "$USE_NLS" = "yes"; then
3937 gt_use_preinstalled_gnugettext=no
3938
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003939 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003940echo "configure:3941: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003941 # Check whether --with-included-gettext or --without-included-gettext was given.
3942if test "${with_included_gettext+set}" = set; then
3943 withval="$with_included_gettext"
3944 nls_cv_force_use_gnu_gettext=$withval
3945else
3946 nls_cv_force_use_gnu_gettext=no
3947fi
3948
3949 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3950
3951 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3952 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003953
3954
3955
3956
3957
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003958
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003959 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003960echo "configure:3961: checking for GNU gettext in libc" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003961if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003962 echo $ac_n "(cached) $ac_c" 1>&6
3963else
3964 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003965#line 3966 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003966#include "confdefs.h"
3967#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003968extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003969extern int *_nl_domain_bindings;
3970int main() {
3971bindtextdomain ("", "");
3972return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003973; return 0; }
3974EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003975if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003976 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003977 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003978else
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3981 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003982 gt_cv_func_gnugettext1_libc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003983fi
3984rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003985fi
3986
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003987echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003988
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003989 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3990
3991
3992
3993 use_additional=yes
3994
3995 acl_save_prefix="$prefix"
3996 prefix="$acl_final_prefix"
3997 acl_save_exec_prefix="$exec_prefix"
3998 exec_prefix="$acl_final_exec_prefix"
3999
4000 eval additional_includedir=\"$includedir\"
4001 eval additional_libdir=\"$libdir\"
4002
4003 exec_prefix="$acl_save_exec_prefix"
4004 prefix="$acl_save_prefix"
4005
4006 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
4007if test "${with_libintl_prefix+set}" = set; then
4008 withval="$with_libintl_prefix"
4009
4010 if test "X$withval" = "Xno"; then
4011 use_additional=no
4012 else
4013 if test "X$withval" = "X"; then
4014
4015 acl_save_prefix="$prefix"
4016 prefix="$acl_final_prefix"
4017 acl_save_exec_prefix="$exec_prefix"
4018 exec_prefix="$acl_final_exec_prefix"
4019
4020 eval additional_includedir=\"$includedir\"
4021 eval additional_libdir=\"$libdir\"
4022
4023 exec_prefix="$acl_save_exec_prefix"
4024 prefix="$acl_save_prefix"
4025
4026 else
4027 additional_includedir="$withval/include"
4028 additional_libdir="$withval/lib"
4029 fi
4030 fi
4031
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004032fi
4033
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004034 LIBINTL=
4035 LTLIBINTL=
4036 INCINTL=
4037 rpathdirs=
4038 ltrpathdirs=
4039 names_already_handled=
4040 names_next_round='intl '
4041 while test -n "$names_next_round"; do
4042 names_this_round="$names_next_round"
4043 names_next_round=
4044 for name in $names_this_round; do
4045 already_handled=
4046 for n in $names_already_handled; do
4047 if test "$n" = "$name"; then
4048 already_handled=yes
4049 break
4050 fi
4051 done
4052 if test -z "$already_handled"; then
4053 names_already_handled="$names_already_handled $name"
4054 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4055 eval value=\"\$HAVE_LIB$uppername\"
4056 if test -n "$value"; then
4057 if test "$value" = yes; then
4058 eval value=\"\$LIB$uppername\"
4059 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4060 eval value=\"\$LTLIB$uppername\"
4061 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4062 else
4063 :
4064 fi
4065 else
4066 found_dir=
4067 found_la=
4068 found_so=
4069 found_a=
4070 if test $use_additional = yes; then
4071 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4072 found_dir="$additional_libdir"
4073 found_so="$additional_libdir/lib$name.$shlibext"
4074 if test -f "$additional_libdir/lib$name.la"; then
4075 found_la="$additional_libdir/lib$name.la"
4076 fi
4077 else
4078 if test -f "$additional_libdir/lib$name.$libext"; then
4079 found_dir="$additional_libdir"
4080 found_a="$additional_libdir/lib$name.$libext"
4081 if test -f "$additional_libdir/lib$name.la"; then
4082 found_la="$additional_libdir/lib$name.la"
4083 fi
4084 fi
4085 fi
4086 fi
4087 if test "X$found_dir" = "X"; then
4088 for x in $LDFLAGS $LTLIBINTL; do
4089
4090 acl_save_prefix="$prefix"
4091 prefix="$acl_final_prefix"
4092 acl_save_exec_prefix="$exec_prefix"
4093 exec_prefix="$acl_final_exec_prefix"
4094 eval x=\"$x\"
4095 exec_prefix="$acl_save_exec_prefix"
4096 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004097
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004098 case "$x" in
4099 -L*)
4100 dir=`echo "X$x" | sed -e 's/^X-L//'`
4101 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4102 found_dir="$dir"
4103 found_so="$dir/lib$name.$shlibext"
4104 if test -f "$dir/lib$name.la"; then
4105 found_la="$dir/lib$name.la"
4106 fi
4107 else
4108 if test -f "$dir/lib$name.$libext"; then
4109 found_dir="$dir"
4110 found_a="$dir/lib$name.$libext"
4111 if test -f "$dir/lib$name.la"; then
4112 found_la="$dir/lib$name.la"
4113 fi
4114 fi
4115 fi
4116 ;;
4117 esac
4118 if test "X$found_dir" != "X"; then
4119 break
4120 fi
4121 done
4122 fi
4123 if test "X$found_dir" != "X"; then
4124 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4125 if test "X$found_so" != "X"; then
4126 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4127 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4128 else
4129 haveit=
4130 for x in $ltrpathdirs; do
4131 if test "X$x" = "X$found_dir"; then
4132 haveit=yes
4133 break
4134 fi
4135 done
4136 if test -z "$haveit"; then
4137 ltrpathdirs="$ltrpathdirs $found_dir"
4138 fi
4139 if test "$hardcode_direct" = yes; then
4140 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4141 else
4142 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4143 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4144 haveit=
4145 for x in $rpathdirs; do
4146 if test "X$x" = "X$found_dir"; then
4147 haveit=yes
4148 break
4149 fi
4150 done
4151 if test -z "$haveit"; then
4152 rpathdirs="$rpathdirs $found_dir"
4153 fi
4154 else
4155 haveit=
4156 for x in $LDFLAGS $LIBINTL; do
4157
4158 acl_save_prefix="$prefix"
4159 prefix="$acl_final_prefix"
4160 acl_save_exec_prefix="$exec_prefix"
4161 exec_prefix="$acl_final_exec_prefix"
4162 eval x=\"$x\"
4163 exec_prefix="$acl_save_exec_prefix"
4164 prefix="$acl_save_prefix"
4165
4166 if test "X$x" = "X-L$found_dir"; then
4167 haveit=yes
4168 break
4169 fi
4170 done
4171 if test -z "$haveit"; then
4172 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4173 fi
4174 if test "$hardcode_minus_L" != no; then
4175 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4176 else
4177 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4178 fi
4179 fi
4180 fi
4181 fi
4182 else
4183 if test "X$found_a" != "X"; then
4184 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4185 else
4186 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4187 fi
4188 fi
4189 additional_includedir=
4190 case "$found_dir" in
4191 */lib | */lib/)
4192 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4193 additional_includedir="$basedir/include"
4194 ;;
4195 esac
4196 if test "X$additional_includedir" != "X"; then
4197 if test "X$additional_includedir" != "X/usr/include"; then
4198 haveit=
4199 if test "X$additional_includedir" = "X/usr/local/include"; then
4200 if test -n "$GCC"; then
4201 case $host_os in
4202 linux*) haveit=yes;;
4203 esac
4204 fi
4205 fi
4206 if test -z "$haveit"; then
4207 for x in $CPPFLAGS $INCINTL; do
4208
4209 acl_save_prefix="$prefix"
4210 prefix="$acl_final_prefix"
4211 acl_save_exec_prefix="$exec_prefix"
4212 exec_prefix="$acl_final_exec_prefix"
4213 eval x=\"$x\"
4214 exec_prefix="$acl_save_exec_prefix"
4215 prefix="$acl_save_prefix"
4216
4217 if test "X$x" = "X-I$additional_includedir"; then
4218 haveit=yes
4219 break
4220 fi
4221 done
4222 if test -z "$haveit"; then
4223 if test -d "$additional_includedir"; then
4224 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4225 fi
4226 fi
4227 fi
4228 fi
4229 fi
4230 if test -n "$found_la"; then
4231 save_libdir="$libdir"
4232 case "$found_la" in
4233 */* | *\\*) . "$found_la" ;;
4234 *) . "./$found_la" ;;
4235 esac
4236 libdir="$save_libdir"
4237 for dep in $dependency_libs; do
4238 case "$dep" in
4239 -L*)
4240 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4241 if test "X$additional_libdir" != "X/usr/lib"; then
4242 haveit=
4243 if test "X$additional_libdir" = "X/usr/local/lib"; then
4244 if test -n "$GCC"; then
4245 case $host_os in
4246 linux*) haveit=yes;;
4247 esac
4248 fi
4249 fi
4250 if test -z "$haveit"; then
4251 haveit=
4252 for x in $LDFLAGS $LIBINTL; do
4253
4254 acl_save_prefix="$prefix"
4255 prefix="$acl_final_prefix"
4256 acl_save_exec_prefix="$exec_prefix"
4257 exec_prefix="$acl_final_exec_prefix"
4258 eval x=\"$x\"
4259 exec_prefix="$acl_save_exec_prefix"
4260 prefix="$acl_save_prefix"
4261
4262 if test "X$x" = "X-L$additional_libdir"; then
4263 haveit=yes
4264 break
4265 fi
4266 done
4267 if test -z "$haveit"; then
4268 if test -d "$additional_libdir"; then
4269 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4270 fi
4271 fi
4272 haveit=
4273 for x in $LDFLAGS $LTLIBINTL; do
4274
4275 acl_save_prefix="$prefix"
4276 prefix="$acl_final_prefix"
4277 acl_save_exec_prefix="$exec_prefix"
4278 exec_prefix="$acl_final_exec_prefix"
4279 eval x=\"$x\"
4280 exec_prefix="$acl_save_exec_prefix"
4281 prefix="$acl_save_prefix"
4282
4283 if test "X$x" = "X-L$additional_libdir"; then
4284 haveit=yes
4285 break
4286 fi
4287 done
4288 if test -z "$haveit"; then
4289 if test -d "$additional_libdir"; then
4290 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4291 fi
4292 fi
4293 fi
4294 fi
4295 ;;
4296 -R*)
4297 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4298 if test "$enable_rpath" != no; then
4299 haveit=
4300 for x in $rpathdirs; do
4301 if test "X$x" = "X$dir"; then
4302 haveit=yes
4303 break
4304 fi
4305 done
4306 if test -z "$haveit"; then
4307 rpathdirs="$rpathdirs $dir"
4308 fi
4309 haveit=
4310 for x in $ltrpathdirs; do
4311 if test "X$x" = "X$dir"; then
4312 haveit=yes
4313 break
4314 fi
4315 done
4316 if test -z "$haveit"; then
4317 ltrpathdirs="$ltrpathdirs $dir"
4318 fi
4319 fi
4320 ;;
4321 -l*)
4322 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4323 ;;
4324 *.la)
4325 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4326 ;;
4327 *)
4328 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4329 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4330 ;;
4331 esac
4332 done
4333 fi
4334 else
4335 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4336 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4337 fi
4338 fi
4339 fi
4340 done
4341 done
4342 if test "X$rpathdirs" != "X"; then
4343 if test -n "$hardcode_libdir_separator"; then
4344 alldirs=
4345 for found_dir in $rpathdirs; do
4346 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4347 done
4348 acl_save_libdir="$libdir"
4349 libdir="$alldirs"
4350 eval flag=\"$hardcode_libdir_flag_spec\"
4351 libdir="$acl_save_libdir"
4352 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4353 else
4354 for found_dir in $rpathdirs; do
4355 acl_save_libdir="$libdir"
4356 libdir="$found_dir"
4357 eval flag=\"$hardcode_libdir_flag_spec\"
4358 libdir="$acl_save_libdir"
4359 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4360 done
4361 fi
4362 fi
4363 if test "X$ltrpathdirs" != "X"; then
4364 for found_dir in $ltrpathdirs; do
4365 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4366 done
4367 fi
4368
4369 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004370echo "configure:4371: checking for GNU gettext in libintl" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004371if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004372 echo $ac_n "(cached) $ac_c" 1>&6
4373else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004374 gt_save_CPPFLAGS="$CPPFLAGS"
4375 CPPFLAGS="$CPPFLAGS $INCINTL"
4376 gt_save_LIBS="$LIBS"
4377 LIBS="$LIBS $LIBINTL"
4378 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004379#line 4380 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004380#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004381#include <libintl.h>
4382extern int _nl_msg_cat_cntr;
4383extern
4384#ifdef __cplusplus
4385"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004386#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004387const char *_nl_expand_alias ();
4388int main() {
4389bindtextdomain ("", "");
4390return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004391; return 0; }
4392EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004393if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004394 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004395 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004396else
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4399 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004400 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004401fi
4402rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004403 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4404 LIBS="$LIBS $LIBICONV"
4405 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004406#line 4407 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004407#include "confdefs.h"
4408#include <libintl.h>
4409extern int _nl_msg_cat_cntr;
4410extern
4411#ifdef __cplusplus
4412"C"
4413#endif
4414const char *_nl_expand_alias ();
4415int main() {
4416bindtextdomain ("", "");
4417return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4418; return 0; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004419EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004420if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004421 rm -rf conftest*
4422 LIBINTL="$LIBINTL $LIBICONV"
4423 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4424 gt_cv_func_gnugettext1_libintl=yes
4425
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004426else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004427 echo "configure: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004429fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004430rm -f conftest*
4431 fi
4432 CPPFLAGS="$gt_save_CPPFLAGS"
4433 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004434fi
4435
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004436echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004437 fi
4438
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004439 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4440 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4441 && test "$PACKAGE" != gettext; }; then
4442 gt_use_preinstalled_gnugettext=yes
4443 else
4444 LIBINTL=
4445 LTLIBINTL=
4446 INCINTL=
4447 fi
4448
4449
4450 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
4451 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004452 fi
4453 fi
4454
4455 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4456 INTLOBJS="\$(GETTOBJS)"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004457 BUILD_INCLUDED_LIBINTL=yes
4458 USE_INCLUDED_LIBINTL=yes
4459 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
4460 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
4461 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004462 fi
4463
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004464 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4465 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4466 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004467 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004468
4469
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004470 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4471 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4472 cat >> confdefs.h <<\EOF
4473#define ENABLE_NLS 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004474EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004475
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004476 else
4477 USE_NLS=no
4478 fi
4479 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004480
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004481 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004482
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004483 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4484 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4485 echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004486echo "configure:4487: checking how to link with libintl" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004487 echo "$ac_t""$LIBINTL" 1>&6
4488
4489 for element in $INCINTL; do
4490 haveit=
4491 for x in $CPPFLAGS; do
4492
4493 acl_save_prefix="$prefix"
4494 prefix="$acl_final_prefix"
4495 acl_save_exec_prefix="$exec_prefix"
4496 exec_prefix="$acl_final_exec_prefix"
4497 eval x=\"$x\"
4498 exec_prefix="$acl_save_exec_prefix"
4499 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004500
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004501 if test "X$x" = "X$element"; then
4502 haveit=yes
4503 break
4504 fi
4505 done
4506 if test -z "$haveit"; then
4507 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4508 fi
4509 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004510
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004511 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004512
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004513 cat >> confdefs.h <<\EOF
4514#define HAVE_GETTEXT 1
4515EOF
4516
4517 cat >> confdefs.h <<\EOF
4518#define HAVE_DCGETTEXT 1
4519EOF
4520
4521 fi
4522
4523 POSUB=po
4524 fi
4525
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004526
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004527 if test "$PACKAGE" = gettext; then
4528 BUILD_INCLUDED_LIBINTL=yes
4529 fi
4530
4531
4532
4533
4534
4535
4536 nls_cv_header_intl=
4537 nls_cv_header_libgt=
4538
4539 DATADIRNAME=share
4540
4541
4542 INSTOBJEXT=.mo
4543
4544
4545 GENCAT=gencat
4546
4547
4548 INTL_LIBTOOL_SUFFIX_PREFIX=
4549
4550
4551
4552 INTLLIBS="$LIBINTL"
4553
4554
4555
4556
4557
4558
Theodore Ts'o74becf31997-04-26 14:37:06 +00004559
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004560echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004561echo "configure:4562: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004562set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004563if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4565else
4566 cat > conftestmake <<\EOF
4567all:
4568 @echo 'ac_maketemp="${MAKE}"'
4569EOF
4570# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4571eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
4572if test -n "$ac_maketemp"; then
4573 eval ac_cv_prog_make_${ac_make}_set=yes
4574else
4575 eval ac_cv_prog_make_${ac_make}_set=no
4576fi
4577rm -f conftestmake
4578fi
4579if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6
4581 SET_MAKE=
4582else
4583 echo "$ac_t""no" 1>&6
4584 SET_MAKE="MAKE=${MAKE-make}"
4585fi
4586
4587# Extract the first word of "ln", so it can be a program name with args.
4588set dummy ln; ac_word=$2
4589echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004590echo "configure:4591: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004591if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4593else
4594 case "$LN" in
4595 /*)
4596 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4597 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004598 ?:/*)
4599 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
4600 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004601 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4603 ac_dummy="$PATH"
4604 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004605 test -z "$ac_dir" && ac_dir=.
4606 if test -f $ac_dir/$ac_word; then
4607 ac_cv_path_LN="$ac_dir/$ac_word"
4608 break
4609 fi
4610 done
4611 IFS="$ac_save_ifs"
4612 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4613 ;;
4614esac
4615fi
4616LN="$ac_cv_path_LN"
4617if test -n "$LN"; then
4618 echo "$ac_t""$LN" 1>&6
4619else
4620 echo "$ac_t""no" 1>&6
4621fi
4622
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004623echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004624echo "configure:4625: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004625if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
4626 echo $ac_n "(cached) $ac_c" 1>&6
4627else
4628 rm -f conftestdata
4629if ln -s X conftestdata 2>/dev/null
4630then
4631 rm -f conftestdata
4632 ac_cv_prog_LN_S="ln -s"
4633else
4634 ac_cv_prog_LN_S=ln
4635fi
4636fi
4637LN_S="$ac_cv_prog_LN_S"
4638if test "$ac_cv_prog_LN_S" = "ln -s"; then
4639 echo "$ac_t""yes" 1>&6
4640else
4641 echo "$ac_t""no" 1>&6
4642fi
4643
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004644# Extract the first word of "mv", so it can be a program name with args.
4645set dummy mv; ac_word=$2
4646echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004647echo "configure:4648: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004648if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4650else
4651 case "$MV" in
4652 /*)
4653 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4654 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004655 ?:/*)
4656 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
4657 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004658 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4660 ac_dummy="$PATH"
4661 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004662 test -z "$ac_dir" && ac_dir=.
4663 if test -f $ac_dir/$ac_word; then
4664 ac_cv_path_MV="$ac_dir/$ac_word"
4665 break
4666 fi
4667 done
4668 IFS="$ac_save_ifs"
4669 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4670 ;;
4671esac
4672fi
4673MV="$ac_cv_path_MV"
4674if test -n "$MV"; then
4675 echo "$ac_t""$MV" 1>&6
4676else
4677 echo "$ac_t""no" 1>&6
4678fi
4679
4680# Extract the first word of "cp", so it can be a program name with args.
4681set dummy cp; ac_word=$2
4682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004683echo "configure:4684: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004684if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4686else
4687 case "$CP" in
4688 /*)
4689 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4690 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004691 ?:/*)
4692 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
4693 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004694 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4696 ac_dummy="$PATH"
4697 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004698 test -z "$ac_dir" && ac_dir=.
4699 if test -f $ac_dir/$ac_word; then
4700 ac_cv_path_CP="$ac_dir/$ac_word"
4701 break
4702 fi
4703 done
4704 IFS="$ac_save_ifs"
4705 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4706 ;;
4707esac
4708fi
4709CP="$ac_cv_path_CP"
4710if test -n "$CP"; then
4711 echo "$ac_t""$CP" 1>&6
4712else
4713 echo "$ac_t""no" 1>&6
4714fi
4715
4716# Extract the first word of "rm", so it can be a program name with args.
4717set dummy rm; ac_word=$2
4718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004719echo "configure:4720: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004720if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4722else
4723 case "$RM" in
4724 /*)
4725 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4726 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004727 ?:/*)
4728 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
4729 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004730 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4732 ac_dummy="$PATH"
4733 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004734 test -z "$ac_dir" && ac_dir=.
4735 if test -f $ac_dir/$ac_word; then
4736 ac_cv_path_RM="$ac_dir/$ac_word"
4737 break
4738 fi
4739 done
4740 IFS="$ac_save_ifs"
4741 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4742 ;;
4743esac
4744fi
4745RM="$ac_cv_path_RM"
4746if test -n "$RM"; then
4747 echo "$ac_t""$RM" 1>&6
4748else
4749 echo "$ac_t""no" 1>&6
4750fi
4751
4752# Extract the first word of "chmod", so it can be a program name with args.
4753set dummy chmod; ac_word=$2
4754echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004755echo "configure:4756: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004756if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4758else
4759 case "$CHMOD" in
4760 /*)
4761 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4762 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004763 ?:/*)
4764 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
4765 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004766 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4768 ac_dummy="$PATH"
4769 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004770 test -z "$ac_dir" && ac_dir=.
4771 if test -f $ac_dir/$ac_word; then
4772 ac_cv_path_CHMOD="$ac_dir/$ac_word"
4773 break
4774 fi
4775 done
4776 IFS="$ac_save_ifs"
4777 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
4778 ;;
4779esac
4780fi
4781CHMOD="$ac_cv_path_CHMOD"
4782if test -n "$CHMOD"; then
4783 echo "$ac_t""$CHMOD" 1>&6
4784else
4785 echo "$ac_t""no" 1>&6
4786fi
4787
4788# Extract the first word of "awk", so it can be a program name with args.
4789set dummy awk; ac_word=$2
4790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004791echo "configure:4792: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004792if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4794else
4795 case "$AWK" in
4796 /*)
4797 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4798 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004799 ?:/*)
4800 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
4801 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004802 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4804 ac_dummy="$PATH"
4805 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004806 test -z "$ac_dir" && ac_dir=.
4807 if test -f $ac_dir/$ac_word; then
4808 ac_cv_path_AWK="$ac_dir/$ac_word"
4809 break
4810 fi
4811 done
4812 IFS="$ac_save_ifs"
4813 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
4814 ;;
4815esac
4816fi
4817AWK="$ac_cv_path_AWK"
4818if test -n "$AWK"; then
4819 echo "$ac_t""$AWK" 1>&6
4820else
4821 echo "$ac_t""no" 1>&6
4822fi
4823
4824# Extract the first word of "sed", so it can be a program name with args.
4825set dummy sed; ac_word=$2
4826echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004827echo "configure:4828: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004828if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4830else
4831 case "$SED" in
4832 /*)
4833 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4834 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004835 ?:/*)
4836 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
4837 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004838 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4840 ac_dummy="$PATH"
4841 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004842 test -z "$ac_dir" && ac_dir=.
4843 if test -f $ac_dir/$ac_word; then
4844 ac_cv_path_SED="$ac_dir/$ac_word"
4845 break
4846 fi
4847 done
4848 IFS="$ac_save_ifs"
4849 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4850 ;;
4851esac
4852fi
4853SED="$ac_cv_path_SED"
4854if test -n "$SED"; then
4855 echo "$ac_t""$SED" 1>&6
4856else
4857 echo "$ac_t""no" 1>&6
4858fi
4859
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004860# Extract the first word of "perl", so it can be a program name with args.
4861set dummy perl; ac_word=$2
4862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004863echo "configure:4864: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004864if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4866else
4867 case "$PERL" in
4868 /*)
4869 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4870 ;;
4871 ?:/*)
4872 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
4873 ;;
4874 *)
4875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4876 ac_dummy="$PATH"
4877 for ac_dir in $ac_dummy; do
4878 test -z "$ac_dir" && ac_dir=.
4879 if test -f $ac_dir/$ac_word; then
4880 ac_cv_path_PERL="$ac_dir/$ac_word"
4881 break
4882 fi
4883 done
4884 IFS="$ac_save_ifs"
4885 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
4886 ;;
4887esac
4888fi
4889PERL="$ac_cv_path_PERL"
4890if test -n "$PERL"; then
4891 echo "$ac_t""$PERL" 1>&6
4892else
4893 echo "$ac_t""no" 1>&6
4894fi
4895
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004896# Extract the first word of "ldconfig", so it can be a program name with args.
4897set dummy ldconfig; ac_word=$2
4898echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004899echo "configure:4900: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004900if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4902else
4903 case "$LDCONFIG" in
4904 /*)
4905 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4906 ;;
4907 ?:/*)
4908 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
4909 ;;
4910 *)
4911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4912 ac_dummy="$PATH"
4913 for ac_dir in $ac_dummy; do
4914 test -z "$ac_dir" && ac_dir=.
4915 if test -f $ac_dir/$ac_word; then
4916 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
4917 break
4918 fi
4919 done
4920 IFS="$ac_save_ifs"
4921 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
4922 ;;
4923esac
4924fi
4925LDCONFIG="$ac_cv_path_LDCONFIG"
4926if test -n "$LDCONFIG"; then
4927 echo "$ac_t""$LDCONFIG" 1>&6
4928else
4929 echo "$ac_t""no" 1>&6
4930fi
4931
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004932echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004933echo "configure:4934: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004934
4935build_alias=$build
4936case "$build_alias" in
4937NONE)
4938 case $nonopt in
4939 NONE) build_alias=$host_alias ;;
4940 *) build_alias=$nonopt ;;
4941 esac ;;
4942esac
4943
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004944build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004945build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4946build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4947build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004948echo "$ac_t""$build" 1>&6
4949
4950if test $host != $build; then
4951 ac_tool_prefix=${host_alias}-
4952else
4953 ac_tool_prefix=
4954fi
4955
4956# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4957set dummy ${ac_tool_prefix}ar; ac_word=$2
4958echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004959echo "configure:4960: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004960if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4962else
4963 if test -n "$AR"; then
4964 ac_cv_prog_AR="$AR" # Let the user override the test.
4965else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4967 ac_dummy="$PATH"
4968 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004969 test -z "$ac_dir" && ac_dir=.
4970 if test -f $ac_dir/$ac_word; then
4971 ac_cv_prog_AR="${ac_tool_prefix}ar"
4972 break
4973 fi
4974 done
4975 IFS="$ac_save_ifs"
4976fi
4977fi
4978AR="$ac_cv_prog_AR"
4979if test -n "$AR"; then
4980 echo "$ac_t""$AR" 1>&6
4981else
4982 echo "$ac_t""no" 1>&6
4983fi
4984
4985
4986if test -z "$ac_cv_prog_AR"; then
4987if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "ar", so it can be a program name with args.
4989set dummy ar; ac_word=$2
4990echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004991echo "configure:4992: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004992if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4994else
4995 if test -n "$AR"; then
4996 ac_cv_prog_AR="$AR" # Let the user override the test.
4997else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4999 ac_dummy="$PATH"
5000 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005001 test -z "$ac_dir" && ac_dir=.
5002 if test -f $ac_dir/$ac_word; then
5003 ac_cv_prog_AR="ar"
5004 break
5005 fi
5006 done
5007 IFS="$ac_save_ifs"
5008 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5009fi
5010fi
5011AR="$ac_cv_prog_AR"
5012if test -n "$AR"; then
5013 echo "$ac_t""$AR" 1>&6
5014else
5015 echo "$ac_t""no" 1>&6
5016fi
5017
5018else
5019 AR="ar"
5020fi
5021fi
5022
5023# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5024set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005026echo "configure:5027: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005027if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5029else
5030 if test -n "$RANLIB"; then
5031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5032else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5034 ac_dummy="$PATH"
5035 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005036 test -z "$ac_dir" && ac_dir=.
5037 if test -f $ac_dir/$ac_word; then
5038 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5039 break
5040 fi
5041 done
5042 IFS="$ac_save_ifs"
5043fi
5044fi
5045RANLIB="$ac_cv_prog_RANLIB"
5046if test -n "$RANLIB"; then
5047 echo "$ac_t""$RANLIB" 1>&6
5048else
5049 echo "$ac_t""no" 1>&6
5050fi
5051
5052
5053if test -z "$ac_cv_prog_RANLIB"; then
5054if test -n "$ac_tool_prefix"; then
5055 # Extract the first word of "ranlib", so it can be a program name with args.
5056set dummy ranlib; ac_word=$2
5057echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005058echo "configure:5059: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005059if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6
5061else
5062 if test -n "$RANLIB"; then
5063 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5064else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5066 ac_dummy="$PATH"
5067 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005068 test -z "$ac_dir" && ac_dir=.
5069 if test -f $ac_dir/$ac_word; then
5070 ac_cv_prog_RANLIB="ranlib"
5071 break
5072 fi
5073 done
5074 IFS="$ac_save_ifs"
5075 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
5076fi
5077fi
5078RANLIB="$ac_cv_prog_RANLIB"
5079if test -n "$RANLIB"; then
5080 echo "$ac_t""$RANLIB" 1>&6
5081else
5082 echo "$ac_t""no" 1>&6
5083fi
5084
5085else
5086 RANLIB=":"
5087fi
5088fi
5089
5090# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5091set dummy ${ac_tool_prefix}strip; ac_word=$2
5092echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005093echo "configure:5094: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005094if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5096else
5097 if test -n "$STRIP"; then
5098 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5099else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5101 ac_dummy="$PATH"
5102 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005103 test -z "$ac_dir" && ac_dir=.
5104 if test -f $ac_dir/$ac_word; then
5105 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5106 break
5107 fi
5108 done
5109 IFS="$ac_save_ifs"
5110fi
5111fi
5112STRIP="$ac_cv_prog_STRIP"
5113if test -n "$STRIP"; then
5114 echo "$ac_t""$STRIP" 1>&6
5115else
5116 echo "$ac_t""no" 1>&6
5117fi
5118
5119
5120if test -z "$ac_cv_prog_STRIP"; then
5121if test -n "$ac_tool_prefix"; then
5122 # Extract the first word of "strip", so it can be a program name with args.
5123set dummy strip; ac_word=$2
5124echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005125echo "configure:5126: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005126if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5127 echo $ac_n "(cached) $ac_c" 1>&6
5128else
5129 if test -n "$STRIP"; then
5130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5131else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5133 ac_dummy="$PATH"
5134 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005135 test -z "$ac_dir" && ac_dir=.
5136 if test -f $ac_dir/$ac_word; then
5137 ac_cv_prog_STRIP="strip"
5138 break
5139 fi
5140 done
5141 IFS="$ac_save_ifs"
5142 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5143fi
5144fi
5145STRIP="$ac_cv_prog_STRIP"
5146if test -n "$STRIP"; then
5147 echo "$ac_t""$STRIP" 1>&6
5148else
5149 echo "$ac_t""no" 1>&6
5150fi
5151
5152else
5153 STRIP=":"
5154fi
5155fi
5156
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005157# Find a good install program. We prefer a C program (faster),
5158# so one script is as good as another. But avoid the broken or
5159# incompatible versions:
5160# SysV /etc/install, /usr/sbin/install
5161# SunOS /usr/etc/install
5162# IRIX /sbin/install
5163# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005164# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005165# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5166# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5167# ./install, which can be erroneously created by make from ./install.sh.
5168echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005169echo "configure:5170: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005170if test -z "$INSTALL"; then
5171if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5173else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005174 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005175 for ac_dir in $PATH; do
5176 # Account for people who put trailing slashes in PATH elements.
5177 case "$ac_dir/" in
5178 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5179 *)
5180 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005181 # Don't use installbsd from OSF since it installs stuff as root
5182 # by default.
5183 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005184 if test -f $ac_dir/$ac_prog; then
5185 if test $ac_prog = install &&
5186 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5187 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005188 :
5189 else
5190 ac_cv_path_install="$ac_dir/$ac_prog -c"
5191 break 2
5192 fi
5193 fi
5194 done
5195 ;;
5196 esac
5197 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005198 IFS="$ac_save_IFS"
5199
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005200fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005201 if test "${ac_cv_path_install+set}" = set; then
5202 INSTALL="$ac_cv_path_install"
5203 else
5204 # As a last resort, use the slow shell script. We don't cache a
5205 # path for INSTALL within a source directory, because that will
5206 # break other packages using the cache if that directory is
5207 # removed, or if the path is relative.
5208 INSTALL="$ac_install_sh"
5209 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005210fi
5211echo "$ac_t""$INSTALL" 1>&6
5212
5213# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5214# It thinks the first close brace ends the variable substitution.
5215test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5216
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005217test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
5218
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005219test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5220
Theodore Ts'o6c133521999-07-03 20:37:03 +00005221# See if we need a separate native compiler.
5222if test $cross_compiling = no; then
5223 BUILD_CC="$CC"
5224
5225else
5226 for ac_prog in gcc cc
5227do
5228# Extract the first word of "$ac_prog", so it can be a program name with args.
5229set dummy $ac_prog; ac_word=$2
5230echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005231echo "configure:5232: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00005232if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5234else
5235 if test -n "$BUILD_CC"; then
5236 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5237else
5238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5239 ac_dummy="$PATH"
5240 for ac_dir in $ac_dummy; do
5241 test -z "$ac_dir" && ac_dir=.
5242 if test -f $ac_dir/$ac_word; then
5243 ac_cv_prog_BUILD_CC="$ac_prog"
5244 break
5245 fi
5246 done
5247 IFS="$ac_save_ifs"
5248fi
5249fi
5250BUILD_CC="$ac_cv_prog_BUILD_CC"
5251if test -n "$BUILD_CC"; then
5252 echo "$ac_t""$BUILD_CC" 1>&6
5253else
5254 echo "$ac_t""no" 1>&6
5255fi
5256
5257test -n "$BUILD_CC" && break
5258done
5259
5260fi
Theodore Ts'offf45482003-04-13 00:44:19 -04005261for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005262do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005263ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005264echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005265echo "configure:5266: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005266if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5268else
5269 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005270#line 5271 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005271#include "confdefs.h"
5272#include <$ac_hdr>
5273EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005274ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005275{ (eval echo configure:5276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005276ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005277if test -z "$ac_err"; then
5278 rm -rf conftest*
5279 eval "ac_cv_header_$ac_safe=yes"
5280else
5281 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005284 rm -rf conftest*
5285 eval "ac_cv_header_$ac_safe=no"
5286fi
5287rm -f conftest*
5288fi
5289if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5290 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005291 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005292 cat >> confdefs.h <<EOF
5293#define $ac_tr_hdr 1
5294EOF
5295
5296else
5297 echo "$ac_t""no" 1>&6
5298fi
5299done
5300
5301echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005302echo "configure:5303: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005303if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5305else
5306 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005307#line 5308 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005308#include "confdefs.h"
5309/* System header to define __stub macros and hopefully few prototypes,
5310 which can conflict with char vprintf(); below. */
5311#include <assert.h>
5312/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005313/* We use char because int might match the return type of a gcc2
5314 builtin and then its argument prototype would still apply. */
5315char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005316
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005317int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005318
5319/* The GNU C library defines this for functions which it implements
5320 to always fail with ENOSYS. Some functions are actually named
5321 something starting with __ and the normal name is an alias. */
5322#if defined (__stub_vprintf) || defined (__stub___vprintf)
5323choke me
5324#else
5325vprintf();
5326#endif
5327
5328; return 0; }
5329EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005330if { (eval echo configure:5331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005331 rm -rf conftest*
5332 eval "ac_cv_func_vprintf=yes"
5333else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005334 echo "configure: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005336 rm -rf conftest*
5337 eval "ac_cv_func_vprintf=no"
5338fi
5339rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005340fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005341
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005342if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5343 echo "$ac_t""yes" 1>&6
5344 cat >> confdefs.h <<\EOF
5345#define HAVE_VPRINTF 1
5346EOF
5347
5348else
5349 echo "$ac_t""no" 1>&6
5350fi
5351
5352if test "$ac_cv_func_vprintf" != yes; then
5353echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005354echo "configure:5355: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005355if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6
5357else
5358 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005359#line 5360 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005360#include "confdefs.h"
5361/* System header to define __stub macros and hopefully few prototypes,
5362 which can conflict with char _doprnt(); below. */
5363#include <assert.h>
5364/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005365/* We use char because int might match the return type of a gcc2
5366 builtin and then its argument prototype would still apply. */
5367char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005368
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005369int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005370
5371/* The GNU C library defines this for functions which it implements
5372 to always fail with ENOSYS. Some functions are actually named
5373 something starting with __ and the normal name is an alias. */
5374#if defined (__stub__doprnt) || defined (__stub____doprnt)
5375choke me
5376#else
5377_doprnt();
5378#endif
5379
5380; return 0; }
5381EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005382if { (eval echo configure:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005383 rm -rf conftest*
5384 eval "ac_cv_func__doprnt=yes"
5385else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005388 rm -rf conftest*
5389 eval "ac_cv_func__doprnt=no"
5390fi
5391rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005392fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005393
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005394if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5395 echo "$ac_t""yes" 1>&6
5396 cat >> confdefs.h <<\EOF
5397#define HAVE_DOPRNT 1
5398EOF
5399
5400else
5401 echo "$ac_t""no" 1>&6
5402fi
5403
5404fi
5405
Theodore Ts'offf45482003-04-13 00:44:19 -04005406echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005407echo "configure:5408: checking whether d_reclen declared in dirent" >&5
Theodore Ts'offf45482003-04-13 00:44:19 -04005408if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005409 echo $ac_n "(cached) $ac_c" 1>&6
5410else
5411 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005412#line 5413 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005413#include "confdefs.h"
Theodore Ts'offf45482003-04-13 00:44:19 -04005414#include <dirent.h>
5415int main() {
5416struct dirent de; de.d_reclen = 0;
5417; return 0; }
5418EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005419if { (eval echo configure:5420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'offf45482003-04-13 00:44:19 -04005420 rm -rf conftest*
5421 e2fsprogs_cv_have_d_reclen_dirent=yes
5422else
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5425 rm -rf conftest*
5426 e2fsprogs_cv_have_d_reclen_dirent=no
5427fi
5428rm -f conftest*
5429fi
5430
5431echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6
5432if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
5433 cat >> confdefs.h <<\EOF
5434#define HAVE_RECLEN_DIRENT 1
5435EOF
5436
5437fi
5438echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005439echo "configure:5440: checking whether ssize_t declared" >&5
Theodore Ts'offf45482003-04-13 00:44:19 -04005440if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5442else
5443 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005444#line 5445 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005445#include "confdefs.h"
5446#include <sys/types.h>
5447int main() {
5448ssize_t a = 0;
5449; return 0; }
5450EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005451if { (eval echo configure:5452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'offf45482003-04-13 00:44:19 -04005452 rm -rf conftest*
5453 e2fsprogs_cv_have_ssize_t=yes
5454else
5455 echo "configure: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5457 rm -rf conftest*
5458 e2fsprogs_cv_have_ssize_t=no
5459fi
5460rm -f conftest*
5461fi
5462
5463echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6
5464if test "$e2fsprogs_cv_have_ssize_t" = yes; then
5465 cat >> confdefs.h <<\EOF
5466#define HAVE_TYPE_SSIZE_T 1
5467EOF
5468
5469fi
5470echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005471echo "configure:5472: checking whether llseek declared in unistd.h" >&5
Theodore Ts'offf45482003-04-13 00:44:19 -04005472if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5474else
5475 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005476#line 5477 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005477#include "confdefs.h"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005478#include <unistd.h>
5479int main() {
5480extern int llseek(int);
5481; return 0; }
5482EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005483if { (eval echo configure:5484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005484 rm -rf conftest*
5485 e2fsprogs_cv_have_llseek_prototype=no
5486else
5487 echo "configure: failed program was:" >&5
5488 cat conftest.$ac_ext >&5
5489 rm -rf conftest*
5490 e2fsprogs_cv_have_llseek_prototype=yes
5491fi
5492rm -f conftest*
5493fi
5494
5495echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
5496if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
5497 cat >> confdefs.h <<\EOF
5498#define HAVE_LLSEEK_PROTOTYPE 1
5499EOF
5500
5501fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005502echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005503echo "configure:5504: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005504if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5506else
5507 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005508#line 5509 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005509#include "confdefs.h"
5510#define _LARGEFILE_SOURCE
5511#define _LARGEFILE64_SOURCE
5512#include <unistd.h>
5513int main() {
5514extern int lseek64(int);
5515; return 0; }
5516EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005517if { (eval echo configure:5518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005518 rm -rf conftest*
5519 e2fsprogs_cv_have_lseek64_prototype=no
5520else
5521 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5523 rm -rf conftest*
5524 e2fsprogs_cv_have_lseek64_prototype=yes
5525fi
5526rm -f conftest*
5527fi
5528
5529echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
5530if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
5531 cat >> confdefs.h <<\EOF
5532#define HAVE_LSEEK64_PROTOTYPE 1
5533EOF
5534
5535fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005536if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
5537 # if cross-compiling, with no cached values, just assume something common.
5538 ac_cv_sizeof_short=2
5539 ac_cv_sizeof_int=4
5540 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00005541 ac_cv_sizeof_long_long=8
5542 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 +00005543fi
5544echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005545echo "configure:5546: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005546if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5548else
5549 if test "$cross_compiling" = yes; then
5550 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5551else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005552 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005553#line 5554 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005554#include "confdefs.h"
5555#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005556#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005557main()
5558{
5559 FILE *f=fopen("conftestval", "w");
5560 if (!f) exit(1);
5561 fprintf(f, "%d\n", sizeof(short));
5562 exit(0);
5563}
5564EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005565if { (eval echo configure:5566: \"$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 +00005566then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005567 ac_cv_sizeof_short=`cat conftestval`
5568else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005572 ac_cv_sizeof_short=0
5573fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005574rm -fr conftest*
5575fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005576
5577fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005578echo "$ac_t""$ac_cv_sizeof_short" 1>&6
5579cat >> confdefs.h <<EOF
5580#define SIZEOF_SHORT $ac_cv_sizeof_short
5581EOF
5582
5583
5584echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005585echo "configure:5586: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005586if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5588else
5589 if test "$cross_compiling" = yes; then
5590 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5591else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005592 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005593#line 5594 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005594#include "confdefs.h"
5595#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005596#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005597main()
5598{
5599 FILE *f=fopen("conftestval", "w");
5600 if (!f) exit(1);
5601 fprintf(f, "%d\n", sizeof(int));
5602 exit(0);
5603}
5604EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005605if { (eval echo configure:5606: \"$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 +00005606then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005607 ac_cv_sizeof_int=`cat conftestval`
5608else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5611 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005612 ac_cv_sizeof_int=0
5613fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005614rm -fr conftest*
5615fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005616
5617fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005618echo "$ac_t""$ac_cv_sizeof_int" 1>&6
5619cat >> confdefs.h <<EOF
5620#define SIZEOF_INT $ac_cv_sizeof_int
5621EOF
5622
5623
5624echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005625echo "configure:5626: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005626if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5628else
5629 if test "$cross_compiling" = yes; then
5630 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5631else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005632 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005633#line 5634 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005634#include "confdefs.h"
5635#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005636#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005637main()
5638{
5639 FILE *f=fopen("conftestval", "w");
5640 if (!f) exit(1);
5641 fprintf(f, "%d\n", sizeof(long));
5642 exit(0);
5643}
5644EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005645if { (eval echo configure:5646: \"$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 +00005646then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005647 ac_cv_sizeof_long=`cat conftestval`
5648else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5651 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005652 ac_cv_sizeof_long=0
5653fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005654rm -fr conftest*
5655fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005656
5657fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005658echo "$ac_t""$ac_cv_sizeof_long" 1>&6
5659cat >> confdefs.h <<EOF
5660#define SIZEOF_LONG $ac_cv_sizeof_long
5661EOF
5662
5663
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005664echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005665echo "configure:5666: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005666if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5668else
5669 if test "$cross_compiling" = yes; then
5670 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5671else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005672 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005673#line 5674 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005674#include "confdefs.h"
5675#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005676#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005677main()
5678{
5679 FILE *f=fopen("conftestval", "w");
5680 if (!f) exit(1);
5681 fprintf(f, "%d\n", sizeof(long long));
5682 exit(0);
5683}
5684EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005685if { (eval echo configure:5686: \"$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 +00005686then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005687 ac_cv_sizeof_long_long=`cat conftestval`
5688else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005689 echo "configure: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5691 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005692 ac_cv_sizeof_long_long=0
5693fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005694rm -fr conftest*
5695fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005696
5697fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005698echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5699cat >> confdefs.h <<EOF
5700#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5701EOF
5702
5703
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005704SIZEOF_SHORT=$ac_cv_sizeof_short
5705SIZEOF_INT=$ac_cv_sizeof_int
5706SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005707SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
5708
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005709
5710
5711
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005712echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005713echo "configure:5714: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005714if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5715 echo $ac_n "(cached) $ac_c" 1>&6
5716else
5717 ac_cv_c_bigendian=unknown
5718# See if sys/param.h defines the BYTE_ORDER macro.
5719cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005720#line 5721 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005721#include "confdefs.h"
5722#include <sys/types.h>
5723#include <sys/param.h>
5724int main() {
5725
5726#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5727 bogus endian macros
5728#endif
5729; return 0; }
5730EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005731if { (eval echo configure:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005732 rm -rf conftest*
5733 # It does; now see whether it defined to BIG_ENDIAN or not.
5734cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005735#line 5736 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005736#include "confdefs.h"
5737#include <sys/types.h>
5738#include <sys/param.h>
5739int main() {
5740
5741#if BYTE_ORDER != BIG_ENDIAN
5742 not big endian
5743#endif
5744; return 0; }
5745EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005746if { (eval echo configure:5747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005747 rm -rf conftest*
5748 ac_cv_c_bigendian=yes
5749else
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5752 rm -rf conftest*
5753 ac_cv_c_bigendian=no
5754fi
5755rm -f conftest*
5756else
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5759fi
5760rm -f conftest*
5761if test $ac_cv_c_bigendian = unknown; then
5762if test "$cross_compiling" = yes; then
5763 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5764else
5765 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005766#line 5767 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005767#include "confdefs.h"
5768main () {
5769 /* Are we little or big endian? From Harbison&Steele. */
5770 union
5771 {
5772 long l;
5773 char c[sizeof (long)];
5774 } u;
5775 u.l = 1;
5776 exit (u.c[sizeof (long) - 1] == 1);
5777}
5778EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005779if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005780then
5781 ac_cv_c_bigendian=no
5782else
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 rm -fr conftest*
5786 ac_cv_c_bigendian=yes
5787fi
5788rm -fr conftest*
5789fi
5790
5791fi
5792fi
5793
5794echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5795if test $ac_cv_c_bigendian = yes; then
5796 cat >> confdefs.h <<\EOF
5797#define WORDS_BIGENDIAN 1
5798EOF
5799
5800fi
5801
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005802echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005803echo "configure:5804: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005804if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5806else
5807 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005808#line 5809 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005809#include "confdefs.h"
5810#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005811int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005812struct stat stat; stat.st_flags = 0;
5813; return 0; }
5814EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005815if { (eval echo configure:5816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005816 rm -rf conftest*
5817 e2fsprogs_cv_struct_st_flags=yes
5818else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005821 rm -rf conftest*
5822 e2fsprogs_cv_struct_st_flags=no
5823fi
5824rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005825fi
5826
5827echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
5828if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005829 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005830echo "configure:5831: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005831 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5833else
5834 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005835#line 5836 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005836#include "confdefs.h"
5837#include <sys/stat.h>
5838int main() {
5839struct stat stat; stat.st_flags |= UF_IMMUTABLE;
5840; return 0; }
5841EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005842if { (eval echo configure:5843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005843 rm -rf conftest*
5844 e2fsprogs_cv_struct_st_flags_immut=yes
5845else
5846 echo "configure: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5848 rm -rf conftest*
5849 e2fsprogs_cv_struct_st_flags_immut=no
5850fi
5851rm -f conftest*
5852fi
5853
5854 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
5855 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
5856 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005857#define HAVE_STAT_FLAGS 1
5858EOF
5859
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005860 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005861fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005862for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005863do
5864echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005865echo "configure:5866: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005866if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5867 echo $ac_n "(cached) $ac_c" 1>&6
5868else
5869 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005870#line 5871 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005871#include "confdefs.h"
5872/* System header to define __stub macros and hopefully few prototypes,
5873 which can conflict with char $ac_func(); below. */
5874#include <assert.h>
5875/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005876/* We use char because int might match the return type of a gcc2
5877 builtin and then its argument prototype would still apply. */
5878char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005879
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005880int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005881
5882/* The GNU C library defines this for functions which it implements
5883 to always fail with ENOSYS. Some functions are actually named
5884 something starting with __ and the normal name is an alias. */
5885#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5886choke me
5887#else
5888$ac_func();
5889#endif
5890
5891; return 0; }
5892EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005893if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005894 rm -rf conftest*
5895 eval "ac_cv_func_$ac_func=yes"
5896else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005899 rm -rf conftest*
5900 eval "ac_cv_func_$ac_func=no"
5901fi
5902rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005903fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005904
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005905if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5906 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005908 cat >> confdefs.h <<EOF
5909#define $ac_tr_func 1
5910EOF
5911
5912else
5913 echo "$ac_t""no" 1>&6
5914fi
5915done
5916
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005917SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005918echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005919echo "configure:5920: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005920ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
5921if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005922 echo $ac_n "(cached) $ac_c" 1>&6
5923else
5924 ac_save_LIBS="$LIBS"
5925LIBS="-lsocket $LIBS"
5926cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005927#line 5928 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005928#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005929/* Override any gcc2 internal prototype to avoid an error. */
5930/* We use char because int might match the return type of a gcc2
5931 builtin and then its argument prototype would still apply. */
5932char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005933
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005934int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005935socket()
5936; return 0; }
5937EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005938if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005939 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005940 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005941else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005944 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005945 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005946fi
5947rm -f conftest*
5948LIBS="$ac_save_LIBS"
5949
5950fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005951if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005952 echo "$ac_t""yes" 1>&6
5953 SOCKET_LIB=-lsocket
5954else
5955 echo "$ac_t""no" 1>&6
5956fi
5957
5958
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005959DLOPEN_LIB=''
5960echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005961echo "configure:5962: checking for dlopen in -ldl" >&5
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005962ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5963if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5964 echo $ac_n "(cached) $ac_c" 1>&6
5965else
5966 ac_save_LIBS="$LIBS"
5967LIBS="-ldl $LIBS"
5968cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005969#line 5970 "configure"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005970#include "confdefs.h"
5971/* Override any gcc2 internal prototype to avoid an error. */
5972/* We use char because int might match the return type of a gcc2
5973 builtin and then its argument prototype would still apply. */
5974char dlopen();
5975
5976int main() {
5977dlopen()
5978; return 0; }
5979EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005980if { (eval echo configure:5981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -05005981 rm -rf conftest*
5982 eval "ac_cv_lib_$ac_lib_var=yes"
5983else
5984 echo "configure: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5986 rm -rf conftest*
5987 eval "ac_cv_lib_$ac_lib_var=no"
5988fi
5989rm -f conftest*
5990LIBS="$ac_save_LIBS"
5991
5992fi
5993if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5994 echo "$ac_t""yes" 1>&6
5995 DLOPEN_LIB=-ldl
5996cat >> confdefs.h <<\EOF
5997#define HAVE_DLOPEN 1
5998EOF
5999
6000else
6001 echo "$ac_t""no" 1>&6
6002fi
6003
6004
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006005echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04006006echo "configure:6007: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006007if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
6008 echo $ac_n "(cached) $ac_c" 1>&6
6009else
6010 cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04006011#line 6012 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006012#include "confdefs.h"
6013#include <unistd.h>
6014EOF
6015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 egrep "optreset" >/dev/null 2>&1; then
6017 rm -rf conftest*
6018 ac_cv_have_optreset=yes
6019else
6020 rm -rf conftest*
6021 ac_cv_have_optreset=no
6022fi
6023rm -f conftest*
6024
6025fi
6026echo "$ac_t""$ac_cv_have_optreset" 1>&6
6027if test $ac_cv_have_optreset = yes; then
6028 cat >> confdefs.h <<\EOF
6029#define HAVE_OPTRESET 1
6030EOF
6031
6032fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00006033case "$host_os" in
6034linux*)
6035 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006036#define HAVE_EXT2_IOCTLS 1
6037EOF
6038
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00006039 ;;
6040esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006041LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006042CYGWIN_CMT="#"
6043UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006044case "$host_os" in
6045linux*)
6046 LINUX_CMT=
6047 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -04006048cygwin)
6049 CYGWIN_CMT=
6050 UNIX_CMT="#"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006051 EVMS_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006052 ;;
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006053*)
6054 EVMS_CMT="#"
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006055esac
6056
Theodore Ts'offf45482003-04-13 00:44:19 -04006057
6058
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006059case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00006060linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006061 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
6062 root_prefix="";
6063 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006064 fi
6065 ;;
6066esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006067case "$host_os" in
6068linux* | gnu*)
6069 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006070 prefix="/usr";
6071 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04006072 if test "$mandir" = '${prefix}/man' ; then
6073 echo "...and mandir defaults to /usr/share/man"
6074 mandir=/usr/share/man
6075 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006076 fi
6077;;
6078esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006079if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00006080 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006081 root_prefix="$ac_default_prefix"
6082 else
6083 root_prefix="$prefix"
6084 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006085 root_bindir=$bindir
6086 root_sbindir=$sbindir
6087 root_libdir=$libdir
6088 root_sysconfdir=$sysconfdir
6089else
6090 root_bindir='${root_prefix}/bin'
6091 root_sbindir='${root_prefix}/sbin'
6092 root_libdir='${root_prefix}/lib'
6093 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006094fi
6095
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006096
6097
6098
6099
Theodore Ts'oae851481997-04-29 18:13:24 +00006100echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o2a29f132003-05-05 12:08:47 -04006101echo "configure:6102: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00006102if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
6103 echo $ac_n "(cached) $ac_c" 1>&6
6104else
6105 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
6106cat > conftest.$ac_ext <<EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04006107#line 6108 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00006108#include "confdefs.h"
6109#include <stdio.h>
6110int main() {
6111fflush(stdout);
6112; return 0; }
6113EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04006114if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00006115 rm -rf conftest*
6116 ac_cv_e2fsprogs_use_static=yes
6117else
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 rm -rf conftest*
6121 ac_cv_e2fsprogs_use_static=no
6122fi
6123rm -f conftest*
6124LDFLAGS=$SAVE_LDFLAGS
6125fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006126
Theodore Ts'odefde781999-01-04 07:39:19 +00006127case "$host_os" in
6128solaris2.*)
6129 ac_cv_e2fsprogs_use_static=no
6130;;
6131esac
Theodore Ts'oae851481997-04-29 18:13:24 +00006132echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00006133LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00006134if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006135 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00006136fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006137
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006138SS_DIR=`cd ${srcdir}/lib/ss; pwd`
6139ET_DIR=`cd ${srcdir}/lib/et; pwd`
6140
6141
6142if test "$cross_compiling" = yes ; then
6143 DO_TEST_SUITE=
6144else
6145 DO_TEST_SUITE=check
6146fi
6147
Theodore Ts'oc6f35b82003-05-17 16:29:27 -04006148INTL_FLAGS=
6149if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
6150 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
6151fi
6152
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006153test -d lib || mkdir lib
6154test -d include || mkdir include
6155test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00006156test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -05006157for i in MCONFIG Makefile e2fsprogs.spec \
6158 util/Makefile util/subst.conf util/gen-tarball \
6159 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006160 lib/uuid/Makefile lib/uuid/uuid_types.h \
6161 lib/blkid/Makefile lib/blkid/blkid_types.h \
6162 lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
6163 debugfs/Makefile tests/Makefile tests/progs/Makefile \
6164 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
6165 if test -d `dirname ${srcdir}/$i` ; then
6166 outlist="$outlist $i"
6167 fi
6168done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006169trap '' 1 2 15
6170cat > confcache <<\EOF
6171# This file is a shell script that caches the results of configure
6172# tests run on this system so they can be shared between configure
6173# scripts and configure runs. It is not useful on other systems.
6174# If it contains results you don't want to keep, you may remove or edit it.
6175#
6176# By default, configure uses ./config.cache as the cache file,
6177# creating it if it does not exist already. You can give configure
6178# the --cache-file=FILE option to use a different cache file; that is
6179# what configure does when it calls configure scripts in
6180# subdirectories, so they share the cache.
6181# Giving --cache-file=/dev/null disables caching, for debugging configure.
6182# config.status only pays attention to the cache file if you give it the
6183# --recheck option to rerun configure.
6184#
6185EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006186# The following way of writing the cache mishandles newlines in values,
6187# but we know of no workaround that is simple, portable, and efficient.
6188# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006189# Ultrix sh set writes to stderr and can't be redirected directly,
6190# and sets the high bit in the cache file unless we assign to the vars.
6191(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006192 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006193 *ac_space=\ *)
6194 # `set' does not quote correctly, so add quotes (double-quote substitution
6195 # turns \\\\ into \\, and sed turns \\ into \).
6196 sed -n \
6197 -e "s/'/'\\\\''/g" \
6198 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6199 ;;
6200 *)
6201 # `set' quotes correctly as required by POSIX, so do not add quotes.
6202 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6203 ;;
6204 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006205if cmp -s $cache_file confcache; then
6206 :
6207else
6208 if test -w $cache_file; then
6209 echo "updating cache $cache_file"
6210 cat confcache > $cache_file
6211 else
6212 echo "not updating unwritable cache $cache_file"
6213 fi
6214fi
6215rm -f confcache
6216
6217trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6218
6219test "x$prefix" = xNONE && prefix=$ac_default_prefix
6220# Let make expand exec_prefix.
6221test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6222
6223# Any assignment to VPATH causes Sun make to only execute
6224# the first set of double-colon rules, so remove it if not needed.
6225# If there is a colon in the path, we need to keep it.
6226if test "x$srcdir" = x.; then
6227 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6228fi
6229
6230trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6231
6232# Transform confdefs.h into DEFS.
6233# Protect against shell expansion while executing Makefile rules.
6234# Protect against Makefile macro expansion.
6235cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006236s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006237s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
6238s%\[%\\&%g
6239s%\]%\\&%g
6240s%\$%$$%g
6241EOF
6242DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
6243rm -f conftest.defs
6244
6245
6246# Without the "./", some shells look in PATH for config.status.
6247: ${CONFIG_STATUS=./config.status}
6248
6249echo creating $CONFIG_STATUS
6250rm -f $CONFIG_STATUS
6251cat > $CONFIG_STATUS <<EOF
6252#! /bin/sh
6253# Generated automatically by configure.
6254# Run this file to recreate the current configuration.
6255# This directory was configured as follows,
6256# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6257#
6258# $0 $ac_configure_args
6259#
6260# Compiler output produced by configure, useful for debugging
6261# configure, is in ./config.log if it exists.
6262
6263ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6264for ac_option
6265do
6266 case "\$ac_option" in
6267 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6268 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6269 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6270 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006271 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006272 exit 0 ;;
6273 -help | --help | --hel | --he | --h)
6274 echo "\$ac_cs_usage"; exit 0 ;;
6275 *) echo "\$ac_cs_usage"; exit 1 ;;
6276 esac
6277done
6278
6279ac_given_srcdir=$srcdir
6280ac_given_INSTALL="$INSTALL"
6281
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006282trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006283EOF
6284cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006285
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006286# Protect against being on the right side of a sed subst in config.status.
6287sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6288 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006289$ac_vpsub
6290$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006291s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006292s%@CFLAGS@%$CFLAGS%g
6293s%@CPPFLAGS@%$CPPFLAGS%g
6294s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006295s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006296s%@DEFS@%$DEFS%g
6297s%@LDFLAGS@%$LDFLAGS%g
6298s%@LIBS@%$LIBS%g
6299s%@exec_prefix@%$exec_prefix%g
6300s%@prefix@%$prefix%g
6301s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006302s%@bindir@%$bindir%g
6303s%@sbindir@%$sbindir%g
6304s%@libexecdir@%$libexecdir%g
6305s%@datadir@%$datadir%g
6306s%@sysconfdir@%$sysconfdir%g
6307s%@sharedstatedir@%$sharedstatedir%g
6308s%@localstatedir@%$localstatedir%g
6309s%@libdir@%$libdir%g
6310s%@includedir@%$includedir%g
6311s%@oldincludedir@%$oldincludedir%g
6312s%@infodir@%$infodir%g
6313s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006314/@MCONFIG@/r $MCONFIG
6315s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006316s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
6317s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
Theodore Ts'obff0cc92003-03-23 01:37:53 -05006318s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006319s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006320s%@host@%$host%g
6321s%@host_alias@%$host_alias%g
6322s%@host_cpu@%$host_cpu%g
6323s%@host_vendor@%$host_vendor%g
6324s%@host_os@%$host_os%g
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006325s%@EVMS_CMT@%$EVMS_CMT%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006326s%@CC@%$CC%g
6327s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00006328s%@CPP@%$CPP%g
6329s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04006330s%@HTREE_CMT@%$HTREE_CMT%g
6331s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05006332s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006333s%@DLL_CMT@%$DLL_CMT%g
6334/@MAKEFILE_DLL@/r $MAKEFILE_DLL
6335s%@MAKEFILE_DLL@%%g
6336s%@ELF_CMT@%$ELF_CMT%g
6337/@MAKEFILE_ELF@/r $MAKEFILE_ELF
6338s%@MAKEFILE_ELF@%%g
6339s%@BSDLIB_CMT@%$BSDLIB_CMT%g
6340/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
6341s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006342s%@PROFILE_CMT@%$PROFILE_CMT%g
6343/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
6344s%@MAKEFILE_PROFILE@%%g
6345s%@CHECKER_CMT@%$CHECKER_CMT%g
6346/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
6347s%@MAKEFILE_CHECKER@%%g
6348s%@LIB_EXT@%$LIB_EXT%g
6349s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
6350s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05006351s%@SWAPFS_CMT@%$SWAPFS_CMT%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006352s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
6353s%@IMAGER_CMT@%$IMAGER_CMT%g
6354s%@RESIZER_CMT@%$RESIZER_CMT%g
6355s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
6356s%@FSCK_PROG@%$FSCK_PROG%g
6357s%@FSCK_MAN@%$FSCK_MAN%g
6358/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
6359s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006360s%@PACKAGE@%$PACKAGE%g
6361s%@VERSION@%$VERSION%g
6362s%@SET_MAKE@%$SET_MAKE%g
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006363s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6364s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6365s%@INSTALL_DATA@%$INSTALL_DATA%g
6366s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006367s%@MSGFMT@%$MSGFMT%g
6368s%@GMSGFMT@%$GMSGFMT%g
6369s%@XGETTEXT@%$XGETTEXT%g
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006370s%@MSGMERGE@%$MSGMERGE%g
6371s%@RANLIB@%$RANLIB%g
6372s%@ALLOCA@%$ALLOCA%g
6373s%@GLIBC21@%$GLIBC21%g
6374s%@LIBICONV@%$LIBICONV%g
6375s%@LTLIBICONV@%$LTLIBICONV%g
6376s%@INTLBISON@%$INTLBISON%g
6377s%@USE_NLS@%$USE_NLS%g
6378s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006379s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006380s%@CATOBJEXT@%$CATOBJEXT%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006381s%@INTLOBJS@%$INTLOBJS%g
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006382s%@DATADIRNAME@%$DATADIRNAME%g
6383s%@INSTOBJEXT@%$INSTOBJEXT%g
6384s%@GENCAT@%$GENCAT%g
6385s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
6386s%@INTLLIBS@%$INTLLIBS%g
6387s%@LIBINTL@%$LIBINTL%g
6388s%@LTLIBINTL@%$LTLIBINTL%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006389s%@POSUB@%$POSUB%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00006390s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006391s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006392s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006393s%@MV@%$MV%g
6394s%@CP@%$CP%g
6395s%@RM@%$RM%g
6396s%@CHMOD@%$CHMOD%g
6397s%@AWK@%$AWK%g
6398s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006399s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006400s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006401s%@build@%$build%g
6402s%@build_alias@%$build_alias%g
6403s%@build_cpu@%$build_cpu%g
6404s%@build_vendor@%$build_vendor%g
6405s%@build_os@%$build_os%g
6406s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006407s%@STRIP@%$STRIP%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00006408s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006409s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
6410s%@SIZEOF_INT@%$SIZEOF_INT%g
6411s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006412s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006413s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006414s%@DLOPEN_LIB@%$DLOPEN_LIB%g
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006415s%@LINUX_CMT@%$LINUX_CMT%g
Theodore Ts'offf45482003-04-13 00:44:19 -04006416s%@CYGWIN_CMT@%$CYGWIN_CMT%g
6417s%@UNIX_CMT@%$UNIX_CMT%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006418s%@root_prefix@%$root_prefix%g
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006419s%@root_bindir@%$root_bindir%g
6420s%@root_sbindir@%$root_sbindir%g
6421s%@root_libdir@%$root_libdir%g
6422s%@root_sysconfdir@%$root_sysconfdir%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006423s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006424s%@SS_DIR@%$SS_DIR%g
6425s%@ET_DIR@%$ET_DIR%g
6426s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
Theodore Ts'oc6f35b82003-05-17 16:29:27 -04006427s%@INTL_FLAGS@%$INTL_FLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006428
6429CEOF
6430EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006431
6432cat >> $CONFIG_STATUS <<\EOF
6433
6434# Split the substitutions into bite-sized pieces for seds with
6435# small command number limits, like on Digital OSF/1 and HP-UX.
6436ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6437ac_file=1 # Number of current file.
6438ac_beg=1 # First line for current file.
6439ac_end=$ac_max_sed_cmds # Line after last line for current file.
6440ac_more_lines=:
6441ac_sed_cmds=""
6442while $ac_more_lines; do
6443 if test $ac_beg -gt 1; then
6444 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6445 else
6446 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6447 fi
6448 if test ! -s conftest.s$ac_file; then
6449 ac_more_lines=false
6450 rm -f conftest.s$ac_file
6451 else
6452 if test -z "$ac_sed_cmds"; then
6453 ac_sed_cmds="sed -f conftest.s$ac_file"
6454 else
6455 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6456 fi
6457 ac_file=`expr $ac_file + 1`
6458 ac_beg=$ac_end
6459 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6460 fi
6461done
6462if test -z "$ac_sed_cmds"; then
6463 ac_sed_cmds=cat
6464fi
6465EOF
6466
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006467cat >> $CONFIG_STATUS <<EOF
6468
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006469CONFIG_FILES=\${CONFIG_FILES-"$outlist"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006470EOF
6471cat >> $CONFIG_STATUS <<\EOF
6472for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006473 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006474 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006475 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006476 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6477 *) ac_file_in="${ac_file}.in" ;;
6478 esac
6479
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006480 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006481
6482 # Remove last slash and all that follows it. Not all systems have dirname.
6483 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6484 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6485 # The file is in a subdirectory.
6486 test ! -d "$ac_dir" && mkdir "$ac_dir"
6487 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6488 # A "../" for each directory in $ac_dir_suffix.
6489 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6490 else
6491 ac_dir_suffix= ac_dots=
6492 fi
6493
6494 case "$ac_given_srcdir" in
6495 .) srcdir=.
6496 if test -z "$ac_dots"; then top_srcdir=.
6497 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6498 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6499 *) # Relative path.
6500 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6501 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6502 esac
6503
6504 case "$ac_given_INSTALL" in
6505 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6506 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6507 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006508
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006509 echo creating "$ac_file"
6510 rm -f "$ac_file"
6511 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6512 case "$ac_file" in
6513 *Makefile*) ac_comsub="1i\\
6514# $configure_input" ;;
6515 *) ac_comsub= ;;
6516 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006517
6518 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 +00006519 sed -e "$ac_comsub
6520s%@configure_input@%$configure_input%g
6521s%@srcdir@%$srcdir%g
6522s%@top_srcdir@%$top_srcdir%g
6523s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006524" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006525fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006526rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006527
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006528EOF
6529cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006530# Capture the value of obsolete ALL_LINGUAS because we need it to compute
6531 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6532 # from automake.
6533 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
6534 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6535 LINGUAS="${LINGUAS-%UNSET%}"
6536
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006537
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006538EOF
6539cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006540
6541 for ac_file in $CONFIG_FILES; do
6542 # Support "outfile[:infile[:infile...]]"
6543 case "$ac_file" in
6544 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006545 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006546 # PO directories have a Makefile.in generated from Makefile.in.in.
6547 case "$ac_file" in */Makefile.in)
6548 # Adjust a relative srcdir.
6549 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
6550 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
6551 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
6552 # In autoconf-2.13 it is called $ac_given_srcdir.
6553 # In autoconf-2.50 it is called $srcdir.
6554 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
6555 case "$ac_given_srcdir" in
6556 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
6557 /*) top_srcdir="$ac_given_srcdir" ;;
6558 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
6559 esac
6560 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
6561 rm -f "$ac_dir/POTFILES"
6562 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
6563 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
6564 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
6565 # on $ac_dir but don't depend on user-specified configuration
6566 # parameters.
6567 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
6568 # The LINGUAS file contains the set of available languages.
6569 if test -n "$ALL_LINGUAS"; then
6570 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
6571 fi
6572 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
6573 # Hide the ALL_LINGUAS assigment from automake.
6574 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
6575 fi
6576 case "$ac_given_srcdir" in
6577 .) srcdirpre= ;;
6578 *) srcdirpre='$(srcdir)/' ;;
6579 esac
6580 POFILES=
6581 GMOFILES=
6582 UPDATEPOFILES=
6583 DUMMYPOFILES=
6584 for lang in $ALL_LINGUAS; do
6585 POFILES="$POFILES $srcdirpre$lang.po"
6586 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
6587 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
6588 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
6589 done
6590 # CATALOGS depends on both $ac_dir and the user's LINGUAS
6591 # environment variable.
6592 INST_LINGUAS=
6593 if test -n "$ALL_LINGUAS"; then
6594 for presentlang in $ALL_LINGUAS; do
6595 useit=no
6596 if test "%UNSET%" != "$LINGUAS"; then
6597 desiredlanguages="$LINGUAS"
6598 else
6599 desiredlanguages="$ALL_LINGUAS"
6600 fi
6601 for desiredlang in $desiredlanguages; do
6602 # Use the presentlang catalog if desiredlang is
6603 # a. equal to presentlang, or
6604 # b. a variant of presentlang (because in this case,
6605 # presentlang can be used as a fallback for messages
6606 # which are not translated in the desiredlang catalog).
6607 case "$desiredlang" in
6608 "$presentlang"*) useit=yes;;
6609 esac
6610 done
6611 if test $useit = yes; then
6612 INST_LINGUAS="$INST_LINGUAS $presentlang"
6613 fi
6614 done
6615 fi
6616 CATALOGS=
6617 if test -n "$INST_LINGUAS"; then
6618 for lang in $INST_LINGUAS; do
6619 CATALOGS="$CATALOGS $lang.gmo"
6620 done
6621 fi
6622 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
6623 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
6624 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
6625 if test -f "$f"; then
6626 case "$f" in
6627 *.orig | *.bak | *~) ;;
6628 *) cat "$f" >> "$ac_dir/Makefile" ;;
6629 esac
6630 fi
6631 done
6632 fi
6633 ;;
6634 esac
6635 done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006636
6637exit 0
6638EOF
6639chmod +x $CONFIG_STATUS
6640rm -fr confdefs* $ac_clean_files
6641test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6642