blob: 1d65705a7cbbe8bb12fa227f5113e4f4efe07a71 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004# Generated automatically using autoconf version 2.13
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000015 --with-cc=COMPILER select compiler to use"
16ac_help="$ac_help
17 --with-linker=LINKER select linker to use"
18ac_help="$ac_help
19 --with-ccopts=CCOPTS select compiler command line options"
20ac_help="$ac_help
21 --with-ldopts=LDOPTS select linker command line options"
22ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000023 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000024ac_help="$ac_help
Theodore Ts'o19178752000-02-11 15:55:07 +000025 --enable-compression enable EXPERIMENTAL compression support"
26ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000027 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000028ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000029 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000031 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032ac_help="$ac_help
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000033 --enable-jfs-debug enable journal debugging"
34ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000035 --disable-swapfs disable support of legacy byte-swapped filesystems"
36ac_help="$ac_help
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000037 --enable-nls Turn on Native Language Support"
38ac_help="$ac_help
39 --with-included-gettext use the GNU gettext library included here"
40ac_help="$ac_help
41 --with-catgets use catgets functions if available"
42ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000043 --enable-profile build profiling libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000044ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000045 --enable-checker build checker libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000046ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000047 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000048ac_help="$ac_help
49 --enable-fsck build fsck wrapper program"
50ac_help="$ac_help
51 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000052
53# Initialize some variables set by options.
54# The variables have the same names as the options, with
55# dashes changed to underlines.
56build=NONE
57cache_file=./config.cache
58exec_prefix=NONE
59host=NONE
60no_create=
61nonopt=NONE
62no_recursion=
63prefix=NONE
64program_prefix=NONE
65program_suffix=NONE
66program_transform_name=s,x,x,
67silent=
68site=
69srcdir=
70target=NONE
71verbose=
72x_includes=NONE
73x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000074bindir='${exec_prefix}/bin'
75sbindir='${exec_prefix}/sbin'
76libexecdir='${exec_prefix}/libexec'
77datadir='${prefix}/share'
78sysconfdir='${prefix}/etc'
79sharedstatedir='${prefix}/com'
80localstatedir='${prefix}/var'
81libdir='${exec_prefix}/lib'
82includedir='${prefix}/include'
83oldincludedir='/usr/include'
84infodir='${prefix}/info'
85mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000086
87# Initialize some other variables.
88subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000089MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000090SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000091# Maximum number of lines to put in a shell here document.
92ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000093
94ac_prev=
95for ac_option
96do
97
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
101 ac_prev=
102 continue
103 fi
104
105 case "$ac_option" in
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107 *) ac_optarg= ;;
108 esac
109
110 # Accept the important Cygnus configure options, so we can diagnose typos.
111
112 case "$ac_option" in
113
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
115 ac_prev=bindir ;;
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117 bindir="$ac_optarg" ;;
118
119 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000120 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000122 build="$ac_optarg" ;;
123
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126 ac_prev=cache_file ;;
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129 cache_file="$ac_optarg" ;;
130
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
132 ac_prev=datadir ;;
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
134 | --da=*)
135 datadir="$ac_optarg" ;;
136
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000137 -disable-* | --disable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 fi
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
145
146 -enable-* | --enable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 fi
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 case "$ac_option" in
154 *=*) ;;
155 *) ac_optarg=yes ;;
156 esac
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
158
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161 | --exec | --exe | --ex)
162 ac_prev=exec_prefix ;;
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165 | --exec=* | --exe=* | --ex=*)
166 exec_prefix="$ac_optarg" ;;
167
168 -gas | --gas | --ga | --g)
169 # Obsolete; use --with-gas.
170 with_gas=yes ;;
171
172 -help | --help | --hel | --he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
175 cat << EOF
176Usage: configure [options] [host]
177Options: [defaults in brackets after descriptions]
178Configuration:
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
186 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000188 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
193 [PREFIX/share]
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
196 [PREFIX/com]
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
208EOF
209 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000210Host type:
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000221EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
224 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000225 exit 0 ;;
226
227 -host | --host | --hos | --ho)
228 ac_prev=host ;;
229 -host=* | --host=* | --hos=* | --ho=*)
230 host="$ac_optarg" ;;
231
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000232 -includedir | --includedir | --includedi | --included | --include \
233 | --includ | --inclu | --incl | --inc)
234 ac_prev=includedir ;;
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
237 includedir="$ac_optarg" ;;
238
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
240 ac_prev=infodir ;;
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242 infodir="$ac_optarg" ;;
243
244 -libdir | --libdir | --libdi | --libd)
245 ac_prev=libdir ;;
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
247 libdir="$ac_optarg" ;;
248
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250 | --libexe | --libex | --libe)
251 ac_prev=libexecdir ;;
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253 | --libexe=* | --libex=* | --libe=*)
254 libexecdir="$ac_optarg" ;;
255
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
257 | --localstate | --localstat | --localsta | --localst \
258 | --locals | --local | --loca | --loc | --lo)
259 ac_prev=localstatedir ;;
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263 localstatedir="$ac_optarg" ;;
264
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266 ac_prev=mandir ;;
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268 mandir="$ac_optarg" ;;
269
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000270 -nfp | --nfp | --nf)
271 # Obsolete; use --without-fp.
272 with_fp=no ;;
273
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275 | --no-cr | --no-c)
276 no_create=yes ;;
277
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 no_recursion=yes ;;
281
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284 | --oldin | --oldi | --old | --ol | --o)
285 ac_prev=oldincludedir ;;
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289 oldincludedir="$ac_optarg" ;;
290
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292 ac_prev=prefix ;;
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294 prefix="$ac_optarg" ;;
295
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
297 | --program-pre | --program-pr | --program-p)
298 ac_prev=program_prefix ;;
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301 program_prefix="$ac_optarg" ;;
302
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
304 | --program-suf | --program-su | --program-s)
305 ac_prev=program_suffix ;;
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308 program_suffix="$ac_optarg" ;;
309
310 -program-transform-name | --program-transform-name \
311 | --program-transform-nam | --program-transform-na \
312 | --program-transform-n | --program-transform- \
313 | --program-transform | --program-transfor \
314 | --program-transfo | --program-transf \
315 | --program-trans | --program-tran \
316 | --progr-tra | --program-tr | --program-t)
317 ac_prev=program_transform_name ;;
318 -program-transform-name=* | --program-transform-name=* \
319 | --program-transform-nam=* | --program-transform-na=* \
320 | --program-transform-n=* | --program-transform-=* \
321 | --program-transform=* | --program-transfor=* \
322 | --program-transfo=* | --program-transf=* \
323 | --program-trans=* | --program-tran=* \
324 | --progr-tra=* | --program-tr=* | --program-t=*)
325 program_transform_name="$ac_optarg" ;;
326
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328 | -silent | --silent | --silen | --sile | --sil)
329 silent=yes ;;
330
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332 ac_prev=sbindir ;;
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334 | --sbi=* | --sb=*)
335 sbindir="$ac_optarg" ;;
336
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339 | --sharedst | --shareds | --shared | --share | --shar \
340 | --sha | --sh)
341 ac_prev=sharedstatedir ;;
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345 | --sha=* | --sh=*)
346 sharedstatedir="$ac_optarg" ;;
347
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000348 -site | --site | --sit)
349 ac_prev=site ;;
350 -site=* | --site=* | --sit=*)
351 site="$ac_optarg" ;;
352
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
354 ac_prev=srcdir ;;
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
357
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
364
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000365 -target | --target | --targe | --targ | --tar | --ta | --t)
366 ac_prev=target ;;
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
369
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
371 verbose=yes ;;
372
373 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000374 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000375 exit 0 ;;
376
377 -with-* | --with-*)
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 fi
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 case "$ac_option" in
385 *=*) ;;
386 *) ac_optarg=yes ;;
387 esac
388 eval "with_${ac_package}='$ac_optarg'" ;;
389
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 fi
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
398
399 --x)
400 # Obsolete; use --with-x.
401 with_x=yes ;;
402
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
409
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
416
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
418 ;;
419
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000420 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
423 fi
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 fi
427 nonopt="$ac_option"
428 ;;
429
430 esac
431done
432
433if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435fi
436
437trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438
439# File descriptor usage:
440# 0 standard input
441# 1 file creation
442# 2 errors and warnings
443# 3 some systems may open it to /dev/tty
444# 4 used on the Kubota Titan
445# 6 checking for... messages and results
446# 5 compiler messages saved in config.log
447if test "$silent" = yes; then
448 exec 6>/dev/null
449else
450 exec 6>&1
451fi
452exec 5>./config.log
453
454echo "\
455This file contains any messages produced by compilers while
456running configure, to aid debugging if configure makes a mistake.
457" 1>&5
458
459# Strip out --no-create and --no-recursion so they do not pile up.
460# Also quote any args containing shell metacharacters.
461ac_configure_args=
462for ac_arg
463do
464 case "$ac_arg" in
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472 esac
473done
474
475# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000476# Only set these to C if already set. These must not be set unconditionally
477# because not all systems understand e.g. LANG=C (notably SCO).
478# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000480if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000481if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000484
485# confdefs.h avoids OS command line length limits that DEFS can exceed.
486rm -rf conftest* confdefs.h
487# AIX cpp loses on an empty file, so make sure it contains at least a newline.
488echo > confdefs.h
489
490# A filename unique to this package, relative to the directory that
491# configure is in, which we can look for to find out if srcdir is correct.
492ac_unique_file=version.h
493
494# Find the source files, if location was not specified.
495if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
498 ac_prog=$0
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501 srcdir=$ac_confdir
502 if test ! -r $srcdir/$ac_unique_file; then
503 srcdir=..
504 fi
505else
506 ac_srcdir_defaulted=no
507fi
508if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511 else
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 fi
514fi
515srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516
517# Prefer explicitly selected file to automatically selected ones.
518if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE; then
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
521 else
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 fi
524fi
525for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
528 . "$ac_site_file"
529 fi
530done
531
532if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
534 . $cache_file
535else
536 echo "creating cache $cache_file"
537 > $cache_file
538fi
539
540ac_ext=c
541# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000543ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000544ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000545cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000546
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000547ac_exeext=
548ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000549if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='
553' ac_t=' '
554 else
555 ac_n=-n ac_c= ac_t=
556 fi
557else
558 ac_n= ac_c='\c' ac_t=
559fi
560
561
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000562
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000563MCONFIG=./MCONFIG
564
Theodore Ts'o74becf31997-04-26 14:37:06 +0000565BINARY_TYPE=bin
566E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
567 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
568DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
569 | tr \" " "`
570MONTH=`echo $DATE | awk -F- '{print $2}'`
571YEAR=`echo $DATE | awk -F- '{print $3}'`
572
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000573if expr $YEAR ">" 1900 > /dev/null ; then
574 E2FSPROGS_YEAR=$YEAR
575elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000576 E2FSPROGS_YEAR=19$YEAR
577else
578 E2FSPROGS_YEAR=20$YEAR
579fi
580
581case $MONTH in
582Jan) E2FSPROGS_MONTH="January" ;;
583Feb) E2FSPROGS_MONTH="February" ;;
584Mar) E2FSPROGS_MONTH="March" ;;
585Apr) E2FSPROGS_MONTH="April" ;;
586May) E2FSPROGS_MONTH="May" ;;
587Jun) E2FSPROGS_MONTH="June" ;;
588Jul) E2FSPROGS_MONTH="July" ;;
589Aug) E2FSPROGS_MONTH="August" ;;
590Sep) E2FSPROGS_MONTH="September" ;;
591Oct) E2FSPROGS_MONTH="October" ;;
592Nov) E2FSPROGS_MONTH="November" ;;
593Dec) E2FSPROGS_MONTH="December" ;;
594*) echo "Unknown month $MONTH??" ;;
595esac
596
597unset DATE MONTH YEAR
598echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
599echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
600
601
602
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000603
604ac_aux_dir=
605for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
606 if test -f $ac_dir/install-sh; then
607 ac_aux_dir=$ac_dir
608 ac_install_sh="$ac_aux_dir/install-sh -c"
609 break
610 elif test -f $ac_dir/install.sh; then
611 ac_aux_dir=$ac_dir
612 ac_install_sh="$ac_aux_dir/install.sh -c"
613 break
614 fi
615done
616if test -z "$ac_aux_dir"; then
617 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
618fi
619ac_config_guess=$ac_aux_dir/config.guess
620ac_config_sub=$ac_aux_dir/config.sub
621ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622
623
624# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000625if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000626else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
627fi
628
629echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000630echo "configure:631: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000631
632host_alias=$host
633case "$host_alias" in
634NONE)
635 case $nonopt in
636 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000637 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000638 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
639 fi ;;
640 *) host_alias=$nonopt ;;
641 esac ;;
642esac
643
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000644host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000645host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
646host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
647host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000648echo "$ac_t""$host" 1>&6
649
Theodore Ts'o74becf31997-04-26 14:37:06 +0000650# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000651if test "${with_cc+set}" = set; then
652 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000653 echo "$ac_t""CC=$withval" 1>&6
654CC=$withval
655else
656 if test -z "$CC" ; then CC=cc; fi
657echo "$ac_t""CC defaults to $CC" 1>&6
658fi
659export CC
660
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000661# Extract the first word of "gcc", so it can be a program name with args.
662set dummy gcc; ac_word=$2
663echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000664echo "configure:665: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000665if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
667else
668 if test -n "$CC"; then
669 ac_cv_prog_CC="$CC" # Let the user override the test.
670else
671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
672 ac_dummy="$PATH"
673 for ac_dir in $ac_dummy; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
676 ac_cv_prog_CC="gcc"
677 break
678 fi
679 done
680 IFS="$ac_save_ifs"
681fi
682fi
683CC="$ac_cv_prog_CC"
684if test -n "$CC"; then
685 echo "$ac_t""$CC" 1>&6
686else
687 echo "$ac_t""no" 1>&6
688fi
689
690if test -z "$CC"; then
691 # Extract the first word of "cc", so it can be a program name with args.
692set dummy cc; ac_word=$2
693echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000694echo "configure:695: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000695if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
697else
698 if test -n "$CC"; then
699 ac_cv_prog_CC="$CC" # Let the user override the test.
700else
701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
702 ac_prog_rejected=no
703 ac_dummy="$PATH"
704 for ac_dir in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
708 ac_prog_rejected=yes
709 continue
710 fi
711 ac_cv_prog_CC="cc"
712 break
713 fi
714 done
715 IFS="$ac_save_ifs"
716if test $ac_prog_rejected = yes; then
717 # We found a bogon in the path, so make sure we never use it.
718 set dummy $ac_cv_prog_CC
719 shift
720 if test $# -gt 0; then
721 # We chose a different compiler from the bogus one.
722 # However, it has the same basename, so the bogon will be chosen
723 # first if we set CC to just the basename; use the full file name.
724 shift
725 set dummy "$ac_dir/$ac_word" "$@"
726 shift
727 ac_cv_prog_CC="$@"
728 fi
729fi
730fi
731fi
732CC="$ac_cv_prog_CC"
733if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
735else
736 echo "$ac_t""no" 1>&6
737fi
738
739 if test -z "$CC"; then
740 case "`uname -s`" in
741 *win32* | *WIN32*)
742 # Extract the first word of "cl", so it can be a program name with args.
743set dummy cl; ac_word=$2
744echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000745echo "configure:746: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000746if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
748else
749 if test -n "$CC"; then
750 ac_cv_prog_CC="$CC" # Let the user override the test.
751else
752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
753 ac_dummy="$PATH"
754 for ac_dir in $ac_dummy; do
755 test -z "$ac_dir" && ac_dir=.
756 if test -f $ac_dir/$ac_word; then
757 ac_cv_prog_CC="cl"
758 break
759 fi
760 done
761 IFS="$ac_save_ifs"
762fi
763fi
764CC="$ac_cv_prog_CC"
765if test -n "$CC"; then
766 echo "$ac_t""$CC" 1>&6
767else
768 echo "$ac_t""no" 1>&6
769fi
770 ;;
771 esac
772 fi
773 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
774fi
775
776echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000777echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000778
779ac_ext=c
780# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
781ac_cpp='$CPP $CPPFLAGS'
782ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
783ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784cross_compiling=$ac_cv_prog_cc_cross
785
786cat > conftest.$ac_ext << EOF
787
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000788#line 789 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000789#include "confdefs.h"
790
791main(){return(0);}
792EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000793if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000794 ac_cv_prog_cc_works=yes
795 # If we can't run a trivial program, we are probably using a cross compiler.
796 if (./conftest; exit) 2>/dev/null; then
797 ac_cv_prog_cc_cross=no
798 else
799 ac_cv_prog_cc_cross=yes
800 fi
801else
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
804 ac_cv_prog_cc_works=no
805fi
806rm -fr conftest*
807ac_ext=c
808# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
809ac_cpp='$CPP $CPPFLAGS'
810ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
811ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
812cross_compiling=$ac_cv_prog_cc_cross
813
814echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
815if test $ac_cv_prog_cc_works = no; then
816 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
817fi
818echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000819echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000820echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
821cross_compiling=$ac_cv_prog_cc_cross
822
823echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000824echo "configure:825: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000825if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
827else
828 cat > conftest.c <<EOF
829#ifdef __GNUC__
830 yes;
831#endif
832EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000833if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000834 ac_cv_prog_gcc=yes
835else
836 ac_cv_prog_gcc=no
837fi
838fi
839
840echo "$ac_t""$ac_cv_prog_gcc" 1>&6
841
842if test $ac_cv_prog_gcc = yes; then
843 GCC=yes
844else
845 GCC=
846fi
847
848ac_test_CFLAGS="${CFLAGS+set}"
849ac_save_CFLAGS="$CFLAGS"
850CFLAGS=
851echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000852echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000853if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
855else
856 echo 'void f(){}' > conftest.c
857if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
858 ac_cv_prog_cc_g=yes
859else
860 ac_cv_prog_cc_g=no
861fi
862rm -f conftest*
863
864fi
865
866echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
867if test "$ac_test_CFLAGS" = set; then
868 CFLAGS="$ac_save_CFLAGS"
869elif test $ac_cv_prog_cc_g = yes; then
870 if test "$GCC" = yes; then
871 CFLAGS="-g -O2"
872 else
873 CFLAGS="-g"
874 fi
875else
876 if test "$GCC" = yes; then
877 CFLAGS="-O2"
878 else
879 CFLAGS=
880 fi
881fi
882
Theodore Ts'o74becf31997-04-26 14:37:06 +0000883# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000884if test "${with_linker+set}" = set; then
885 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000886 echo "$ac_t""LD=$withval" 1>&6
887LD=$withval
888else
889 if test -z "$LD" ; then LD=$CC; fi
890echo "$ac_t""LD defaults to $LD" 1>&6
891fi
892export LD
893
894# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000895if test "${with_ccopts+set}" = set; then
896 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000897 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000898CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +0000899fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000900echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000901echo "configure:902: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000902# On Suns, sometimes $CPP names a directory.
903if test -n "$CPP" && test -d "$CPP"; then
904 CPP=
905fi
906if test -z "$CPP"; then
907if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
909else
910 # This must be in double quotes, not single quotes, because CPP may get
911 # substituted into the Makefile and "${CC-cc}" will confuse make.
912 CPP="${CC-cc} -E"
913 # On the NeXT, cc -E runs the code through the compiler's parser,
914 # not just through cpp.
915 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000916#line 917 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000917#include "confdefs.h"
918#include <assert.h>
919Syntax Error
920EOF
921ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000922{ (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000923ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
924if test -z "$ac_err"; then
925 :
926else
927 echo "$ac_err" >&5
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
930 rm -rf conftest*
931 CPP="${CC-cc} -E -traditional-cpp"
932 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000933#line 934 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000934#include "confdefs.h"
935#include <assert.h>
936Syntax Error
937EOF
938ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000939{ (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000940ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
941if test -z "$ac_err"; then
942 :
943else
944 echo "$ac_err" >&5
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 rm -rf conftest*
948 CPP="${CC-cc} -nologo -E"
949 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000950#line 951 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000951#include "confdefs.h"
952#include <assert.h>
953Syntax Error
954EOF
955ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000956{ (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000957ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
958if test -z "$ac_err"; then
959 :
960else
961 echo "$ac_err" >&5
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
964 rm -rf conftest*
965 CPP=/lib/cpp
966fi
967rm -f conftest*
968fi
969rm -f conftest*
970fi
971rm -f conftest*
972 ac_cv_prog_CPP="$CPP"
973fi
974 CPP="$ac_cv_prog_CPP"
975else
976 ac_cv_prog_CPP="$CPP"
977fi
978echo "$ac_t""$CPP" 1>&6
979
980ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
981echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000982echo "configure:983: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000983if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
985else
986 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000987#line 988 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000988#include "confdefs.h"
989#include <linux/fs.h>
990EOF
991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000992{ (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
994if test -z "$ac_err"; then
995 rm -rf conftest*
996 eval "ac_cv_header_$ac_safe=yes"
997else
998 echo "$ac_err" >&5
999 echo "configure: failed program was:" >&5
1000 cat conftest.$ac_ext >&5
1001 rm -rf conftest*
1002 eval "ac_cv_header_$ac_safe=no"
1003fi
1004rm -f conftest*
1005fi
1006if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1007 echo "$ac_t""yes" 1>&6
1008 linux_headers=yes
1009else
1010 echo "$ac_t""no" 1>&6
1011linux_headers=no
1012fi
1013
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001014if test "$linux_headers" != yes; then
1015 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001016fi
1017
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001018LIB_EXT=.a
1019STATIC_LIB_EXT=.a
1020PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001021# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001022if test "${with_ldopts+set}" = set; then
1023 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001024 echo "$ac_t""LDFLAGS is $withval" 1>&6
1025LDFLAGS=$withval
1026else
1027 LDFLAGS=
1028fi
1029
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001030# Check whether --with-root-prefix or --without-root-prefix was given.
1031if test "${with_root_prefix+set}" = set; then
1032 withval="$with_root_prefix"
1033 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001034else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001035 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001036fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001037# Check whether --enable-compression or --disable-compression was given.
1038if test "${enable_compression+set}" = set; then
1039 enableval="$enable_compression"
1040 if test "$enableval" = "no"
1041then
1042 echo "Disabling compression support"
1043else
1044 cat >> confdefs.h <<\EOF
1045#define ENABLE_COMPRESSION 1
1046EOF
1047
1048 echo "Enabling compression support"
1049 echo "WARNING: Compression support is experimental"
1050fi
1051
1052else
1053 echo "Disabling compression support by default"
1054
1055fi
1056
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001057# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001058if test "${enable_dll_shlibs+set}" = set; then
1059 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001060 if test "$enableval" = "no"
1061then
1062 DLL_CMT=#
1063 MAKEFILE_DLL=/dev/null
1064 echo "Disabling DLL shared libraries"
1065else
1066 DLL_CMT=
1067 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001068 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001069 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001070 echo "Enabling DLL shared libraries"
1071fi
1072
1073else
1074 MAKEFILE_DLL=/dev/null
1075DLL_CMT=#
1076echo "Disabling DLL shared libraries by default"
1077
1078fi
1079
1080
1081
1082# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001083if test "${enable_elf_shlibs+set}" = set; then
1084 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001085 if test "$enableval" = "no"
1086then
1087 ELF_CMT=#
1088 MAKEFILE_ELF=/dev/null
1089 echo "Disabling ELF shared libraries"
1090else
1091 ELF_CMT=
1092 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001093 case "$host_os" in
1094 solaris2.*)
1095 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1096 ;;
1097 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001098 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001099 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001100 echo "Enabling ELF shared libraries"
1101fi
1102
1103else
1104 MAKEFILE_ELF=/dev/null
1105ELF_CMT=#
1106echo "Disabling ELF shared libraries by default"
1107
1108fi
1109
1110
1111
1112# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001113if test "${enable_bsd_shlibs+set}" = set; then
1114 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001115 if test "$enableval" = "no"
1116then
1117 BSDLIB_CMT=#
1118 MAKEFILE_BSDLIB=/dev/null
1119 echo "Disabling BSD shared libraries"
1120else
1121 BSDLIB_CMT=
1122 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001123 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001124 echo "Enabling BSD shared libraries"
1125fi
1126
1127else
1128 MAKEFILE_BSDLIB=/dev/null
1129BSDLIB_CMT=#
1130echo "Disabling BSD shared libraries by default"
1131
1132fi
1133
1134
1135
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001136# Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1137if test "${enable_jfs_debug+set}" = set; then
1138 enableval="$enable_jfs_debug"
1139 if test "$enableval" = "no"
1140then
1141 echo "Disabling journal debugging"
1142else
1143 cat >> confdefs.h <<\EOF
1144#define JFS_DEBUG 1
1145EOF
1146
1147 echo "Enabling journal debugging"
1148fi
1149
1150else
1151 echo "Disabling journal debugging by default"
1152
1153fi
1154
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001155# Check whether --enable-swapfs or --disable-swapfs was given.
1156if test "${enable_swapfs+set}" = set; then
1157 enableval="$enable_swapfs"
1158 if test "$enableval" = "no"
1159then
1160 echo "Disabling swapfs support"
1161 SWAPFS_CMT="#"
1162else
1163 cat >> confdefs.h <<\EOF
1164#define ENABLE_SWAPFS 1
1165EOF
1166
1167 SWAPFS_CMT=
1168 echo "Enabling swapfs support"
1169fi
1170
1171else
1172 echo "Enabling swapfs support by default"
1173cat >> confdefs.h <<\EOF
1174#define ENABLE_SWAPFS 1
1175EOF
1176
1177SWAPFS_CMT=
1178
1179fi
1180
1181
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001182PACKAGE=e2fsprogs
1183VERSION="$E2FSPROGS_VERSION"
1184cat >> confdefs.h <<EOF
1185#define PACKAGE "$PACKAGE"
1186EOF
1187
1188cat >> confdefs.h <<EOF
1189#define VERSION "$VERSION"
1190EOF
1191
1192
1193
1194
Theodore Ts'o19178752000-02-11 15:55:07 +00001195ALL_LINGUAS="it nyc"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001196echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001197echo "configure:1198: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001198set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1199if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201else
1202 cat > conftestmake <<\EOF
1203all:
1204 @echo 'ac_maketemp="${MAKE}"'
1205EOF
1206# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1207eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1208if test -n "$ac_maketemp"; then
1209 eval ac_cv_prog_make_${ac_make}_set=yes
1210else
1211 eval ac_cv_prog_make_${ac_make}_set=no
1212fi
1213rm -f conftestmake
1214fi
1215if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1216 echo "$ac_t""yes" 1>&6
1217 SET_MAKE=
1218else
1219 echo "$ac_t""no" 1>&6
1220 SET_MAKE="MAKE=${MAKE-make}"
1221fi
1222
1223# Extract the first word of "ranlib", so it can be a program name with args.
1224set dummy ranlib; ac_word=$2
1225echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001226echo "configure:1227: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001227if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1229else
1230 if test -n "$RANLIB"; then
1231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1232else
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_RANLIB="ranlib"
1239 break
1240 fi
1241 done
1242 IFS="$ac_save_ifs"
1243 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1244fi
1245fi
1246RANLIB="$ac_cv_prog_RANLIB"
1247if test -n "$RANLIB"; then
1248 echo "$ac_t""$RANLIB" 1>&6
1249else
1250 echo "$ac_t""no" 1>&6
1251fi
1252
1253echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001254echo "configure:1255: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001255if test -d /etc/conf/kconfig.d &&
1256 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1257then
1258 echo "$ac_t""yes" 1>&6
1259 ISC=yes # If later tests want to check for ISC.
1260 cat >> confdefs.h <<\EOF
1261#define _POSIX_SOURCE 1
1262EOF
1263
1264 if test "$GCC" = yes; then
1265 CC="$CC -posix"
1266 else
1267 CC="$CC -Xp"
1268 fi
1269else
1270 echo "$ac_t""no" 1>&6
1271 ISC=
1272fi
1273
1274echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001275echo "configure:1276: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001276if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1278else
1279 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001280#line 1281 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001281#include "confdefs.h"
1282#include <stdlib.h>
1283#include <stdarg.h>
1284#include <string.h>
1285#include <float.h>
1286EOF
1287ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001288{ (eval echo configure:1289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001289ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1290if test -z "$ac_err"; then
1291 rm -rf conftest*
1292 ac_cv_header_stdc=yes
1293else
1294 echo "$ac_err" >&5
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1297 rm -rf conftest*
1298 ac_cv_header_stdc=no
1299fi
1300rm -f conftest*
1301
1302if test $ac_cv_header_stdc = yes; then
1303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1304cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001305#line 1306 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001306#include "confdefs.h"
1307#include <string.h>
1308EOF
1309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1310 egrep "memchr" >/dev/null 2>&1; then
1311 :
1312else
1313 rm -rf conftest*
1314 ac_cv_header_stdc=no
1315fi
1316rm -f conftest*
1317
1318fi
1319
1320if test $ac_cv_header_stdc = yes; then
1321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1322cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001323#line 1324 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001324#include "confdefs.h"
1325#include <stdlib.h>
1326EOF
1327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1328 egrep "free" >/dev/null 2>&1; then
1329 :
1330else
1331 rm -rf conftest*
1332 ac_cv_header_stdc=no
1333fi
1334rm -f conftest*
1335
1336fi
1337
1338if test $ac_cv_header_stdc = yes; then
1339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1340if test "$cross_compiling" = yes; then
1341 :
1342else
1343 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001344#line 1345 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001345#include "confdefs.h"
1346#include <ctype.h>
1347#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1348#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1350int main () { int i; for (i = 0; i < 256; i++)
1351if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1352exit (0); }
1353
1354EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001355if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001356then
1357 :
1358else
1359 echo "configure: failed program was:" >&5
1360 cat conftest.$ac_ext >&5
1361 rm -fr conftest*
1362 ac_cv_header_stdc=no
1363fi
1364rm -fr conftest*
1365fi
1366
1367fi
1368fi
1369
1370echo "$ac_t""$ac_cv_header_stdc" 1>&6
1371if test $ac_cv_header_stdc = yes; then
1372 cat >> confdefs.h <<\EOF
1373#define STDC_HEADERS 1
1374EOF
1375
1376fi
1377
1378echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001379echo "configure:1380: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001380if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1382else
1383 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001384#line 1385 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001385#include "confdefs.h"
1386
1387int main() {
1388
1389/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001390typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001391/* SunOS 4.1.1 cc rejects this. */
1392char const *const *ccp;
1393char **p;
1394/* NEC SVR4.0.2 mips cc rejects this. */
1395struct point {int x, y;};
1396static struct point const zero = {0,0};
1397/* AIX XL C 1.02.0.0 rejects this.
1398 It does not let you subtract one const X* pointer from another in an arm
1399 of an if-expression whose if-part is not a constant expression */
1400const char *g = "string";
1401ccp = &g + (g ? g-g : 0);
1402/* HPUX 7.0 cc rejects these. */
1403++ccp;
1404p = (char**) ccp;
1405ccp = (char const *const *) p;
1406{ /* SCO 3.2v4 cc rejects this. */
1407 char *t;
1408 char const *s = 0 ? (char *) 0 : (char const *) 0;
1409
1410 *t++ = 0;
1411}
1412{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1413 int x[] = {25, 17};
1414 const int *foo = &x[0];
1415 ++foo;
1416}
1417{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1418 typedef const int *iptr;
1419 iptr p = 0;
1420 ++p;
1421}
1422{ /* AIX XL C 1.02.0.0 rejects this saying
1423 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1424 struct s { int j; const int *ap[3]; };
1425 struct s *b; b->j = 5;
1426}
1427{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1428 const int foo = 10;
1429}
1430
1431; return 0; }
1432EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001433if { (eval echo configure:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001434 rm -rf conftest*
1435 ac_cv_c_const=yes
1436else
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1439 rm -rf conftest*
1440 ac_cv_c_const=no
1441fi
1442rm -f conftest*
1443fi
1444
1445echo "$ac_t""$ac_cv_c_const" 1>&6
1446if test $ac_cv_c_const = no; then
1447 cat >> confdefs.h <<\EOF
1448#define const
1449EOF
1450
1451fi
1452
1453echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001454echo "configure:1455: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001455if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1457else
1458 ac_cv_c_inline=no
1459for ac_kw in inline __inline__ __inline; do
1460 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001461#line 1462 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001462#include "confdefs.h"
1463
1464int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001465} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001466; return 0; }
1467EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001468if { (eval echo configure:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001469 rm -rf conftest*
1470 ac_cv_c_inline=$ac_kw; break
1471else
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1474fi
1475rm -f conftest*
1476done
1477
1478fi
1479
1480echo "$ac_t""$ac_cv_c_inline" 1>&6
1481case "$ac_cv_c_inline" in
1482 inline | yes) ;;
1483 no) cat >> confdefs.h <<\EOF
1484#define inline
1485EOF
1486 ;;
1487 *) cat >> confdefs.h <<EOF
1488#define inline $ac_cv_c_inline
1489EOF
1490 ;;
1491esac
1492
1493echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001494echo "configure:1495: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001495if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1497else
1498 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001499#line 1500 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001500#include "confdefs.h"
1501#include <sys/types.h>
1502#if STDC_HEADERS
1503#include <stdlib.h>
1504#include <stddef.h>
1505#endif
1506EOF
1507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1508 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1509 rm -rf conftest*
1510 ac_cv_type_off_t=yes
1511else
1512 rm -rf conftest*
1513 ac_cv_type_off_t=no
1514fi
1515rm -f conftest*
1516
1517fi
1518echo "$ac_t""$ac_cv_type_off_t" 1>&6
1519if test $ac_cv_type_off_t = no; then
1520 cat >> confdefs.h <<\EOF
1521#define off_t long
1522EOF
1523
1524fi
1525
1526echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001527echo "configure:1528: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001528if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1530else
1531 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001532#line 1533 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001533#include "confdefs.h"
1534#include <sys/types.h>
1535#if STDC_HEADERS
1536#include <stdlib.h>
1537#include <stddef.h>
1538#endif
1539EOF
1540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1541 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1542 rm -rf conftest*
1543 ac_cv_type_size_t=yes
1544else
1545 rm -rf conftest*
1546 ac_cv_type_size_t=no
1547fi
1548rm -f conftest*
1549
1550fi
1551echo "$ac_t""$ac_cv_type_size_t" 1>&6
1552if test $ac_cv_type_size_t = no; then
1553 cat >> confdefs.h <<\EOF
1554#define size_t unsigned
1555EOF
1556
1557fi
1558
1559# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1560# for constant arguments. Useless!
1561echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001562echo "configure:1563: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001563if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1565else
1566 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001567#line 1568 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001568#include "confdefs.h"
1569#include <alloca.h>
1570int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001571char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001572; return 0; }
1573EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001574if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001575 rm -rf conftest*
1576 ac_cv_header_alloca_h=yes
1577else
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1580 rm -rf conftest*
1581 ac_cv_header_alloca_h=no
1582fi
1583rm -f conftest*
1584fi
1585
1586echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1587if test $ac_cv_header_alloca_h = yes; then
1588 cat >> confdefs.h <<\EOF
1589#define HAVE_ALLOCA_H 1
1590EOF
1591
1592fi
1593
1594echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001595echo "configure:1596: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001596if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1598else
1599 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001600#line 1601 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001601#include "confdefs.h"
1602
1603#ifdef __GNUC__
1604# define alloca __builtin_alloca
1605#else
1606# ifdef _MSC_VER
1607# include <malloc.h>
1608# define alloca _alloca
1609# else
1610# if HAVE_ALLOCA_H
1611# include <alloca.h>
1612# else
1613# ifdef _AIX
1614 #pragma alloca
1615# else
1616# ifndef alloca /* predefined by HP cc +Olibcalls */
1617char *alloca ();
1618# endif
1619# endif
1620# endif
1621# endif
1622#endif
1623
1624int main() {
1625char *p = (char *) alloca(1);
1626; return 0; }
1627EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001628if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001629 rm -rf conftest*
1630 ac_cv_func_alloca_works=yes
1631else
1632 echo "configure: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1634 rm -rf conftest*
1635 ac_cv_func_alloca_works=no
1636fi
1637rm -f conftest*
1638fi
1639
1640echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1641if test $ac_cv_func_alloca_works = yes; then
1642 cat >> confdefs.h <<\EOF
1643#define HAVE_ALLOCA 1
1644EOF
1645
1646fi
1647
1648if test $ac_cv_func_alloca_works = no; then
1649 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1650 # that cause trouble. Some versions do not even contain alloca or
1651 # contain a buggy version. If you still want to use their alloca,
1652 # use ar to extract alloca.o from them instead of compiling alloca.c.
1653 ALLOCA=alloca.${ac_objext}
1654 cat >> confdefs.h <<\EOF
1655#define C_ALLOCA 1
1656EOF
1657
1658
1659echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001660echo "configure:1661: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001661if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1663else
1664 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001665#line 1666 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001666#include "confdefs.h"
1667#if defined(CRAY) && ! defined(CRAY2)
1668webecray
1669#else
1670wenotbecray
1671#endif
1672
1673EOF
1674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1675 egrep "webecray" >/dev/null 2>&1; then
1676 rm -rf conftest*
1677 ac_cv_os_cray=yes
1678else
1679 rm -rf conftest*
1680 ac_cv_os_cray=no
1681fi
1682rm -f conftest*
1683
1684fi
1685
1686echo "$ac_t""$ac_cv_os_cray" 1>&6
1687if test $ac_cv_os_cray = yes; then
1688for ac_func in _getb67 GETB67 getb67; do
1689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001690echo "configure:1691: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001691if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1693else
1694 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001695#line 1696 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001696#include "confdefs.h"
1697/* System header to define __stub macros and hopefully few prototypes,
1698 which can conflict with char $ac_func(); below. */
1699#include <assert.h>
1700/* Override any gcc2 internal prototype to avoid an error. */
1701/* We use char because int might match the return type of a gcc2
1702 builtin and then its argument prototype would still apply. */
1703char $ac_func();
1704
1705int main() {
1706
1707/* The GNU C library defines this for functions which it implements
1708 to always fail with ENOSYS. Some functions are actually named
1709 something starting with __ and the normal name is an alias. */
1710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1711choke me
1712#else
1713$ac_func();
1714#endif
1715
1716; return 0; }
1717EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001718if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001719 rm -rf conftest*
1720 eval "ac_cv_func_$ac_func=yes"
1721else
1722 echo "configure: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1724 rm -rf conftest*
1725 eval "ac_cv_func_$ac_func=no"
1726fi
1727rm -f conftest*
1728fi
1729
1730if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1731 echo "$ac_t""yes" 1>&6
1732 cat >> confdefs.h <<EOF
1733#define CRAY_STACKSEG_END $ac_func
1734EOF
1735
1736 break
1737else
1738 echo "$ac_t""no" 1>&6
1739fi
1740
1741done
1742fi
1743
1744echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001745echo "configure:1746: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001746if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1748else
1749 if test "$cross_compiling" = yes; then
1750 ac_cv_c_stack_direction=0
1751else
1752 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001753#line 1754 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001754#include "confdefs.h"
1755find_stack_direction ()
1756{
1757 static char *addr = 0;
1758 auto char dummy;
1759 if (addr == 0)
1760 {
1761 addr = &dummy;
1762 return find_stack_direction ();
1763 }
1764 else
1765 return (&dummy > addr) ? 1 : -1;
1766}
1767main ()
1768{
1769 exit (find_stack_direction() < 0);
1770}
1771EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001772if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001773then
1774 ac_cv_c_stack_direction=1
1775else
1776 echo "configure: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1778 rm -fr conftest*
1779 ac_cv_c_stack_direction=-1
1780fi
1781rm -fr conftest*
1782fi
1783
1784fi
1785
1786echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1787cat >> confdefs.h <<EOF
1788#define STACK_DIRECTION $ac_cv_c_stack_direction
1789EOF
1790
1791fi
1792
1793for ac_hdr in unistd.h
1794do
1795ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1796echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001797echo "configure:1798: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001798if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1800else
1801 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001802#line 1803 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001803#include "confdefs.h"
1804#include <$ac_hdr>
1805EOF
1806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001807{ (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1809if test -z "$ac_err"; then
1810 rm -rf conftest*
1811 eval "ac_cv_header_$ac_safe=yes"
1812else
1813 echo "$ac_err" >&5
1814 echo "configure: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1816 rm -rf conftest*
1817 eval "ac_cv_header_$ac_safe=no"
1818fi
1819rm -f conftest*
1820fi
1821if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1822 echo "$ac_t""yes" 1>&6
1823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1824 cat >> confdefs.h <<EOF
1825#define $ac_tr_hdr 1
1826EOF
1827
1828else
1829 echo "$ac_t""no" 1>&6
1830fi
1831done
1832
1833for ac_func in getpagesize
1834do
1835echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001836echo "configure:1837: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001837if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839else
1840 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001841#line 1842 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001842#include "confdefs.h"
1843/* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $ac_func(); below. */
1845#include <assert.h>
1846/* Override any gcc2 internal prototype to avoid an error. */
1847/* We use char because int might match the return type of a gcc2
1848 builtin and then its argument prototype would still apply. */
1849char $ac_func();
1850
1851int main() {
1852
1853/* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1857choke me
1858#else
1859$ac_func();
1860#endif
1861
1862; return 0; }
1863EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001864if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001865 rm -rf conftest*
1866 eval "ac_cv_func_$ac_func=yes"
1867else
1868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1870 rm -rf conftest*
1871 eval "ac_cv_func_$ac_func=no"
1872fi
1873rm -f conftest*
1874fi
1875
1876if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1877 echo "$ac_t""yes" 1>&6
1878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1879 cat >> confdefs.h <<EOF
1880#define $ac_tr_func 1
1881EOF
1882
1883else
1884 echo "$ac_t""no" 1>&6
1885fi
1886done
1887
1888echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001889echo "configure:1890: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001890if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1892else
1893 if test "$cross_compiling" = yes; then
1894 ac_cv_func_mmap_fixed_mapped=no
1895else
1896 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001897#line 1898 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001898#include "confdefs.h"
1899
1900/* Thanks to Mike Haertel and Jim Avera for this test.
1901 Here is a matrix of mmap possibilities:
1902 mmap private not fixed
1903 mmap private fixed at somewhere currently unmapped
1904 mmap private fixed at somewhere already mapped
1905 mmap shared not fixed
1906 mmap shared fixed at somewhere currently unmapped
1907 mmap shared fixed at somewhere already mapped
1908 For private mappings, we should verify that changes cannot be read()
1909 back from the file, nor mmap's back from the file at a different
1910 address. (There have been systems where private was not correctly
1911 implemented like the infamous i386 svr4.0, and systems where the
1912 VM page cache was not coherent with the filesystem buffer cache
1913 like early versions of FreeBSD and possibly contemporary NetBSD.)
1914 For shared mappings, we should conversely verify that changes get
1915 propogated back to all the places they're supposed to be.
1916
1917 Grep wants private fixed already mapped.
1918 The main things grep needs to know about mmap are:
1919 * does it exist and is it safe to write into the mmap'd area
1920 * how to use it (BSD variants) */
1921#include <sys/types.h>
1922#include <fcntl.h>
1923#include <sys/mman.h>
1924
1925/* This mess was copied from the GNU getpagesize.h. */
1926#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001927# ifdef HAVE_UNISTD_H
1928# include <unistd.h>
1929# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001930
1931/* Assume that all systems that can run configure have sys/param.h. */
1932# ifndef HAVE_SYS_PARAM_H
1933# define HAVE_SYS_PARAM_H 1
1934# endif
1935
1936# ifdef _SC_PAGESIZE
1937# define getpagesize() sysconf(_SC_PAGESIZE)
1938# else /* no _SC_PAGESIZE */
1939# ifdef HAVE_SYS_PARAM_H
1940# include <sys/param.h>
1941# ifdef EXEC_PAGESIZE
1942# define getpagesize() EXEC_PAGESIZE
1943# else /* no EXEC_PAGESIZE */
1944# ifdef NBPG
1945# define getpagesize() NBPG * CLSIZE
1946# ifndef CLSIZE
1947# define CLSIZE 1
1948# endif /* no CLSIZE */
1949# else /* no NBPG */
1950# ifdef NBPC
1951# define getpagesize() NBPC
1952# else /* no NBPC */
1953# ifdef PAGESIZE
1954# define getpagesize() PAGESIZE
1955# endif /* PAGESIZE */
1956# endif /* no NBPC */
1957# endif /* no NBPG */
1958# endif /* no EXEC_PAGESIZE */
1959# else /* no HAVE_SYS_PARAM_H */
1960# define getpagesize() 8192 /* punt totally */
1961# endif /* no HAVE_SYS_PARAM_H */
1962# endif /* no _SC_PAGESIZE */
1963
1964#endif /* no HAVE_GETPAGESIZE */
1965
1966#ifdef __cplusplus
1967extern "C" { void *malloc(unsigned); }
1968#else
1969char *malloc();
1970#endif
1971
1972int
1973main()
1974{
1975 char *data, *data2, *data3;
1976 int i, pagesize;
1977 int fd;
1978
1979 pagesize = getpagesize();
1980
1981 /*
1982 * First, make a file with some known garbage in it.
1983 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001984 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001985 if (!data)
1986 exit(1);
1987 for (i = 0; i < pagesize; ++i)
1988 *(data + i) = rand();
1989 umask(0);
1990 fd = creat("conftestmmap", 0600);
1991 if (fd < 0)
1992 exit(1);
1993 if (write(fd, data, pagesize) != pagesize)
1994 exit(1);
1995 close(fd);
1996
1997 /*
1998 * Next, try to mmap the file at a fixed address which
1999 * already has something else allocated at it. If we can,
2000 * also make sure that we see the same garbage.
2001 */
2002 fd = open("conftestmmap", O_RDWR);
2003 if (fd < 0)
2004 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002005 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002006 if (!data2)
2007 exit(1);
2008 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2009 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2010 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2011 exit(1);
2012 for (i = 0; i < pagesize; ++i)
2013 if (*(data + i) != *(data2 + i))
2014 exit(1);
2015
2016 /*
2017 * Finally, make sure that changes to the mapped area
2018 * do not percolate back to the file as seen by read().
2019 * (This is a bug on some variants of i386 svr4.0.)
2020 */
2021 for (i = 0; i < pagesize; ++i)
2022 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002023 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002024 if (!data3)
2025 exit(1);
2026 if (read(fd, data3, pagesize) != pagesize)
2027 exit(1);
2028 for (i = 0; i < pagesize; ++i)
2029 if (*(data + i) != *(data3 + i))
2030 exit(1);
2031 close(fd);
2032 unlink("conftestmmap");
2033 exit(0);
2034}
2035
2036EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002037if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002038then
2039 ac_cv_func_mmap_fixed_mapped=yes
2040else
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2043 rm -fr conftest*
2044 ac_cv_func_mmap_fixed_mapped=no
2045fi
2046rm -fr conftest*
2047fi
2048
2049fi
2050
2051echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2052if test $ac_cv_func_mmap_fixed_mapped = yes; then
2053 cat >> confdefs.h <<\EOF
2054#define HAVE_MMAP 1
2055EOF
2056
2057fi
2058
2059
2060 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2061unistd.h sys/param.h
2062do
2063ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2064echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002065echo "configure:2066: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002066if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2068else
2069 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002070#line 2071 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002071#include "confdefs.h"
2072#include <$ac_hdr>
2073EOF
2074ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002075{ (eval echo configure:2076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002076ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2077if test -z "$ac_err"; then
2078 rm -rf conftest*
2079 eval "ac_cv_header_$ac_safe=yes"
2080else
2081 echo "$ac_err" >&5
2082 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2084 rm -rf conftest*
2085 eval "ac_cv_header_$ac_safe=no"
2086fi
2087rm -f conftest*
2088fi
2089if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2090 echo "$ac_t""yes" 1>&6
2091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2092 cat >> confdefs.h <<EOF
2093#define $ac_tr_hdr 1
2094EOF
2095
2096else
2097 echo "$ac_t""no" 1>&6
2098fi
2099done
2100
2101 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2102strdup __argz_count __argz_stringify __argz_next
2103do
2104echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002105echo "configure:2106: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002106if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2108else
2109 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002110#line 2111 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002111#include "confdefs.h"
2112/* System header to define __stub macros and hopefully few prototypes,
2113 which can conflict with char $ac_func(); below. */
2114#include <assert.h>
2115/* Override any gcc2 internal prototype to avoid an error. */
2116/* We use char because int might match the return type of a gcc2
2117 builtin and then its argument prototype would still apply. */
2118char $ac_func();
2119
2120int main() {
2121
2122/* The GNU C library defines this for functions which it implements
2123 to always fail with ENOSYS. Some functions are actually named
2124 something starting with __ and the normal name is an alias. */
2125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2126choke me
2127#else
2128$ac_func();
2129#endif
2130
2131; return 0; }
2132EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002133if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002134 rm -rf conftest*
2135 eval "ac_cv_func_$ac_func=yes"
2136else
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2139 rm -rf conftest*
2140 eval "ac_cv_func_$ac_func=no"
2141fi
2142rm -f conftest*
2143fi
2144
2145if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2148 cat >> confdefs.h <<EOF
2149#define $ac_tr_func 1
2150EOF
2151
2152else
2153 echo "$ac_t""no" 1>&6
2154fi
2155done
2156
2157
2158 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2159 for ac_func in stpcpy
2160do
2161echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002162echo "configure:2163: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002163if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2165else
2166 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002167#line 2168 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002168#include "confdefs.h"
2169/* System header to define __stub macros and hopefully few prototypes,
2170 which can conflict with char $ac_func(); below. */
2171#include <assert.h>
2172/* Override any gcc2 internal prototype to avoid an error. */
2173/* We use char because int might match the return type of a gcc2
2174 builtin and then its argument prototype would still apply. */
2175char $ac_func();
2176
2177int main() {
2178
2179/* The GNU C library defines this for functions which it implements
2180 to always fail with ENOSYS. Some functions are actually named
2181 something starting with __ and the normal name is an alias. */
2182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2183choke me
2184#else
2185$ac_func();
2186#endif
2187
2188; return 0; }
2189EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002190if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002191 rm -rf conftest*
2192 eval "ac_cv_func_$ac_func=yes"
2193else
2194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 rm -rf conftest*
2197 eval "ac_cv_func_$ac_func=no"
2198fi
2199rm -f conftest*
2200fi
2201
2202if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2203 echo "$ac_t""yes" 1>&6
2204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2205 cat >> confdefs.h <<EOF
2206#define $ac_tr_func 1
2207EOF
2208
2209else
2210 echo "$ac_t""no" 1>&6
2211fi
2212done
2213
2214 fi
2215 if test "${ac_cv_func_stpcpy}" = "yes"; then
2216 cat >> confdefs.h <<\EOF
2217#define HAVE_STPCPY 1
2218EOF
2219
2220 fi
2221
2222 if test $ac_cv_header_locale_h = yes; then
2223 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002224echo "configure:2225: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002225if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2227else
2228 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002229#line 2230 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002230#include "confdefs.h"
2231#include <locale.h>
2232int main() {
2233return LC_MESSAGES
2234; return 0; }
2235EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002236if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002237 rm -rf conftest*
2238 am_cv_val_LC_MESSAGES=yes
2239else
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 rm -rf conftest*
2243 am_cv_val_LC_MESSAGES=no
2244fi
2245rm -f conftest*
2246fi
2247
2248echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2249 if test $am_cv_val_LC_MESSAGES = yes; then
2250 cat >> confdefs.h <<\EOF
2251#define HAVE_LC_MESSAGES 1
2252EOF
2253
2254 fi
2255 fi
2256 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002257echo "configure:2258: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002258 # Check whether --enable-nls or --disable-nls was given.
2259if test "${enable_nls+set}" = set; then
2260 enableval="$enable_nls"
2261 USE_NLS=$enableval
2262else
2263 USE_NLS=no
2264fi
2265
2266 echo "$ac_t""$USE_NLS" 1>&6
2267
2268
2269 USE_INCLUDED_LIBINTL=no
2270
2271 if test "$USE_NLS" = "yes"; then
2272 cat >> confdefs.h <<\EOF
2273#define ENABLE_NLS 1
2274EOF
2275
2276 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002277echo "configure:2278: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002278 # Check whether --with-included-gettext or --without-included-gettext was given.
2279if test "${with_included_gettext+set}" = set; then
2280 withval="$with_included_gettext"
2281 nls_cv_force_use_gnu_gettext=$withval
2282else
2283 nls_cv_force_use_gnu_gettext=no
2284fi
2285
2286 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2287
2288 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2289 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2290 nls_cv_header_intl=
2291 nls_cv_header_libgt=
2292 CATOBJEXT=NONE
2293
2294 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2295echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002296echo "configure:2297: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002297if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2299else
2300 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002301#line 2302 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002302#include "confdefs.h"
2303#include <libintl.h>
2304EOF
2305ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002306{ (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002307ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2308if test -z "$ac_err"; then
2309 rm -rf conftest*
2310 eval "ac_cv_header_$ac_safe=yes"
2311else
2312 echo "$ac_err" >&5
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2315 rm -rf conftest*
2316 eval "ac_cv_header_$ac_safe=no"
2317fi
2318rm -f conftest*
2319fi
2320if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2321 echo "$ac_t""yes" 1>&6
2322 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002323echo "configure:2324: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002324if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2326else
2327 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002328#line 2329 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002329#include "confdefs.h"
2330#include <libintl.h>
2331int main() {
2332return (int) gettext ("")
2333; return 0; }
2334EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002335if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002336 rm -rf conftest*
2337 gt_cv_func_gettext_libc=yes
2338else
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2341 rm -rf conftest*
2342 gt_cv_func_gettext_libc=no
2343fi
2344rm -f conftest*
2345fi
2346
2347echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2348
2349 if test "$gt_cv_func_gettext_libc" != "yes"; then
2350 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002351echo "configure:2352: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002352ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2353if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2355else
2356 ac_save_LIBS="$LIBS"
2357LIBS="-lintl $LIBS"
2358cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002359#line 2360 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002360#include "confdefs.h"
2361/* Override any gcc2 internal prototype to avoid an error. */
2362/* We use char because int might match the return type of a gcc2
2363 builtin and then its argument prototype would still apply. */
2364char bindtextdomain();
2365
2366int main() {
2367bindtextdomain()
2368; return 0; }
2369EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002370if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002371 rm -rf conftest*
2372 eval "ac_cv_lib_$ac_lib_var=yes"
2373else
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2376 rm -rf conftest*
2377 eval "ac_cv_lib_$ac_lib_var=no"
2378fi
2379rm -f conftest*
2380LIBS="$ac_save_LIBS"
2381
2382fi
2383if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2384 echo "$ac_t""yes" 1>&6
2385 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002386echo "configure:2387: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002387if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2389else
2390 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002391echo "configure:2392: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002392ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2393if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395else
2396 ac_save_LIBS="$LIBS"
2397LIBS="-lintl $LIBS"
2398cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002399#line 2400 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002400#include "confdefs.h"
2401/* Override any gcc2 internal prototype to avoid an error. */
2402/* We use char because int might match the return type of a gcc2
2403 builtin and then its argument prototype would still apply. */
2404char gettext();
2405
2406int main() {
2407gettext()
2408; return 0; }
2409EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002410if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002411 rm -rf conftest*
2412 eval "ac_cv_lib_$ac_lib_var=yes"
2413else
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2416 rm -rf conftest*
2417 eval "ac_cv_lib_$ac_lib_var=no"
2418fi
2419rm -f conftest*
2420LIBS="$ac_save_LIBS"
2421
2422fi
2423if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2425 gt_cv_func_gettext_libintl=yes
2426else
2427 echo "$ac_t""no" 1>&6
2428gt_cv_func_gettext_libintl=no
2429fi
2430
2431fi
2432
2433echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2434else
2435 echo "$ac_t""no" 1>&6
2436fi
2437
2438 fi
2439
2440 if test "$gt_cv_func_gettext_libc" = "yes" \
2441 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2442 cat >> confdefs.h <<\EOF
2443#define HAVE_GETTEXT 1
2444EOF
2445
2446 # Extract the first word of "msgfmt", so it can be a program name with args.
2447set dummy msgfmt; ac_word=$2
2448echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002449echo "configure:2450: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002450if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2452else
2453 case "$MSGFMT" in
2454 /*)
2455 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2456 ;;
2457 *)
2458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2459 for ac_dir in $PATH; do
2460 test -z "$ac_dir" && ac_dir=.
2461 if test -f $ac_dir/$ac_word; then
2462 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2463 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2464 break
2465 fi
2466 fi
2467 done
2468 IFS="$ac_save_ifs"
2469 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2470 ;;
2471esac
2472fi
2473MSGFMT="$ac_cv_path_MSGFMT"
2474if test -n "$MSGFMT"; then
2475 echo "$ac_t""$MSGFMT" 1>&6
2476else
2477 echo "$ac_t""no" 1>&6
2478fi
2479 if test "$MSGFMT" != "no"; then
2480 for ac_func in dcgettext
2481do
2482echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002483echo "configure:2484: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002484if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2486else
2487 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002488#line 2489 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002489#include "confdefs.h"
2490/* System header to define __stub macros and hopefully few prototypes,
2491 which can conflict with char $ac_func(); below. */
2492#include <assert.h>
2493/* Override any gcc2 internal prototype to avoid an error. */
2494/* We use char because int might match the return type of a gcc2
2495 builtin and then its argument prototype would still apply. */
2496char $ac_func();
2497
2498int main() {
2499
2500/* The GNU C library defines this for functions which it implements
2501 to always fail with ENOSYS. Some functions are actually named
2502 something starting with __ and the normal name is an alias. */
2503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2504choke me
2505#else
2506$ac_func();
2507#endif
2508
2509; return 0; }
2510EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002511if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002512 rm -rf conftest*
2513 eval "ac_cv_func_$ac_func=yes"
2514else
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2517 rm -rf conftest*
2518 eval "ac_cv_func_$ac_func=no"
2519fi
2520rm -f conftest*
2521fi
2522
2523if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2526 cat >> confdefs.h <<EOF
2527#define $ac_tr_func 1
2528EOF
2529
2530else
2531 echo "$ac_t""no" 1>&6
2532fi
2533done
2534
2535 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2536set dummy gmsgfmt; ac_word=$2
2537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002538echo "configure:2539: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002539if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2541else
2542 case "$GMSGFMT" in
2543 /*)
2544 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2545 ;;
2546 ?:/*)
2547 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2548 ;;
2549 *)
2550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2551 ac_dummy="$PATH"
2552 for ac_dir in $ac_dummy; do
2553 test -z "$ac_dir" && ac_dir=.
2554 if test -f $ac_dir/$ac_word; then
2555 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2556 break
2557 fi
2558 done
2559 IFS="$ac_save_ifs"
2560 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2561 ;;
2562esac
2563fi
2564GMSGFMT="$ac_cv_path_GMSGFMT"
2565if test -n "$GMSGFMT"; then
2566 echo "$ac_t""$GMSGFMT" 1>&6
2567else
2568 echo "$ac_t""no" 1>&6
2569fi
2570
2571 # Extract the first word of "xgettext", so it can be a program name with args.
2572set dummy xgettext; ac_word=$2
2573echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002574echo "configure:2575: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002575if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2577else
2578 case "$XGETTEXT" in
2579 /*)
2580 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2581 ;;
2582 *)
2583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2584 for ac_dir in $PATH; do
2585 test -z "$ac_dir" && ac_dir=.
2586 if test -f $ac_dir/$ac_word; then
2587 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2588 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2589 break
2590 fi
2591 fi
2592 done
2593 IFS="$ac_save_ifs"
2594 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2595 ;;
2596esac
2597fi
2598XGETTEXT="$ac_cv_path_XGETTEXT"
2599if test -n "$XGETTEXT"; then
2600 echo "$ac_t""$XGETTEXT" 1>&6
2601else
2602 echo "$ac_t""no" 1>&6
2603fi
2604
2605 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002606#line 2607 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002607#include "confdefs.h"
2608
2609int main() {
2610extern int _nl_msg_cat_cntr;
2611 return _nl_msg_cat_cntr
2612; return 0; }
2613EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002614if { (eval echo configure:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002615 rm -rf conftest*
2616 CATOBJEXT=.gmo
2617 DATADIRNAME=share
2618else
2619 echo "configure: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2621 rm -rf conftest*
2622 CATOBJEXT=.mo
2623 DATADIRNAME=lib
2624fi
2625rm -f conftest*
2626 INSTOBJEXT=.mo
2627 fi
2628 fi
2629
2630else
2631 echo "$ac_t""no" 1>&6
2632fi
2633
2634
2635 if test "$CATOBJEXT" = "NONE"; then
2636 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002637echo "configure:2638: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002638 # Check whether --with-catgets or --without-catgets was given.
2639if test "${with_catgets+set}" = set; then
2640 withval="$with_catgets"
2641 nls_cv_use_catgets=$withval
2642else
2643 nls_cv_use_catgets=no
2644fi
2645
2646 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2647
2648 if test "$nls_cv_use_catgets" = "yes"; then
2649 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002650echo "configure:2651: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002651ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2652if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2654else
2655 ac_save_LIBS="$LIBS"
2656LIBS="-li $LIBS"
2657cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002658#line 2659 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002659#include "confdefs.h"
2660
2661int main() {
2662main()
2663; return 0; }
2664EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002665if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002666 rm -rf conftest*
2667 eval "ac_cv_lib_$ac_lib_var=yes"
2668else
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2671 rm -rf conftest*
2672 eval "ac_cv_lib_$ac_lib_var=no"
2673fi
2674rm -f conftest*
2675LIBS="$ac_save_LIBS"
2676
2677fi
2678if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2681 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2682 cat >> confdefs.h <<EOF
2683#define $ac_tr_lib 1
2684EOF
2685
2686 LIBS="-li $LIBS"
2687
2688else
2689 echo "$ac_t""no" 1>&6
2690fi
2691
2692 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002693echo "configure:2694: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002694if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2696else
2697 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002698#line 2699 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002699#include "confdefs.h"
2700/* System header to define __stub macros and hopefully few prototypes,
2701 which can conflict with char catgets(); below. */
2702#include <assert.h>
2703/* Override any gcc2 internal prototype to avoid an error. */
2704/* We use char because int might match the return type of a gcc2
2705 builtin and then its argument prototype would still apply. */
2706char catgets();
2707
2708int main() {
2709
2710/* The GNU C library defines this for functions which it implements
2711 to always fail with ENOSYS. Some functions are actually named
2712 something starting with __ and the normal name is an alias. */
2713#if defined (__stub_catgets) || defined (__stub___catgets)
2714choke me
2715#else
2716catgets();
2717#endif
2718
2719; return 0; }
2720EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002721if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002722 rm -rf conftest*
2723 eval "ac_cv_func_catgets=yes"
2724else
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2727 rm -rf conftest*
2728 eval "ac_cv_func_catgets=no"
2729fi
2730rm -f conftest*
2731fi
2732
2733if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2734 echo "$ac_t""yes" 1>&6
2735 cat >> confdefs.h <<\EOF
2736#define HAVE_CATGETS 1
2737EOF
2738
2739 INTLOBJS="\$(CATOBJS)"
2740 # Extract the first word of "gencat", so it can be a program name with args.
2741set dummy gencat; ac_word=$2
2742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002743echo "configure:2744: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002744if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2746else
2747 case "$GENCAT" in
2748 /*)
2749 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2750 ;;
2751 ?:/*)
2752 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2753 ;;
2754 *)
2755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2756 ac_dummy="$PATH"
2757 for ac_dir in $ac_dummy; do
2758 test -z "$ac_dir" && ac_dir=.
2759 if test -f $ac_dir/$ac_word; then
2760 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2761 break
2762 fi
2763 done
2764 IFS="$ac_save_ifs"
2765 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2766 ;;
2767esac
2768fi
2769GENCAT="$ac_cv_path_GENCAT"
2770if test -n "$GENCAT"; then
2771 echo "$ac_t""$GENCAT" 1>&6
2772else
2773 echo "$ac_t""no" 1>&6
2774fi
2775 if test "$GENCAT" != "no"; then
2776 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2777set dummy gmsgfmt; ac_word=$2
2778echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002779echo "configure:2780: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002780if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2782else
2783 case "$GMSGFMT" in
2784 /*)
2785 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2786 ;;
2787 ?:/*)
2788 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2789 ;;
2790 *)
2791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2792 ac_dummy="$PATH"
2793 for ac_dir in $ac_dummy; do
2794 test -z "$ac_dir" && ac_dir=.
2795 if test -f $ac_dir/$ac_word; then
2796 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2797 break
2798 fi
2799 done
2800 IFS="$ac_save_ifs"
2801 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2802 ;;
2803esac
2804fi
2805GMSGFMT="$ac_cv_path_GMSGFMT"
2806if test -n "$GMSGFMT"; then
2807 echo "$ac_t""$GMSGFMT" 1>&6
2808else
2809 echo "$ac_t""no" 1>&6
2810fi
2811
2812 if test "$GMSGFMT" = "no"; then
2813 # Extract the first word of "msgfmt", so it can be a program name with args.
2814set dummy msgfmt; ac_word=$2
2815echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002816echo "configure:2817: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002817if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2819else
2820 case "$GMSGFMT" in
2821 /*)
2822 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2823 ;;
2824 *)
2825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2826 for ac_dir in $PATH; do
2827 test -z "$ac_dir" && ac_dir=.
2828 if test -f $ac_dir/$ac_word; then
2829 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2830 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2831 break
2832 fi
2833 fi
2834 done
2835 IFS="$ac_save_ifs"
2836 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2837 ;;
2838esac
2839fi
2840GMSGFMT="$ac_cv_path_GMSGFMT"
2841if test -n "$GMSGFMT"; then
2842 echo "$ac_t""$GMSGFMT" 1>&6
2843else
2844 echo "$ac_t""no" 1>&6
2845fi
2846
2847 fi
2848 # Extract the first word of "xgettext", so it can be a program name with args.
2849set dummy xgettext; ac_word=$2
2850echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002851echo "configure:2852: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002852if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2854else
2855 case "$XGETTEXT" in
2856 /*)
2857 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2858 ;;
2859 *)
2860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2861 for ac_dir in $PATH; do
2862 test -z "$ac_dir" && ac_dir=.
2863 if test -f $ac_dir/$ac_word; then
2864 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2865 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2866 break
2867 fi
2868 fi
2869 done
2870 IFS="$ac_save_ifs"
2871 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2872 ;;
2873esac
2874fi
2875XGETTEXT="$ac_cv_path_XGETTEXT"
2876if test -n "$XGETTEXT"; then
2877 echo "$ac_t""$XGETTEXT" 1>&6
2878else
2879 echo "$ac_t""no" 1>&6
2880fi
2881
2882 USE_INCLUDED_LIBINTL=yes
2883 CATOBJEXT=.cat
2884 INSTOBJEXT=.cat
2885 DATADIRNAME=lib
2886 INTLDEPS='$(top_builddir)/intl/libintl.a'
2887 INTLLIBS=$INTLDEPS
2888 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2889 nls_cv_header_intl=intl/libintl.h
2890 nls_cv_header_libgt=intl/libgettext.h
2891 fi
2892else
2893 echo "$ac_t""no" 1>&6
2894fi
2895
2896 fi
2897 fi
2898
2899 if test "$CATOBJEXT" = "NONE"; then
2900 nls_cv_use_gnu_gettext=yes
2901 fi
2902 fi
2903
2904 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2905 INTLOBJS="\$(GETTOBJS)"
2906 # Extract the first word of "msgfmt", so it can be a program name with args.
2907set dummy msgfmt; ac_word=$2
2908echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002909echo "configure:2910: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002910if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2912else
2913 case "$MSGFMT" in
2914 /*)
2915 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2916 ;;
2917 *)
2918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2919 for ac_dir in $PATH; do
2920 test -z "$ac_dir" && ac_dir=.
2921 if test -f $ac_dir/$ac_word; then
2922 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2923 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2924 break
2925 fi
2926 fi
2927 done
2928 IFS="$ac_save_ifs"
2929 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2930 ;;
2931esac
2932fi
2933MSGFMT="$ac_cv_path_MSGFMT"
2934if test -n "$MSGFMT"; then
2935 echo "$ac_t""$MSGFMT" 1>&6
2936else
2937 echo "$ac_t""no" 1>&6
2938fi
2939
2940 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2941set dummy gmsgfmt; ac_word=$2
2942echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002943echo "configure:2944: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002944if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2946else
2947 case "$GMSGFMT" in
2948 /*)
2949 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2950 ;;
2951 ?:/*)
2952 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2953 ;;
2954 *)
2955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2956 ac_dummy="$PATH"
2957 for ac_dir in $ac_dummy; do
2958 test -z "$ac_dir" && ac_dir=.
2959 if test -f $ac_dir/$ac_word; then
2960 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2961 break
2962 fi
2963 done
2964 IFS="$ac_save_ifs"
2965 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2966 ;;
2967esac
2968fi
2969GMSGFMT="$ac_cv_path_GMSGFMT"
2970if test -n "$GMSGFMT"; then
2971 echo "$ac_t""$GMSGFMT" 1>&6
2972else
2973 echo "$ac_t""no" 1>&6
2974fi
2975
2976 # Extract the first word of "xgettext", so it can be a program name with args.
2977set dummy xgettext; ac_word=$2
2978echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002979echo "configure:2980: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002980if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2982else
2983 case "$XGETTEXT" in
2984 /*)
2985 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2986 ;;
2987 *)
2988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2989 for ac_dir in $PATH; do
2990 test -z "$ac_dir" && ac_dir=.
2991 if test -f $ac_dir/$ac_word; then
2992 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2993 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2994 break
2995 fi
2996 fi
2997 done
2998 IFS="$ac_save_ifs"
2999 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3000 ;;
3001esac
3002fi
3003XGETTEXT="$ac_cv_path_XGETTEXT"
3004if test -n "$XGETTEXT"; then
3005 echo "$ac_t""$XGETTEXT" 1>&6
3006else
3007 echo "$ac_t""no" 1>&6
3008fi
3009
3010
3011 USE_INCLUDED_LIBINTL=yes
3012 CATOBJEXT=.gmo
3013 INSTOBJEXT=.mo
3014 DATADIRNAME=share
3015 INTLDEPS='$(top_builddir)/intl/libintl.a'
3016 INTLLIBS=$INTLDEPS
3017 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3018 nls_cv_header_intl=intl/libintl.h
3019 nls_cv_header_libgt=intl/libgettext.h
3020 fi
3021
3022 if test "$XGETTEXT" != ":"; then
3023 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3024 : ;
3025 else
3026 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3027 XGETTEXT=":"
3028 fi
3029 fi
3030
3031 # We need to process the po/ directory.
3032 POSUB=po
3033 else
3034 DATADIRNAME=share
3035 nls_cv_header_intl=intl/libintl.h
3036 nls_cv_header_libgt=intl/libgettext.h
3037 fi
3038
3039
3040
3041
3042 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3043 # because some of the sources are only built for this goal.
3044 if test "$PACKAGE" = gettext; then
3045 USE_NLS=yes
3046 USE_INCLUDED_LIBINTL=yes
3047 fi
3048
3049 for lang in $ALL_LINGUAS; do
3050 GMOFILES="$GMOFILES $lang.gmo"
3051 POFILES="$POFILES $lang.po"
3052 done
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067 if test "x$CATOBJEXT" != "x"; then
3068 if test "x$ALL_LINGUAS" = "x"; then
3069 LINGUAS=
3070 else
3071 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003072echo "configure:3073: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003073 NEW_LINGUAS=
3074 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3075 case "$ALL_LINGUAS" in
3076 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3077 esac
3078 done
3079 LINGUAS=$NEW_LINGUAS
3080 echo "$ac_t""$LINGUAS" 1>&6
3081 fi
3082
3083 if test -n "$LINGUAS"; then
3084 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3085 fi
3086 fi
3087
3088 if test $ac_cv_header_locale_h = yes; then
3089 INCLUDE_LOCALE_H="#include <locale.h>"
3090 else
3091 INCLUDE_LOCALE_H="\
3092/* The system does not provide the header <locale.h>. Take care yourself. */"
3093 fi
3094
3095
3096 test -d intl || mkdir intl
3097 if test "$CATOBJEXT" = ".cat"; then
3098 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3099echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003100echo "configure:3101: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003101if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3103else
3104 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003105#line 3106 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003106#include "confdefs.h"
3107#include <linux/version.h>
3108EOF
3109ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003110{ (eval echo configure:3111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003111ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3112if test -z "$ac_err"; then
3113 rm -rf conftest*
3114 eval "ac_cv_header_$ac_safe=yes"
3115else
3116 echo "$ac_err" >&5
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 rm -rf conftest*
3120 eval "ac_cv_header_$ac_safe=no"
3121fi
3122rm -f conftest*
3123fi
3124if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3125 echo "$ac_t""yes" 1>&6
3126 msgformat=linux
3127else
3128 echo "$ac_t""no" 1>&6
3129msgformat=xopen
3130fi
3131
3132
3133 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3134 fi
3135 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3136 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3137
3138 if test "$PACKAGE" = "gettext"; then
3139 GT_NO="#NO#"
3140 GT_YES=
3141 else
3142 GT_NO=
3143 GT_YES="#YES#"
3144 fi
3145
3146
3147
3148 MKINSTALLDIRS=
3149 if test -n "$ac_aux_dir"; then
3150 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3151 fi
3152 if test -z "$MKINSTALLDIRS"; then
3153 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3154 fi
3155
3156
3157 l=
3158
3159
3160 test -d po || mkdir po
3161 if test "x$srcdir" != "x."; then
3162 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3163 posrcprefix="$srcdir/"
3164 else
3165 posrcprefix="../$srcdir/"
3166 fi
3167 else
3168 posrcprefix="../"
3169 fi
3170 rm -f po/POTFILES
3171 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3172 < $srcdir/po/POTFILES.in > po/POTFILES
3173
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003174# Check whether --enable-profile or --disable-profile was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003175if test "${enable_profile+set}" = set; then
3176 enableval="$enable_profile"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003177 if test "$enableval" = "no"
3178then
3179 PROFILE_CMT=#
3180 MAKEFILE_PROFILE=/dev/null
3181 echo "Disabling profiling libraries"
3182else
3183 PROFILE_CMT=
3184 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003185 PROFILED_LIB_EXT=_p.a
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003186 echo "Building profiling libraries"
3187fi
3188
3189else
3190 PROFILE_CMT=#
3191MAKEFILE_PROFILE=/dev/null
3192echo "Disabling profiling libraries by default"
3193
3194fi
3195
3196
3197
3198# Check whether --enable-checker or --disable-checker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003199if test "${enable_checker+set}" = set; then
3200 enableval="$enable_checker"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003201 if test "$enableval" = "no"
3202then
3203 CHECKER_CMT=#
3204 MAKEFILE_CHECKER=/dev/null
3205 echo "Disabling checker libraries"
3206else
3207 CHECKER_CMT=
3208 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3209 echo "Building checker libraries"
3210fi
3211
3212else
3213 CHECKER_CMT=#
3214MAKEFILE_CHECKER=/dev/null
3215echo "Disabling checker libraries by default"
3216
3217fi
3218
3219
3220
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003221
3222
3223
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003224# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003225if test "${enable_dynamic_e2fsck+set}" = set; then
3226 enableval="$enable_dynamic_e2fsck"
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003227 if test "$enableval" = "no"
3228then
3229 E2FSCK_TYPE=static
3230 echo "Building e2fsck statically"
3231else
3232 E2FSCK_TYPE=shared
3233 echo "Building e2fsck dynamically"
3234fi
3235
3236else
3237 E2FSCK_TYPE=static
3238echo "Building e2fsck statically by default"
3239
3240fi
3241
3242
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003243# Check whether --enable-fsck or --disable-fsck was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003244if test "${enable_fsck+set}" = set; then
3245 enableval="$enable_fsck"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003246 if test "$enableval" = "no"
3247then
3248 FSCK_PROG='' FSCK_MAN=''
3249 echo "Not building fsck wrapper"
3250else
3251 FSCK_PROG=fsck FSCK_MAN=fsck.8
3252 echo "Building fsck wrapper"
3253fi
3254
3255else
3256 case "$host_os" in
3257 gnu*)
3258 FSCK_PROG='' FSCK_MAN=''
3259 echo "Not building fsck wrapper by default"
3260 ;;
3261 *)
3262 FSCK_PROG=fsck FSCK_MAN=fsck.8
3263 echo "Building fsck wrapper by default"
3264esac
3265
3266fi
3267
3268
3269
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003270MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3271
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003272# Check whether --enable-old-bitops or --disable-old-bitops was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003273if test "${enable_old_bitops+set}" = set; then
3274 enableval="$enable_old_bitops"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003275 if test "$enableval" = "no"
3276then
3277 echo "Using new (standard) bitmask operations"
3278else
3279 cat >> confdefs.h <<\EOF
3280#define EXT2_OLD_BITOPS 1
3281EOF
3282
3283 echo "Using old (native) bitmask operations"
3284
3285fi
3286
3287else
3288 echo "Using standard bitmask operations by default"
3289
3290fi
3291
Theodore Ts'o74becf31997-04-26 14:37:06 +00003292
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003293echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003294echo "configure:3295: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003295set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003296if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3298else
3299 cat > conftestmake <<\EOF
3300all:
3301 @echo 'ac_maketemp="${MAKE}"'
3302EOF
3303# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3304eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3305if test -n "$ac_maketemp"; then
3306 eval ac_cv_prog_make_${ac_make}_set=yes
3307else
3308 eval ac_cv_prog_make_${ac_make}_set=no
3309fi
3310rm -f conftestmake
3311fi
3312if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3313 echo "$ac_t""yes" 1>&6
3314 SET_MAKE=
3315else
3316 echo "$ac_t""no" 1>&6
3317 SET_MAKE="MAKE=${MAKE-make}"
3318fi
3319
3320# Extract the first word of "ln", so it can be a program name with args.
3321set dummy ln; ac_word=$2
3322echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003323echo "configure:3324: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003324if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3326else
3327 case "$LN" in
3328 /*)
3329 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3330 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003331 ?:/*)
3332 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3333 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003334 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3336 ac_dummy="$PATH"
3337 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003338 test -z "$ac_dir" && ac_dir=.
3339 if test -f $ac_dir/$ac_word; then
3340 ac_cv_path_LN="$ac_dir/$ac_word"
3341 break
3342 fi
3343 done
3344 IFS="$ac_save_ifs"
3345 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3346 ;;
3347esac
3348fi
3349LN="$ac_cv_path_LN"
3350if test -n "$LN"; then
3351 echo "$ac_t""$LN" 1>&6
3352else
3353 echo "$ac_t""no" 1>&6
3354fi
3355
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003356echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003357echo "configure:3358: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003358if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3360else
3361 rm -f conftestdata
3362if ln -s X conftestdata 2>/dev/null
3363then
3364 rm -f conftestdata
3365 ac_cv_prog_LN_S="ln -s"
3366else
3367 ac_cv_prog_LN_S=ln
3368fi
3369fi
3370LN_S="$ac_cv_prog_LN_S"
3371if test "$ac_cv_prog_LN_S" = "ln -s"; then
3372 echo "$ac_t""yes" 1>&6
3373else
3374 echo "$ac_t""no" 1>&6
3375fi
3376
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003377# Extract the first word of "mv", so it can be a program name with args.
3378set dummy mv; ac_word=$2
3379echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003380echo "configure:3381: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003381if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3383else
3384 case "$MV" in
3385 /*)
3386 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3387 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003388 ?:/*)
3389 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3390 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003391 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3393 ac_dummy="$PATH"
3394 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003395 test -z "$ac_dir" && ac_dir=.
3396 if test -f $ac_dir/$ac_word; then
3397 ac_cv_path_MV="$ac_dir/$ac_word"
3398 break
3399 fi
3400 done
3401 IFS="$ac_save_ifs"
3402 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3403 ;;
3404esac
3405fi
3406MV="$ac_cv_path_MV"
3407if test -n "$MV"; then
3408 echo "$ac_t""$MV" 1>&6
3409else
3410 echo "$ac_t""no" 1>&6
3411fi
3412
3413# Extract the first word of "cp", so it can be a program name with args.
3414set dummy cp; ac_word=$2
3415echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003416echo "configure:3417: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003417if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3419else
3420 case "$CP" in
3421 /*)
3422 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3423 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003424 ?:/*)
3425 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3426 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003427 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3429 ac_dummy="$PATH"
3430 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003431 test -z "$ac_dir" && ac_dir=.
3432 if test -f $ac_dir/$ac_word; then
3433 ac_cv_path_CP="$ac_dir/$ac_word"
3434 break
3435 fi
3436 done
3437 IFS="$ac_save_ifs"
3438 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3439 ;;
3440esac
3441fi
3442CP="$ac_cv_path_CP"
3443if test -n "$CP"; then
3444 echo "$ac_t""$CP" 1>&6
3445else
3446 echo "$ac_t""no" 1>&6
3447fi
3448
3449# Extract the first word of "rm", so it can be a program name with args.
3450set dummy rm; ac_word=$2
3451echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003452echo "configure:3453: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003453if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3455else
3456 case "$RM" in
3457 /*)
3458 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3459 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003460 ?:/*)
3461 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3462 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003463 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3465 ac_dummy="$PATH"
3466 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003467 test -z "$ac_dir" && ac_dir=.
3468 if test -f $ac_dir/$ac_word; then
3469 ac_cv_path_RM="$ac_dir/$ac_word"
3470 break
3471 fi
3472 done
3473 IFS="$ac_save_ifs"
3474 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3475 ;;
3476esac
3477fi
3478RM="$ac_cv_path_RM"
3479if test -n "$RM"; then
3480 echo "$ac_t""$RM" 1>&6
3481else
3482 echo "$ac_t""no" 1>&6
3483fi
3484
3485# Extract the first word of "chmod", so it can be a program name with args.
3486set dummy chmod; ac_word=$2
3487echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003488echo "configure:3489: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003489if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3491else
3492 case "$CHMOD" in
3493 /*)
3494 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3495 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003496 ?:/*)
3497 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3498 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003499 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3501 ac_dummy="$PATH"
3502 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003503 test -z "$ac_dir" && ac_dir=.
3504 if test -f $ac_dir/$ac_word; then
3505 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3506 break
3507 fi
3508 done
3509 IFS="$ac_save_ifs"
3510 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3511 ;;
3512esac
3513fi
3514CHMOD="$ac_cv_path_CHMOD"
3515if test -n "$CHMOD"; then
3516 echo "$ac_t""$CHMOD" 1>&6
3517else
3518 echo "$ac_t""no" 1>&6
3519fi
3520
3521# Extract the first word of "awk", so it can be a program name with args.
3522set dummy awk; ac_word=$2
3523echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003524echo "configure:3525: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003525if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3527else
3528 case "$AWK" in
3529 /*)
3530 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3531 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003532 ?:/*)
3533 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3534 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003535 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3537 ac_dummy="$PATH"
3538 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003539 test -z "$ac_dir" && ac_dir=.
3540 if test -f $ac_dir/$ac_word; then
3541 ac_cv_path_AWK="$ac_dir/$ac_word"
3542 break
3543 fi
3544 done
3545 IFS="$ac_save_ifs"
3546 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3547 ;;
3548esac
3549fi
3550AWK="$ac_cv_path_AWK"
3551if test -n "$AWK"; then
3552 echo "$ac_t""$AWK" 1>&6
3553else
3554 echo "$ac_t""no" 1>&6
3555fi
3556
3557# Extract the first word of "sed", so it can be a program name with args.
3558set dummy sed; ac_word=$2
3559echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003560echo "configure:3561: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003561if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3563else
3564 case "$SED" in
3565 /*)
3566 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3567 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003568 ?:/*)
3569 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3570 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003571 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3573 ac_dummy="$PATH"
3574 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003575 test -z "$ac_dir" && ac_dir=.
3576 if test -f $ac_dir/$ac_word; then
3577 ac_cv_path_SED="$ac_dir/$ac_word"
3578 break
3579 fi
3580 done
3581 IFS="$ac_save_ifs"
3582 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3583 ;;
3584esac
3585fi
3586SED="$ac_cv_path_SED"
3587if test -n "$SED"; then
3588 echo "$ac_t""$SED" 1>&6
3589else
3590 echo "$ac_t""no" 1>&6
3591fi
3592
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003593# Extract the first word of "perl", so it can be a program name with args.
3594set dummy perl; ac_word=$2
3595echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003596echo "configure:3597: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003597if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3599else
3600 case "$PERL" in
3601 /*)
3602 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3603 ;;
3604 ?:/*)
3605 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3606 ;;
3607 *)
3608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3609 ac_dummy="$PATH"
3610 for ac_dir in $ac_dummy; do
3611 test -z "$ac_dir" && ac_dir=.
3612 if test -f $ac_dir/$ac_word; then
3613 ac_cv_path_PERL="$ac_dir/$ac_word"
3614 break
3615 fi
3616 done
3617 IFS="$ac_save_ifs"
3618 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3619 ;;
3620esac
3621fi
3622PERL="$ac_cv_path_PERL"
3623if test -n "$PERL"; then
3624 echo "$ac_t""$PERL" 1>&6
3625else
3626 echo "$ac_t""no" 1>&6
3627fi
3628
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003629# Extract the first word of "ldconfig", so it can be a program name with args.
3630set dummy ldconfig; ac_word=$2
3631echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003632echo "configure:3633: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003633if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3635else
3636 case "$LDCONFIG" in
3637 /*)
3638 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3639 ;;
3640 ?:/*)
3641 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3642 ;;
3643 *)
3644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3645 ac_dummy="$PATH"
3646 for ac_dir in $ac_dummy; do
3647 test -z "$ac_dir" && ac_dir=.
3648 if test -f $ac_dir/$ac_word; then
3649 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3650 break
3651 fi
3652 done
3653 IFS="$ac_save_ifs"
3654 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3655 ;;
3656esac
3657fi
3658LDCONFIG="$ac_cv_path_LDCONFIG"
3659if test -n "$LDCONFIG"; then
3660 echo "$ac_t""$LDCONFIG" 1>&6
3661else
3662 echo "$ac_t""no" 1>&6
3663fi
3664
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003665echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003666echo "configure:3667: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003667
3668build_alias=$build
3669case "$build_alias" in
3670NONE)
3671 case $nonopt in
3672 NONE) build_alias=$host_alias ;;
3673 *) build_alias=$nonopt ;;
3674 esac ;;
3675esac
3676
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003677build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003678build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3679build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3680build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003681echo "$ac_t""$build" 1>&6
3682
3683if test $host != $build; then
3684 ac_tool_prefix=${host_alias}-
3685else
3686 ac_tool_prefix=
3687fi
3688
3689# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3690set dummy ${ac_tool_prefix}ar; ac_word=$2
3691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003692echo "configure:3693: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003693if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3695else
3696 if test -n "$AR"; then
3697 ac_cv_prog_AR="$AR" # Let the user override the test.
3698else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3700 ac_dummy="$PATH"
3701 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003702 test -z "$ac_dir" && ac_dir=.
3703 if test -f $ac_dir/$ac_word; then
3704 ac_cv_prog_AR="${ac_tool_prefix}ar"
3705 break
3706 fi
3707 done
3708 IFS="$ac_save_ifs"
3709fi
3710fi
3711AR="$ac_cv_prog_AR"
3712if test -n "$AR"; then
3713 echo "$ac_t""$AR" 1>&6
3714else
3715 echo "$ac_t""no" 1>&6
3716fi
3717
3718
3719if test -z "$ac_cv_prog_AR"; then
3720if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "ar", so it can be a program name with args.
3722set dummy ar; ac_word=$2
3723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003724echo "configure:3725: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003725if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3727else
3728 if test -n "$AR"; then
3729 ac_cv_prog_AR="$AR" # Let the user override the test.
3730else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3732 ac_dummy="$PATH"
3733 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003734 test -z "$ac_dir" && ac_dir=.
3735 if test -f $ac_dir/$ac_word; then
3736 ac_cv_prog_AR="ar"
3737 break
3738 fi
3739 done
3740 IFS="$ac_save_ifs"
3741 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3742fi
3743fi
3744AR="$ac_cv_prog_AR"
3745if test -n "$AR"; then
3746 echo "$ac_t""$AR" 1>&6
3747else
3748 echo "$ac_t""no" 1>&6
3749fi
3750
3751else
3752 AR="ar"
3753fi
3754fi
3755
3756# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3757set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3758echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003759echo "configure:3760: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003760if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3762else
3763 if test -n "$RANLIB"; then
3764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3765else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3767 ac_dummy="$PATH"
3768 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003769 test -z "$ac_dir" && ac_dir=.
3770 if test -f $ac_dir/$ac_word; then
3771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3772 break
3773 fi
3774 done
3775 IFS="$ac_save_ifs"
3776fi
3777fi
3778RANLIB="$ac_cv_prog_RANLIB"
3779if test -n "$RANLIB"; then
3780 echo "$ac_t""$RANLIB" 1>&6
3781else
3782 echo "$ac_t""no" 1>&6
3783fi
3784
3785
3786if test -z "$ac_cv_prog_RANLIB"; then
3787if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "ranlib", so it can be a program name with args.
3789set dummy ranlib; ac_word=$2
3790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003791echo "configure:3792: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003792if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3794else
3795 if test -n "$RANLIB"; then
3796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3797else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3799 ac_dummy="$PATH"
3800 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003801 test -z "$ac_dir" && ac_dir=.
3802 if test -f $ac_dir/$ac_word; then
3803 ac_cv_prog_RANLIB="ranlib"
3804 break
3805 fi
3806 done
3807 IFS="$ac_save_ifs"
3808 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3809fi
3810fi
3811RANLIB="$ac_cv_prog_RANLIB"
3812if test -n "$RANLIB"; then
3813 echo "$ac_t""$RANLIB" 1>&6
3814else
3815 echo "$ac_t""no" 1>&6
3816fi
3817
3818else
3819 RANLIB=":"
3820fi
3821fi
3822
3823# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3824set dummy ${ac_tool_prefix}strip; ac_word=$2
3825echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003826echo "configure:3827: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003827if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3829else
3830 if test -n "$STRIP"; then
3831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3832else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3834 ac_dummy="$PATH"
3835 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003836 test -z "$ac_dir" && ac_dir=.
3837 if test -f $ac_dir/$ac_word; then
3838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3839 break
3840 fi
3841 done
3842 IFS="$ac_save_ifs"
3843fi
3844fi
3845STRIP="$ac_cv_prog_STRIP"
3846if test -n "$STRIP"; then
3847 echo "$ac_t""$STRIP" 1>&6
3848else
3849 echo "$ac_t""no" 1>&6
3850fi
3851
3852
3853if test -z "$ac_cv_prog_STRIP"; then
3854if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "strip", so it can be a program name with args.
3856set dummy strip; ac_word=$2
3857echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003858echo "configure:3859: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003859if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3861else
3862 if test -n "$STRIP"; then
3863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3864else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3866 ac_dummy="$PATH"
3867 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003868 test -z "$ac_dir" && ac_dir=.
3869 if test -f $ac_dir/$ac_word; then
3870 ac_cv_prog_STRIP="strip"
3871 break
3872 fi
3873 done
3874 IFS="$ac_save_ifs"
3875 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3876fi
3877fi
3878STRIP="$ac_cv_prog_STRIP"
3879if test -n "$STRIP"; then
3880 echo "$ac_t""$STRIP" 1>&6
3881else
3882 echo "$ac_t""no" 1>&6
3883fi
3884
3885else
3886 STRIP=":"
3887fi
3888fi
3889
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003890# Find a good install program. We prefer a C program (faster),
3891# so one script is as good as another. But avoid the broken or
3892# incompatible versions:
3893# SysV /etc/install, /usr/sbin/install
3894# SunOS /usr/etc/install
3895# IRIX /sbin/install
3896# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003897# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003898# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900# ./install, which can be erroneously created by make from ./install.sh.
3901echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003902echo "configure:3903: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003903if test -z "$INSTALL"; then
3904if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003907 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003908 for ac_dir in $PATH; do
3909 # Account for people who put trailing slashes in PATH elements.
3910 case "$ac_dir/" in
3911 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3912 *)
3913 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003914 # Don't use installbsd from OSF since it installs stuff as root
3915 # by default.
3916 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003917 if test -f $ac_dir/$ac_prog; then
3918 if test $ac_prog = install &&
3919 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3920 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003921 :
3922 else
3923 ac_cv_path_install="$ac_dir/$ac_prog -c"
3924 break 2
3925 fi
3926 fi
3927 done
3928 ;;
3929 esac
3930 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003931 IFS="$ac_save_IFS"
3932
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003933fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003934 if test "${ac_cv_path_install+set}" = set; then
3935 INSTALL="$ac_cv_path_install"
3936 else
3937 # As a last resort, use the slow shell script. We don't cache a
3938 # path for INSTALL within a source directory, because that will
3939 # break other packages using the cache if that directory is
3940 # removed, or if the path is relative.
3941 INSTALL="$ac_install_sh"
3942 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003943fi
3944echo "$ac_t""$INSTALL" 1>&6
3945
3946# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3947# It thinks the first close brace ends the variable substitution.
3948test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3949
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003950test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3951
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003952test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3953
Theodore Ts'o6c133521999-07-03 20:37:03 +00003954# See if we need a separate native compiler.
3955if test $cross_compiling = no; then
3956 BUILD_CC="$CC"
3957
3958else
3959 for ac_prog in gcc cc
3960do
3961# Extract the first word of "$ac_prog", so it can be a program name with args.
3962set dummy $ac_prog; ac_word=$2
3963echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003964echo "configure:3965: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00003965if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3967else
3968 if test -n "$BUILD_CC"; then
3969 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3970else
3971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3972 ac_dummy="$PATH"
3973 for ac_dir in $ac_dummy; do
3974 test -z "$ac_dir" && ac_dir=.
3975 if test -f $ac_dir/$ac_word; then
3976 ac_cv_prog_BUILD_CC="$ac_prog"
3977 break
3978 fi
3979 done
3980 IFS="$ac_save_ifs"
3981fi
3982fi
3983BUILD_CC="$ac_cv_prog_BUILD_CC"
3984if test -n "$BUILD_CC"; then
3985 echo "$ac_t""$BUILD_CC" 1>&6
3986else
3987 echo "$ac_t""no" 1>&6
3988fi
3989
3990test -n "$BUILD_CC" && break
3991done
3992
3993fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00003994for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003995do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003996ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003997echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003998echo "configure:3999: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003999if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4001else
4002 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004003#line 4004 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004004#include "confdefs.h"
4005#include <$ac_hdr>
4006EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004007ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004008{ (eval echo configure:4009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004009ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004010if test -z "$ac_err"; then
4011 rm -rf conftest*
4012 eval "ac_cv_header_$ac_safe=yes"
4013else
4014 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004017 rm -rf conftest*
4018 eval "ac_cv_header_$ac_safe=no"
4019fi
4020rm -f conftest*
4021fi
4022if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4023 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004025 cat >> confdefs.h <<EOF
4026#define $ac_tr_hdr 1
4027EOF
4028
4029else
4030 echo "$ac_t""no" 1>&6
4031fi
4032done
4033
4034echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004035echo "configure:4036: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004036if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4038else
4039 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004040#line 4041 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004041#include "confdefs.h"
4042/* System header to define __stub macros and hopefully few prototypes,
4043 which can conflict with char vprintf(); below. */
4044#include <assert.h>
4045/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004046/* We use char because int might match the return type of a gcc2
4047 builtin and then its argument prototype would still apply. */
4048char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004049
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004050int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004051
4052/* The GNU C library defines this for functions which it implements
4053 to always fail with ENOSYS. Some functions are actually named
4054 something starting with __ and the normal name is an alias. */
4055#if defined (__stub_vprintf) || defined (__stub___vprintf)
4056choke me
4057#else
4058vprintf();
4059#endif
4060
4061; return 0; }
4062EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004063if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004064 rm -rf conftest*
4065 eval "ac_cv_func_vprintf=yes"
4066else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004067 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004069 rm -rf conftest*
4070 eval "ac_cv_func_vprintf=no"
4071fi
4072rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004073fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004074
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004075if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4076 echo "$ac_t""yes" 1>&6
4077 cat >> confdefs.h <<\EOF
4078#define HAVE_VPRINTF 1
4079EOF
4080
4081else
4082 echo "$ac_t""no" 1>&6
4083fi
4084
4085if test "$ac_cv_func_vprintf" != yes; then
4086echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004087echo "configure:4088: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004088if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090else
4091 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004092#line 4093 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004093#include "confdefs.h"
4094/* System header to define __stub macros and hopefully few prototypes,
4095 which can conflict with char _doprnt(); below. */
4096#include <assert.h>
4097/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004098/* We use char because int might match the return type of a gcc2
4099 builtin and then its argument prototype would still apply. */
4100char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004101
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004102int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004103
4104/* The GNU C library defines this for functions which it implements
4105 to always fail with ENOSYS. Some functions are actually named
4106 something starting with __ and the normal name is an alias. */
4107#if defined (__stub__doprnt) || defined (__stub____doprnt)
4108choke me
4109#else
4110_doprnt();
4111#endif
4112
4113; return 0; }
4114EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004115if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004116 rm -rf conftest*
4117 eval "ac_cv_func__doprnt=yes"
4118else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004121 rm -rf conftest*
4122 eval "ac_cv_func__doprnt=no"
4123fi
4124rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004125fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004126
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004127if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4129 cat >> confdefs.h <<\EOF
4130#define HAVE_DOPRNT 1
4131EOF
4132
4133else
4134 echo "$ac_t""no" 1>&6
4135fi
4136
4137fi
4138
4139echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004140echo "configure:4141: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004141if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4143else
4144 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004145#line 4146 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004146#include "confdefs.h"
4147#include <sys/types.h>
4148#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004149int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004150struct dirent de; de.d_namlen = 0;
4151; return 0; }
4152EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004153if { (eval echo configure:4154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004154 rm -rf conftest*
4155 e2fsprogs_cv_struct_d_namlen=yes
4156else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004159 rm -rf conftest*
4160 e2fsprogs_cv_struct_d_namlen=no
4161fi
4162rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004163fi
4164
4165echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4166if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4167 cat >> confdefs.h <<\EOF
4168#define HAVE_DIRENT_NAMLEN 1
4169EOF
4170
4171fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004172echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004173echo "configure:4174: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004174if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4176else
4177 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004178#line 4179 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004179#include "confdefs.h"
4180#include <unistd.h>
4181int main() {
4182extern int llseek(int);
4183; return 0; }
4184EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004185if { (eval echo configure:4186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004186 rm -rf conftest*
4187 e2fsprogs_cv_have_llseek_prototype=no
4188else
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4191 rm -rf conftest*
4192 e2fsprogs_cv_have_llseek_prototype=yes
4193fi
4194rm -f conftest*
4195fi
4196
4197echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4198if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4199 cat >> confdefs.h <<\EOF
4200#define HAVE_LLSEEK_PROTOTYPE 1
4201EOF
4202
4203fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004204echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004205echo "configure:4206: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004206if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4208else
4209 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004210#line 4211 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004211#include "confdefs.h"
4212#define _LARGEFILE_SOURCE
4213#define _LARGEFILE64_SOURCE
4214#include <unistd.h>
4215int main() {
4216extern int lseek64(int);
4217; return 0; }
4218EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004219if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004220 rm -rf conftest*
4221 e2fsprogs_cv_have_lseek64_prototype=no
4222else
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4225 rm -rf conftest*
4226 e2fsprogs_cv_have_lseek64_prototype=yes
4227fi
4228rm -f conftest*
4229fi
4230
4231echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4232if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4233 cat >> confdefs.h <<\EOF
4234#define HAVE_LSEEK64_PROTOTYPE 1
4235EOF
4236
4237fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004238if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4239 # if cross-compiling, with no cached values, just assume something common.
4240 ac_cv_sizeof_short=2
4241 ac_cv_sizeof_int=4
4242 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004243 ac_cv_sizeof_long_long=8
4244 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 +00004245fi
4246echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004247echo "configure:4248: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004248if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4250else
4251 if test "$cross_compiling" = yes; then
4252 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4253else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004254 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004255#line 4256 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004256#include "confdefs.h"
4257#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004258#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004259main()
4260{
4261 FILE *f=fopen("conftestval", "w");
4262 if (!f) exit(1);
4263 fprintf(f, "%d\n", sizeof(short));
4264 exit(0);
4265}
4266EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004267if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004268then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004269 ac_cv_sizeof_short=`cat conftestval`
4270else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4273 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004274 ac_cv_sizeof_short=0
4275fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004276rm -fr conftest*
4277fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004278
4279fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004280echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4281cat >> confdefs.h <<EOF
4282#define SIZEOF_SHORT $ac_cv_sizeof_short
4283EOF
4284
4285
4286echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004287echo "configure:4288: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004288if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4290else
4291 if test "$cross_compiling" = yes; then
4292 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4293else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004294 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004295#line 4296 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004296#include "confdefs.h"
4297#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004298#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004299main()
4300{
4301 FILE *f=fopen("conftestval", "w");
4302 if (!f) exit(1);
4303 fprintf(f, "%d\n", sizeof(int));
4304 exit(0);
4305}
4306EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004307if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004308then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004309 ac_cv_sizeof_int=`cat conftestval`
4310else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4313 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004314 ac_cv_sizeof_int=0
4315fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004316rm -fr conftest*
4317fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004318
4319fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004320echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4321cat >> confdefs.h <<EOF
4322#define SIZEOF_INT $ac_cv_sizeof_int
4323EOF
4324
4325
4326echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004327echo "configure:4328: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004328if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4330else
4331 if test "$cross_compiling" = yes; then
4332 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4333else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004334 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004335#line 4336 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004336#include "confdefs.h"
4337#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004338#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004339main()
4340{
4341 FILE *f=fopen("conftestval", "w");
4342 if (!f) exit(1);
4343 fprintf(f, "%d\n", sizeof(long));
4344 exit(0);
4345}
4346EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004347if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004348then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004349 ac_cv_sizeof_long=`cat conftestval`
4350else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4353 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004354 ac_cv_sizeof_long=0
4355fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004356rm -fr conftest*
4357fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004358
4359fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004360echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4361cat >> confdefs.h <<EOF
4362#define SIZEOF_LONG $ac_cv_sizeof_long
4363EOF
4364
4365
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004366echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004367echo "configure:4368: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004368if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4370else
4371 if test "$cross_compiling" = yes; then
4372 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4373else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004374 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004375#line 4376 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004376#include "confdefs.h"
4377#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004378#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004379main()
4380{
4381 FILE *f=fopen("conftestval", "w");
4382 if (!f) exit(1);
4383 fprintf(f, "%d\n", sizeof(long long));
4384 exit(0);
4385}
4386EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004387if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004388then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004389 ac_cv_sizeof_long_long=`cat conftestval`
4390else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004394 ac_cv_sizeof_long_long=0
4395fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004396rm -fr conftest*
4397fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004398
4399fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004400echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4401cat >> confdefs.h <<EOF
4402#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4403EOF
4404
4405
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004406SIZEOF_SHORT=$ac_cv_sizeof_short
4407SIZEOF_INT=$ac_cv_sizeof_int
4408SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004409SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4410
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004411
4412
4413
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004414echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4415echo "configure:4416: checking whether byte ordering is bigendian" >&5
4416if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4418else
4419 ac_cv_c_bigendian=unknown
4420# See if sys/param.h defines the BYTE_ORDER macro.
4421cat > conftest.$ac_ext <<EOF
4422#line 4423 "configure"
4423#include "confdefs.h"
4424#include <sys/types.h>
4425#include <sys/param.h>
4426int main() {
4427
4428#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4429 bogus endian macros
4430#endif
4431; return 0; }
4432EOF
4433if { (eval echo configure:4434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4434 rm -rf conftest*
4435 # It does; now see whether it defined to BIG_ENDIAN or not.
4436cat > conftest.$ac_ext <<EOF
4437#line 4438 "configure"
4438#include "confdefs.h"
4439#include <sys/types.h>
4440#include <sys/param.h>
4441int main() {
4442
4443#if BYTE_ORDER != BIG_ENDIAN
4444 not big endian
4445#endif
4446; return 0; }
4447EOF
4448if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4449 rm -rf conftest*
4450 ac_cv_c_bigendian=yes
4451else
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4454 rm -rf conftest*
4455 ac_cv_c_bigendian=no
4456fi
4457rm -f conftest*
4458else
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4461fi
4462rm -f conftest*
4463if test $ac_cv_c_bigendian = unknown; then
4464if test "$cross_compiling" = yes; then
4465 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4466else
4467 cat > conftest.$ac_ext <<EOF
4468#line 4469 "configure"
4469#include "confdefs.h"
4470main () {
4471 /* Are we little or big endian? From Harbison&Steele. */
4472 union
4473 {
4474 long l;
4475 char c[sizeof (long)];
4476 } u;
4477 u.l = 1;
4478 exit (u.c[sizeof (long) - 1] == 1);
4479}
4480EOF
4481if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4482then
4483 ac_cv_c_bigendian=no
4484else
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4487 rm -fr conftest*
4488 ac_cv_c_bigendian=yes
4489fi
4490rm -fr conftest*
4491fi
4492
4493fi
4494fi
4495
4496echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4497if test $ac_cv_c_bigendian = yes; then
4498 cat >> confdefs.h <<\EOF
4499#define WORDS_BIGENDIAN 1
4500EOF
4501
4502fi
4503
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004504echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004505echo "configure:4506: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004506if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4508else
4509 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004510#line 4511 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004511#include "confdefs.h"
4512#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004513int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004514struct stat stat; stat.st_flags = 0;
4515; return 0; }
4516EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004517if { (eval echo configure:4518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004518 rm -rf conftest*
4519 e2fsprogs_cv_struct_st_flags=yes
4520else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004523 rm -rf conftest*
4524 e2fsprogs_cv_struct_st_flags=no
4525fi
4526rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004527fi
4528
4529echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4530if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004531 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004532echo "configure:4533: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004533 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4535else
4536 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004537#line 4538 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004538#include "confdefs.h"
4539#include <sys/stat.h>
4540int main() {
4541struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4542; return 0; }
4543EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004544if { (eval echo configure:4545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004545 rm -rf conftest*
4546 e2fsprogs_cv_struct_st_flags_immut=yes
4547else
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 rm -rf conftest*
4551 e2fsprogs_cv_struct_st_flags_immut=no
4552fi
4553rm -f conftest*
4554fi
4555
4556 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4557 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4558 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004559#define HAVE_STAT_FLAGS 1
4560EOF
4561
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004562 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004563fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004564for ac_func in chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004565do
4566echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004567echo "configure:4568: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004568if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4570else
4571 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004572#line 4573 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004573#include "confdefs.h"
4574/* System header to define __stub macros and hopefully few prototypes,
4575 which can conflict with char $ac_func(); below. */
4576#include <assert.h>
4577/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004578/* We use char because int might match the return type of a gcc2
4579 builtin and then its argument prototype would still apply. */
4580char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004581
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004582int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004583
4584/* The GNU C library defines this for functions which it implements
4585 to always fail with ENOSYS. Some functions are actually named
4586 something starting with __ and the normal name is an alias. */
4587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4588choke me
4589#else
4590$ac_func();
4591#endif
4592
4593; return 0; }
4594EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004595if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004596 rm -rf conftest*
4597 eval "ac_cv_func_$ac_func=yes"
4598else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004601 rm -rf conftest*
4602 eval "ac_cv_func_$ac_func=no"
4603fi
4604rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004605fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004606
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004607if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4608 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004610 cat >> confdefs.h <<EOF
4611#define $ac_tr_func 1
4612EOF
4613
4614else
4615 echo "$ac_t""no" 1>&6
4616fi
4617done
4618
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004619SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004620echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004621echo "configure:4622: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004622ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4623if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004624 echo $ac_n "(cached) $ac_c" 1>&6
4625else
4626 ac_save_LIBS="$LIBS"
4627LIBS="-lsocket $LIBS"
4628cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004629#line 4630 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004630#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004631/* Override any gcc2 internal prototype to avoid an error. */
4632/* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4634char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004635
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004636int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004637socket()
4638; return 0; }
4639EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004640if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004641 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004642 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004643else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004646 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004647 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004648fi
4649rm -f conftest*
4650LIBS="$ac_save_LIBS"
4651
4652fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004653if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004654 echo "$ac_t""yes" 1>&6
4655 SOCKET_LIB=-lsocket
4656else
4657 echo "$ac_t""no" 1>&6
4658fi
4659
4660
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004661echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004662echo "configure:4663: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004663if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4665else
4666 cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004667#line 4668 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004668#include "confdefs.h"
4669#include <unistd.h>
4670EOF
4671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4672 egrep "optreset" >/dev/null 2>&1; then
4673 rm -rf conftest*
4674 ac_cv_have_optreset=yes
4675else
4676 rm -rf conftest*
4677 ac_cv_have_optreset=no
4678fi
4679rm -f conftest*
4680
4681fi
4682echo "$ac_t""$ac_cv_have_optreset" 1>&6
4683if test $ac_cv_have_optreset = yes; then
4684 cat >> confdefs.h <<\EOF
4685#define HAVE_OPTRESET 1
4686EOF
4687
4688fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004689case "$host_os" in
4690linux*)
4691 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004692#define HAVE_EXT2_IOCTLS 1
4693EOF
4694
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004695 ;;
4696esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004697case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004698linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004699 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4700 root_prefix="";
4701 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004702 fi
4703 ;;
4704esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004705case "$host_os" in
4706linux* | gnu*)
4707 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004708 prefix="/usr";
4709 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004710 fi
4711;;
4712esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004713if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004714 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004715 root_prefix="$ac_default_prefix"
4716 else
4717 root_prefix="$prefix"
4718 fi
4719fi
4720
Theodore Ts'oae851481997-04-29 18:13:24 +00004721echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004722echo "configure:4723: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004723if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4725else
4726 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4727cat > conftest.$ac_ext <<EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004728#line 4729 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004729#include "confdefs.h"
4730#include <stdio.h>
4731int main() {
4732fflush(stdout);
4733; return 0; }
4734EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004735if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004736 rm -rf conftest*
4737 ac_cv_e2fsprogs_use_static=yes
4738else
4739 echo "configure: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4741 rm -rf conftest*
4742 ac_cv_e2fsprogs_use_static=no
4743fi
4744rm -f conftest*
4745LDFLAGS=$SAVE_LDFLAGS
4746fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004747
Theodore Ts'odefde781999-01-04 07:39:19 +00004748case "$host_os" in
4749solaris2.*)
4750 ac_cv_e2fsprogs_use_static=no
4751;;
4752esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004753echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004754LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004755if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004756 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004757fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004758
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004759SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4760ET_DIR=`cd ${srcdir}/lib/et; pwd`
4761
4762
4763if test "$cross_compiling" = yes ; then
4764 DO_TEST_SUITE=
4765else
4766 DO_TEST_SUITE=check
4767fi
4768
4769test -d lib || mkdir lib
4770test -d include || mkdir include
4771test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004772test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004773rmakefile=
4774if test -d ${srcdir}/resize ; then
4775 rmakefile=resize/Makefile
4776fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004777trap '' 1 2 15
4778cat > confcache <<\EOF
4779# This file is a shell script that caches the results of configure
4780# tests run on this system so they can be shared between configure
4781# scripts and configure runs. It is not useful on other systems.
4782# If it contains results you don't want to keep, you may remove or edit it.
4783#
4784# By default, configure uses ./config.cache as the cache file,
4785# creating it if it does not exist already. You can give configure
4786# the --cache-file=FILE option to use a different cache file; that is
4787# what configure does when it calls configure scripts in
4788# subdirectories, so they share the cache.
4789# Giving --cache-file=/dev/null disables caching, for debugging configure.
4790# config.status only pays attention to the cache file if you give it the
4791# --recheck option to rerun configure.
4792#
4793EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004794# The following way of writing the cache mishandles newlines in values,
4795# but we know of no workaround that is simple, portable, and efficient.
4796# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004797# Ultrix sh set writes to stderr and can't be redirected directly,
4798# and sets the high bit in the cache file unless we assign to the vars.
4799(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004800 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004801 *ac_space=\ *)
4802 # `set' does not quote correctly, so add quotes (double-quote substitution
4803 # turns \\\\ into \\, and sed turns \\ into \).
4804 sed -n \
4805 -e "s/'/'\\\\''/g" \
4806 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4807 ;;
4808 *)
4809 # `set' quotes correctly as required by POSIX, so do not add quotes.
4810 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4811 ;;
4812 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004813if cmp -s $cache_file confcache; then
4814 :
4815else
4816 if test -w $cache_file; then
4817 echo "updating cache $cache_file"
4818 cat confcache > $cache_file
4819 else
4820 echo "not updating unwritable cache $cache_file"
4821 fi
4822fi
4823rm -f confcache
4824
4825trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4826
4827test "x$prefix" = xNONE && prefix=$ac_default_prefix
4828# Let make expand exec_prefix.
4829test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4830
4831# Any assignment to VPATH causes Sun make to only execute
4832# the first set of double-colon rules, so remove it if not needed.
4833# If there is a colon in the path, we need to keep it.
4834if test "x$srcdir" = x.; then
4835 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4836fi
4837
4838trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4839
4840# Transform confdefs.h into DEFS.
4841# Protect against shell expansion while executing Makefile rules.
4842# Protect against Makefile macro expansion.
4843cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004844s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004845s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4846s%\[%\\&%g
4847s%\]%\\&%g
4848s%\$%$$%g
4849EOF
4850DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4851rm -f conftest.defs
4852
4853
4854# Without the "./", some shells look in PATH for config.status.
4855: ${CONFIG_STATUS=./config.status}
4856
4857echo creating $CONFIG_STATUS
4858rm -f $CONFIG_STATUS
4859cat > $CONFIG_STATUS <<EOF
4860#! /bin/sh
4861# Generated automatically by configure.
4862# Run this file to recreate the current configuration.
4863# This directory was configured as follows,
4864# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4865#
4866# $0 $ac_configure_args
4867#
4868# Compiler output produced by configure, useful for debugging
4869# configure, is in ./config.log if it exists.
4870
4871ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4872for ac_option
4873do
4874 case "\$ac_option" in
4875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4876 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4877 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4878 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004879 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004880 exit 0 ;;
4881 -help | --help | --hel | --he | --h)
4882 echo "\$ac_cs_usage"; exit 0 ;;
4883 *) echo "\$ac_cs_usage"; exit 1 ;;
4884 esac
4885done
4886
4887ac_given_srcdir=$srcdir
4888ac_given_INSTALL="$INSTALL"
4889
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004890trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004891 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4892 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004893 tests/progs/Makefile $rmakefile doc/Makefile
4894 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004895EOF
4896cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004897
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004898# Protect against being on the right side of a sed subst in config.status.
4899sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4900 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004901$ac_vpsub
4902$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004903s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004904s%@CFLAGS@%$CFLAGS%g
4905s%@CPPFLAGS@%$CPPFLAGS%g
4906s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004907s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004908s%@DEFS@%$DEFS%g
4909s%@LDFLAGS@%$LDFLAGS%g
4910s%@LIBS@%$LIBS%g
4911s%@exec_prefix@%$exec_prefix%g
4912s%@prefix@%$prefix%g
4913s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004914s%@bindir@%$bindir%g
4915s%@sbindir@%$sbindir%g
4916s%@libexecdir@%$libexecdir%g
4917s%@datadir@%$datadir%g
4918s%@sysconfdir@%$sysconfdir%g
4919s%@sharedstatedir@%$sharedstatedir%g
4920s%@localstatedir@%$localstatedir%g
4921s%@libdir@%$libdir%g
4922s%@includedir@%$includedir%g
4923s%@oldincludedir@%$oldincludedir%g
4924s%@infodir@%$infodir%g
4925s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004926/@MCONFIG@/r $MCONFIG
4927s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004928s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4929s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4930s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004931s%@host@%$host%g
4932s%@host_alias@%$host_alias%g
4933s%@host_cpu@%$host_cpu%g
4934s%@host_vendor@%$host_vendor%g
4935s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004936s%@CC@%$CC%g
4937s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004938s%@CPP@%$CPP%g
4939s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004940s%@DLL_CMT@%$DLL_CMT%g
4941/@MAKEFILE_DLL@/r $MAKEFILE_DLL
4942s%@MAKEFILE_DLL@%%g
4943s%@ELF_CMT@%$ELF_CMT%g
4944/@MAKEFILE_ELF@/r $MAKEFILE_ELF
4945s%@MAKEFILE_ELF@%%g
4946s%@BSDLIB_CMT@%$BSDLIB_CMT%g
4947/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
4948s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004949s%@SWAPFS_CMT@%$SWAPFS_CMT%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004950s%@PACKAGE@%$PACKAGE%g
4951s%@VERSION@%$VERSION%g
4952s%@SET_MAKE@%$SET_MAKE%g
4953s%@RANLIB@%$RANLIB%g
4954s%@ALLOCA@%$ALLOCA%g
4955s%@USE_NLS@%$USE_NLS%g
4956s%@MSGFMT@%$MSGFMT%g
4957s%@GMSGFMT@%$GMSGFMT%g
4958s%@XGETTEXT@%$XGETTEXT%g
4959s%@GENCAT@%$GENCAT%g
4960s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4961s%@CATALOGS@%$CATALOGS%g
4962s%@CATOBJEXT@%$CATOBJEXT%g
4963s%@DATADIRNAME@%$DATADIRNAME%g
4964s%@GMOFILES@%$GMOFILES%g
4965s%@INSTOBJEXT@%$INSTOBJEXT%g
4966s%@INTLDEPS@%$INTLDEPS%g
4967s%@INTLLIBS@%$INTLLIBS%g
4968s%@INTLOBJS@%$INTLOBJS%g
4969s%@POFILES@%$POFILES%g
4970s%@POSUB@%$POSUB%g
4971s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4972s%@GT_NO@%$GT_NO%g
4973s%@GT_YES@%$GT_YES%g
4974s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4975s%@l@%$l%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004976s%@PROFILE_CMT@%$PROFILE_CMT%g
4977/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
4978s%@MAKEFILE_PROFILE@%%g
4979s%@CHECKER_CMT@%$CHECKER_CMT%g
4980/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
4981s%@MAKEFILE_CHECKER@%%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004982s%@LIB_EXT@%$LIB_EXT%g
4983s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
4984s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004985s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004986s%@FSCK_PROG@%$FSCK_PROG%g
4987s%@FSCK_MAN@%$FSCK_MAN%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004988/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
4989s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004990s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004991s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004992s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004993s%@MV@%$MV%g
4994s%@CP@%$CP%g
4995s%@RM@%$RM%g
4996s%@CHMOD@%$CHMOD%g
4997s%@AWK@%$AWK%g
4998s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00004999s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005000s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005001s%@build@%$build%g
5002s%@build_alias@%$build_alias%g
5003s%@build_cpu@%$build_cpu%g
5004s%@build_vendor@%$build_vendor%g
5005s%@build_os@%$build_os%g
5006s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005007s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005008s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005009s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005010s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00005011s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005012s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5013s%@SIZEOF_INT@%$SIZEOF_INT%g
5014s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005015s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005016s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005017s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005018s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005019s%@SS_DIR@%$SS_DIR%g
5020s%@ET_DIR@%$ET_DIR%g
5021s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5022
5023CEOF
5024EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005025
5026cat >> $CONFIG_STATUS <<\EOF
5027
5028# Split the substitutions into bite-sized pieces for seds with
5029# small command number limits, like on Digital OSF/1 and HP-UX.
5030ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5031ac_file=1 # Number of current file.
5032ac_beg=1 # First line for current file.
5033ac_end=$ac_max_sed_cmds # Line after last line for current file.
5034ac_more_lines=:
5035ac_sed_cmds=""
5036while $ac_more_lines; do
5037 if test $ac_beg -gt 1; then
5038 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5039 else
5040 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5041 fi
5042 if test ! -s conftest.s$ac_file; then
5043 ac_more_lines=false
5044 rm -f conftest.s$ac_file
5045 else
5046 if test -z "$ac_sed_cmds"; then
5047 ac_sed_cmds="sed -f conftest.s$ac_file"
5048 else
5049 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5050 fi
5051 ac_file=`expr $ac_file + 1`
5052 ac_beg=$ac_end
5053 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5054 fi
5055done
5056if test -z "$ac_sed_cmds"; then
5057 ac_sed_cmds=cat
5058fi
5059EOF
5060
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005061cat >> $CONFIG_STATUS <<EOF
5062
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005063CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005064 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5065 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005066 tests/progs/Makefile $rmakefile doc/Makefile
5067 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005068EOF
5069cat >> $CONFIG_STATUS <<\EOF
5070for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005072 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005073 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005074 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5075 *) ac_file_in="${ac_file}.in" ;;
5076 esac
5077
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005078 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005079
5080 # Remove last slash and all that follows it. Not all systems have dirname.
5081 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5083 # The file is in a subdirectory.
5084 test ! -d "$ac_dir" && mkdir "$ac_dir"
5085 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5086 # A "../" for each directory in $ac_dir_suffix.
5087 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5088 else
5089 ac_dir_suffix= ac_dots=
5090 fi
5091
5092 case "$ac_given_srcdir" in
5093 .) srcdir=.
5094 if test -z "$ac_dots"; then top_srcdir=.
5095 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5096 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5097 *) # Relative path.
5098 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5099 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5100 esac
5101
5102 case "$ac_given_INSTALL" in
5103 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5104 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5105 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005106
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005107 echo creating "$ac_file"
5108 rm -f "$ac_file"
5109 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5110 case "$ac_file" in
5111 *Makefile*) ac_comsub="1i\\
5112# $configure_input" ;;
5113 *) ac_comsub= ;;
5114 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005115
5116 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005117 sed -e "$ac_comsub
5118s%@configure_input@%$configure_input%g
5119s%@srcdir@%$srcdir%g
5120s%@top_srcdir@%$top_srcdir%g
5121s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005122" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005123fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005124rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005125
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005126EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005127
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005128cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005129ac_sources="$nls_cv_header_libgt"
5130ac_dests="$nls_cv_header_intl"
5131EOF
5132
5133cat >> $CONFIG_STATUS <<\EOF
5134srcdir=$ac_given_srcdir
5135while test -n "$ac_sources"; do
5136 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5137 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5138
5139 echo "linking $srcdir/$ac_source to $ac_dest"
5140
5141 if test ! -r $srcdir/$ac_source; then
5142 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5143 fi
5144 rm -f $ac_dest
5145
5146 # Make relative symlinks.
5147 # Remove last slash and all that follows it. Not all systems have dirname.
5148 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5149 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5150 # The dest file is in a subdirectory.
5151 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5152 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5153 # A "../" for each directory in $ac_dest_dir_suffix.
5154 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5155 else
5156 ac_dest_dir_suffix= ac_dots=
5157 fi
5158
5159 case "$srcdir" in
5160 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5161 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5162 esac
5163
5164 # Make a symlink if possible; otherwise try a hard link.
5165 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5166 ln $srcdir/$ac_source $ac_dest; then :
5167 else
5168 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5169 fi
5170done
5171EOF
5172cat >> $CONFIG_STATUS <<EOF
5173
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005174
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005175EOF
5176cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005177case "$CONFIG_FILES" in *po/Makefile.in*)
5178 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5179 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005180
5181exit 0
5182EOF
5183chmod +x $CONFIG_STATUS
5184rm -fr confdefs* $ac_clean_files
5185test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5186