blob: 3c04e1d42afeb3fc07be3026e154432c68a4efd5 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010# Defaults:
11ac_help=
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012ac_default_prefix=/usr/local
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013# Any additions from configure.in:
14ac_help="$ac_help
15 --with-diet-libc Use diet libc"
16ac_help="$ac_help
17 --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
25 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
26ac_help="$ac_help
27 --enable-compression enable EXPERIMENTAL compression support"
28ac_help="$ac_help
29 --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
33 --disable-evms don't build EVMS plugin"
34ac_help="$ac_help
35 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)"
36ac_help="$ac_help
37 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.2)"
38ac_help="$ac_help
39 --enable-dll-shlibs select DLL libraries"
40ac_help="$ac_help
41 --enable-elf-shlibs select ELF shared libraries"
42ac_help="$ac_help
43 --enable-bsd-shlibs select BSD shared libraries"
44ac_help="$ac_help
45 --enable-profile build profiling libraries"
46ac_help="$ac_help
47 --enable-checker build checker libraries"
48ac_help="$ac_help
49 --enable-jbd-debug enable journal debugging"
50ac_help="$ac_help
51 --enable-blkid-debug enable blkid debugging"
52ac_help="$ac_help
53 --enable-testio-debug enable the use of the test I/O manager for debugging"
54ac_help="$ac_help
55 --disable-swapfs disable support of legacy byte-swapped filesystems"
56ac_help="$ac_help
57 --disable-debugfs disable support of debugfs program"
58ac_help="$ac_help
59 --disable-imager disable support of e2image program"
60ac_help="$ac_help
61 --disable-resizer disable support of e2resize program"
62ac_help="$ac_help
63 --enable-dynamic-e2fsck build e2fsck dynamically"
64ac_help="$ac_help
65 --enable-fsck build fsck wrapper program"
66ac_help="$ac_help
Theodore Ts'o5d407732004-09-18 14:53:14 -040067 --enable-e2initrd-helper build e2initrd-helper program"
68ac_help="$ac_help
Theodore Ts'o93636bd2003-07-12 02:45:05 -040069 --enable-old-bitops Use old (non-standard but native) bitmask operations"
70ac_help="$ac_help
71 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
72ac_help="$ac_help
73 --disable-rpath do not hardcode runtime library paths"
74ac_help="$ac_help
75 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
76 --without-libiconv-prefix don't search for libiconv in includedir and libdir"
77ac_help="$ac_help
78 --disable-nls do not use Native Language Support"
79ac_help="$ac_help
80 --with-included-gettext use the GNU gettext library included here"
81ac_help="$ac_help
82 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
83 --without-libintl-prefix don't search for libintl in includedir and libdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000084
85# Initialize some variables set by options.
86# The variables have the same names as the options, with
87# dashes changed to underlines.
Theodore Ts'o93636bd2003-07-12 02:45:05 -040088build=NONE
89cache_file=./config.cache
Theodore Ts'o50e1e101997-04-26 13:58:21 +000090exec_prefix=NONE
Theodore Ts'o93636bd2003-07-12 02:45:05 -040091host=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +000092no_create=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040093nonopt=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +000094no_recursion=
95prefix=NONE
96program_prefix=NONE
97program_suffix=NONE
98program_transform_name=s,x,x,
99silent=
100site=
101srcdir=
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400102target=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000103verbose=
104x_includes=NONE
105x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000106bindir='${exec_prefix}/bin'
107sbindir='${exec_prefix}/sbin'
108libexecdir='${exec_prefix}/libexec'
109datadir='${prefix}/share'
110sysconfdir='${prefix}/etc'
111sharedstatedir='${prefix}/com'
112localstatedir='${prefix}/var'
113libdir='${exec_prefix}/lib'
114includedir='${prefix}/include'
115oldincludedir='/usr/include'
116infodir='${prefix}/info'
117mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000118
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400119# Initialize some other variables.
120subdirs=
121MFLAGS= MAKEFLAGS=
122SHELL=${CONFIG_SHELL-/bin/sh}
123# Maximum number of lines to put in a shell here document.
124ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000125
126ac_prev=
127for ac_option
128do
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400129
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000130 # If the previous option needs an argument, assign it.
131 if test -n "$ac_prev"; then
132 eval "$ac_prev=\$ac_option"
133 ac_prev=
134 continue
135 fi
136
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400137 case "$ac_option" in
138 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
139 *) ac_optarg= ;;
140 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000141
142 # Accept the important Cygnus configure options, so we can diagnose typos.
143
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400144 case "$ac_option" in
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000145
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000146 -bindir | --bindir | --bindi | --bind | --bin | --bi)
147 ac_prev=bindir ;;
148 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400149 bindir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000150
151 -build | --build | --buil | --bui | --bu)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400152 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000153 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400154 build="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000155
156 -cache-file | --cache-file | --cache-fil | --cache-fi \
157 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
158 ac_prev=cache_file ;;
159 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
160 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400161 cache_file="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000162
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000163 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
164 ac_prev=datadir ;;
165 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
166 | --da=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400167 datadir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000168
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000169 -disable-* | --disable-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400170 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000171 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400172 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 fi
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000177
178 -enable-* | --enable-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400179 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000180 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400181 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 fi
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 case "$ac_option" in
186 *=*) ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000187 *) ac_optarg=yes ;;
188 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400189 eval "enable_${ac_feature}='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000190
191 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
192 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
193 | --exec | --exe | --ex)
194 ac_prev=exec_prefix ;;
195 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
196 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
197 | --exec=* | --exe=* | --ex=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400198 exec_prefix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000199
200 -gas | --gas | --ga | --g)
201 # Obsolete; use --with-gas.
202 with_gas=yes ;;
203
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400204 -help | --help | --hel | --he)
205 # Omit some internal or obsolete options to make the list less imposing.
206 # This message is too long to be a string in the A/UX 3.1 sh.
207 cat << EOF
208Usage: configure [options] [host]
209Options: [defaults in brackets after descriptions]
210Configuration:
211 --cache-file=FILE cache test results in FILE
212 --help print this message
213 --no-create do not create output files
214 --quiet, --silent do not print \`checking...' messages
215 --version print the version of autoconf that created configure
216Directory and file names:
217 --prefix=PREFIX install architecture-independent files in PREFIX
218 [$ac_default_prefix]
219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
220 [same as prefix]
221 --bindir=DIR user executables in DIR [EPREFIX/bin]
222 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
223 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
224 --datadir=DIR read-only architecture-independent data in DIR
225 [PREFIX/share]
226 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
227 --sharedstatedir=DIR modifiable architecture-independent data in DIR
228 [PREFIX/com]
229 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
230 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
231 --includedir=DIR C header files in DIR [PREFIX/include]
232 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
233 --infodir=DIR info documentation in DIR [PREFIX/info]
234 --mandir=DIR man documentation in DIR [PREFIX/man]
235 --srcdir=DIR find the sources in DIR [configure dir or ..]
236 --program-prefix=PREFIX prepend PREFIX to installed program names
237 --program-suffix=SUFFIX append SUFFIX to installed program names
238 --program-transform-name=PROGRAM
239 run sed PROGRAM on installed program names
240EOF
241 cat << EOF
242Host type:
243 --build=BUILD configure for building on BUILD [BUILD=HOST]
244 --host=HOST configure for HOST [guessed]
245 --target=TARGET configure for TARGET [TARGET=HOST]
246Features and packages:
247 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
248 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
249 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
250 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
251 --x-includes=DIR X include files are in DIR
252 --x-libraries=DIR X library files are in DIR
253EOF
254 if test -n "$ac_help"; then
255 echo "--enable and --with options recognized:$ac_help"
256 fi
257 exit 0 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000258
259 -host | --host | --hos | --ho)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400260 ac_prev=host ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000261 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400262 host="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000263
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000264 -includedir | --includedir | --includedi | --included | --include \
265 | --includ | --inclu | --incl | --inc)
266 ac_prev=includedir ;;
267 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
268 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400269 includedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000270
271 -infodir | --infodir | --infodi | --infod | --info | --inf)
272 ac_prev=infodir ;;
273 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400274 infodir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000275
276 -libdir | --libdir | --libdi | --libd)
277 ac_prev=libdir ;;
278 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400279 libdir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000280
281 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
282 | --libexe | --libex | --libe)
283 ac_prev=libexecdir ;;
284 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
285 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400286 libexecdir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000287
288 -localstatedir | --localstatedir | --localstatedi | --localstated \
289 | --localstate | --localstat | --localsta | --localst \
290 | --locals | --local | --loca | --loc | --lo)
291 ac_prev=localstatedir ;;
292 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
293 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
294 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400295 localstatedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000296
297 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
298 ac_prev=mandir ;;
299 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400300 mandir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000301
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000302 -nfp | --nfp | --nf)
303 # Obsolete; use --without-fp.
304 with_fp=no ;;
305
306 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
307 | --no-cr | --no-c)
308 no_create=yes ;;
309
310 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
311 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
312 no_recursion=yes ;;
313
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000314 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
315 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
316 | --oldin | --oldi | --old | --ol | --o)
317 ac_prev=oldincludedir ;;
318 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
319 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
320 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400321 oldincludedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000322
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000323 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
324 ac_prev=prefix ;;
325 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400326 prefix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000327
328 -program-prefix | --program-prefix | --program-prefi | --program-pref \
329 | --program-pre | --program-pr | --program-p)
330 ac_prev=program_prefix ;;
331 -program-prefix=* | --program-prefix=* | --program-prefi=* \
332 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400333 program_prefix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000334
335 -program-suffix | --program-suffix | --program-suffi | --program-suff \
336 | --program-suf | --program-su | --program-s)
337 ac_prev=program_suffix ;;
338 -program-suffix=* | --program-suffix=* | --program-suffi=* \
339 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400340 program_suffix="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000341
342 -program-transform-name | --program-transform-name \
343 | --program-transform-nam | --program-transform-na \
344 | --program-transform-n | --program-transform- \
345 | --program-transform | --program-transfor \
346 | --program-transfo | --program-transf \
347 | --program-trans | --program-tran \
348 | --progr-tra | --program-tr | --program-t)
349 ac_prev=program_transform_name ;;
350 -program-transform-name=* | --program-transform-name=* \
351 | --program-transform-nam=* | --program-transform-na=* \
352 | --program-transform-n=* | --program-transform-=* \
353 | --program-transform=* | --program-transfor=* \
354 | --program-transfo=* | --program-transf=* \
355 | --program-trans=* | --program-tran=* \
356 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400357 program_transform_name="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000358
359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
360 | -silent | --silent | --silen | --sile | --sil)
361 silent=yes ;;
362
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000363 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
364 ac_prev=sbindir ;;
365 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
366 | --sbi=* | --sb=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400367 sbindir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000368
369 -sharedstatedir | --sharedstatedir | --sharedstatedi \
370 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
371 | --sharedst | --shareds | --shared | --share | --shar \
372 | --sha | --sh)
373 ac_prev=sharedstatedir ;;
374 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
375 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
376 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
377 | --sha=* | --sh=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400378 sharedstatedir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000379
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000380 -site | --site | --sit)
381 ac_prev=site ;;
382 -site=* | --site=* | --sit=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400383 site="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000384
385 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
386 ac_prev=srcdir ;;
387 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400388 srcdir="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000389
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000390 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
391 | --syscon | --sysco | --sysc | --sys | --sy)
392 ac_prev=sysconfdir ;;
393 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
394 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400395 sysconfdir="$ac_optarg" ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000396
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000397 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400398 ac_prev=target ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000399 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400400 target="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000401
402 -v | -verbose | --verbose | --verbos | --verbo | --verb)
403 verbose=yes ;;
404
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400405 -version | --version | --versio | --versi | --vers)
406 echo "configure generated by autoconf version 2.13"
407 exit 0 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000408
409 -with-* | --with-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400410 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000411 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400412 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000415 ac_package=`echo $ac_package| sed 's/-/_/g'`
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400416 case "$ac_option" in
417 *=*) ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000418 *) ac_optarg=yes ;;
419 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400420 eval "with_${ac_package}='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000421
422 -without-* | --without-*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400423 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000424 # Reject names that are not valid shell variable names.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400425 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 fi
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000430
431 --x)
432 # Obsolete; use --with-x.
433 with_x=yes ;;
434
435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
436 | --x-incl | --x-inc | --x-in | --x-i)
437 ac_prev=x_includes ;;
438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400440 x_includes="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000441
442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
444 ac_prev=x_libraries ;;
445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400447 x_libraries="$ac_optarg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000448
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400449 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000450 ;;
451
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000452 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400453 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
454 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 fi
456 if test "x$nonopt" != xNONE; then
457 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
458 fi
459 nonopt="$ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000460 ;;
461
462 esac
463done
464
465if test -n "$ac_prev"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400466 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000467fi
468
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400469trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470
471# File descriptor usage:
472# 0 standard input
473# 1 file creation
474# 2 errors and warnings
475# 3 some systems may open it to /dev/tty
476# 4 used on the Kubota Titan
477# 6 checking for... messages and results
478# 5 compiler messages saved in config.log
479if test "$silent" = yes; then
480 exec 6>/dev/null
481else
482 exec 6>&1
483fi
484exec 5>./config.log
485
486echo "\
487This file contains any messages produced by compilers while
488running configure, to aid debugging if configure makes a mistake.
489" 1>&5
490
491# Strip out --no-create and --no-recursion so they do not pile up.
492# Also quote any args containing shell metacharacters.
493ac_configure_args=
494for ac_arg
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000495do
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400496 case "$ac_arg" in
497 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
498 | --no-cr | --no-c) ;;
499 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
500 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
502 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
503 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000504 esac
505done
506
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400507# NLS nuisances.
508# Only set these to C if already set. These must not be set unconditionally
509# because not all systems understand e.g. LANG=C (notably SCO).
510# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
511# Non-C LC_CTYPE values break the ctype check.
512if test "${LANG+set}" = set; then LANG=C; export LANG; fi
513if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
514if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
515if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000516
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400517# confdefs.h avoids OS command line length limits that DEFS can exceed.
518rm -rf conftest* confdefs.h
519# AIX cpp loses on an empty file, so make sure it contains at least a newline.
520echo > confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000521
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400522# A filename unique to this package, relative to the directory that
523# configure is in, which we can look for to find out if srcdir is correct.
524ac_unique_file=version.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000525
526# Find the source files, if location was not specified.
527if test -z "$srcdir"; then
528 ac_srcdir_defaulted=yes
529 # Try the directory containing this script, then its parent.
530 ac_prog=$0
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400531 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000532 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
533 srcdir=$ac_confdir
534 if test ! -r $srcdir/$ac_unique_file; then
535 srcdir=..
536 fi
537else
538 ac_srcdir_defaulted=no
539fi
540if test ! -r $srcdir/$ac_unique_file; then
541 if test "$ac_srcdir_defaulted" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400542 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000543 else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400544 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000545 fi
546fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400547srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000548
549# Prefer explicitly selected file to automatically selected ones.
550if test -z "$CONFIG_SITE"; then
551 if test "x$prefix" != xNONE; then
552 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
553 else
554 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 fi
556fi
557for ac_site_file in $CONFIG_SITE; do
558 if test -r "$ac_site_file"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400559 echo "loading site script $ac_site_file"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000560 . "$ac_site_file"
561 fi
562done
563
564if test -r "$cache_file"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400565 echo "loading cache $cache_file"
566 . $cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000567else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400568 echo "creating cache $cache_file"
569 > $cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000570fi
571
572ac_ext=c
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400573# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000574ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400575ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
576ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
577cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000578
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400579ac_exeext=
580ac_objext=o
581if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
582 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
583 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
584 ac_n= ac_c='
585' ac_t=' '
586 else
587 ac_n=-n ac_c= ac_t=
588 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000589else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400590 ac_n= ac_c='\c' ac_t=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000591fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400592
593# Check whether --with-gnu-ld or --without-gnu-ld was given.
594if test "${with_gnu_ld+set}" = set; then
595 withval="$with_gnu_ld"
596 test "$withval" = no || with_gnu_ld=yes
597else
598 with_gnu_ld=no
599fi
600
601ac_prog=ld
602if test "$GCC" = yes; then
603 # Check if gcc -print-prog-name=ld gives a path.
604 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400605echo "configure:606: checking for ld used by GCC" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400606 case $host in
607 *-*-mingw*)
608 # gcc leaves a trailing carriage return which upsets mingw
609 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
610 *)
611 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
612 esac
613 case $ac_prog in
614 # Accept absolute paths.
615 [\\/]* | [A-Za-z]:[\\/]*)
616 re_direlt='/[^/][^/]*/\.\./'
617 # Canonicalize the path of ld
618 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
619 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
620 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
621 done
622 test -z "$LD" && LD="$ac_prog"
623 ;;
624 "")
625 # If it fails, then pretend we aren't using GCC.
626 ac_prog=ld
627 ;;
628 *)
629 # If it is relative, then search for the first ld in PATH.
630 with_gnu_ld=unknown
631 ;;
632 esac
633elif test "$with_gnu_ld" = yes; then
634 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400635echo "configure:636: checking for GNU ld" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400636else
637 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400638echo "configure:639: checking for non-GNU ld" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400639fi
640if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
642else
643 if test -z "$LD"; then
644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
645 for ac_dir in $PATH; do
646 test -z "$ac_dir" && ac_dir=.
647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
648 acl_cv_path_LD="$ac_dir/$ac_prog"
649 # Check to see if the program is GNU ld. I'd rather use --version,
650 # but apparently some GNU ld's only accept -v.
651 # Break only if it was the GNU/non-GNU ld that we prefer.
652 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
653 test "$with_gnu_ld" != no && break
654 else
655 test "$with_gnu_ld" != yes && break
656 fi
657 fi
658 done
659 IFS="$ac_save_ifs"
660else
661 acl_cv_path_LD="$LD" # Let the user override the test with a path.
662fi
663fi
664
665LD="$acl_cv_path_LD"
666if test -n "$LD"; then
667 echo "$ac_t""$LD" 1>&6
668else
669 echo "$ac_t""no" 1>&6
670fi
671test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
672echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400673echo "configure:674: checking if the linker ($LD) is GNU ld" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400674if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676else
677 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
678if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
679 acl_cv_prog_gnu_ld=yes
680else
681 acl_cv_prog_gnu_ld=no
682fi
683fi
684
685echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6
686with_gnu_ld=$acl_cv_prog_gnu_ld
687
688
689
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000690
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000691MCONFIG=./MCONFIG
692
Theodore Ts'o74becf31997-04-26 14:37:06 +0000693BINARY_TYPE=bin
694E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
695 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
696DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
697 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -0500698E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +0000699MONTH=`echo $DATE | awk -F- '{print $2}'`
700YEAR=`echo $DATE | awk -F- '{print $3}'`
701
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000702if expr $YEAR ">" 1900 > /dev/null ; then
703 E2FSPROGS_YEAR=$YEAR
704elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000705 E2FSPROGS_YEAR=19$YEAR
706else
707 E2FSPROGS_YEAR=20$YEAR
708fi
709
710case $MONTH in
711Jan) E2FSPROGS_MONTH="January" ;;
712Feb) E2FSPROGS_MONTH="February" ;;
713Mar) E2FSPROGS_MONTH="March" ;;
714Apr) E2FSPROGS_MONTH="April" ;;
715May) E2FSPROGS_MONTH="May" ;;
716Jun) E2FSPROGS_MONTH="June" ;;
717Jul) E2FSPROGS_MONTH="July" ;;
718Aug) E2FSPROGS_MONTH="August" ;;
719Sep) E2FSPROGS_MONTH="September" ;;
720Oct) E2FSPROGS_MONTH="October" ;;
721Nov) E2FSPROGS_MONTH="November" ;;
722Dec) E2FSPROGS_MONTH="December" ;;
723*) echo "Unknown month $MONTH??" ;;
724esac
725
726unset DATE MONTH YEAR
727echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
728echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
729
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400730
731
732
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000733ac_aux_dir=
734for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
735 if test -f $ac_dir/install-sh; then
736 ac_aux_dir=$ac_dir
737 ac_install_sh="$ac_aux_dir/install-sh -c"
738 break
739 elif test -f $ac_dir/install.sh; then
740 ac_aux_dir=$ac_dir
741 ac_install_sh="$ac_aux_dir/install.sh -c"
742 break
743 fi
744done
745if test -z "$ac_aux_dir"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400746 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000747fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400748ac_config_guess=$ac_aux_dir/config.guess
749ac_config_sub=$ac_aux_dir/config.sub
750ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
751
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000752
753# Make sure we can run config.sub.
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400754if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
755else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000756fi
757
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400758echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400759echo "configure:760: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000760
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400761host_alias=$host
762case "$host_alias" in
763NONE)
764 case $nonopt in
765 NONE)
766 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
767 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
768 fi ;;
769 *) host_alias=$nonopt ;;
770 esac ;;
771esac
772
773host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
774host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
777echo "$ac_t""$host" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000778
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400779EVMS_CMT=
Theodore Ts'od21ae6c2003-05-05 09:00:24 -0400780# Check whether --with-diet-libc or --without-diet-libc was given.
781if test "${with_diet_libc+set}" = set; then
782 withval="$with_diet_libc"
783 CC="diet cc -nostdinc"
784EVMS_CMT="#"
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400785echo "$ac_t""CC=$CC" 1>&6
786fi
Theodore Ts'o74becf31997-04-26 14:37:06 +0000787# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000788if test "${with_cc+set}" = set; then
789 withval="$with_cc"
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400790 echo "$ac_t""CC=$withval" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +0000791CC=$withval
792else
793 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400794echo "$ac_t""CC defaults to $CC" 1>&6
795fi
796export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +0000797
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400798# Extract the first word of "gcc", so it can be a program name with args.
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400799set dummy gcc; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400800echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400801echo "configure:802: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400802if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000804else
805 if test -n "$CC"; then
806 ac_cv_prog_CC="$CC" # Let the user override the test.
807else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
809 ac_dummy="$PATH"
810 for ac_dir in $ac_dummy; do
811 test -z "$ac_dir" && ac_dir=.
812 if test -f $ac_dir/$ac_word; then
813 ac_cv_prog_CC="gcc"
814 break
815 fi
816 done
817 IFS="$ac_save_ifs"
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400818fi
819fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400820CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400821if test -n "$CC"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400822 echo "$ac_t""$CC" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400823else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400824 echo "$ac_t""no" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400825fi
826
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400827if test -z "$CC"; then
828 # Extract the first word of "cc", so it can be a program name with args.
829set dummy cc; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400830echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400831echo "configure:832: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400832if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400834else
835 if test -n "$CC"; then
836 ac_cv_prog_CC="$CC" # Let the user override the test.
837else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000839 ac_prog_rejected=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400840 ac_dummy="$PATH"
841 for ac_dir in $ac_dummy; do
842 test -z "$ac_dir" && ac_dir=.
843 if test -f $ac_dir/$ac_word; then
844 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
845 ac_prog_rejected=yes
846 continue
847 fi
848 ac_cv_prog_CC="cc"
849 break
850 fi
851 done
852 IFS="$ac_save_ifs"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000853if test $ac_prog_rejected = yes; then
854 # We found a bogon in the path, so make sure we never use it.
855 set dummy $ac_cv_prog_CC
856 shift
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400857 if test $# -gt 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000858 # We chose a different compiler from the bogus one.
859 # However, it has the same basename, so the bogon will be chosen
860 # first if we set CC to just the basename; use the full file name.
861 shift
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400862 set dummy "$ac_dir/$ac_word" "$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000863 shift
864 ac_cv_prog_CC="$@"
865 fi
866fi
867fi
868fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400869CC="$ac_cv_prog_CC"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000870if test -n "$CC"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400871 echo "$ac_t""$CC" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000872else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400873 echo "$ac_t""no" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000874fi
875
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400876 if test -z "$CC"; then
877 case "`uname -s`" in
878 *win32* | *WIN32*)
879 # Extract the first word of "cl", so it can be a program name with args.
880set dummy cl; ac_word=$2
881echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400882echo "configure:883: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400883if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000885else
886 if test -n "$CC"; then
887 ac_cv_prog_CC="$CC" # Let the user override the test.
888else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
890 ac_dummy="$PATH"
891 for ac_dir in $ac_dummy; do
892 test -z "$ac_dir" && ac_dir=.
893 if test -f $ac_dir/$ac_word; then
894 ac_cv_prog_CC="cl"
895 break
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400896 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400897 done
898 IFS="$ac_save_ifs"
899fi
900fi
901CC="$ac_cv_prog_CC"
902if test -n "$CC"; then
903 echo "$ac_t""$CC" 1>&6
904else
905 echo "$ac_t""no" 1>&6
906fi
907 ;;
908 esac
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000909 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400910 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400911fi
912
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400913echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400914echo "configure:915: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400915
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400916ac_ext=c
917# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
918ac_cpp='$CPP $CPPFLAGS'
919ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
920ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
921cross_compiling=$ac_cv_prog_cc_cross
922
923cat > conftest.$ac_ext << EOF
924
Theodore Ts'o5d407732004-09-18 14:53:14 -0400925#line 926 "configure"
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400926#include "confdefs.h"
927
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400928main(){return(0);}
929EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -0400930if { (eval echo configure:931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400931 ac_cv_prog_cc_works=yes
932 # If we can't run a trivial program, we are probably using a cross compiler.
933 if (./conftest; exit) 2>/dev/null; then
934 ac_cv_prog_cc_cross=no
935 else
936 ac_cv_prog_cc_cross=yes
937 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400938else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400939 echo "configure: failed program was:" >&5
940 cat conftest.$ac_ext >&5
941 ac_cv_prog_cc_works=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400942fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400943rm -fr conftest*
944ac_ext=c
945# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
946ac_cpp='$CPP $CPPFLAGS'
947ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
948ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
949cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400950
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400951echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
952if test $ac_cv_prog_cc_works = no; then
953 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400954fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400955echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400956echo "configure:957: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400957echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
958cross_compiling=$ac_cv_prog_cc_cross
959
960echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400961echo "configure:962: checking whether we are using GNU C" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400962if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400964else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400965 cat > conftest.c <<EOF
966#ifdef __GNUC__
967 yes;
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000968#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400969EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -0400970if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400971 ac_cv_prog_gcc=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000972else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400973 ac_cv_prog_gcc=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000974fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400975fi
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000976
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400977echo "$ac_t""$ac_cv_prog_gcc" 1>&6
978
979if test $ac_cv_prog_gcc = yes; then
980 GCC=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000981else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400982 GCC=
983fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400984
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400985ac_test_CFLAGS="${CFLAGS+set}"
986ac_save_CFLAGS="$CFLAGS"
987CFLAGS=
988echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -0400989echo "configure:990: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400990if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
992else
993 echo 'void f(){}' > conftest.c
994if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000995 ac_cv_prog_cc_g=yes
996else
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400997 ac_cv_prog_cc_g=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000998fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -0400999rm -f conftest*
1000
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001001fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001002
1003echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001004if test "$ac_test_CFLAGS" = set; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001005 CFLAGS="$ac_save_CFLAGS"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001006elif test $ac_cv_prog_cc_g = yes; then
1007 if test "$GCC" = yes; then
1008 CFLAGS="-g -O2"
1009 else
1010 CFLAGS="-g"
1011 fi
1012else
1013 if test "$GCC" = yes; then
1014 CFLAGS="-O2"
1015 else
1016 CFLAGS=
1017 fi
1018fi
1019
Theodore Ts'o74becf31997-04-26 14:37:06 +00001020# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001021if test "${with_linker+set}" = set; then
1022 withval="$with_linker"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001023 echo "$ac_t""LD=$withval" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001024LD=$withval
1025else
1026 if test -z "$LD" ; then LD=$CC; fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001027echo "$ac_t""LD defaults to $LD" 1>&6
1028fi
1029export LD
Theodore Ts'o74becf31997-04-26 14:37:06 +00001030
1031# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001032if test "${with_ccopts+set}" = set; then
1033 withval="$with_ccopts"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001034 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001035CFLAGS=$withval
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001036fi
1037echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001038echo "configure:1039: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001039# On Suns, sometimes $CPP names a directory.
1040if test -n "$CPP" && test -d "$CPP"; then
1041 CPP=
1042fi
1043if test -z "$CPP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001044if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001046else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001047 # This must be in double quotes, not single quotes, because CPP may get
1048 # substituted into the Makefile and "${CC-cc}" will confuse make.
1049 CPP="${CC-cc} -E"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001050 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001051 # not just through cpp.
1052 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001053#line 1054 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001054#include "confdefs.h"
1055#include <assert.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001056Syntax Error
1057EOF
1058ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o5d407732004-09-18 14:53:14 -04001059{ (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001060ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1061if test -z "$ac_err"; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001062 :
1063else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001064 echo "$ac_err" >&5
1065 echo "configure: failed program was:" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001066 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001067 rm -rf conftest*
1068 CPP="${CC-cc} -E -traditional-cpp"
1069 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001070#line 1071 "configure"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001071#include "confdefs.h"
1072#include <assert.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001073Syntax Error
1074EOF
1075ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o5d407732004-09-18 14:53:14 -04001076{ (eval echo configure:1077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001077ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1078if test -z "$ac_err"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001079 :
1080else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001081 echo "$ac_err" >&5
1082 echo "configure: failed program was:" >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001083 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001084 rm -rf conftest*
1085 CPP="${CC-cc} -nologo -E"
1086 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001087#line 1088 "configure"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001088#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001089#include <assert.h>
1090Syntax Error
1091EOF
1092ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o5d407732004-09-18 14:53:14 -04001093{ (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001094ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1095if test -z "$ac_err"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001096 :
1097else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001098 echo "$ac_err" >&5
1099 echo "configure: failed program was:" >&5
1100 cat conftest.$ac_ext >&5
1101 rm -rf conftest*
1102 CPP=/lib/cpp
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001103fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001104rm -f conftest*
1105fi
1106rm -f conftest*
1107fi
1108rm -f conftest*
1109 ac_cv_prog_CPP="$CPP"
1110fi
1111 CPP="$ac_cv_prog_CPP"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001112else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001113 ac_cv_prog_CPP="$CPP"
1114fi
1115echo "$ac_t""$CPP" 1>&6
1116
1117ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
1118echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001119echo "configure:1120: checking for linux/fs.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001120if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122else
1123 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001124#line 1125 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001125#include "confdefs.h"
1126#include <linux/fs.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001127EOF
1128ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o5d407732004-09-18 14:53:14 -04001129{ (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001130ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1131if test -z "$ac_err"; then
1132 rm -rf conftest*
1133 eval "ac_cv_header_$ac_safe=yes"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001134else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001135 echo "$ac_err" >&5
1136 echo "configure: failed program was:" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001137 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001138 rm -rf conftest*
1139 eval "ac_cv_header_$ac_safe=no"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001140fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001141rm -f conftest*
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001142fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001143if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1144 echo "$ac_t""yes" 1>&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001145 linux_headers=yes
1146else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001147 echo "$ac_t""no" 1>&6
1148linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001149fi
1150
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001151if test "$linux_headers" != yes; then
1152 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001153fi
1154
Matthias Andreeb1c92f92004-02-23 21:30:11 +01001155echo $ac_n "checking for additional special compiler flags""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001156echo "configure:1157: checking for additional special compiler flags" >&5
Matthias Andreeb1c92f92004-02-23 21:30:11 +01001157if test "$GCC" = yes
1158then
1159 case "$host_cpu" in
1160 alpha) addcflags="-mieee" ;;
1161 esac
1162fi
1163if test "x$addcflags" != x
1164then
1165 echo "$ac_t""$addcflags" 1>&6
1166 CFLAGS="$addcflags $CFLAGS"
1167else
1168 echo "$ac_t""(none)" 1>&6
1169fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001170LIB_EXT=.a
1171STATIC_LIB_EXT=.a
1172PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001173# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001174if test "${with_ldopts+set}" = set; then
1175 withval="$with_ldopts"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001176 echo "$ac_t""LDFLAGS is $withval" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001177LDFLAGS=$withval
1178else
1179 LDFLAGS=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001180fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00001181
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001182# Check whether --with-root-prefix or --without-root-prefix was given.
1183if test "${with_root_prefix+set}" = set; then
1184 withval="$with_root_prefix"
1185 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001186else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001187 root_prefix=NONE
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001188fi
1189# Check whether --enable-compression or --disable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00001190if test "${enable_compression+set}" = set; then
1191 enableval="$enable_compression"
1192 if test "$enableval" = "no"
1193then
1194 echo "Disabling compression support"
1195else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001196 cat >> confdefs.h <<\EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00001197#define ENABLE_COMPRESSION 1
1198EOF
1199
1200 echo "Enabling compression support"
1201 echo "WARNING: Compression support is experimental"
1202fi
1203
1204else
1205 echo "Disabling compression support by default"
1206
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001207fi
1208
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001209# Check whether --enable-htree or --disable-htree was given.
1210if test "${enable_htree+set}" = set; then
1211 enableval="$enable_htree"
1212 if test "$enableval" = "no"
1213then
1214 HTREE_CMT=#
1215 echo "Disabling htree directory support"
1216else
1217 HTREE_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001218 cat >> confdefs.h <<\EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001219#define ENABLE_HTREE 1
1220EOF
1221
1222 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001223fi
1224
1225else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001226 HTREE_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001227cat >> confdefs.h <<\EOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001228#define ENABLE_HTREE 1
1229EOF
1230
1231echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001232
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001233fi
1234
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001235
1236# Check whether --enable-htree-clear or --disable-htree-clear was given.
1237if test "${enable_htree_clear+set}" = set; then
1238 enableval="$enable_htree_clear"
1239 if test "$enableval" = "no"
1240then
1241 HTREE_CLR_CMT=#
1242 echo "Disabling htree clearing"
1243else
1244 HTREE_CLR_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001245 cat >> confdefs.h <<\EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001246#define ENABLE_HTREE_CLEAR 1
1247EOF
1248
1249 echo "Enabling htree clearing"
1250fi
1251
1252else
1253 HTREE_CLR_CMT=#
1254echo "Disabling htree clearing by default"
1255
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001256fi
1257
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001258
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001259# Check whether --enable-evms or --disable-evms was given.
1260if test "${enable_evms+set}" = set; then
1261 enableval="$enable_evms"
Theodore Ts'o5c70a502003-05-20 10:29:29 -04001262 if test "$enableval" == "no"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001263then
1264 EVMS_CMT="#"
1265 echo "Disabling EVMS plugin"
1266fi
1267
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001268fi
1269
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001270EVMS_ABI_CODE=120
1271# Check whether --enable-evms-10 or --disable-evms-10 was given.
1272if test "${enable_evms_10+set}" = set; then
1273 enableval="$enable_evms_10"
1274 if test "$enableval" != "no"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001275then
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001276 EVMS_ABI_CODE=100
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001277 echo "Enabling EVMS 1.0.0 ABI"
1278fi
1279
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001280fi
1281
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001282# Check whether --enable-evms-11 or --disable-evms-11 was given.
1283if test "${enable_evms_11+set}" = set; then
1284 enableval="$enable_evms_11"
1285 if test "$enableval" != "no"
1286then
1287 EVMS_ABI_CODE=110
1288 echo "Enabling EVMS 1.1.0 ABI"
1289fi
1290
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001291fi
1292
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001293if test "$EVMS_ABI_CODE" = "120"
1294then
1295 echo "Using EVMS 1.2.0 ABI by default"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001296fi
1297
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001298# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001299if test "${enable_dll_shlibs+set}" = set; then
1300 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001301 if test "$enableval" = "no"
1302then
1303 DLL_CMT=#
1304 MAKEFILE_DLL=/dev/null
1305 echo "Disabling DLL shared libraries"
1306else
1307 DLL_CMT=
1308 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001309 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001310 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001311 echo "Enabling DLL shared libraries"
1312fi
1313
1314else
1315 MAKEFILE_DLL=/dev/null
1316DLL_CMT=#
1317echo "Disabling DLL shared libraries by default"
1318
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001319fi
1320
1321
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001322
1323# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001324if test "${enable_elf_shlibs+set}" = set; then
1325 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001326 if test "$enableval" = "no"
1327then
1328 ELF_CMT=#
1329 MAKEFILE_ELF=/dev/null
1330 echo "Disabling ELF shared libraries"
1331else
1332 ELF_CMT=
1333 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001334 case "$host_os" in
1335 solaris2.*)
1336 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1337 ;;
1338 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001339 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001340 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001341 echo "Enabling ELF shared libraries"
1342fi
1343
1344else
1345 MAKEFILE_ELF=/dev/null
1346ELF_CMT=#
1347echo "Disabling ELF shared libraries by default"
1348
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001349fi
1350
1351
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001352
1353# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001354if test "${enable_bsd_shlibs+set}" = set; then
1355 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001356 if test "$enableval" = "no"
1357then
1358 BSDLIB_CMT=#
1359 MAKEFILE_BSDLIB=/dev/null
1360 echo "Disabling BSD shared libraries"
1361else
1362 BSDLIB_CMT=
1363 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001364 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001365 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05001366 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05001367 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
1368 LIB_EXT=.dylib
1369 ;;
1370 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001371 echo "Enabling BSD shared libraries"
1372fi
1373
1374else
1375 MAKEFILE_BSDLIB=/dev/null
1376BSDLIB_CMT=#
1377echo "Disabling BSD shared libraries by default"
1378
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001379fi
1380
1381
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001382
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001383# Check whether --enable-profile or --disable-profile was given.
1384if test "${enable_profile+set}" = set; then
1385 enableval="$enable_profile"
1386 if test "$enableval" = "no"
1387then
1388 PROFILE_CMT=#
1389 MAKEFILE_PROFILE=/dev/null
1390 echo "Disabling profiling libraries"
1391else
1392 PROFILE_CMT=
1393 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1394 PROFILED_LIB_EXT=_p.a
1395 echo "Building profiling libraries"
1396fi
1397
1398else
1399 PROFILE_CMT=#
1400MAKEFILE_PROFILE=/dev/null
1401echo "Disabling profiling libraries by default"
1402
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001403fi
1404
1405
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001406
1407# Check whether --enable-checker or --disable-checker was given.
1408if test "${enable_checker+set}" = set; then
1409 enableval="$enable_checker"
1410 if test "$enableval" = "no"
1411then
1412 CHECKER_CMT=#
1413 MAKEFILE_CHECKER=/dev/null
1414 echo "Disabling checker libraries"
1415else
1416 CHECKER_CMT=
1417 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1418 echo "Building checker libraries"
1419fi
1420
1421else
1422 CHECKER_CMT=#
1423MAKEFILE_CHECKER=/dev/null
1424echo "Disabling checker libraries by default"
1425
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001426fi
1427
1428
1429
1430
1431
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001432
Theodore Ts'o782bebf2002-11-08 18:46:45 -05001433# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1434if test "${enable_jbd_debug+set}" = set; then
1435 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001436 if test "$enableval" = "no"
1437then
1438 echo "Disabling journal debugging"
1439else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001440 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001441#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001442EOF
1443
1444 echo "Enabling journal debugging"
1445fi
1446
1447else
1448 echo "Disabling journal debugging by default"
1449
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001450fi
1451
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001452# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1453if test "${enable_blkid_debug+set}" = set; then
1454 enableval="$enable_blkid_debug"
1455 if test "$enableval" = "no"
1456then
1457 echo "Disabling blkid debugging"
1458else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001459 cat >> confdefs.h <<\EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001460#define CONFIG_BLKID_DEBUG 1
1461EOF
1462
1463 echo "Enabling blkid debugging"
1464fi
1465
1466else
1467 echo "Disabling blkid debugging by default"
1468
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001469fi
1470
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001471# Check whether --enable-testio-debug or --disable-testio-debug was given.
1472if test "${enable_testio_debug+set}" = set; then
1473 enableval="$enable_testio_debug"
1474 if test "$enableval" = "no"
1475then
1476 echo "Disabling testio debugging"
1477else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001478 cat >> confdefs.h <<\EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04001479#define CONFIG_TESTIO_DEBUG 1
1480EOF
1481
1482 echo "Enabling testio debugging"
1483fi
1484
1485else
1486 echo "Disabling testio debugging by default"
1487
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001488fi
1489
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001490# Check whether --enable-swapfs or --disable-swapfs was given.
1491if test "${enable_swapfs+set}" = set; then
1492 enableval="$enable_swapfs"
1493 if test "$enableval" = "no"
1494then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001495 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001496 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001497else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001498 SWAPFS_CMT=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001499 cat >> confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001500#define ENABLE_SWAPFS 1
1501EOF
1502
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001503 echo "Enabling swapfs support"
1504fi
1505
1506else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001507 SWAPFS_CMT=
1508echo "Enabling swapfs support by default"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001509cat >> confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001510#define ENABLE_SWAPFS 1
1511EOF
1512
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001513
1514fi
1515
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001516
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001517# Check whether --enable-debugfs or --disable-debugfs was given.
1518if test "${enable_debugfs+set}" = set; then
1519 enableval="$enable_debugfs"
1520 if test "$enableval" = "no"
1521then
1522 echo "Disabling debugfs support"
1523 DEBUGFS_CMT="#"
1524else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001525 DEBUGFS_CMT=
1526 echo "Enabling debugfs support"
1527fi
1528
1529else
1530 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001531DEBUGFS_CMT=
1532
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001533fi
1534
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001535
1536# Check whether --enable-imager or --disable-imager was given.
1537if test "${enable_imager+set}" = set; then
1538 enableval="$enable_imager"
1539 if test "$enableval" = "no"
1540then
1541 echo "Disabling e2image support"
1542 IMAGER_CMT="#"
1543else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001544 IMAGER_CMT=
1545 echo "Enabling e2image support"
1546fi
1547
1548else
1549 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001550IMAGER_CMT=
1551
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001552fi
1553
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001554
1555# Check whether --enable-resizer or --disable-resizer was given.
1556if test "${enable_resizer+set}" = set; then
1557 enableval="$enable_resizer"
1558 if test "$enableval" = "no"
1559then
1560 echo "Disabling e2resize support"
1561 RESIZER_CMT="#"
1562else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001563 RESIZER_CMT=
1564 echo "Enabling e2resize support"
1565fi
1566
1567else
1568 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001569RESIZER_CMT=
1570
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001571fi
1572
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001573
1574# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1575if test "${enable_dynamic_e2fsck+set}" = set; then
1576 enableval="$enable_dynamic_e2fsck"
1577 if test "$enableval" = "no"
1578then
1579 E2FSCK_TYPE=static
1580 echo "Building e2fsck statically"
1581else
1582 E2FSCK_TYPE=shared
1583 echo "Building e2fsck dynamically"
1584fi
1585
1586else
1587 E2FSCK_TYPE=static
1588echo "Building e2fsck statically by default"
1589
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001590fi
1591
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001592
1593# Check whether --enable-fsck or --disable-fsck was given.
1594if test "${enable_fsck+set}" = set; then
1595 enableval="$enable_fsck"
1596 if test "$enableval" = "no"
1597then
1598 FSCK_PROG='' FSCK_MAN=''
1599 echo "Not building fsck wrapper"
1600else
1601 FSCK_PROG=fsck FSCK_MAN=fsck.8
1602 echo "Building fsck wrapper"
1603fi
1604
1605else
1606 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04001607 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001608 FSCK_PROG='' FSCK_MAN=''
1609 echo "Not building fsck wrapper by default"
1610 ;;
1611 *)
1612 FSCK_PROG=fsck FSCK_MAN=fsck.8
1613 echo "Building fsck wrapper by default"
1614esac
1615
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001616fi
1617
1618
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001619
Theodore Ts'o5d407732004-09-18 14:53:14 -04001620# Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
1621if test "${enable_e2initrd_helper+set}" = set; then
1622 enableval="$enable_e2initrd_helper"
1623 if test "$enableval" = "no"
1624then
1625 E2INITRD_PROG='' E2INITRD_MAN=''
1626 echo "Not building e2initrd helper"
1627else
1628 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
1629 echo "Building e2initrd helper"
1630fi
1631
1632else
1633 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
1634echo "Building e2initrd helper by default"
1635
1636fi
1637
1638
1639
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001640MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1641
1642# Check whether --enable-old-bitops or --disable-old-bitops was given.
1643if test "${enable_old_bitops+set}" = set; then
1644 enableval="$enable_old_bitops"
1645 if test "$enableval" = "no"
1646then
1647 echo "Using new (standard) bitmask operations"
1648else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001649 cat >> confdefs.h <<\EOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001650#define EXT2_OLD_BITOPS 1
1651EOF
1652
1653 echo "Using old (native) bitmask operations"
1654
1655fi
1656
1657else
1658 echo "Using standard bitmask operations by default"
1659
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001660fi
1661
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001662PACKAGE=e2fsprogs
1663VERSION="$E2FSPROGS_VERSION"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001664cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001665#define PACKAGE "$PACKAGE"
1666EOF
1667
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001668cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001669#define VERSION "$VERSION"
1670EOF
1671
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001672
1673
1674
1675
1676 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001677echo "configure:1678: checking for inttypes.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001678if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001680else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001681 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001682#line 1683 "configure"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001683#include "confdefs.h"
1684#include <sys/types.h>
1685#include <inttypes.h>
1686int main() {
1687uintmax_t i = (uintmax_t) -1;
1688; return 0; }
1689EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001690if { (eval echo configure:1691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001691 rm -rf conftest*
1692 jm_ac_cv_header_inttypes_h=yes
1693else
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1696 rm -rf conftest*
1697 jm_ac_cv_header_inttypes_h=no
1698fi
1699rm -f conftest*
1700fi
1701
1702echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6
1703 if test $jm_ac_cv_header_inttypes_h = yes; then
1704 cat >> confdefs.h <<EOF
1705#define HAVE_INTTYPES_H_WITH_UINTMAX 1
1706EOF
1707
1708 fi
1709
1710
1711 echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001712echo "configure:1713: checking for stdint.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001713if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1715else
1716 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001717#line 1718 "configure"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001718#include "confdefs.h"
1719#include <sys/types.h>
1720#include <stdint.h>
1721int main() {
1722uintmax_t i = (uintmax_t) -1;
1723; return 0; }
1724EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001725if { (eval echo configure:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001726 rm -rf conftest*
1727 jm_ac_cv_header_stdint_h=yes
1728else
1729 echo "configure: failed program was:" >&5
1730 cat conftest.$ac_ext >&5
1731 rm -rf conftest*
1732 jm_ac_cv_header_stdint_h=no
1733fi
1734rm -f conftest*
1735fi
1736
1737echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6
1738 if test $jm_ac_cv_header_stdint_h = yes; then
1739 cat >> confdefs.h <<EOF
1740#define HAVE_STDINT_H_WITH_UINTMAX 1
1741EOF
1742
1743 fi
1744
1745
1746 echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001747echo "configure:1748: checking for unsigned long long" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001748if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1750else
1751 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001752#line 1753 "configure"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001753#include "confdefs.h"
1754unsigned long long ull = 1; int i = 63;
1755int main() {
1756unsigned long long ullmax = (unsigned long long) -1;
1757 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
1758; return 0; }
1759EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001760if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001761 rm -rf conftest*
1762 ac_cv_type_unsigned_long_long=yes
1763else
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 rm -rf conftest*
1767 ac_cv_type_unsigned_long_long=no
1768fi
1769rm -f conftest*
1770fi
1771
1772echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6
1773 if test $ac_cv_type_unsigned_long_long = yes; then
1774 cat >> confdefs.h <<\EOF
1775#define HAVE_UNSIGNED_LONG_LONG 1
1776EOF
1777
1778 fi
1779
1780
1781 if test "X$prefix" = "XNONE"; then
1782 acl_final_prefix="$ac_default_prefix"
1783 else
1784 acl_final_prefix="$prefix"
1785 fi
1786 if test "X$exec_prefix" = "XNONE"; then
1787 acl_final_exec_prefix='${prefix}'
1788 else
1789 acl_final_exec_prefix="$exec_prefix"
1790 fi
1791 acl_save_prefix="$prefix"
1792 prefix="$acl_final_prefix"
1793 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1794 prefix="$acl_save_prefix"
1795
1796
1797 echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001798echo "configure:1799: checking for shared library run path origin" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001799if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1801else
1802
1803 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
1804 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
1805 . ./conftest.sh
1806 rm -f ./conftest.sh
1807 acl_cv_rpath=done
1808
1809fi
1810
1811echo "$ac_t""$acl_cv_rpath" 1>&6
1812 wl="$acl_cv_wl"
1813 libext="$acl_cv_libext"
1814 shlibext="$acl_cv_shlibext"
1815 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
1816 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
1817 hardcode_direct="$acl_cv_hardcode_direct"
1818 hardcode_minus_L="$acl_cv_hardcode_minus_L"
1819 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
1820 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
1821 # Check whether --enable-rpath or --disable-rpath was given.
1822if test "${enable_rpath+set}" = set; then
1823 enableval="$enable_rpath"
1824 :
1825else
1826 enable_rpath=yes
1827fi
1828
1829
1830echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001831echo "configure:1832: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001832set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1833if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1835else
1836 cat > conftestmake <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001837all:
1838 @echo 'ac_maketemp="${MAKE}"'
1839EOF
1840# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001841eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001842if test -n "$ac_maketemp"; then
1843 eval ac_cv_prog_make_${ac_make}_set=yes
1844else
1845 eval ac_cv_prog_make_${ac_make}_set=no
1846fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001847rm -f conftestmake
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001848fi
1849if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001850 echo "$ac_t""yes" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001851 SET_MAKE=
1852else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001853 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001854 SET_MAKE="MAKE=${MAKE-make}"
1855fi
1856
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001857# Find a good install program. We prefer a C program (faster),
1858# so one script is as good as another. But avoid the broken or
1859# incompatible versions:
1860# SysV /etc/install, /usr/sbin/install
1861# SunOS /usr/etc/install
1862# IRIX /sbin/install
1863# AIX /bin/install
1864# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1865# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1866# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1867# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001868echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001869echo "configure:1870: checking for a BSD compatible install" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001870if test -z "$INSTALL"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001871if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001873else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001874 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001875 for ac_dir in $PATH; do
1876 # Account for people who put trailing slashes in PATH elements.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001877 case "$ac_dir/" in
1878 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001879 *)
1880 # OSF1 and SCO ODT 3.0 have their own names for install.
1881 # Don't use installbsd from OSF since it installs stuff as root
1882 # by default.
1883 for ac_prog in ginstall scoinst install; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001884 if test -f $ac_dir/$ac_prog; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001885 if test $ac_prog = install &&
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001886 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001887 # AIX install. It has an incompatible calling convention.
1888 :
1889 else
1890 ac_cv_path_install="$ac_dir/$ac_prog -c"
1891 break 2
1892 fi
1893 fi
1894 done
1895 ;;
1896 esac
1897 done
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001898 IFS="$ac_save_IFS"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001899
1900fi
1901 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001902 INSTALL="$ac_cv_path_install"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001903 else
1904 # As a last resort, use the slow shell script. We don't cache a
1905 # path for INSTALL within a source directory, because that will
1906 # break other packages using the cache if that directory is
1907 # removed, or if the path is relative.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001908 INSTALL="$ac_install_sh"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001909 fi
1910fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001911echo "$ac_t""$INSTALL" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001912
1913# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1914# It thinks the first close brace ends the variable substitution.
1915test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1916
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001917test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001918
1919test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1920
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001921
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001922 MKINSTALLDIRS=
1923 if test -n "$ac_aux_dir"; then
1924 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1925 fi
1926 if test -z "$MKINSTALLDIRS"; then
1927 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1928 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001929
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001930
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001931# Extract the first word of "ranlib", so it can be a program name with args.
1932set dummy ranlib; ac_word=$2
1933echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001934echo "configure:1935: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001935if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001937else
1938 if test -n "$RANLIB"; then
1939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1940else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1942 ac_dummy="$PATH"
1943 for ac_dir in $ac_dummy; do
1944 test -z "$ac_dir" && ac_dir=.
1945 if test -f $ac_dir/$ac_word; then
1946 ac_cv_prog_RANLIB="ranlib"
1947 break
1948 fi
1949 done
1950 IFS="$ac_save_ifs"
1951 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001952fi
1953fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001954RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001955if test -n "$RANLIB"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001956 echo "$ac_t""$RANLIB" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001957else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001958 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001959fi
1960
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001961
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001962 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04001963echo "configure:1964: checking for strerror in -lcposix" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001964ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1965if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001967else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001968 ac_save_LIBS="$LIBS"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001969LIBS="-lcposix $LIBS"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001970cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001971#line 1972 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001972#include "confdefs.h"
1973/* Override any gcc2 internal prototype to avoid an error. */
1974/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001975 builtin and then its argument prototype would still apply. */
1976char strerror();
1977
1978int main() {
1979strerror()
1980; return 0; }
1981EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04001982if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001983 rm -rf conftest*
1984 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001985else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1988 rm -rf conftest*
1989 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001990fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001991rm -f conftest*
1992LIBS="$ac_save_LIBS"
1993
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001994fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001995if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04001997 LIBS="$LIBS -lcposix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001998else
1999 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002000fi
2001
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002002
2003
2004echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002005echo "configure:2006: checking for ANSI C header files" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002006if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002008else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002009 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002010#line 2011 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002011#include "confdefs.h"
2012#include <stdlib.h>
2013#include <stdarg.h>
2014#include <string.h>
2015#include <float.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002016EOF
2017ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o5d407732004-09-18 14:53:14 -04002018{ (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002019ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2020if test -z "$ac_err"; then
2021 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002022 ac_cv_header_stdc=yes
2023else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002024 echo "$ac_err" >&5
2025 echo "configure: failed program was:" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002026 cat conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002027 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002028 ac_cv_header_stdc=no
2029fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002030rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002031
2032if test $ac_cv_header_stdc = yes; then
2033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002034cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002035#line 2036 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002036#include "confdefs.h"
2037#include <string.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002038EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2040 egrep "memchr" >/dev/null 2>&1; then
2041 :
2042else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002043 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002044 ac_cv_header_stdc=no
2045fi
2046rm -f conftest*
2047
2048fi
2049
2050if test $ac_cv_header_stdc = yes; then
2051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002052cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002053#line 2054 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002054#include "confdefs.h"
2055#include <stdlib.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002056EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2058 egrep "free" >/dev/null 2>&1; then
2059 :
2060else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002061 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002062 ac_cv_header_stdc=no
2063fi
2064rm -f conftest*
2065
2066fi
2067
2068if test $ac_cv_header_stdc = yes; then
2069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002070if test "$cross_compiling" = yes; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002071 :
2072else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002073 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002074#line 2075 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002075#include "confdefs.h"
2076#include <ctype.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002077#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2078#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002079#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002080int main () { int i; for (i = 0; i < 256; i++)
2081if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2082exit (0); }
2083
2084EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002085if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002086then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002087 :
2088else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2091 rm -fr conftest*
2092 ac_cv_header_stdc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002093fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002094rm -fr conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002095fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002096
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002097fi
2098fi
2099
2100echo "$ac_t""$ac_cv_header_stdc" 1>&6
2101if test $ac_cv_header_stdc = yes; then
2102 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002103#define STDC_HEADERS 1
2104EOF
2105
2106fi
2107
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002108echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002109echo "configure:2110: checking for working const" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002110if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002112else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002113 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002114#line 2115 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002115#include "confdefs.h"
2116
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002117int main() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002118
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002119/* Ultrix mips cc rejects this. */
2120typedef int charset[2]; const charset x;
2121/* SunOS 4.1.1 cc rejects this. */
2122char const *const *ccp;
2123char **p;
2124/* NEC SVR4.0.2 mips cc rejects this. */
2125struct point {int x, y;};
2126static struct point const zero = {0,0};
2127/* AIX XL C 1.02.0.0 rejects this.
2128 It does not let you subtract one const X* pointer from another in an arm
2129 of an if-expression whose if-part is not a constant expression */
2130const char *g = "string";
2131ccp = &g + (g ? g-g : 0);
2132/* HPUX 7.0 cc rejects these. */
2133++ccp;
2134p = (char**) ccp;
2135ccp = (char const *const *) p;
2136{ /* SCO 3.2v4 cc rejects this. */
2137 char *t;
2138 char const *s = 0 ? (char *) 0 : (char const *) 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002139
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002140 *t++ = 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002141}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002142{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2143 int x[] = {25, 17};
2144 const int *foo = &x[0];
2145 ++foo;
2146}
2147{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2148 typedef const int *iptr;
2149 iptr p = 0;
2150 ++p;
2151}
2152{ /* AIX XL C 1.02.0.0 rejects this saying
2153 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2154 struct s { int j; const int *ap[3]; };
2155 struct s *b; b->j = 5;
2156}
2157{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2158 const int foo = 10;
2159}
2160
2161; return 0; }
2162EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002163if { (eval echo configure:2164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002164 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002165 ac_cv_c_const=yes
2166else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2169 rm -rf conftest*
2170 ac_cv_c_const=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002171fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002172rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002173fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002174
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002175echo "$ac_t""$ac_cv_c_const" 1>&6
2176if test $ac_cv_c_const = no; then
2177 cat >> confdefs.h <<\EOF
2178#define const
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002179EOF
2180
2181fi
2182
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002183echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002184echo "configure:2185: checking for inline" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002185if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002187else
2188 ac_cv_c_inline=no
2189for ac_kw in inline __inline__ __inline; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002190 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002191#line 2192 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002192#include "confdefs.h"
2193
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002194int main() {
2195} $ac_kw foo() {
2196; return 0; }
2197EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002198if { (eval echo configure:2199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002199 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002200 ac_cv_c_inline=$ac_kw; break
2201else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002204fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002205rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002206done
2207
2208fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002209
2210echo "$ac_t""$ac_cv_c_inline" 1>&6
2211case "$ac_cv_c_inline" in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002212 inline | yes) ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002213 no) cat >> confdefs.h <<\EOF
2214#define inline
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002215EOF
2216 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002217 *) cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002218#define inline $ac_cv_c_inline
2219EOF
2220 ;;
2221esac
2222
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002223echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002224echo "configure:2225: checking for off_t" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002225if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002227else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002228 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002229#line 2230 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002230#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002231#include <sys/types.h>
2232#if STDC_HEADERS
2233#include <stdlib.h>
2234#include <stddef.h>
2235#endif
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002236EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2238 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2239 rm -rf conftest*
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002240 ac_cv_type_off_t=yes
2241else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002242 rm -rf conftest*
2243 ac_cv_type_off_t=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002244fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002245rm -f conftest*
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002246
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002247fi
2248echo "$ac_t""$ac_cv_type_off_t" 1>&6
2249if test $ac_cv_type_off_t = no; then
2250 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002251#define off_t long
2252EOF
2253
2254fi
2255
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002256echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002257echo "configure:2258: checking for size_t" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002258if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002260else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002261 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002262#line 2263 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002263#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002264#include <sys/types.h>
2265#if STDC_HEADERS
2266#include <stdlib.h>
2267#include <stddef.h>
2268#endif
2269EOF
2270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2271 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2272 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002273 ac_cv_type_size_t=yes
2274else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002275 rm -rf conftest*
2276 ac_cv_type_size_t=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002277fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002278rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002279
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002280fi
2281echo "$ac_t""$ac_cv_type_size_t" 1>&6
2282if test $ac_cv_type_size_t = no; then
2283 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002284#define size_t unsigned
2285EOF
2286
2287fi
2288
2289# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2290# for constant arguments. Useless!
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002291echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002292echo "configure:2293: checking for working alloca.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002293if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002295else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002296 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002297#line 2298 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002298#include "confdefs.h"
2299#include <alloca.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002300int main() {
2301char *p = alloca(2 * sizeof(int));
2302; return 0; }
2303EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002304if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002305 rm -rf conftest*
2306 ac_cv_header_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002307else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002308 echo "configure: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2310 rm -rf conftest*
2311 ac_cv_header_alloca_h=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002312fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002313rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002314fi
2315
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002316echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2317if test $ac_cv_header_alloca_h = yes; then
2318 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002319#define HAVE_ALLOCA_H 1
2320EOF
2321
2322fi
2323
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002324echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002325echo "configure:2326: checking for alloca" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002326if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002328else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002329 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002330#line 2331 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002331#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002332
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002333#ifdef __GNUC__
2334# define alloca __builtin_alloca
2335#else
2336# ifdef _MSC_VER
2337# include <malloc.h>
2338# define alloca _alloca
2339# else
2340# if HAVE_ALLOCA_H
2341# include <alloca.h>
2342# else
2343# ifdef _AIX
2344 #pragma alloca
2345# else
2346# ifndef alloca /* predefined by HP cc +Olibcalls */
2347char *alloca ();
2348# endif
2349# endif
2350# endif
2351# endif
2352#endif
2353
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002354int main() {
2355char *p = (char *) alloca(1);
2356; return 0; }
2357EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002358if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002359 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002360 ac_cv_func_alloca_works=yes
2361else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 rm -rf conftest*
2365 ac_cv_func_alloca_works=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002366fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002367rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002368fi
2369
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002370echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002371if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002372 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002373#define HAVE_ALLOCA 1
2374EOF
2375
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002376fi
2377
2378if test $ac_cv_func_alloca_works = no; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002379 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002380 # that cause trouble. Some versions do not even contain alloca or
2381 # contain a buggy version. If you still want to use their alloca,
2382 # use ar to extract alloca.o from them instead of compiling alloca.c.
2383 ALLOCA=alloca.${ac_objext}
2384 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002385#define C_ALLOCA 1
2386EOF
2387
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002388
2389echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002390echo "configure:2391: checking whether alloca needs Cray hooks" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002391if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002393else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002394 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002395#line 2396 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002396#include "confdefs.h"
2397#if defined(CRAY) && ! defined(CRAY2)
2398webecray
2399#else
2400wenotbecray
2401#endif
2402
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002403EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2405 egrep "webecray" >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002406 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002407 ac_cv_os_cray=yes
2408else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002409 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002410 ac_cv_os_cray=no
2411fi
2412rm -f conftest*
2413
2414fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002415
2416echo "$ac_t""$ac_cv_os_cray" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002417if test $ac_cv_os_cray = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002418for ac_func in _getb67 GETB67 getb67; do
2419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002420echo "configure:2421: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002421if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002423else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002424 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002425#line 2426 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002426#include "confdefs.h"
2427/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002428 which can conflict with char $ac_func(); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002429#include <assert.h>
2430/* Override any gcc2 internal prototype to avoid an error. */
2431/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002432 builtin and then its argument prototype would still apply. */
2433char $ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002434
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002435int main() {
2436
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002437/* The GNU C library defines this for functions which it implements
2438 to always fail with ENOSYS. Some functions are actually named
2439 something starting with __ and the normal name is an alias. */
2440#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2441choke me
2442#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002443$ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002444#endif
2445
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002446; return 0; }
2447EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002448if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002449 rm -rf conftest*
2450 eval "ac_cv_func_$ac_func=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002451else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 rm -rf conftest*
2455 eval "ac_cv_func_$ac_func=no"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002456fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002457rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002458fi
2459
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002460if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002463#define CRAY_STACKSEG_END $ac_func
2464EOF
2465
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002466 break
2467else
2468 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002469fi
2470
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002471done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002472fi
2473
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002474echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002475echo "configure:2476: checking stack direction for C alloca" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002476if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002478else
2479 if test "$cross_compiling" = yes; then
2480 ac_cv_c_stack_direction=0
2481else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002482 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002483#line 2484 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002484#include "confdefs.h"
2485find_stack_direction ()
2486{
2487 static char *addr = 0;
2488 auto char dummy;
2489 if (addr == 0)
2490 {
2491 addr = &dummy;
2492 return find_stack_direction ();
2493 }
2494 else
2495 return (&dummy > addr) ? 1 : -1;
2496}
2497main ()
2498{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002499 exit (find_stack_direction() < 0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002500}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002501EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002502if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002503then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002504 ac_cv_c_stack_direction=1
2505else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 rm -fr conftest*
2509 ac_cv_c_stack_direction=-1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002510fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002511rm -fr conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002512fi
2513
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002514fi
2515
2516echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2517cat >> confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002518#define STACK_DIRECTION $ac_cv_c_stack_direction
2519EOF
2520
2521fi
2522
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002523for ac_hdr in unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002524do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002525ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2526echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002527echo "configure:2528: checking for $ac_hdr" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002528if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002530else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002531 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002532#line 2533 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002533#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002534#include <$ac_hdr>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002535EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002536ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o5d407732004-09-18 14:53:14 -04002537{ (eval echo configure:2538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002538ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2539if test -z "$ac_err"; then
2540 rm -rf conftest*
2541 eval "ac_cv_header_$ac_safe=yes"
2542else
2543 echo "$ac_err" >&5
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 rm -rf conftest*
2547 eval "ac_cv_header_$ac_safe=no"
2548fi
2549rm -f conftest*
2550fi
2551if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2552 echo "$ac_t""yes" 1>&6
2553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2554 cat >> confdefs.h <<EOF
2555#define $ac_tr_hdr 1
2556EOF
2557
2558else
2559 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002560fi
2561done
2562
2563for ac_func in getpagesize
2564do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002565echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002566echo "configure:2567: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002567if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002569else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002570 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002571#line 2572 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002572#include "confdefs.h"
2573/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002574 which can conflict with char $ac_func(); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002575#include <assert.h>
2576/* Override any gcc2 internal prototype to avoid an error. */
2577/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002578 builtin and then its argument prototype would still apply. */
2579char $ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002580
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002581int main() {
2582
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002583/* The GNU C library defines this for functions which it implements
2584 to always fail with ENOSYS. Some functions are actually named
2585 something starting with __ and the normal name is an alias. */
2586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2587choke me
2588#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002589$ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002590#endif
2591
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002592; return 0; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002593EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002594if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002595 rm -rf conftest*
2596 eval "ac_cv_func_$ac_func=yes"
2597else
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2600 rm -rf conftest*
2601 eval "ac_cv_func_$ac_func=no"
2602fi
2603rm -f conftest*
2604fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002605
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002606if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2609 cat >> confdefs.h <<EOF
2610#define $ac_tr_func 1
2611EOF
2612
2613else
2614 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002615fi
2616done
2617
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002618echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002619echo "configure:2620: checking for working mmap" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002620if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002622else
2623 if test "$cross_compiling" = yes; then
2624 ac_cv_func_mmap_fixed_mapped=no
2625else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002626 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002627#line 2628 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002628#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002629
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002630/* Thanks to Mike Haertel and Jim Avera for this test.
2631 Here is a matrix of mmap possibilities:
2632 mmap private not fixed
2633 mmap private fixed at somewhere currently unmapped
2634 mmap private fixed at somewhere already mapped
2635 mmap shared not fixed
2636 mmap shared fixed at somewhere currently unmapped
2637 mmap shared fixed at somewhere already mapped
2638 For private mappings, we should verify that changes cannot be read()
2639 back from the file, nor mmap's back from the file at a different
2640 address. (There have been systems where private was not correctly
2641 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002642 VM page cache was not coherent with the filesystem buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002643 like early versions of FreeBSD and possibly contemporary NetBSD.)
2644 For shared mappings, we should conversely verify that changes get
2645 propogated back to all the places they're supposed to be.
2646
2647 Grep wants private fixed already mapped.
2648 The main things grep needs to know about mmap are:
2649 * does it exist and is it safe to write into the mmap'd area
2650 * how to use it (BSD variants) */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002651#include <sys/types.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002652#include <fcntl.h>
2653#include <sys/mman.h>
2654
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002655/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002656#ifndef HAVE_GETPAGESIZE
2657# ifdef HAVE_UNISTD_H
2658# include <unistd.h>
2659# endif
2660
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002661/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002662# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002663# define HAVE_SYS_PARAM_H 1
2664# endif
2665
2666# ifdef _SC_PAGESIZE
2667# define getpagesize() sysconf(_SC_PAGESIZE)
2668# else /* no _SC_PAGESIZE */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002669# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002670# include <sys/param.h>
2671# ifdef EXEC_PAGESIZE
2672# define getpagesize() EXEC_PAGESIZE
2673# else /* no EXEC_PAGESIZE */
2674# ifdef NBPG
2675# define getpagesize() NBPG * CLSIZE
2676# ifndef CLSIZE
2677# define CLSIZE 1
2678# endif /* no CLSIZE */
2679# else /* no NBPG */
2680# ifdef NBPC
2681# define getpagesize() NBPC
2682# else /* no NBPC */
2683# ifdef PAGESIZE
2684# define getpagesize() PAGESIZE
2685# endif /* PAGESIZE */
2686# endif /* no NBPC */
2687# endif /* no NBPG */
2688# endif /* no EXEC_PAGESIZE */
2689# else /* no HAVE_SYS_PARAM_H */
2690# define getpagesize() 8192 /* punt totally */
2691# endif /* no HAVE_SYS_PARAM_H */
2692# endif /* no _SC_PAGESIZE */
2693
2694#endif /* no HAVE_GETPAGESIZE */
2695
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002696#ifdef __cplusplus
2697extern "C" { void *malloc(unsigned); }
2698#else
2699char *malloc();
2700#endif
2701
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002702int
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002703main()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002704{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002705 char *data, *data2, *data3;
2706 int i, pagesize;
2707 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002708
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002709 pagesize = getpagesize();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002710
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002711 /*
2712 * First, make a file with some known garbage in it.
2713 */
2714 data = malloc(pagesize);
2715 if (!data)
2716 exit(1);
2717 for (i = 0; i < pagesize; ++i)
2718 *(data + i) = rand();
2719 umask(0);
2720 fd = creat("conftestmmap", 0600);
2721 if (fd < 0)
2722 exit(1);
2723 if (write(fd, data, pagesize) != pagesize)
2724 exit(1);
2725 close(fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002726
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002727 /*
2728 * Next, try to mmap the file at a fixed address which
2729 * already has something else allocated at it. If we can,
2730 * also make sure that we see the same garbage.
2731 */
2732 fd = open("conftestmmap", O_RDWR);
2733 if (fd < 0)
2734 exit(1);
2735 data2 = malloc(2 * pagesize);
2736 if (!data2)
2737 exit(1);
2738 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2739 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2740 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2741 exit(1);
2742 for (i = 0; i < pagesize; ++i)
2743 if (*(data + i) != *(data2 + i))
2744 exit(1);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002745
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002746 /*
2747 * Finally, make sure that changes to the mapped area
2748 * do not percolate back to the file as seen by read().
2749 * (This is a bug on some variants of i386 svr4.0.)
2750 */
2751 for (i = 0; i < pagesize; ++i)
2752 *(data2 + i) = *(data2 + i) + 1;
2753 data3 = malloc(pagesize);
2754 if (!data3)
2755 exit(1);
2756 if (read(fd, data3, pagesize) != pagesize)
2757 exit(1);
2758 for (i = 0; i < pagesize; ++i)
2759 if (*(data + i) != *(data3 + i))
2760 exit(1);
2761 close(fd);
2762 unlink("conftestmmap");
2763 exit(0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002764}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002765
2766EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002767if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002768then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002769 ac_cv_func_mmap_fixed_mapped=yes
2770else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002771 echo "configure: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2773 rm -fr conftest*
2774 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002775fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002776rm -fr conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002777fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002778
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002779fi
2780
2781echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2782if test $ac_cv_func_mmap_fixed_mapped = yes; then
2783 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002784#define HAVE_MMAP 1
2785EOF
2786
2787fi
2788
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002789
2790 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002791echo "configure:2792: checking whether we are using the GNU C Library 2.1 or newer" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002792if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002794else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002795 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002796#line 2797 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002797#include "confdefs.h"
2798
2799#include <features.h>
2800#ifdef __GNU_LIBRARY__
2801 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2802 Lucky GNU user
2803 #endif
2804#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002805
2806EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2808 egrep "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002809 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002810 ac_cv_gnu_library_2_1=yes
2811else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002812 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002813 ac_cv_gnu_library_2_1=no
2814fi
2815rm -f conftest*
2816
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002817
2818
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002819fi
2820
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002821echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2822
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002823 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002824
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002825
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002826
2827
2828 echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002829echo "configure:2830: checking whether integer division by zero raises SIGFPE" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002830if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002832else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002833
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002834 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002835
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002836 # Guess based on the CPU.
2837 case "$host_cpu" in
2838 alpha* | i3456786 | m68k | s390*)
2839 gt_cv_int_divbyzero_sigfpe="guessing yes";;
2840 *)
2841 gt_cv_int_divbyzero_sigfpe="guessing no";;
2842 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002843
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002844else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002845 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002846#line 2847 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002847#include "confdefs.h"
2848
2849#include <stdlib.h>
2850#include <signal.h>
2851
2852static void
2853#ifdef __cplusplus
2854sigfpe_handler (int sig)
2855#else
2856sigfpe_handler (sig) int sig;
2857#endif
2858{
2859 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
2860 exit (sig != SIGFPE);
2861}
2862
2863int x = 1;
2864int y = 0;
2865int z;
2866int nan;
2867
2868int main ()
2869{
2870 signal (SIGFPE, sigfpe_handler);
2871/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
2872#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
2873 signal (SIGTRAP, sigfpe_handler);
2874#endif
2875/* Linux/SPARC yields signal SIGILL. */
2876#if defined (__sparc__) && defined (__linux__)
2877 signal (SIGILL, sigfpe_handler);
2878#endif
2879
2880 z = x / y;
2881 nan = y / y;
2882 exit (1);
2883}
2884
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002885EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002886if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002887then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002888 gt_cv_int_divbyzero_sigfpe=yes
2889else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2892 rm -fr conftest*
2893 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002894fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002895rm -fr conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002896fi
2897
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002898
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002899fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002900
2901echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002902 case "$gt_cv_int_divbyzero_sigfpe" in
2903 *yes) value=1;;
2904 *) value=0;;
2905 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002906 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002907#define INTDIV0_RAISES_SIGFPE $value
2908EOF
2909
2910
2911
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002912
2913
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002914 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002915
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002916 test $ac_cv_type_unsigned_long_long = yes \
2917 && ac_type='unsigned long long' \
2918 || ac_type='unsigned long'
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002919 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002920#define uintmax_t $ac_type
2921EOF
2922
2923 fi
2924
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002925
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002926 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002927echo "configure:2928: checking for inttypes.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002928if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2930else
2931
2932 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002933#line 2934 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002934#include "confdefs.h"
2935#include <sys/types.h>
2936#include <inttypes.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002937int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002938
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002939; return 0; }
2940EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002941if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002942 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002943 gt_cv_header_inttypes_h=yes
2944else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002945 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5
2947 rm -rf conftest*
2948 gt_cv_header_inttypes_h=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002949fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002950rm -f conftest*
2951
2952fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002953
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002954echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002955 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002956 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002957#define HAVE_INTTYPES_H 1
2958EOF
2959
2960 fi
2961
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002962
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002963
2964 if test $gt_cv_header_inttypes_h = yes; then
2965 echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04002966echo "configure:2967: checking whether the inttypes.h PRIxNN macros are broken" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002967if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2969else
2970
2971 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002972#line 2973 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002973#include "confdefs.h"
2974#include <inttypes.h>
2975#ifdef PRId32
2976char *p = PRId32;
2977#endif
2978
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002979int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002980
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002981; return 0; }
2982EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04002983if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002984 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002985 gt_cv_inttypes_pri_broken=no
2986else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2989 rm -rf conftest*
2990 gt_cv_inttypes_pri_broken=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002991fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002992rm -f conftest*
2993
2994fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002995
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002996echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002997 fi
2998 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002999 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003000#define PRI_MACROS_BROKEN 1
3001EOF
3002
3003 fi
3004
3005
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003006
3007
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003008
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003009
3010
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003011 use_additional=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003012
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003013 acl_save_prefix="$prefix"
3014 prefix="$acl_final_prefix"
3015 acl_save_exec_prefix="$exec_prefix"
3016 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003017
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003018 eval additional_includedir=\"$includedir\"
3019 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003020
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003021 exec_prefix="$acl_save_exec_prefix"
3022 prefix="$acl_save_prefix"
3023
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003024 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003025if test "${with_libiconv_prefix+set}" = set; then
3026 withval="$with_libiconv_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003027
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003028 if test "X$withval" = "Xno"; then
3029 use_additional=no
3030 else
3031 if test "X$withval" = "X"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003032
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003033 acl_save_prefix="$prefix"
3034 prefix="$acl_final_prefix"
3035 acl_save_exec_prefix="$exec_prefix"
3036 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003037
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003038 eval additional_includedir=\"$includedir\"
3039 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003040
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003041 exec_prefix="$acl_save_exec_prefix"
3042 prefix="$acl_save_prefix"
3043
3044 else
3045 additional_includedir="$withval/include"
3046 additional_libdir="$withval/lib"
3047 fi
3048 fi
3049
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003050fi
3051
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003052 LIBICONV=
3053 LTLIBICONV=
3054 INCICONV=
3055 rpathdirs=
3056 ltrpathdirs=
3057 names_already_handled=
3058 names_next_round='iconv '
3059 while test -n "$names_next_round"; do
3060 names_this_round="$names_next_round"
3061 names_next_round=
3062 for name in $names_this_round; do
3063 already_handled=
3064 for n in $names_already_handled; do
3065 if test "$n" = "$name"; then
3066 already_handled=yes
3067 break
3068 fi
3069 done
3070 if test -z "$already_handled"; then
3071 names_already_handled="$names_already_handled $name"
3072 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3073 eval value=\"\$HAVE_LIB$uppername\"
3074 if test -n "$value"; then
3075 if test "$value" = yes; then
3076 eval value=\"\$LIB$uppername\"
3077 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3078 eval value=\"\$LTLIB$uppername\"
3079 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3080 else
3081 :
3082 fi
3083 else
3084 found_dir=
3085 found_la=
3086 found_so=
3087 found_a=
3088 if test $use_additional = yes; then
3089 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3090 found_dir="$additional_libdir"
3091 found_so="$additional_libdir/lib$name.$shlibext"
3092 if test -f "$additional_libdir/lib$name.la"; then
3093 found_la="$additional_libdir/lib$name.la"
3094 fi
3095 else
3096 if test -f "$additional_libdir/lib$name.$libext"; then
3097 found_dir="$additional_libdir"
3098 found_a="$additional_libdir/lib$name.$libext"
3099 if test -f "$additional_libdir/lib$name.la"; then
3100 found_la="$additional_libdir/lib$name.la"
3101 fi
3102 fi
3103 fi
3104 fi
3105 if test "X$found_dir" = "X"; then
3106 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003107
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003108 acl_save_prefix="$prefix"
3109 prefix="$acl_final_prefix"
3110 acl_save_exec_prefix="$exec_prefix"
3111 exec_prefix="$acl_final_exec_prefix"
3112 eval x=\"$x\"
3113 exec_prefix="$acl_save_exec_prefix"
3114 prefix="$acl_save_prefix"
3115
3116 case "$x" in
3117 -L*)
3118 dir=`echo "X$x" | sed -e 's/^X-L//'`
3119 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3120 found_dir="$dir"
3121 found_so="$dir/lib$name.$shlibext"
3122 if test -f "$dir/lib$name.la"; then
3123 found_la="$dir/lib$name.la"
3124 fi
3125 else
3126 if test -f "$dir/lib$name.$libext"; then
3127 found_dir="$dir"
3128 found_a="$dir/lib$name.$libext"
3129 if test -f "$dir/lib$name.la"; then
3130 found_la="$dir/lib$name.la"
3131 fi
3132 fi
3133 fi
3134 ;;
3135 esac
3136 if test "X$found_dir" != "X"; then
3137 break
3138 fi
3139 done
3140 fi
3141 if test "X$found_dir" != "X"; then
3142 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3143 if test "X$found_so" != "X"; then
3144 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3145 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3146 else
3147 haveit=
3148 for x in $ltrpathdirs; do
3149 if test "X$x" = "X$found_dir"; then
3150 haveit=yes
3151 break
3152 fi
3153 done
3154 if test -z "$haveit"; then
3155 ltrpathdirs="$ltrpathdirs $found_dir"
3156 fi
3157 if test "$hardcode_direct" = yes; then
3158 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3159 else
3160 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3161 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3162 haveit=
3163 for x in $rpathdirs; do
3164 if test "X$x" = "X$found_dir"; then
3165 haveit=yes
3166 break
3167 fi
3168 done
3169 if test -z "$haveit"; then
3170 rpathdirs="$rpathdirs $found_dir"
3171 fi
3172 else
3173 haveit=
3174 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003175
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003176 acl_save_prefix="$prefix"
3177 prefix="$acl_final_prefix"
3178 acl_save_exec_prefix="$exec_prefix"
3179 exec_prefix="$acl_final_exec_prefix"
3180 eval x=\"$x\"
3181 exec_prefix="$acl_save_exec_prefix"
3182 prefix="$acl_save_prefix"
3183
3184 if test "X$x" = "X-L$found_dir"; then
3185 haveit=yes
3186 break
3187 fi
3188 done
3189 if test -z "$haveit"; then
3190 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3191 fi
3192 if test "$hardcode_minus_L" != no; then
3193 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3194 else
3195 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3196 fi
3197 fi
3198 fi
3199 fi
3200 else
3201 if test "X$found_a" != "X"; then
3202 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3203 else
3204 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3205 fi
3206 fi
3207 additional_includedir=
3208 case "$found_dir" in
3209 */lib | */lib/)
3210 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3211 additional_includedir="$basedir/include"
3212 ;;
3213 esac
3214 if test "X$additional_includedir" != "X"; then
3215 if test "X$additional_includedir" != "X/usr/include"; then
3216 haveit=
3217 if test "X$additional_includedir" = "X/usr/local/include"; then
3218 if test -n "$GCC"; then
3219 case $host_os in
3220 linux*) haveit=yes;;
3221 esac
3222 fi
3223 fi
3224 if test -z "$haveit"; then
3225 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003226
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003227 acl_save_prefix="$prefix"
3228 prefix="$acl_final_prefix"
3229 acl_save_exec_prefix="$exec_prefix"
3230 exec_prefix="$acl_final_exec_prefix"
3231 eval x=\"$x\"
3232 exec_prefix="$acl_save_exec_prefix"
3233 prefix="$acl_save_prefix"
3234
3235 if test "X$x" = "X-I$additional_includedir"; then
3236 haveit=yes
3237 break
3238 fi
3239 done
3240 if test -z "$haveit"; then
3241 if test -d "$additional_includedir"; then
3242 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3243 fi
3244 fi
3245 fi
3246 fi
3247 fi
3248 if test -n "$found_la"; then
3249 save_libdir="$libdir"
3250 case "$found_la" in
3251 */* | *\\*) . "$found_la" ;;
3252 *) . "./$found_la" ;;
3253 esac
3254 libdir="$save_libdir"
3255 for dep in $dependency_libs; do
3256 case "$dep" in
3257 -L*)
3258 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3259 if test "X$additional_libdir" != "X/usr/lib"; then
3260 haveit=
3261 if test "X$additional_libdir" = "X/usr/local/lib"; then
3262 if test -n "$GCC"; then
3263 case $host_os in
3264 linux*) haveit=yes;;
3265 esac
3266 fi
3267 fi
3268 if test -z "$haveit"; then
3269 haveit=
3270 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003271
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003272 acl_save_prefix="$prefix"
3273 prefix="$acl_final_prefix"
3274 acl_save_exec_prefix="$exec_prefix"
3275 exec_prefix="$acl_final_exec_prefix"
3276 eval x=\"$x\"
3277 exec_prefix="$acl_save_exec_prefix"
3278 prefix="$acl_save_prefix"
3279
3280 if test "X$x" = "X-L$additional_libdir"; then
3281 haveit=yes
3282 break
3283 fi
3284 done
3285 if test -z "$haveit"; then
3286 if test -d "$additional_libdir"; then
3287 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3288 fi
3289 fi
3290 haveit=
3291 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003292
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003293 acl_save_prefix="$prefix"
3294 prefix="$acl_final_prefix"
3295 acl_save_exec_prefix="$exec_prefix"
3296 exec_prefix="$acl_final_exec_prefix"
3297 eval x=\"$x\"
3298 exec_prefix="$acl_save_exec_prefix"
3299 prefix="$acl_save_prefix"
3300
3301 if test "X$x" = "X-L$additional_libdir"; then
3302 haveit=yes
3303 break
3304 fi
3305 done
3306 if test -z "$haveit"; then
3307 if test -d "$additional_libdir"; then
3308 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3309 fi
3310 fi
3311 fi
3312 fi
3313 ;;
3314 -R*)
3315 dir=`echo "X$dep" | sed -e 's/^X-R//'`
3316 if test "$enable_rpath" != no; then
3317 haveit=
3318 for x in $rpathdirs; do
3319 if test "X$x" = "X$dir"; then
3320 haveit=yes
3321 break
3322 fi
3323 done
3324 if test -z "$haveit"; then
3325 rpathdirs="$rpathdirs $dir"
3326 fi
3327 haveit=
3328 for x in $ltrpathdirs; do
3329 if test "X$x" = "X$dir"; then
3330 haveit=yes
3331 break
3332 fi
3333 done
3334 if test -z "$haveit"; then
3335 ltrpathdirs="$ltrpathdirs $dir"
3336 fi
3337 fi
3338 ;;
3339 -l*)
3340 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3341 ;;
3342 *.la)
3343 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3344 ;;
3345 *)
3346 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3347 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3348 ;;
3349 esac
3350 done
3351 fi
3352 else
3353 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3354 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3355 fi
3356 fi
3357 fi
3358 done
3359 done
3360 if test "X$rpathdirs" != "X"; then
3361 if test -n "$hardcode_libdir_separator"; then
3362 alldirs=
3363 for found_dir in $rpathdirs; do
3364 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3365 done
3366 acl_save_libdir="$libdir"
3367 libdir="$alldirs"
3368 eval flag=\"$hardcode_libdir_flag_spec\"
3369 libdir="$acl_save_libdir"
3370 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3371 else
3372 for found_dir in $rpathdirs; do
3373 acl_save_libdir="$libdir"
3374 libdir="$found_dir"
3375 eval flag=\"$hardcode_libdir_flag_spec\"
3376 libdir="$acl_save_libdir"
3377 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3378 done
3379 fi
3380 fi
3381 if test "X$ltrpathdirs" != "X"; then
3382 for found_dir in $ltrpathdirs; do
3383 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3384 done
3385 fi
3386
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003387
3388
3389
3390
3391 # Extract the first word of "msgfmt", so it can be a program name with args.
3392set dummy msgfmt; ac_word=$2
3393echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003394echo "configure:3395: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003395if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397else
3398 case "$MSGFMT" in
3399 /*)
3400 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3401 ;;
3402 *)
3403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3404 for ac_dir in $PATH; do
3405 test -z "$ac_dir" && ac_dir=.
3406 if test -f $ac_dir/$ac_word; then
3407 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3408 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3409 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3410 break
3411 fi
3412 fi
3413 done
3414 IFS="$ac_save_ifs"
3415 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3416 ;;
3417esac
3418fi
3419MSGFMT="$ac_cv_path_MSGFMT"
3420if test "$MSGFMT" != ":"; then
3421 echo "$ac_t""$MSGFMT" 1>&6
3422else
3423 echo "$ac_t""no" 1>&6
3424fi
3425
3426 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3427set dummy gmsgfmt; ac_word=$2
3428echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003429echo "configure:3430: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003430if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3432else
3433 case "$GMSGFMT" in
3434 /*)
3435 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3436 ;;
3437 ?:/*)
3438 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3439 ;;
3440 *)
3441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3442 ac_dummy="$PATH"
3443 for ac_dir in $ac_dummy; do
3444 test -z "$ac_dir" && ac_dir=.
3445 if test -f $ac_dir/$ac_word; then
3446 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3447 break
3448 fi
3449 done
3450 IFS="$ac_save_ifs"
3451 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3452 ;;
3453esac
3454fi
3455GMSGFMT="$ac_cv_path_GMSGFMT"
3456if test -n "$GMSGFMT"; then
3457 echo "$ac_t""$GMSGFMT" 1>&6
3458else
3459 echo "$ac_t""no" 1>&6
3460fi
3461
3462
3463 # Extract the first word of "xgettext", so it can be a program name with args.
3464set dummy xgettext; ac_word=$2
3465echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003466echo "configure:3467: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003467if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3469else
3470 case "$XGETTEXT" in
3471 /*)
3472 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3473 ;;
3474 *)
3475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3476 for ac_dir in $PATH; do
3477 test -z "$ac_dir" && ac_dir=.
3478 if test -f $ac_dir/$ac_word; then
3479 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3480 (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
3481 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3482 break
3483 fi
3484 fi
3485 done
3486 IFS="$ac_save_ifs"
3487 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3488 ;;
3489esac
3490fi
3491XGETTEXT="$ac_cv_path_XGETTEXT"
3492if test "$XGETTEXT" != ":"; then
3493 echo "$ac_t""$XGETTEXT" 1>&6
3494else
3495 echo "$ac_t""no" 1>&6
3496fi
3497
3498 rm -f messages.po
3499
3500 # Extract the first word of "msgmerge", so it can be a program name with args.
3501set dummy msgmerge; ac_word=$2
3502echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003503echo "configure:3504: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003504if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3506else
3507 case "$MSGMERGE" in
3508 /*)
3509 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3510 ;;
3511 *)
3512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3513 for ac_dir in $PATH; do
3514 test -z "$ac_dir" && ac_dir=.
3515 if test -f $ac_dir/$ac_word; then
3516 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3517 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3518 break
3519 fi
3520 fi
3521 done
3522 IFS="$ac_save_ifs"
3523 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3524 ;;
3525esac
3526fi
3527MSGMERGE="$ac_cv_path_MSGMERGE"
3528if test "$MSGMERGE" != ":"; then
3529 echo "$ac_t""$MSGMERGE" 1>&6
3530else
3531 echo "$ac_t""no" 1>&6
3532fi
3533
3534
3535 if test "$GMSGFMT" != ":"; then
3536 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3537 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3538 : ;
3539 else
3540 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3541 echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6
3542 GMSGFMT=":"
3543 fi
3544 fi
3545
3546 if test "$XGETTEXT" != ":"; then
3547 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3548 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3549 : ;
3550 else
3551 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3552 XGETTEXT=":"
3553 fi
3554 rm -f messages.po
3555 fi
3556
3557
3558
3559
3560
3561 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003562stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003563do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003564ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3565echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003566echo "configure:3567: checking for $ac_hdr" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003567if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003569else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003570 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003571#line 3572 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003572#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003573#include <$ac_hdr>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003574EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003575ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o5d407732004-09-18 14:53:14 -04003576{ (eval echo configure:3577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003577ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3578if test -z "$ac_err"; then
3579 rm -rf conftest*
3580 eval "ac_cv_header_$ac_safe=yes"
3581else
3582 echo "$ac_err" >&5
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3585 rm -rf conftest*
3586 eval "ac_cv_header_$ac_safe=no"
3587fi
3588rm -f conftest*
3589fi
3590if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3593 cat >> confdefs.h <<EOF
3594#define $ac_tr_hdr 1
3595EOF
3596
3597else
3598 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003599fi
3600done
3601
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003602 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003603geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
3604strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003605do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003606echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003607echo "configure:3608: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003608if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003610else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003611 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003612#line 3613 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003613#include "confdefs.h"
3614/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003615 which can conflict with char $ac_func(); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003616#include <assert.h>
3617/* Override any gcc2 internal prototype to avoid an error. */
3618/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003619 builtin and then its argument prototype would still apply. */
3620char $ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003621
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003622int main() {
3623
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003624/* The GNU C library defines this for functions which it implements
3625 to always fail with ENOSYS. Some functions are actually named
3626 something starting with __ and the normal name is an alias. */
3627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3628choke me
3629#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003630$ac_func();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003631#endif
3632
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003633; return 0; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003634EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003635if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003636 rm -rf conftest*
3637 eval "ac_cv_func_$ac_func=yes"
3638else
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3641 rm -rf conftest*
3642 eval "ac_cv_func_$ac_func=no"
3643fi
3644rm -f conftest*
3645fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003646
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003647if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3648 echo "$ac_t""yes" 1>&6
3649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3650 cat >> confdefs.h <<EOF
3651#define $ac_tr_func 1
3652EOF
3653
3654else
3655 echo "$ac_t""no" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003656fi
3657done
3658
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003659
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003660
3661
3662
3663
3664
3665 am_save_CPPFLAGS="$CPPFLAGS"
3666
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003667 for element in $INCICONV; do
3668 haveit=
3669 for x in $CPPFLAGS; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003670
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003671 acl_save_prefix="$prefix"
3672 prefix="$acl_final_prefix"
3673 acl_save_exec_prefix="$exec_prefix"
3674 exec_prefix="$acl_final_exec_prefix"
3675 eval x=\"$x\"
3676 exec_prefix="$acl_save_exec_prefix"
3677 prefix="$acl_save_prefix"
3678
3679 if test "X$x" = "X$element"; then
3680 haveit=yes
3681 break
3682 fi
3683 done
3684 if test -z "$haveit"; then
3685 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3686 fi
3687 done
3688
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003689
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003690 echo $ac_n "checking for iconv""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003691echo "configure:3692: checking for iconv" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003692if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3694else
3695
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003696 am_cv_func_iconv="no, consider installing GNU libiconv"
3697 am_cv_lib_iconv=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003698 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003699#line 3700 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003700#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003701#include <stdlib.h>
3702#include <iconv.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003703int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003704iconv_t cd = iconv_open("","");
3705 iconv(cd,NULL,NULL,NULL,NULL);
3706 iconv_close(cd);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003707; return 0; }
3708EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003709if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003710 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003711 am_cv_func_iconv=yes
3712else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003715fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003716rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003717 if test "$am_cv_func_iconv" != yes; then
3718 am_save_LIBS="$LIBS"
3719 LIBS="$LIBS $LIBICONV"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003720 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003721#line 3722 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003722#include "confdefs.h"
3723#include <stdlib.h>
3724#include <iconv.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003725int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003726iconv_t cd = iconv_open("","");
3727 iconv(cd,NULL,NULL,NULL,NULL);
3728 iconv_close(cd);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003729; return 0; }
3730EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003731if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003732 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003733 am_cv_lib_iconv=yes
3734 am_cv_func_iconv=yes
3735else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003738fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003739rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003740 LIBS="$am_save_LIBS"
3741 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003742
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003743fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003744
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003745echo "$ac_t""$am_cv_func_iconv" 1>&6
3746 if test "$am_cv_func_iconv" = yes; then
3747 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003748#define HAVE_ICONV 1
3749EOF
3750
3751 fi
3752 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003753 echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003754echo "configure:3755: checking how to link with libiconv" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003755 echo "$ac_t""$LIBICONV" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003756 else
3757 CPPFLAGS="$am_save_CPPFLAGS"
3758 LIBICONV=
3759 LTLIBICONV=
3760 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003761
3762
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003763
3764 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003765 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003766echo "configure:3767: checking for iconv declaration" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003767 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003769else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003770
3771 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003772#line 3773 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003773#include "confdefs.h"
3774
3775#include <stdlib.h>
3776#include <iconv.h>
3777extern
3778#ifdef __cplusplus
3779"C"
3780#endif
3781#if defined(__STDC__) || defined(__cplusplus)
3782size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3783#else
3784size_t iconv();
3785#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003786
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003787int main() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003788
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003789; return 0; }
3790EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003791if { (eval echo configure:3792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003792 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003793 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003794else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 rm -rf conftest*
3798 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003799fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003800rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003801 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 +00003802fi
3803
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003804 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003805 echo "$ac_t""${ac_t:-
3806 }$am_cv_proto_iconv" 1>&6
3807 cat >> confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003808#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003809EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003810
3811 fi
3812
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003813
3814 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003815echo "configure:3816: checking for nl_langinfo and CODESET" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003816if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003818else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003819 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003820#line 3821 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003821#include "confdefs.h"
3822#include <langinfo.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003823int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003824char* cs = nl_langinfo(CODESET);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003825; return 0; }
3826EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003827if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003828 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003829 am_cv_langinfo_codeset=yes
3830else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 rm -rf conftest*
3834 am_cv_langinfo_codeset=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003835fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003836rm -f conftest*
3837
3838fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003839
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003840echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003841 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003842 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003843#define HAVE_LANGINFO_CODESET 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003844EOF
3845
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003846 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003847
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003848 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003849
3850 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003851echo "configure:3852: checking for LC_MESSAGES" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003852if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003854else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003855 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003856#line 3857 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003857#include "confdefs.h"
3858#include <locale.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003859int main() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003860return LC_MESSAGES
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003861; return 0; }
3862EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04003863if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003864 rm -rf conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003865 am_cv_val_LC_MESSAGES=yes
3866else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003867 echo "configure: failed program was:" >&5
3868 cat conftest.$ac_ext >&5
3869 rm -rf conftest*
3870 am_cv_val_LC_MESSAGES=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003871fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003872rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003873fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003874
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003875echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3876 if test $am_cv_val_LC_MESSAGES = yes; then
3877 cat >> confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003878#define HAVE_LC_MESSAGES 1
3879EOF
3880
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003881 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003882
3883 fi
3884
3885 for ac_prog in bison
3886do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003887# Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003888set dummy $ac_prog; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003889echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003890echo "configure:3891: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003891if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003893else
3894 if test -n "$INTLBISON"; then
3895 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3896else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3898 ac_dummy="$PATH"
3899 for ac_dir in $ac_dummy; do
3900 test -z "$ac_dir" && ac_dir=.
3901 if test -f $ac_dir/$ac_word; then
3902 ac_cv_prog_INTLBISON="$ac_prog"
3903 break
3904 fi
3905 done
3906 IFS="$ac_save_ifs"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003907fi
3908fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003909INTLBISON="$ac_cv_prog_INTLBISON"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003910if test -n "$INTLBISON"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003911 echo "$ac_t""$INTLBISON" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003912else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003913 echo "$ac_t""no" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003914fi
3915
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003916test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003917done
3918
3919 if test -z "$INTLBISON"; then
3920 ac_verc_fail=yes
3921 else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003922 echo $ac_n "checking version of bison""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003923echo "configure:3924: checking version of bison" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003924 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3925 case $ac_prog_version in
3926 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3927 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3928 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3929 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3930 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003931 echo "$ac_t""$ac_prog_version" 1>&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003932 fi
3933 if test $ac_verc_fail = yes; then
3934 INTLBISON=:
3935 fi
3936
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003952echo "configure:3953: checking whether NLS is requested" >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003953 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003954if test "${enable_nls+set}" = set; then
3955 enableval="$enable_nls"
3956 USE_NLS=$enableval
3957else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003958 USE_NLS=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003959fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003960
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003961 echo "$ac_t""$USE_NLS" 1>&6
3962
3963
3964
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003965 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003966 USE_INCLUDED_LIBINTL=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003967
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003968 LIBINTL=
3969 LTLIBINTL=
3970 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003971
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003972 if test "$USE_NLS" = "yes"; then
3973 gt_use_preinstalled_gnugettext=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003974
3975 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003976echo "configure:3977: checking whether included gettext is requested" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003977 # Check whether --with-included-gettext or --without-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003978if test "${with_included_gettext+set}" = set; then
3979 withval="$with_included_gettext"
3980 nls_cv_force_use_gnu_gettext=$withval
3981else
3982 nls_cv_force_use_gnu_gettext=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003983fi
3984
3985 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003986
3987 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3988 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003989
3990
3991
3992
3993
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003994
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003995 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04003996echo "configure:3997: checking for GNU gettext in libc" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003997if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003999else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004000 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04004001#line 4002 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004002#include "confdefs.h"
4003#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004004extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004005extern int *_nl_domain_bindings;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004006int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004007bindtextdomain ("", "");
4008return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004009; return 0; }
4010EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04004011if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004012 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004013 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004014else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4017 rm -rf conftest*
4018 gt_cv_func_gnugettext1_libc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004019fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004020rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004021fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004022
4023echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004024
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004025 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004026
4027
4028
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004029 use_additional=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004030
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004031 acl_save_prefix="$prefix"
4032 prefix="$acl_final_prefix"
4033 acl_save_exec_prefix="$exec_prefix"
4034 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004035
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004036 eval additional_includedir=\"$includedir\"
4037 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004038
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004039 exec_prefix="$acl_save_exec_prefix"
4040 prefix="$acl_save_prefix"
4041
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004042 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004043if test "${with_libintl_prefix+set}" = set; then
4044 withval="$with_libintl_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004045
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004046 if test "X$withval" = "Xno"; then
4047 use_additional=no
4048 else
4049 if test "X$withval" = "X"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004050
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004051 acl_save_prefix="$prefix"
4052 prefix="$acl_final_prefix"
4053 acl_save_exec_prefix="$exec_prefix"
4054 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004055
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004056 eval additional_includedir=\"$includedir\"
4057 eval additional_libdir=\"$libdir\"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004058
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004059 exec_prefix="$acl_save_exec_prefix"
4060 prefix="$acl_save_prefix"
4061
4062 else
4063 additional_includedir="$withval/include"
4064 additional_libdir="$withval/lib"
4065 fi
4066 fi
4067
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004068fi
4069
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004070 LIBINTL=
4071 LTLIBINTL=
4072 INCINTL=
4073 rpathdirs=
4074 ltrpathdirs=
4075 names_already_handled=
4076 names_next_round='intl '
4077 while test -n "$names_next_round"; do
4078 names_this_round="$names_next_round"
4079 names_next_round=
4080 for name in $names_this_round; do
4081 already_handled=
4082 for n in $names_already_handled; do
4083 if test "$n" = "$name"; then
4084 already_handled=yes
4085 break
4086 fi
4087 done
4088 if test -z "$already_handled"; then
4089 names_already_handled="$names_already_handled $name"
4090 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4091 eval value=\"\$HAVE_LIB$uppername\"
4092 if test -n "$value"; then
4093 if test "$value" = yes; then
4094 eval value=\"\$LIB$uppername\"
4095 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4096 eval value=\"\$LTLIB$uppername\"
4097 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4098 else
4099 :
4100 fi
4101 else
4102 found_dir=
4103 found_la=
4104 found_so=
4105 found_a=
4106 if test $use_additional = yes; then
4107 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4108 found_dir="$additional_libdir"
4109 found_so="$additional_libdir/lib$name.$shlibext"
4110 if test -f "$additional_libdir/lib$name.la"; then
4111 found_la="$additional_libdir/lib$name.la"
4112 fi
4113 else
4114 if test -f "$additional_libdir/lib$name.$libext"; then
4115 found_dir="$additional_libdir"
4116 found_a="$additional_libdir/lib$name.$libext"
4117 if test -f "$additional_libdir/lib$name.la"; then
4118 found_la="$additional_libdir/lib$name.la"
4119 fi
4120 fi
4121 fi
4122 fi
4123 if test "X$found_dir" = "X"; then
4124 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004125
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004126 acl_save_prefix="$prefix"
4127 prefix="$acl_final_prefix"
4128 acl_save_exec_prefix="$exec_prefix"
4129 exec_prefix="$acl_final_exec_prefix"
4130 eval x=\"$x\"
4131 exec_prefix="$acl_save_exec_prefix"
4132 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004133
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004134 case "$x" in
4135 -L*)
4136 dir=`echo "X$x" | sed -e 's/^X-L//'`
4137 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4138 found_dir="$dir"
4139 found_so="$dir/lib$name.$shlibext"
4140 if test -f "$dir/lib$name.la"; then
4141 found_la="$dir/lib$name.la"
4142 fi
4143 else
4144 if test -f "$dir/lib$name.$libext"; then
4145 found_dir="$dir"
4146 found_a="$dir/lib$name.$libext"
4147 if test -f "$dir/lib$name.la"; then
4148 found_la="$dir/lib$name.la"
4149 fi
4150 fi
4151 fi
4152 ;;
4153 esac
4154 if test "X$found_dir" != "X"; then
4155 break
4156 fi
4157 done
4158 fi
4159 if test "X$found_dir" != "X"; then
4160 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4161 if test "X$found_so" != "X"; then
4162 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4163 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4164 else
4165 haveit=
4166 for x in $ltrpathdirs; do
4167 if test "X$x" = "X$found_dir"; then
4168 haveit=yes
4169 break
4170 fi
4171 done
4172 if test -z "$haveit"; then
4173 ltrpathdirs="$ltrpathdirs $found_dir"
4174 fi
4175 if test "$hardcode_direct" = yes; then
4176 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4177 else
4178 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4179 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4180 haveit=
4181 for x in $rpathdirs; do
4182 if test "X$x" = "X$found_dir"; then
4183 haveit=yes
4184 break
4185 fi
4186 done
4187 if test -z "$haveit"; then
4188 rpathdirs="$rpathdirs $found_dir"
4189 fi
4190 else
4191 haveit=
4192 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004193
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004194 acl_save_prefix="$prefix"
4195 prefix="$acl_final_prefix"
4196 acl_save_exec_prefix="$exec_prefix"
4197 exec_prefix="$acl_final_exec_prefix"
4198 eval x=\"$x\"
4199 exec_prefix="$acl_save_exec_prefix"
4200 prefix="$acl_save_prefix"
4201
4202 if test "X$x" = "X-L$found_dir"; then
4203 haveit=yes
4204 break
4205 fi
4206 done
4207 if test -z "$haveit"; then
4208 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4209 fi
4210 if test "$hardcode_minus_L" != no; then
4211 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4212 else
4213 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4214 fi
4215 fi
4216 fi
4217 fi
4218 else
4219 if test "X$found_a" != "X"; then
4220 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4221 else
4222 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4223 fi
4224 fi
4225 additional_includedir=
4226 case "$found_dir" in
4227 */lib | */lib/)
4228 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4229 additional_includedir="$basedir/include"
4230 ;;
4231 esac
4232 if test "X$additional_includedir" != "X"; then
4233 if test "X$additional_includedir" != "X/usr/include"; then
4234 haveit=
4235 if test "X$additional_includedir" = "X/usr/local/include"; then
4236 if test -n "$GCC"; then
4237 case $host_os in
4238 linux*) haveit=yes;;
4239 esac
4240 fi
4241 fi
4242 if test -z "$haveit"; then
4243 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004244
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004245 acl_save_prefix="$prefix"
4246 prefix="$acl_final_prefix"
4247 acl_save_exec_prefix="$exec_prefix"
4248 exec_prefix="$acl_final_exec_prefix"
4249 eval x=\"$x\"
4250 exec_prefix="$acl_save_exec_prefix"
4251 prefix="$acl_save_prefix"
4252
4253 if test "X$x" = "X-I$additional_includedir"; then
4254 haveit=yes
4255 break
4256 fi
4257 done
4258 if test -z "$haveit"; then
4259 if test -d "$additional_includedir"; then
4260 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4261 fi
4262 fi
4263 fi
4264 fi
4265 fi
4266 if test -n "$found_la"; then
4267 save_libdir="$libdir"
4268 case "$found_la" in
4269 */* | *\\*) . "$found_la" ;;
4270 *) . "./$found_la" ;;
4271 esac
4272 libdir="$save_libdir"
4273 for dep in $dependency_libs; do
4274 case "$dep" in
4275 -L*)
4276 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4277 if test "X$additional_libdir" != "X/usr/lib"; then
4278 haveit=
4279 if test "X$additional_libdir" = "X/usr/local/lib"; then
4280 if test -n "$GCC"; then
4281 case $host_os in
4282 linux*) haveit=yes;;
4283 esac
4284 fi
4285 fi
4286 if test -z "$haveit"; then
4287 haveit=
4288 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004289
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004290 acl_save_prefix="$prefix"
4291 prefix="$acl_final_prefix"
4292 acl_save_exec_prefix="$exec_prefix"
4293 exec_prefix="$acl_final_exec_prefix"
4294 eval x=\"$x\"
4295 exec_prefix="$acl_save_exec_prefix"
4296 prefix="$acl_save_prefix"
4297
4298 if test "X$x" = "X-L$additional_libdir"; then
4299 haveit=yes
4300 break
4301 fi
4302 done
4303 if test -z "$haveit"; then
4304 if test -d "$additional_libdir"; then
4305 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4306 fi
4307 fi
4308 haveit=
4309 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004310
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004311 acl_save_prefix="$prefix"
4312 prefix="$acl_final_prefix"
4313 acl_save_exec_prefix="$exec_prefix"
4314 exec_prefix="$acl_final_exec_prefix"
4315 eval x=\"$x\"
4316 exec_prefix="$acl_save_exec_prefix"
4317 prefix="$acl_save_prefix"
4318
4319 if test "X$x" = "X-L$additional_libdir"; then
4320 haveit=yes
4321 break
4322 fi
4323 done
4324 if test -z "$haveit"; then
4325 if test -d "$additional_libdir"; then
4326 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4327 fi
4328 fi
4329 fi
4330 fi
4331 ;;
4332 -R*)
4333 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4334 if test "$enable_rpath" != no; then
4335 haveit=
4336 for x in $rpathdirs; do
4337 if test "X$x" = "X$dir"; then
4338 haveit=yes
4339 break
4340 fi
4341 done
4342 if test -z "$haveit"; then
4343 rpathdirs="$rpathdirs $dir"
4344 fi
4345 haveit=
4346 for x in $ltrpathdirs; do
4347 if test "X$x" = "X$dir"; then
4348 haveit=yes
4349 break
4350 fi
4351 done
4352 if test -z "$haveit"; then
4353 ltrpathdirs="$ltrpathdirs $dir"
4354 fi
4355 fi
4356 ;;
4357 -l*)
4358 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4359 ;;
4360 *.la)
4361 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4362 ;;
4363 *)
4364 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4365 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4366 ;;
4367 esac
4368 done
4369 fi
4370 else
4371 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4372 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4373 fi
4374 fi
4375 fi
4376 done
4377 done
4378 if test "X$rpathdirs" != "X"; then
4379 if test -n "$hardcode_libdir_separator"; then
4380 alldirs=
4381 for found_dir in $rpathdirs; do
4382 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4383 done
4384 acl_save_libdir="$libdir"
4385 libdir="$alldirs"
4386 eval flag=\"$hardcode_libdir_flag_spec\"
4387 libdir="$acl_save_libdir"
4388 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4389 else
4390 for found_dir in $rpathdirs; do
4391 acl_save_libdir="$libdir"
4392 libdir="$found_dir"
4393 eval flag=\"$hardcode_libdir_flag_spec\"
4394 libdir="$acl_save_libdir"
4395 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4396 done
4397 fi
4398 fi
4399 if test "X$ltrpathdirs" != "X"; then
4400 for found_dir in $ltrpathdirs; do
4401 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4402 done
4403 fi
4404
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004405 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004406echo "configure:4407: checking for GNU gettext in libintl" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004407if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004409else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004410 gt_save_CPPFLAGS="$CPPFLAGS"
4411 CPPFLAGS="$CPPFLAGS $INCINTL"
4412 gt_save_LIBS="$LIBS"
4413 LIBS="$LIBS $LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004414 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04004415#line 4416 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004416#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004417#include <libintl.h>
4418extern int _nl_msg_cat_cntr;
4419extern
4420#ifdef __cplusplus
4421"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004422#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004423const char *_nl_expand_alias ();
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004424int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004425bindtextdomain ("", "");
4426return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004427; return 0; }
4428EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04004429if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004430 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004431 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004432else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004433 echo "configure: failed program was:" >&5
4434 cat conftest.$ac_ext >&5
4435 rm -rf conftest*
4436 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004437fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004438rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004439 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4440 LIBS="$LIBS $LIBICONV"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004441 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04004442#line 4443 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004443#include "confdefs.h"
4444#include <libintl.h>
4445extern int _nl_msg_cat_cntr;
4446extern
4447#ifdef __cplusplus
4448"C"
4449#endif
4450const char *_nl_expand_alias ();
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004451int main() {
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004452bindtextdomain ("", "");
4453return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004454; return 0; }
4455EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04004456if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004457 rm -rf conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004458 LIBINTL="$LIBINTL $LIBICONV"
4459 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4460 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004461
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004462else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004465fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004466rm -f conftest*
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004467 fi
4468 CPPFLAGS="$gt_save_CPPFLAGS"
4469 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004470fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004471
4472echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004473 fi
4474
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004475 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4476 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4477 && test "$PACKAGE" != gettext; }; then
4478 gt_use_preinstalled_gnugettext=yes
4479 else
4480 LIBINTL=
4481 LTLIBINTL=
4482 INCINTL=
4483 fi
4484
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004485
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004486 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
4487 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004488 fi
4489 fi
4490
4491 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4492 INTLOBJS="\$(GETTOBJS)"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004493 BUILD_INCLUDED_LIBINTL=yes
4494 USE_INCLUDED_LIBINTL=yes
4495 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
4496 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
4497 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004498 fi
4499
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004500 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4501 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4502 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004503 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004504
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004505
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004506 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4507 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004508 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004509#define ENABLE_NLS 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004510EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004511
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004512 else
4513 USE_NLS=no
4514 fi
4515 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004516
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004517 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004518
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004519 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4520 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004521 echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004522echo "configure:4523: checking how to link with libintl" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004523 echo "$ac_t""$LIBINTL" 1>&6
4524
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004525 for element in $INCINTL; do
4526 haveit=
4527 for x in $CPPFLAGS; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004528
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004529 acl_save_prefix="$prefix"
4530 prefix="$acl_final_prefix"
4531 acl_save_exec_prefix="$exec_prefix"
4532 exec_prefix="$acl_final_exec_prefix"
4533 eval x=\"$x\"
4534 exec_prefix="$acl_save_exec_prefix"
4535 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004536
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004537 if test "X$x" = "X$element"; then
4538 haveit=yes
4539 break
4540 fi
4541 done
4542 if test -z "$haveit"; then
4543 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4544 fi
4545 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004546
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004547 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004548
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004549 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004550#define HAVE_GETTEXT 1
4551EOF
4552
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004553 cat >> confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004554#define HAVE_DCGETTEXT 1
4555EOF
4556
4557 fi
4558
4559 POSUB=po
4560 fi
4561
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004562
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004563 if test "$PACKAGE" = gettext; then
4564 BUILD_INCLUDED_LIBINTL=yes
4565 fi
4566
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004567
4568
4569
4570
4571
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004572 nls_cv_header_intl=
4573 nls_cv_header_libgt=
4574
4575 DATADIRNAME=share
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004576
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004577
4578 INSTOBJEXT=.mo
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004579
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004580
4581 GENCAT=gencat
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004582
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004583
4584 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004585
4586
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004587
4588 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004589
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004590
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004591
4592
4593
4594
4595
4596echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004597echo "configure:4598: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004598set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4599if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004601else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004602 cat > conftestmake <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004603all:
4604 @echo 'ac_maketemp="${MAKE}"'
4605EOF
4606# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004607eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004608if test -n "$ac_maketemp"; then
4609 eval ac_cv_prog_make_${ac_make}_set=yes
4610else
4611 eval ac_cv_prog_make_${ac_make}_set=no
4612fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004613rm -f conftestmake
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004614fi
4615if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004616 echo "$ac_t""yes" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004617 SET_MAKE=
4618else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004619 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004620 SET_MAKE="MAKE=${MAKE-make}"
4621fi
4622
4623# Extract the first word of "ln", so it can be a program name with args.
4624set dummy ln; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004625echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004626echo "configure:4627: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004627if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004629else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004630 case "$LN" in
4631 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004632 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4633 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004634 ?:/*)
4635 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
4636 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004637 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4639 ac_dummy="$PATH"
4640 for ac_dir in $ac_dummy; do
4641 test -z "$ac_dir" && ac_dir=.
4642 if test -f $ac_dir/$ac_word; then
4643 ac_cv_path_LN="$ac_dir/$ac_word"
4644 break
4645 fi
4646 done
4647 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004648 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4649 ;;
4650esac
4651fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004652LN="$ac_cv_path_LN"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004653if test -n "$LN"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004654 echo "$ac_t""$LN" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004655else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004656 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004657fi
4658
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004659echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004660echo "configure:4661: checking whether ln -s works" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004661if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004663else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004664 rm -f conftestdata
4665if ln -s X conftestdata 2>/dev/null
4666then
4667 rm -f conftestdata
4668 ac_cv_prog_LN_S="ln -s"
4669else
4670 ac_cv_prog_LN_S=ln
4671fi
4672fi
4673LN_S="$ac_cv_prog_LN_S"
4674if test "$ac_cv_prog_LN_S" = "ln -s"; then
4675 echo "$ac_t""yes" 1>&6
4676else
4677 echo "$ac_t""no" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004678fi
4679
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004680# Extract the first word of "mv", so it can be a program name with args.
4681set dummy mv; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004683echo "configure:4684: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004684if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004686else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004687 case "$MV" in
4688 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004689 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4690 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004691 ?:/*)
4692 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
4693 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004694 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4696 ac_dummy="$PATH"
4697 for ac_dir in $ac_dummy; do
4698 test -z "$ac_dir" && ac_dir=.
4699 if test -f $ac_dir/$ac_word; then
4700 ac_cv_path_MV="$ac_dir/$ac_word"
4701 break
4702 fi
4703 done
4704 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004705 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4706 ;;
4707esac
4708fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004709MV="$ac_cv_path_MV"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004710if test -n "$MV"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004711 echo "$ac_t""$MV" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004712else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004713 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004714fi
4715
4716# Extract the first word of "cp", so it can be a program name with args.
4717set dummy cp; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004719echo "configure:4720: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004720if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004722else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004723 case "$CP" in
4724 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004725 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4726 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004727 ?:/*)
4728 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
4729 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004730 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4732 ac_dummy="$PATH"
4733 for ac_dir in $ac_dummy; do
4734 test -z "$ac_dir" && ac_dir=.
4735 if test -f $ac_dir/$ac_word; then
4736 ac_cv_path_CP="$ac_dir/$ac_word"
4737 break
4738 fi
4739 done
4740 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004741 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4742 ;;
4743esac
4744fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004745CP="$ac_cv_path_CP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004746if test -n "$CP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004747 echo "$ac_t""$CP" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004748else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004749 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004750fi
4751
4752# Extract the first word of "rm", so it can be a program name with args.
4753set dummy rm; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004754echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004755echo "configure:4756: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004756if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004758else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004759 case "$RM" in
4760 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004761 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4762 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004763 ?:/*)
4764 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
4765 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004766 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4768 ac_dummy="$PATH"
4769 for ac_dir in $ac_dummy; do
4770 test -z "$ac_dir" && ac_dir=.
4771 if test -f $ac_dir/$ac_word; then
4772 ac_cv_path_RM="$ac_dir/$ac_word"
4773 break
4774 fi
4775 done
4776 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004777 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4778 ;;
4779esac
4780fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004781RM="$ac_cv_path_RM"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004782if test -n "$RM"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004783 echo "$ac_t""$RM" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004784else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004785 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004786fi
4787
4788# Extract the first word of "chmod", so it can be a program name with args.
4789set dummy chmod; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004791echo "configure:4792: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004792if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004794else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004795 case "$CHMOD" in
4796 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004797 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4798 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004799 ?:/*)
4800 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
4801 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004802 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4804 ac_dummy="$PATH"
4805 for ac_dir in $ac_dummy; do
4806 test -z "$ac_dir" && ac_dir=.
4807 if test -f $ac_dir/$ac_word; then
4808 ac_cv_path_CHMOD="$ac_dir/$ac_word"
4809 break
4810 fi
4811 done
4812 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004813 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
4814 ;;
4815esac
4816fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004817CHMOD="$ac_cv_path_CHMOD"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004818if test -n "$CHMOD"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004819 echo "$ac_t""$CHMOD" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004820else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004821 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004822fi
4823
4824# Extract the first word of "awk", so it can be a program name with args.
4825set dummy awk; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004826echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004827echo "configure:4828: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004828if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004830else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004831 case "$AWK" in
4832 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004833 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4834 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004835 ?:/*)
4836 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
4837 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004838 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4840 ac_dummy="$PATH"
4841 for ac_dir in $ac_dummy; do
4842 test -z "$ac_dir" && ac_dir=.
4843 if test -f $ac_dir/$ac_word; then
4844 ac_cv_path_AWK="$ac_dir/$ac_word"
4845 break
4846 fi
4847 done
4848 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004849 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
4850 ;;
4851esac
4852fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004853AWK="$ac_cv_path_AWK"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004854if test -n "$AWK"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004855 echo "$ac_t""$AWK" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004856else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004857 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004858fi
4859
4860# Extract the first word of "sed", so it can be a program name with args.
4861set dummy sed; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004863echo "configure:4864: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004864if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004866else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004867 case "$SED" in
4868 /*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004869 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4870 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004871 ?:/*)
4872 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
4873 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004874 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004875 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_SED="$ac_dir/$ac_word"
4881 break
4882 fi
4883 done
4884 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004885 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4886 ;;
4887esac
4888fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004889SED="$ac_cv_path_SED"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004890if test -n "$SED"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004891 echo "$ac_t""$SED" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004892else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004893 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004894fi
4895
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004896# Extract the first word of "perl", so it can be a program name with args.
4897set dummy perl; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004898echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004899echo "configure:4900: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004900if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004902else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004903 case "$PERL" in
4904 /*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004905 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4906 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004907 ?:/*)
4908 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
4909 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004910 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004911 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_PERL="$ac_dir/$ac_word"
4917 break
4918 fi
4919 done
4920 IFS="$ac_save_ifs"
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004921 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
4922 ;;
4923esac
4924fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004925PERL="$ac_cv_path_PERL"
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004926if test -n "$PERL"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004927 echo "$ac_t""$PERL" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004928else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004929 echo "$ac_t""no" 1>&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004930fi
4931
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004932# Extract the first word of "ldconfig", so it can be a program name with args.
4933set dummy ldconfig; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004934echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004935echo "configure:4936: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004936if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004938else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004939 case "$LDCONFIG" in
4940 /*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004941 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4942 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004943 ?:/*)
4944 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
4945 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004946 *)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4948 ac_dummy="$PATH"
4949 for ac_dir in $ac_dummy; do
4950 test -z "$ac_dir" && ac_dir=.
4951 if test -f $ac_dir/$ac_word; then
4952 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
4953 break
4954 fi
4955 done
4956 IFS="$ac_save_ifs"
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004957 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
4958 ;;
4959esac
4960fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004961LDCONFIG="$ac_cv_path_LDCONFIG"
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004962if test -n "$LDCONFIG"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004963 echo "$ac_t""$LDCONFIG" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004964else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004965 echo "$ac_t""no" 1>&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004966fi
4967
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004968echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004969echo "configure:4970: checking build system type" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004970
4971build_alias=$build
4972case "$build_alias" in
4973NONE)
4974 case $nonopt in
4975 NONE) build_alias=$host_alias ;;
4976 *) build_alias=$nonopt ;;
4977 esac ;;
4978esac
4979
4980build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4981build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4982build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4983build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4984echo "$ac_t""$build" 1>&6
4985
4986if test $host != $build; then
4987 ac_tool_prefix=${host_alias}-
4988else
4989 ac_tool_prefix=
4990fi
4991
4992# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004993set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004994echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04004995echo "configure:4996: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004996if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004998else
4999 if test -n "$AR"; then
5000 ac_cv_prog_AR="$AR" # Let the user override the test.
5001else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5003 ac_dummy="$PATH"
5004 for ac_dir in $ac_dummy; do
5005 test -z "$ac_dir" && ac_dir=.
5006 if test -f $ac_dir/$ac_word; then
5007 ac_cv_prog_AR="${ac_tool_prefix}ar"
5008 break
5009 fi
5010 done
5011 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005012fi
5013fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005014AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005015if test -n "$AR"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005016 echo "$ac_t""$AR" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005017else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005018 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005019fi
5020
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005021
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005022if test -z "$ac_cv_prog_AR"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005023if test -n "$ac_tool_prefix"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005024 # Extract the first word of "ar", so it can be a program name with args.
5025set dummy ar; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005027echo "configure:5028: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005028if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
5029 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005030else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005031 if test -n "$AR"; then
5032 ac_cv_prog_AR="$AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005033else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5035 ac_dummy="$PATH"
5036 for ac_dir in $ac_dummy; do
5037 test -z "$ac_dir" && ac_dir=.
5038 if test -f $ac_dir/$ac_word; then
5039 ac_cv_prog_AR="ar"
5040 break
5041 fi
5042 done
5043 IFS="$ac_save_ifs"
5044 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005045fi
5046fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005047AR="$ac_cv_prog_AR"
5048if test -n "$AR"; then
5049 echo "$ac_t""$AR" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005050else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005051 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005052fi
5053
5054else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005055 AR="ar"
5056fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005057fi
5058
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005059# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005060set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005061echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005062echo "configure:5063: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005063if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5064 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005065else
5066 if test -n "$RANLIB"; then
5067 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5068else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5070 ac_dummy="$PATH"
5071 for ac_dir in $ac_dummy; do
5072 test -z "$ac_dir" && ac_dir=.
5073 if test -f $ac_dir/$ac_word; then
5074 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5075 break
5076 fi
5077 done
5078 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005079fi
5080fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005081RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005082if test -n "$RANLIB"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005083 echo "$ac_t""$RANLIB" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005084else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005085 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005086fi
5087
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005088
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005089if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005090if test -n "$ac_tool_prefix"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005091 # Extract the first word of "ranlib", so it can be a program name with args.
5092set dummy ranlib; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005094echo "configure:5095: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005095if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005097else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005098 if test -n "$RANLIB"; then
5099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005100else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5102 ac_dummy="$PATH"
5103 for ac_dir in $ac_dummy; do
5104 test -z "$ac_dir" && ac_dir=.
5105 if test -f $ac_dir/$ac_word; then
5106 ac_cv_prog_RANLIB="ranlib"
5107 break
5108 fi
5109 done
5110 IFS="$ac_save_ifs"
5111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005112fi
5113fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005114RANLIB="$ac_cv_prog_RANLIB"
5115if test -n "$RANLIB"; then
5116 echo "$ac_t""$RANLIB" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005117else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005118 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005119fi
5120
5121else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005122 RANLIB=":"
5123fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005124fi
5125
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005126# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005127set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005128echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005129echo "configure:5130: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005130if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005132else
5133 if test -n "$STRIP"; then
5134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5135else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5137 ac_dummy="$PATH"
5138 for ac_dir in $ac_dummy; do
5139 test -z "$ac_dir" && ac_dir=.
5140 if test -f $ac_dir/$ac_word; then
5141 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5142 break
5143 fi
5144 done
5145 IFS="$ac_save_ifs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005146fi
5147fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005148STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005149if test -n "$STRIP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005150 echo "$ac_t""$STRIP" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005151else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005152 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005153fi
5154
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005155
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005156if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005157if test -n "$ac_tool_prefix"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005158 # Extract the first word of "strip", so it can be a program name with args.
5159set dummy strip; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005160echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005161echo "configure:5162: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005162if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005164else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005165 if test -n "$STRIP"; then
5166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005167else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5169 ac_dummy="$PATH"
5170 for ac_dir in $ac_dummy; do
5171 test -z "$ac_dir" && ac_dir=.
5172 if test -f $ac_dir/$ac_word; then
5173 ac_cv_prog_STRIP="strip"
5174 break
5175 fi
5176 done
5177 IFS="$ac_save_ifs"
5178 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005179fi
5180fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005181STRIP="$ac_cv_prog_STRIP"
5182if test -n "$STRIP"; then
5183 echo "$ac_t""$STRIP" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005184else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005185 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005186fi
5187
5188else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005189 STRIP=":"
5190fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005191fi
5192
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005193# Find a good install program. We prefer a C program (faster),
5194# so one script is as good as another. But avoid the broken or
5195# incompatible versions:
5196# SysV /etc/install, /usr/sbin/install
5197# SunOS /usr/etc/install
5198# IRIX /sbin/install
5199# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005200# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005201# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5202# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5203# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005204echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005205echo "configure:5206: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005206if test -z "$INSTALL"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005207if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005209else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005210 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005211 for ac_dir in $PATH; do
5212 # Account for people who put trailing slashes in PATH elements.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005213 case "$ac_dir/" in
5214 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005215 *)
5216 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005217 # Don't use installbsd from OSF since it installs stuff as root
5218 # by default.
5219 for ac_prog in ginstall scoinst install; do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005220 if test -f $ac_dir/$ac_prog; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005221 if test $ac_prog = install &&
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005222 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005223 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005224 :
5225 else
5226 ac_cv_path_install="$ac_dir/$ac_prog -c"
5227 break 2
5228 fi
5229 fi
5230 done
5231 ;;
5232 esac
5233 done
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005234 IFS="$ac_save_IFS"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005235
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005236fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005237 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005238 INSTALL="$ac_cv_path_install"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005239 else
5240 # As a last resort, use the slow shell script. We don't cache a
5241 # path for INSTALL within a source directory, because that will
5242 # break other packages using the cache if that directory is
5243 # removed, or if the path is relative.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005244 INSTALL="$ac_install_sh"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005245 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005246fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005247echo "$ac_t""$INSTALL" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005248
5249# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5250# It thinks the first close brace ends the variable substitution.
5251test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5252
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005253test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005254
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005255test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5256
Theodore Ts'o6c133521999-07-03 20:37:03 +00005257# See if we need a separate native compiler.
5258if test $cross_compiling = no; then
5259 BUILD_CC="$CC"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005260
Theodore Ts'o6c133521999-07-03 20:37:03 +00005261else
5262 for ac_prog in gcc cc
5263do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005264# Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +00005265set dummy $ac_prog; ac_word=$2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005266echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005267echo "configure:5268: checking for $ac_word" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005268if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00005270else
5271 if test -n "$BUILD_CC"; then
5272 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5273else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5275 ac_dummy="$PATH"
5276 for ac_dir in $ac_dummy; do
5277 test -z "$ac_dir" && ac_dir=.
5278 if test -f $ac_dir/$ac_word; then
5279 ac_cv_prog_BUILD_CC="$ac_prog"
5280 break
5281 fi
5282 done
5283 IFS="$ac_save_ifs"
Theodore Ts'o6c133521999-07-03 20:37:03 +00005284fi
5285fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005286BUILD_CC="$ac_cv_prog_BUILD_CC"
Theodore Ts'o6c133521999-07-03 20:37:03 +00005287if test -n "$BUILD_CC"; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005288 echo "$ac_t""$BUILD_CC" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00005289else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005290 echo "$ac_t""no" 1>&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00005291fi
5292
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005293test -n "$BUILD_CC" && break
Theodore Ts'o6c133521999-07-03 20:37:03 +00005294done
5295
5296fi
Theodore Ts'o9845cf52004-09-17 19:07:03 -04005297for ac_hdr in stdlib.h unistd.h stdarg.h stdint.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/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/queue.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 net/if_dl.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005298do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005299ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5300echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005301echo "configure:5302: checking for $ac_hdr" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005302if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005304else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005305 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005306#line 5307 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005307#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005308#include <$ac_hdr>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005309EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005310ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005311{ (eval echo configure:5312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005312ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5313if test -z "$ac_err"; then
5314 rm -rf conftest*
5315 eval "ac_cv_header_$ac_safe=yes"
5316else
5317 echo "$ac_err" >&5
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5320 rm -rf conftest*
5321 eval "ac_cv_header_$ac_safe=no"
5322fi
5323rm -f conftest*
5324fi
5325if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5326 echo "$ac_t""yes" 1>&6
5327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5328 cat >> confdefs.h <<EOF
5329#define $ac_tr_hdr 1
5330EOF
5331
5332else
5333 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005334fi
5335done
5336
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005337echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005338echo "configure:5339: checking for vprintf" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005339if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005341else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005342 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005343#line 5344 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005344#include "confdefs.h"
5345/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005346 which can conflict with char vprintf(); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005347#include <assert.h>
5348/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005349/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005350 builtin and then its argument prototype would still apply. */
5351char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005352
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005353int main() {
5354
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005355/* The GNU C library defines this for functions which it implements
5356 to always fail with ENOSYS. Some functions are actually named
5357 something starting with __ and the normal name is an alias. */
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005358#if defined (__stub_vprintf) || defined (__stub___vprintf)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005359choke me
5360#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005361vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005362#endif
5363
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005364; return 0; }
5365EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005366if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005367 rm -rf conftest*
5368 eval "ac_cv_func_vprintf=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005369else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 rm -rf conftest*
5373 eval "ac_cv_func_vprintf=no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005374fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005375rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005376fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005377
5378if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5379 echo "$ac_t""yes" 1>&6
5380 cat >> confdefs.h <<\EOF
5381#define HAVE_VPRINTF 1
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005382EOF
5383
5384else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005385 echo "$ac_t""no" 1>&6
5386fi
5387
5388if test "$ac_cv_func_vprintf" != yes; then
5389echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005390echo "configure:5391: checking for _doprnt" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005391if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5393else
5394 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005395#line 5396 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005396#include "confdefs.h"
5397/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005398 which can conflict with char _doprnt(); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005399#include <assert.h>
5400/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005401/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005402 builtin and then its argument prototype would still apply. */
5403char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005404
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005405int main() {
5406
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005407/* The GNU C library defines this for functions which it implements
5408 to always fail with ENOSYS. Some functions are actually named
5409 something starting with __ and the normal name is an alias. */
5410#if defined (__stub__doprnt) || defined (__stub____doprnt)
5411choke me
5412#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005413_doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005414#endif
5415
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005416; return 0; }
5417EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005418if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005419 rm -rf conftest*
5420 eval "ac_cv_func__doprnt=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005421else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5424 rm -rf conftest*
5425 eval "ac_cv_func__doprnt=no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005426fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005427rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005428fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005429
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005430if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5431 echo "$ac_t""yes" 1>&6
5432 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005433#define HAVE_DOPRNT 1
5434EOF
5435
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005436else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005437 echo "$ac_t""no" 1>&6
5438fi
5439
5440fi
5441
5442echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005443echo "configure:5444: checking whether d_reclen declared in dirent" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005444if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5446else
5447 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005448#line 5449 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005449#include "confdefs.h"
Theodore Ts'offf45482003-04-13 00:44:19 -04005450#include <dirent.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005451int main() {
5452struct dirent de; de.d_reclen = 0;
5453; return 0; }
5454EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005455if { (eval echo configure:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005456 rm -rf conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005457 e2fsprogs_cv_have_d_reclen_dirent=yes
5458else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5461 rm -rf conftest*
5462 e2fsprogs_cv_have_d_reclen_dirent=no
Theodore Ts'offf45482003-04-13 00:44:19 -04005463fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005464rm -f conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005465fi
5466
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005467echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005468if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005469 cat >> confdefs.h <<\EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04005470#define HAVE_RECLEN_DIRENT 1
5471EOF
5472
5473fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005474echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005475echo "configure:5476: checking whether ssize_t declared" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005476if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then
5477 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005478else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005479 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005480#line 5481 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005481#include "confdefs.h"
5482#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005483int main() {
5484ssize_t a = 0;
5485; return 0; }
5486EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005487if { (eval echo configure:5488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005488 rm -rf conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005489 e2fsprogs_cv_have_ssize_t=yes
5490else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5493 rm -rf conftest*
5494 e2fsprogs_cv_have_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -04005495fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005496rm -f conftest*
Theodore Ts'offf45482003-04-13 00:44:19 -04005497fi
5498
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005499echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005500if test "$e2fsprogs_cv_have_ssize_t" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005501 cat >> confdefs.h <<\EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04005502#define HAVE_TYPE_SSIZE_T 1
5503EOF
5504
5505fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005506echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005507echo "configure:5508: checking whether llseek declared in unistd.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005508if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'offf45482003-04-13 00:44:19 -04005510else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005511 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005512#line 5513 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04005513#include "confdefs.h"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005514#include <unistd.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005515int main() {
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005516extern int llseek(int);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005517; return 0; }
5518EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005519if { (eval echo configure:5520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005520 rm -rf conftest*
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005521 e2fsprogs_cv_have_llseek_prototype=no
5522else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005523 echo "configure: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5525 rm -rf conftest*
5526 e2fsprogs_cv_have_llseek_prototype=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005527fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005528rm -f conftest*
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005529fi
5530
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005531echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005532if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005533 cat >> confdefs.h <<\EOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00005534#define HAVE_LLSEEK_PROTOTYPE 1
5535EOF
5536
5537fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005538echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005539echo "configure:5540: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005540if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005542else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005543 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005544#line 5545 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005545#include "confdefs.h"
5546#define _LARGEFILE_SOURCE
5547#define _LARGEFILE64_SOURCE
5548#include <unistd.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005549int main() {
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005550extern int lseek64(int);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005551; return 0; }
5552EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005553if { (eval echo configure:5554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005554 rm -rf conftest*
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005555 e2fsprogs_cv_have_lseek64_prototype=no
5556else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 rm -rf conftest*
5560 e2fsprogs_cv_have_lseek64_prototype=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005561fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005562rm -f conftest*
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005563fi
5564
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005565echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005566if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005567 cat >> confdefs.h <<\EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00005568#define HAVE_LSEEK64_PROTOTYPE 1
5569EOF
5570
5571fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005572if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005573 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005574 ac_cv_sizeof_short=2
5575 ac_cv_sizeof_int=4
5576 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00005577 ac_cv_sizeof_long_long=8
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005578 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 +00005579fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005580echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005581echo "configure:5582: checking size of short" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005582if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
5583 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005584else
5585 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005586 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005587else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005588 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005589#line 5590 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005590#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005591#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005592#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005593main()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005594{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005595 FILE *f=fopen("conftestval", "w");
5596 if (!f) exit(1);
5597 fprintf(f, "%d\n", sizeof(short));
5598 exit(0);
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005599}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005600EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005601if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005602then
5603 ac_cv_sizeof_short=`cat conftestval`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005604else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5607 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005608 ac_cv_sizeof_short=0
5609fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005610rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005611fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005612
5613fi
5614echo "$ac_t""$ac_cv_sizeof_short" 1>&6
5615cat >> confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005616#define SIZEOF_SHORT $ac_cv_sizeof_short
5617EOF
5618
5619
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005620echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005621echo "configure:5622: checking size of int" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005622if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005624else
5625 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005626 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005627else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005628 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005629#line 5630 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005630#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005631#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005632#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005633main()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005634{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005635 FILE *f=fopen("conftestval", "w");
5636 if (!f) exit(1);
5637 fprintf(f, "%d\n", sizeof(int));
5638 exit(0);
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005639}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005640EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005641if { (eval echo configure:5642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005642then
5643 ac_cv_sizeof_int=`cat conftestval`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005644else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005645 echo "configure: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5647 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005648 ac_cv_sizeof_int=0
5649fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005650rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005651fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005652
5653fi
5654echo "$ac_t""$ac_cv_sizeof_int" 1>&6
5655cat >> confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005656#define SIZEOF_INT $ac_cv_sizeof_int
5657EOF
5658
5659
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005660echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005661echo "configure:5662: checking size of long" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005662if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005664else
5665 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005666 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005667else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005668 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005669#line 5670 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005670#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005671#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005672#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005673main()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005674{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005675 FILE *f=fopen("conftestval", "w");
5676 if (!f) exit(1);
5677 fprintf(f, "%d\n", sizeof(long));
5678 exit(0);
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005679}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005680EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005681if { (eval echo configure:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005682then
5683 ac_cv_sizeof_long=`cat conftestval`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005684else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005688 ac_cv_sizeof_long=0
5689fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005690rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005691fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005692
5693fi
5694echo "$ac_t""$ac_cv_sizeof_long" 1>&6
5695cat >> confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005696#define SIZEOF_LONG $ac_cv_sizeof_long
5697EOF
5698
5699
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005700echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005701echo "configure:5702: checking size of long long" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005702if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005704else
5705 if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005706 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005707else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005708 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005709#line 5710 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005710#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005711#include <stdio.h>
Theodore Ts'ofde3e1b2004-02-23 23:10:41 -05005712#include <sys/types.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005713main()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005714{
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005715 FILE *f=fopen("conftestval", "w");
5716 if (!f) exit(1);
5717 fprintf(f, "%d\n", sizeof(long long));
5718 exit(0);
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005719}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005720EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005721if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005722then
5723 ac_cv_sizeof_long_long=`cat conftestval`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005724else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5727 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005728 ac_cv_sizeof_long_long=0
5729fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005730rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005731fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005732
5733fi
5734echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5735cat >> confdefs.h <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005736#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5737EOF
5738
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005739
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005740SIZEOF_SHORT=$ac_cv_sizeof_short
5741SIZEOF_INT=$ac_cv_sizeof_int
5742SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005743SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
5744
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005745
5746
5747
5748echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005749echo "configure:5750: checking whether byte ordering is bigendian" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005750if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005752else
5753 ac_cv_c_bigendian=unknown
5754# See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005755cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005756#line 5757 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005757#include "confdefs.h"
5758#include <sys/types.h>
5759#include <sys/param.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005760int main() {
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005761
5762#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5763 bogus endian macros
5764#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005765; return 0; }
5766EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005767if { (eval echo configure:5768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005768 rm -rf conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005769 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005770cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005771#line 5772 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005772#include "confdefs.h"
5773#include <sys/types.h>
5774#include <sys/param.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005775int main() {
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005776
5777#if BYTE_ORDER != BIG_ENDIAN
5778 not big endian
5779#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005780; return 0; }
5781EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005782if { (eval echo configure:5783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005783 rm -rf conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005784 ac_cv_c_bigendian=yes
5785else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005786 echo "configure: failed program was:" >&5
5787 cat conftest.$ac_ext >&5
5788 rm -rf conftest*
5789 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005790fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005791rm -f conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005792else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005793 echo "configure: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005795fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005796rm -f conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005797if test $ac_cv_c_bigendian = unknown; then
5798if test "$cross_compiling" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005799 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005800else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005801 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005802#line 5803 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005803#include "confdefs.h"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005804main () {
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005805 /* Are we little or big endian? From Harbison&Steele. */
5806 union
5807 {
5808 long l;
5809 char c[sizeof (long)];
5810 } u;
5811 u.l = 1;
5812 exit (u.c[sizeof (long) - 1] == 1);
5813}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005814EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005815if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005816then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005817 ac_cv_c_bigendian=no
5818else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5821 rm -fr conftest*
5822 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005823fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005824rm -fr conftest*
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005825fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005826
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005827fi
5828fi
5829
5830echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5831if test $ac_cv_c_bigendian = yes; then
5832 cat >> confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00005833#define WORDS_BIGENDIAN 1
5834EOF
5835
5836fi
5837
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005838for ac_hdr in inttypes.h
5839do
5840ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5841echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005842echo "configure:5843: checking for $ac_hdr" >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005843if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5845else
5846 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005847#line 5848 "configure"
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005848#include "confdefs.h"
5849#include <$ac_hdr>
5850EOF
5851ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005852{ (eval echo configure:5853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005853ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5854if test -z "$ac_err"; then
5855 rm -rf conftest*
5856 eval "ac_cv_header_$ac_safe=yes"
5857else
5858 echo "$ac_err" >&5
5859 echo "configure: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5861 rm -rf conftest*
5862 eval "ac_cv_header_$ac_safe=no"
5863fi
5864rm -f conftest*
5865fi
5866if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5867 echo "$ac_t""yes" 1>&6
5868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5869 cat >> confdefs.h <<EOF
5870#define $ac_tr_hdr 1
5871EOF
5872
5873else
5874 echo "$ac_t""no" 1>&6
5875fi
5876done
5877
5878echo $ac_n "checking for intptr_t""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005879echo "configure:5880: checking for intptr_t" >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005880if eval "test \"`echo '$''{'ac_cv_type_intptr_t'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5882else
5883 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005884#line 5885 "configure"
Theodore Ts'o0c193f82003-08-01 14:26:23 -04005885#include "confdefs.h"
5886#include <sys/types.h>
5887#if STDC_HEADERS
5888#include <stdlib.h>
5889#include <stddef.h>
5890#endif
5891EOF
5892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893 egrep "(^|[^a-zA-Z_0-9])intptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5894 rm -rf conftest*
5895 ac_cv_type_intptr_t=yes
5896else
5897 rm -rf conftest*
5898 ac_cv_type_intptr_t=no
5899fi
5900rm -f conftest*
5901
5902fi
5903echo "$ac_t""$ac_cv_type_intptr_t" 1>&6
5904if test $ac_cv_type_intptr_t = no; then
5905 cat >> confdefs.h <<\EOF
5906#define intptr_t long
5907EOF
5908
5909fi
5910
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005911echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005912echo "configure:5913: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005913if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005915else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005916 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005917#line 5918 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005918#include "confdefs.h"
5919#include <sys/stat.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005920int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005921struct stat stat; stat.st_flags = 0;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005922; return 0; }
5923EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005924if { (eval echo configure:5925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005925 rm -rf conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005926 e2fsprogs_cv_struct_st_flags=yes
5927else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005928 echo "configure: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 rm -rf conftest*
5931 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005932fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005933rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005934fi
5935
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005936echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005937if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005938 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005939echo "configure:5940: checking whether st_flags field is useful" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005940 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
5941 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005942else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005943 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005944#line 5945 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005945#include "confdefs.h"
5946#include <sys/stat.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005947int main() {
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005948struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005949; return 0; }
5950EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005951if { (eval echo configure:5952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005952 rm -rf conftest*
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005953 e2fsprogs_cv_struct_st_flags_immut=yes
5954else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005955 echo "configure: failed program was:" >&5
5956 cat conftest.$ac_ext >&5
5957 rm -rf conftest*
5958 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005959fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005960rm -f conftest*
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005961fi
5962
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005963 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005964 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005965 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005966#define HAVE_STAT_FLAGS 1
5967EOF
5968
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00005969 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005970fi
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005971echo $ac_n "checking whether struct sockaddr contains sa_len""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04005972echo "configure:5973: checking whether struct sockaddr contains sa_len" >&5
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005973if eval "test \"`echo '$''{'e2fsprogs_cv_sockaddr_sa_len'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5975else
5976 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005977#line 5978 "configure"
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005978#include "confdefs.h"
5979#include <sys/types.h>
5980#include <sys/socket.h>
5981
5982int main() {
5983struct sockaddr sa;
5984sa.sa_len;
5985; return 0; }
5986EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04005987if { (eval echo configure:5988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o84ea6e72004-03-19 19:29:17 -05005988 rm -rf conftest*
5989 e2fsprogs_cv_sockaddr_sa_len=yes
5990else
5991 echo "configure: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5993 rm -rf conftest*
5994 e2fsprogs_cv_sockaddr_sa_len=no
5995fi
5996rm -f conftest*
5997fi
5998
5999echo "$ac_t""$e2fsprogs_cv_sockaddr_sa_len" 1>&6
6000if test $e2fsprogs_cv_sockaddr_sa_len = yes; then
6001 cat >> confdefs.h <<EOF
6002#define HAVE_SA_LEN 1
6003EOF
6004
6005fi
Theodore Ts'o1c29b092003-07-12 16:01:45 -04006006for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006007do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006008echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04006009echo "configure:6010: checking for $ac_func" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006010if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6011 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006012else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006013 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04006014#line 6015 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006015#include "confdefs.h"
6016/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006017 which can conflict with char $ac_func(); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006018#include <assert.h>
6019/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006020/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006021 builtin and then its argument prototype would still apply. */
6022char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006023
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006024int main() {
6025
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006026/* The GNU C library defines this for functions which it implements
6027 to always fail with ENOSYS. Some functions are actually named
6028 something starting with __ and the normal name is an alias. */
6029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6030choke me
6031#else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006032$ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006033#endif
6034
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006035; return 0; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006036EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04006037if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006038 rm -rf conftest*
6039 eval "ac_cv_func_$ac_func=yes"
6040else
6041 echo "configure: failed program was:" >&5
6042 cat conftest.$ac_ext >&5
6043 rm -rf conftest*
6044 eval "ac_cv_func_$ac_func=no"
6045fi
6046rm -f conftest*
6047fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006048
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006049if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6050 echo "$ac_t""yes" 1>&6
6051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6052 cat >> confdefs.h <<EOF
6053#define $ac_tr_func 1
6054EOF
6055
6056else
6057 echo "$ac_t""no" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006058fi
6059done
6060
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006061SOCKET_LIB=''
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006062echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04006063echo "configure:6064: checking for socket in -lsocket" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006064ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
6065if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6066 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006067else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006068 ac_save_LIBS="$LIBS"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006069LIBS="-lsocket $LIBS"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006070cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04006071#line 6072 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006072#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006073/* Override any gcc2 internal prototype to avoid an error. */
6074/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006075 builtin and then its argument prototype would still apply. */
6076char socket();
6077
6078int main() {
6079socket()
6080; return 0; }
6081EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04006082if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006083 rm -rf conftest*
6084 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006085else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6088 rm -rf conftest*
6089 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006090fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006091rm -f conftest*
6092LIBS="$ac_save_LIBS"
6093
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006094fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006095if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6096 echo "$ac_t""yes" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006097 SOCKET_LIB=-lsocket
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006098else
6099 echo "$ac_t""no" 1>&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006100fi
6101
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006102
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006103DLOPEN_LIB=''
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006104echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04006105echo "configure:6106: checking for dlopen in -ldl" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006106ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6107if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006109else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006110 ac_save_LIBS="$LIBS"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006111LIBS="-ldl $LIBS"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006112cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04006113#line 6114 "configure"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006114#include "confdefs.h"
6115/* Override any gcc2 internal prototype to avoid an error. */
6116/* We use char because int might match the return type of a gcc2
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006117 builtin and then its argument prototype would still apply. */
6118char dlopen();
6119
6120int main() {
6121dlopen()
6122; return 0; }
6123EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04006124if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006125 rm -rf conftest*
6126 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006127else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006128 echo "configure: failed program was:" >&5
6129 cat conftest.$ac_ext >&5
6130 rm -rf conftest*
6131 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006132fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006133rm -f conftest*
6134LIBS="$ac_save_LIBS"
6135
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006136fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006137if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6138 echo "$ac_t""yes" 1>&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006139 DLOPEN_LIB=-ldl
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006140cat >> confdefs.h <<\EOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006141#define HAVE_DLOPEN 1
6142EOF
6143
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006144else
6145 echo "$ac_t""no" 1>&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -05006146fi
6147
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006148
6149echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04006150echo "configure:6151: checking for optreset" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006151if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
6152 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006153else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006154 cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04006155#line 6156 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006156#include "confdefs.h"
6157#include <unistd.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006158EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6160 egrep "optreset" >/dev/null 2>&1; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006161 rm -rf conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006162 ac_cv_have_optreset=yes
6163else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006164 rm -rf conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006165 ac_cv_have_optreset=no
6166fi
6167rm -f conftest*
6168
6169fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006170echo "$ac_t""$ac_cv_have_optreset" 1>&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006171if test $ac_cv_have_optreset = yes; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006172 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006173#define HAVE_OPTRESET 1
6174EOF
6175
6176fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00006177case "$host_os" in
6178linux*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006179 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006180#define HAVE_EXT2_IOCTLS 1
6181EOF
6182
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00006183 ;;
6184esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006185LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006186CYGWIN_CMT="#"
6187UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006188case "$host_os" in
6189linux*)
6190 LINUX_CMT=
6191 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -04006192cygwin)
6193 CYGWIN_CMT=
6194 UNIX_CMT="#"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006195 EVMS_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04006196 ;;
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04006197*)
6198 EVMS_CMT="#"
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04006199esac
6200
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006201
6202
6203
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006204case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006205linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006206 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
6207 root_prefix="";
6208 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006209 fi
6210 ;;
6211esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006212case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006213linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006214 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006215 prefix="/usr";
6216 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04006217 if test "$mandir" = '${prefix}/man' ; then
6218 echo "...and mandir defaults to /usr/share/man"
6219 mandir=/usr/share/man
6220 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006221 fi
6222;;
6223esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006224if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00006225 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006226 root_prefix="$ac_default_prefix"
6227 else
6228 root_prefix="$prefix"
6229 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04006230 root_bindir=$bindir
6231 root_sbindir=$sbindir
6232 root_libdir=$libdir
6233 root_sysconfdir=$sysconfdir
6234else
6235 root_bindir='${root_prefix}/bin'
6236 root_sbindir='${root_prefix}/sbin'
6237 root_libdir='${root_prefix}/lib'
6238 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00006239fi
6240
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006241
6242
6243
6244
6245echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o5d407732004-09-18 14:53:14 -04006246echo "configure:6247: checking whether linker accepts -static" >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006247if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
Theodore Ts'oae851481997-04-29 18:13:24 +00006249else
6250 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006251cat > conftest.$ac_ext <<EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04006252#line 6253 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00006253#include "confdefs.h"
6254#include <stdio.h>
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006255int main() {
Theodore Ts'oae851481997-04-29 18:13:24 +00006256fflush(stdout);
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006257; return 0; }
6258EOF
Theodore Ts'o5d407732004-09-18 14:53:14 -04006259if { (eval echo configure:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006260 rm -rf conftest*
Theodore Ts'oae851481997-04-29 18:13:24 +00006261 ac_cv_e2fsprogs_use_static=yes
6262else
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006263 echo "configure: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6265 rm -rf conftest*
6266 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +00006267fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006268rm -f conftest*
Theodore Ts'oae851481997-04-29 18:13:24 +00006269LDFLAGS=$SAVE_LDFLAGS
6270fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006271
Theodore Ts'odefde781999-01-04 07:39:19 +00006272case "$host_os" in
6273solaris2.*)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006274 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +00006275;;
6276esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006277echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00006278LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00006279if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006280 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00006281fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006282
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006283case "$host_os" in
6284darwin*)
6285 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006286 cat >> confdefs.h <<\EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006287#define _INTL_REDIRECT_MACROS 1
6288EOF
6289
6290 ;;
6291esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006292SS_DIR=`cd ${srcdir}/lib/ss; pwd`
6293ET_DIR=`cd ${srcdir}/lib/et; pwd`
6294
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006295
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006296if test "$cross_compiling" = yes ; then
6297 DO_TEST_SUITE=
6298else
6299 DO_TEST_SUITE=check
6300fi
6301
Theodore Ts'oc6f35b82003-05-17 16:29:27 -04006302INTL_FLAGS=
6303if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
6304 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
6305fi
6306
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006307test -d lib || mkdir lib
6308test -d include || mkdir include
6309test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00006310test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -05006311for i in MCONFIG Makefile e2fsprogs.spec \
6312 util/Makefile util/subst.conf util/gen-tarball \
6313 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05006314 lib/uuid/Makefile lib/uuid/uuid_types.h \
6315 lib/blkid/Makefile lib/blkid/blkid_types.h \
6316 lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
6317 debugfs/Makefile tests/Makefile tests/progs/Makefile \
6318 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
6319 if test -d `dirname ${srcdir}/$i` ; then
6320 outlist="$outlist $i"
6321 fi
6322done
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006323trap '' 1 2 15
6324cat > confcache <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006325# This file is a shell script that caches the results of configure
6326# tests run on this system so they can be shared between configure
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006327# scripts and configure runs. It is not useful on other systems.
6328# If it contains results you don't want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006329#
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006330# By default, configure uses ./config.cache as the cache file,
6331# creating it if it does not exist already. You can give configure
6332# the --cache-file=FILE option to use a different cache file; that is
6333# what configure does when it calls configure scripts in
6334# subdirectories, so they share the cache.
6335# Giving --cache-file=/dev/null disables caching, for debugging configure.
6336# config.status only pays attention to the cache file if you give it the
6337# --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006338#
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006339EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006340# The following way of writing the cache mishandles newlines in values,
6341# but we know of no workaround that is simple, portable, and efficient.
6342# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006343# Ultrix sh set writes to stderr and can't be redirected directly,
6344# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006345(set) 2>&1 |
6346 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6347 *ac_space=\ *)
6348 # `set' does not quote correctly, so add quotes (double-quote substitution
6349 # turns \\\\ into \\, and sed turns \\ into \).
6350 sed -n \
6351 -e "s/'/'\\\\''/g" \
6352 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6353 ;;
6354 *)
6355 # `set' quotes correctly as required by POSIX, so do not add quotes.
6356 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6357 ;;
6358 esac >> confcache
6359if cmp -s $cache_file confcache; then
6360 :
6361else
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006362 if test -w $cache_file; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006363 echo "updating cache $cache_file"
6364 cat confcache > $cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006365 else
6366 echo "not updating unwritable cache $cache_file"
6367 fi
6368fi
6369rm -f confcache
6370
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006371trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6372
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006373test "x$prefix" = xNONE && prefix=$ac_default_prefix
6374# Let make expand exec_prefix.
6375test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6376
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006377# Any assignment to VPATH causes Sun make to only execute
6378# the first set of double-colon rules, so remove it if not needed.
6379# If there is a colon in the path, we need to keep it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006380if test "x$srcdir" = x.; then
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006381 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006382fi
6383
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006384trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6385
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006386# Transform confdefs.h into DEFS.
6387# Protect against shell expansion while executing Makefile rules.
6388# Protect against Makefile macro expansion.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006389cat > conftest.defs <<\EOF
6390s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
6391s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
6392s%\[%\\&%g
6393s%\]%\\&%g
6394s%\$%$$%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006395EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006396DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
6397rm -f conftest.defs
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006398
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006399
6400# Without the "./", some shells look in PATH for config.status.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006401: ${CONFIG_STATUS=./config.status}
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006402
6403echo creating $CONFIG_STATUS
6404rm -f $CONFIG_STATUS
6405cat > $CONFIG_STATUS <<EOF
6406#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006407# Generated automatically by configure.
6408# Run this file to recreate the current configuration.
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006409# This directory was configured as follows,
6410# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6411#
6412# $0 $ac_configure_args
6413#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006414# Compiler output produced by configure, useful for debugging
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006415# configure, is in ./config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006416
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006417ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6418for ac_option
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006419do
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006420 case "\$ac_option" in
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006422 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6423 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6424 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6425 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6426 exit 0 ;;
6427 -help | --help | --hel | --he | --h)
6428 echo "\$ac_cs_usage"; exit 0 ;;
6429 *) echo "\$ac_cs_usage"; exit 1 ;;
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006430 esac
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006431done
6432
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006433ac_given_srcdir=$srcdir
6434ac_given_INSTALL="$INSTALL"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006435
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006436trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6437EOF
6438cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006439
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006440# Protect against being on the right side of a sed subst in config.status.
6441sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6442 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6443$ac_vpsub
6444$extrasub
6445s%@SHELL@%$SHELL%g
6446s%@CFLAGS@%$CFLAGS%g
6447s%@CPPFLAGS@%$CPPFLAGS%g
6448s%@CXXFLAGS@%$CXXFLAGS%g
6449s%@FFLAGS@%$FFLAGS%g
6450s%@DEFS@%$DEFS%g
6451s%@LDFLAGS@%$LDFLAGS%g
6452s%@LIBS@%$LIBS%g
6453s%@exec_prefix@%$exec_prefix%g
6454s%@prefix@%$prefix%g
6455s%@program_transform_name@%$program_transform_name%g
6456s%@bindir@%$bindir%g
6457s%@sbindir@%$sbindir%g
6458s%@libexecdir@%$libexecdir%g
6459s%@datadir@%$datadir%g
6460s%@sysconfdir@%$sysconfdir%g
6461s%@sharedstatedir@%$sharedstatedir%g
6462s%@localstatedir@%$localstatedir%g
6463s%@libdir@%$libdir%g
6464s%@includedir@%$includedir%g
6465s%@oldincludedir@%$oldincludedir%g
6466s%@infodir@%$infodir%g
6467s%@mandir@%$mandir%g
6468/@MCONFIG@/r $MCONFIG
6469s%@MCONFIG@%%g
6470s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
6471s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
6472s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g
6473s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
6474s%@host@%$host%g
6475s%@host_alias@%$host_alias%g
6476s%@host_cpu@%$host_cpu%g
6477s%@host_vendor@%$host_vendor%g
6478s%@host_os@%$host_os%g
6479s%@CC@%$CC%g
6480s%@LD@%$LD%g
6481s%@CPP@%$CPP%g
6482s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
6483s%@HTREE_CMT@%$HTREE_CMT%g
6484s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
6485s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
6486s%@DLL_CMT@%$DLL_CMT%g
6487/@MAKEFILE_DLL@/r $MAKEFILE_DLL
6488s%@MAKEFILE_DLL@%%g
6489s%@ELF_CMT@%$ELF_CMT%g
6490/@MAKEFILE_ELF@/r $MAKEFILE_ELF
6491s%@MAKEFILE_ELF@%%g
6492s%@BSDLIB_CMT@%$BSDLIB_CMT%g
6493/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
6494s%@MAKEFILE_BSDLIB@%%g
6495s%@PROFILE_CMT@%$PROFILE_CMT%g
6496/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
6497s%@MAKEFILE_PROFILE@%%g
6498s%@CHECKER_CMT@%$CHECKER_CMT%g
6499/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
6500s%@MAKEFILE_CHECKER@%%g
6501s%@LIB_EXT@%$LIB_EXT%g
6502s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
6503s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
6504s%@SWAPFS_CMT@%$SWAPFS_CMT%g
6505s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
6506s%@IMAGER_CMT@%$IMAGER_CMT%g
6507s%@RESIZER_CMT@%$RESIZER_CMT%g
6508s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
6509s%@FSCK_PROG@%$FSCK_PROG%g
6510s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o5d407732004-09-18 14:53:14 -04006511s%@E2INITRD_PROG@%$E2INITRD_PROG%g
6512s%@E2INITRD_MAN@%$E2INITRD_MAN%g
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006513/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
6514s%@MAKEFILE_LIBRARY@%%g
6515s%@PACKAGE@%$PACKAGE%g
6516s%@VERSION@%$VERSION%g
6517s%@SET_MAKE@%$SET_MAKE%g
6518s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6519s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6520s%@INSTALL_DATA@%$INSTALL_DATA%g
6521s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6522s%@MSGFMT@%$MSGFMT%g
6523s%@GMSGFMT@%$GMSGFMT%g
6524s%@XGETTEXT@%$XGETTEXT%g
6525s%@MSGMERGE@%$MSGMERGE%g
6526s%@RANLIB@%$RANLIB%g
6527s%@ALLOCA@%$ALLOCA%g
6528s%@GLIBC21@%$GLIBC21%g
6529s%@LIBICONV@%$LIBICONV%g
6530s%@LTLIBICONV@%$LTLIBICONV%g
6531s%@INTLBISON@%$INTLBISON%g
6532s%@USE_NLS@%$USE_NLS%g
6533s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
6534s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6535s%@CATOBJEXT@%$CATOBJEXT%g
6536s%@INTLOBJS@%$INTLOBJS%g
6537s%@DATADIRNAME@%$DATADIRNAME%g
6538s%@INSTOBJEXT@%$INSTOBJEXT%g
6539s%@GENCAT@%$GENCAT%g
6540s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
6541s%@INTLLIBS@%$INTLLIBS%g
6542s%@LIBINTL@%$LIBINTL%g
6543s%@LTLIBINTL@%$LTLIBINTL%g
6544s%@POSUB@%$POSUB%g
6545s%@BINARY_TYPE@%$BINARY_TYPE%g
6546s%@LN@%$LN%g
6547s%@LN_S@%$LN_S%g
6548s%@MV@%$MV%g
6549s%@CP@%$CP%g
6550s%@RM@%$RM%g
6551s%@CHMOD@%$CHMOD%g
6552s%@AWK@%$AWK%g
6553s%@SED@%$SED%g
6554s%@PERL@%$PERL%g
6555s%@LDCONFIG@%$LDCONFIG%g
6556s%@build@%$build%g
6557s%@build_alias@%$build_alias%g
6558s%@build_cpu@%$build_cpu%g
6559s%@build_vendor@%$build_vendor%g
6560s%@build_os@%$build_os%g
6561s%@AR@%$AR%g
6562s%@STRIP@%$STRIP%g
6563s%@BUILD_CC@%$BUILD_CC%g
6564s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
6565s%@SIZEOF_INT@%$SIZEOF_INT%g
6566s%@SIZEOF_LONG@%$SIZEOF_LONG%g
6567s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
6568s%@SOCKET_LIB@%$SOCKET_LIB%g
6569s%@DLOPEN_LIB@%$DLOPEN_LIB%g
6570s%@LINUX_CMT@%$LINUX_CMT%g
6571s%@CYGWIN_CMT@%$CYGWIN_CMT%g
6572s%@UNIX_CMT@%$UNIX_CMT%g
6573s%@EVMS_CMT@%$EVMS_CMT%g
6574s%@root_prefix@%$root_prefix%g
6575s%@root_bindir@%$root_bindir%g
6576s%@root_sbindir@%$root_sbindir%g
6577s%@root_libdir@%$root_libdir%g
6578s%@root_sysconfdir@%$root_sysconfdir%g
6579s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
6580s%@SS_DIR@%$SS_DIR%g
6581s%@ET_DIR@%$ET_DIR%g
6582s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
6583s%@INTL_FLAGS@%$INTL_FLAGS%g
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006584
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006585CEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006586EOF
6587
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006588cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006589
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006590# Split the substitutions into bite-sized pieces for seds with
6591# small command number limits, like on Digital OSF/1 and HP-UX.
6592ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6593ac_file=1 # Number of current file.
6594ac_beg=1 # First line for current file.
6595ac_end=$ac_max_sed_cmds # Line after last line for current file.
6596ac_more_lines=:
6597ac_sed_cmds=""
6598while $ac_more_lines; do
6599 if test $ac_beg -gt 1; then
6600 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6601 else
6602 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6603 fi
6604 if test ! -s conftest.s$ac_file; then
6605 ac_more_lines=false
6606 rm -f conftest.s$ac_file
6607 else
6608 if test -z "$ac_sed_cmds"; then
6609 ac_sed_cmds="sed -f conftest.s$ac_file"
6610 else
6611 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6612 fi
6613 ac_file=`expr $ac_file + 1`
6614 ac_beg=$ac_end
6615 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6616 fi
6617done
6618if test -z "$ac_sed_cmds"; then
6619 ac_sed_cmds=cat
6620fi
6621EOF
6622
6623cat >> $CONFIG_STATUS <<EOF
6624
6625CONFIG_FILES=\${CONFIG_FILES-"$outlist"}
6626EOF
6627cat >> $CONFIG_STATUS <<\EOF
6628for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6630 case "$ac_file" in
6631 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6632 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6633 *) ac_file_in="${ac_file}.in" ;;
6634 esac
6635
6636 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6637
6638 # Remove last slash and all that follows it. Not all systems have dirname.
6639 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6640 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6641 # The file is in a subdirectory.
6642 test ! -d "$ac_dir" && mkdir "$ac_dir"
6643 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6644 # A "../" for each directory in $ac_dir_suffix.
6645 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6646 else
6647 ac_dir_suffix= ac_dots=
6648 fi
6649
6650 case "$ac_given_srcdir" in
6651 .) srcdir=.
6652 if test -z "$ac_dots"; then top_srcdir=.
6653 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6654 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6655 *) # Relative path.
6656 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6657 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6658 esac
6659
6660 case "$ac_given_INSTALL" in
6661 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6662 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6663 esac
6664
6665 echo creating "$ac_file"
6666 rm -f "$ac_file"
6667 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6668 case "$ac_file" in
6669 *Makefile*) ac_comsub="1i\\
6670# $configure_input" ;;
6671 *) ac_comsub= ;;
6672 esac
6673
6674 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6675 sed -e "$ac_comsub
6676s%@configure_input@%$configure_input%g
6677s%@srcdir@%$srcdir%g
6678s%@top_srcdir@%$top_srcdir%g
6679s%@INSTALL@%$INSTALL%g
6680" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6681fi; done
6682rm -f conftest.s*
6683
6684EOF
6685cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006686# Capture the value of obsolete ALL_LINGUAS because we need it to compute
6687 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6688 # from automake.
6689 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
6690 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6691 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006692
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006693
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006694EOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006695cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006696
6697 for ac_file in $CONFIG_FILES; do
6698 # Support "outfile[:infile[:infile...]]"
6699 case "$ac_file" in
6700 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006701 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006702 # PO directories have a Makefile.in generated from Makefile.in.in.
6703 case "$ac_file" in */Makefile.in)
6704 # Adjust a relative srcdir.
6705 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
6706 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
6707 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
6708 # In autoconf-2.13 it is called $ac_given_srcdir.
6709 # In autoconf-2.50 it is called $srcdir.
6710 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
6711 case "$ac_given_srcdir" in
6712 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
6713 /*) top_srcdir="$ac_given_srcdir" ;;
6714 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
6715 esac
6716 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
6717 rm -f "$ac_dir/POTFILES"
6718 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
6719 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
6720 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
6721 # on $ac_dir but don't depend on user-specified configuration
6722 # parameters.
6723 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
6724 # The LINGUAS file contains the set of available languages.
6725 if test -n "$ALL_LINGUAS"; then
6726 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
6727 fi
6728 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
6729 # Hide the ALL_LINGUAS assigment from automake.
6730 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
6731 fi
6732 case "$ac_given_srcdir" in
6733 .) srcdirpre= ;;
6734 *) srcdirpre='$(srcdir)/' ;;
6735 esac
6736 POFILES=
6737 GMOFILES=
6738 UPDATEPOFILES=
6739 DUMMYPOFILES=
6740 for lang in $ALL_LINGUAS; do
6741 POFILES="$POFILES $srcdirpre$lang.po"
6742 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
6743 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
6744 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
6745 done
6746 # CATALOGS depends on both $ac_dir and the user's LINGUAS
6747 # environment variable.
6748 INST_LINGUAS=
6749 if test -n "$ALL_LINGUAS"; then
6750 for presentlang in $ALL_LINGUAS; do
6751 useit=no
6752 if test "%UNSET%" != "$LINGUAS"; then
6753 desiredlanguages="$LINGUAS"
6754 else
6755 desiredlanguages="$ALL_LINGUAS"
6756 fi
6757 for desiredlang in $desiredlanguages; do
6758 # Use the presentlang catalog if desiredlang is
6759 # a. equal to presentlang, or
6760 # b. a variant of presentlang (because in this case,
6761 # presentlang can be used as a fallback for messages
6762 # which are not translated in the desiredlang catalog).
6763 case "$desiredlang" in
6764 "$presentlang"*) useit=yes;;
6765 esac
6766 done
6767 if test $useit = yes; then
6768 INST_LINGUAS="$INST_LINGUAS $presentlang"
6769 fi
6770 done
6771 fi
6772 CATALOGS=
6773 if test -n "$INST_LINGUAS"; then
6774 for lang in $INST_LINGUAS; do
6775 CATALOGS="$CATALOGS $lang.gmo"
6776 done
6777 fi
6778 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
6779 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"
6780 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
6781 if test -f "$f"; then
6782 case "$f" in
6783 *.orig | *.bak | *~) ;;
6784 *) cat "$f" >> "$ac_dir/Makefile" ;;
6785 esac
6786 fi
6787 done
6788 fi
6789 ;;
6790 esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006791 done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006792
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006793exit 0
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006794EOF
6795chmod +x $CONFIG_STATUS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006796rm -fr confdefs* $ac_clean_files
6797test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006798