blob: e155ef60ce012f00a288ee45da9671c28ceb1b40 [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'o8fdc9982002-06-25 23:26:34 -040027 --enable-htree enable EXPERIMENTAL htree directory support"
28ac_help="$ac_help
29 --enable-htree-clear clear htree because we don't trust e2fsck"
30ac_help="$ac_help
Theodore Ts'oa9d799a2002-11-08 13:50:51 -050031 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)"
32ac_help="$ac_help
33 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.1)"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -040034ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000035 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000036ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000037 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000038ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000039 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000040ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000041 --enable-profile build profiling libraries"
42ac_help="$ac_help
43 --enable-checker build checker libraries"
44ac_help="$ac_help
Theodore Ts'o782bebf2002-11-08 18:46:45 -050045 --enable-jbd-debug enable journal debugging"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000046ac_help="$ac_help
Theodore Ts'of0a22d02003-02-22 13:19:53 -050047 --enable-blkid-debug enable blkid debugging"
48ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000049 --disable-swapfs disable support of legacy byte-swapped filesystems"
50ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000051 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000052ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000053 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000054ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000055 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000056ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000057 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000058ac_help="$ac_help
59 --enable-fsck build fsck wrapper program"
60ac_help="$ac_help
61 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000062ac_help="$ac_help
63 --enable-nls Turn on Native Language Support"
64ac_help="$ac_help
65 --with-included-gettext use the GNU gettext library included here"
66ac_help="$ac_help
67 --with-catgets use catgets functions if available"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000068
69# Initialize some variables set by options.
70# The variables have the same names as the options, with
71# dashes changed to underlines.
72build=NONE
73cache_file=./config.cache
74exec_prefix=NONE
75host=NONE
76no_create=
77nonopt=NONE
78no_recursion=
79prefix=NONE
80program_prefix=NONE
81program_suffix=NONE
82program_transform_name=s,x,x,
83silent=
84site=
85srcdir=
86target=NONE
87verbose=
88x_includes=NONE
89x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000090bindir='${exec_prefix}/bin'
91sbindir='${exec_prefix}/sbin'
92libexecdir='${exec_prefix}/libexec'
93datadir='${prefix}/share'
94sysconfdir='${prefix}/etc'
95sharedstatedir='${prefix}/com'
96localstatedir='${prefix}/var'
97libdir='${exec_prefix}/lib'
98includedir='${prefix}/include'
99oldincludedir='/usr/include'
100infodir='${prefix}/info'
101mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000102
103# Initialize some other variables.
104subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000105MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000106SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000107# Maximum number of lines to put in a shell here document.
108ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000109
110ac_prev=
111for ac_option
112do
113
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
119 fi
120
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
125
126 # Accept the important Cygnus configure options, so we can diagnose typos.
127
128 case "$ac_option" in
129
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
134
135 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000136 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000138 build="$ac_optarg" ;;
139
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
146
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
152
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 fi
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
161
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 fi
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
174
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
183
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
187
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192Usage: configure [options] [host]
193Options: [defaults in brackets after descriptions]
194Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000204 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
224EOF
225 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000226Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000237EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
240 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000241 exit 0 ;;
242
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
247
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
254
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
259
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
264
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
271
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
280
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
285
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
289
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
293
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
297
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
306
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
311
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
318
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
325
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
342
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
346
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
352
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
363
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
368
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
373
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
380
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
385
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
388
389 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000390 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000391 exit 0 ;;
392
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 fi
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
405
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 fi
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
414
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
418
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
425
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
432
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 ;;
435
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000436 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
439 fi
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 fi
443 nonopt="$ac_option"
444 ;;
445
446 esac
447done
448
449if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451fi
452
453trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454
455# File descriptor usage:
456# 0 standard input
457# 1 file creation
458# 2 errors and warnings
459# 3 some systems may open it to /dev/tty
460# 4 used on the Kubota Titan
461# 6 checking for... messages and results
462# 5 compiler messages saved in config.log
463if test "$silent" = yes; then
464 exec 6>/dev/null
465else
466 exec 6>&1
467fi
468exec 5>./config.log
469
470echo "\
471This file contains any messages produced by compilers while
472running configure, to aid debugging if configure makes a mistake.
473" 1>&5
474
475# Strip out --no-create and --no-recursion so they do not pile up.
476# Also quote any args containing shell metacharacters.
477ac_configure_args=
478for ac_arg
479do
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489done
490
491# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000492# Only set these to C if already set. These must not be set unconditionally
493# because not all systems understand e.g. LANG=C (notably SCO).
494# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000496if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000497if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000500
501# confdefs.h avoids OS command line length limits that DEFS can exceed.
502rm -rf conftest* confdefs.h
503# AIX cpp loses on an empty file, so make sure it contains at least a newline.
504echo > confdefs.h
505
506# A filename unique to this package, relative to the directory that
507# configure is in, which we can look for to find out if srcdir is correct.
508ac_unique_file=version.h
509
510# Find the source files, if location was not specified.
511if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
520 fi
521else
522 ac_srcdir_defaulted=no
523fi
524if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 fi
530fi
531srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532
533# Prefer explicitly selected file to automatically selected ones.
534if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 fi
540fi
541for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
545 fi
546done
547
548if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551else
552 echo "creating cache $cache_file"
553 > $cache_file
554fi
555
556ac_ext=c
557# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000559ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000560ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000561cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000563ac_exeext=
564ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000565if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
572 fi
573else
574 ac_n= ac_c='\c' ac_t=
575fi
576
577
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000578
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000579MCONFIG=./MCONFIG
580
Theodore Ts'o74becf31997-04-26 14:37:06 +0000581BINARY_TYPE=bin
582E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
583 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
584DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
585 | tr \" " "`
586MONTH=`echo $DATE | awk -F- '{print $2}'`
587YEAR=`echo $DATE | awk -F- '{print $3}'`
588
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000589if expr $YEAR ">" 1900 > /dev/null ; then
590 E2FSPROGS_YEAR=$YEAR
591elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000592 E2FSPROGS_YEAR=19$YEAR
593else
594 E2FSPROGS_YEAR=20$YEAR
595fi
596
597case $MONTH in
598Jan) E2FSPROGS_MONTH="January" ;;
599Feb) E2FSPROGS_MONTH="February" ;;
600Mar) E2FSPROGS_MONTH="March" ;;
601Apr) E2FSPROGS_MONTH="April" ;;
602May) E2FSPROGS_MONTH="May" ;;
603Jun) E2FSPROGS_MONTH="June" ;;
604Jul) E2FSPROGS_MONTH="July" ;;
605Aug) E2FSPROGS_MONTH="August" ;;
606Sep) E2FSPROGS_MONTH="September" ;;
607Oct) E2FSPROGS_MONTH="October" ;;
608Nov) E2FSPROGS_MONTH="November" ;;
609Dec) E2FSPROGS_MONTH="December" ;;
610*) echo "Unknown month $MONTH??" ;;
611esac
612
613unset DATE MONTH YEAR
614echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
615echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
616
617
618
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000619ac_aux_dir=
620for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
621 if test -f $ac_dir/install-sh; then
622 ac_aux_dir=$ac_dir
623 ac_install_sh="$ac_aux_dir/install-sh -c"
624 break
625 elif test -f $ac_dir/install.sh; then
626 ac_aux_dir=$ac_dir
627 ac_install_sh="$ac_aux_dir/install.sh -c"
628 break
629 fi
630done
631if test -z "$ac_aux_dir"; then
632 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
633fi
634ac_config_guess=$ac_aux_dir/config.guess
635ac_config_sub=$ac_aux_dir/config.sub
636ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
637
638
639# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000640if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000641else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
642fi
643
644echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500645echo "configure:646: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000646
647host_alias=$host
648case "$host_alias" in
649NONE)
650 case $nonopt in
651 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000652 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000653 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
654 fi ;;
655 *) host_alias=$nonopt ;;
656 esac ;;
657esac
658
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000659host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000660host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000663echo "$ac_t""$host" 1>&6
664
Theodore Ts'o74becf31997-04-26 14:37:06 +0000665# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000666if test "${with_cc+set}" = set; then
667 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000668 echo "$ac_t""CC=$withval" 1>&6
669CC=$withval
670else
671 if test -z "$CC" ; then CC=cc; fi
672echo "$ac_t""CC defaults to $CC" 1>&6
673fi
674export CC
675
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000676# Extract the first word of "gcc", so it can be a program name with args.
677set dummy gcc; ac_word=$2
678echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500679echo "configure:680: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000680if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682else
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
685else
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
687 ac_dummy="$PATH"
688 for ac_dir in $ac_dummy; do
689 test -z "$ac_dir" && ac_dir=.
690 if test -f $ac_dir/$ac_word; then
691 ac_cv_prog_CC="gcc"
692 break
693 fi
694 done
695 IFS="$ac_save_ifs"
696fi
697fi
698CC="$ac_cv_prog_CC"
699if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
701else
702 echo "$ac_t""no" 1>&6
703fi
704
705if test -z "$CC"; then
706 # Extract the first word of "cc", so it can be a program name with args.
707set dummy cc; ac_word=$2
708echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500709echo "configure:710: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000710if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
712else
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
715else
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
717 ac_prog_rejected=no
718 ac_dummy="$PATH"
719 for ac_dir in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir=.
721 if test -f $ac_dir/$ac_word; then
722 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
723 ac_prog_rejected=yes
724 continue
725 fi
726 ac_cv_prog_CC="cc"
727 break
728 fi
729 done
730 IFS="$ac_save_ifs"
731if test $ac_prog_rejected = yes; then
732 # We found a bogon in the path, so make sure we never use it.
733 set dummy $ac_cv_prog_CC
734 shift
735 if test $# -gt 0; then
736 # We chose a different compiler from the bogus one.
737 # However, it has the same basename, so the bogon will be chosen
738 # first if we set CC to just the basename; use the full file name.
739 shift
740 set dummy "$ac_dir/$ac_word" "$@"
741 shift
742 ac_cv_prog_CC="$@"
743 fi
744fi
745fi
746fi
747CC="$ac_cv_prog_CC"
748if test -n "$CC"; then
749 echo "$ac_t""$CC" 1>&6
750else
751 echo "$ac_t""no" 1>&6
752fi
753
754 if test -z "$CC"; then
755 case "`uname -s`" in
756 *win32* | *WIN32*)
757 # Extract the first word of "cl", so it can be a program name with args.
758set dummy cl; ac_word=$2
759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500760echo "configure:761: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000761if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
763else
764 if test -n "$CC"; then
765 ac_cv_prog_CC="$CC" # Let the user override the test.
766else
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
768 ac_dummy="$PATH"
769 for ac_dir in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir=.
771 if test -f $ac_dir/$ac_word; then
772 ac_cv_prog_CC="cl"
773 break
774 fi
775 done
776 IFS="$ac_save_ifs"
777fi
778fi
779CC="$ac_cv_prog_CC"
780if test -n "$CC"; then
781 echo "$ac_t""$CC" 1>&6
782else
783 echo "$ac_t""no" 1>&6
784fi
785 ;;
786 esac
787 fi
788 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
789fi
790
791echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500792echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000793
794ac_ext=c
795# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
796ac_cpp='$CPP $CPPFLAGS'
797ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
798ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
799cross_compiling=$ac_cv_prog_cc_cross
800
801cat > conftest.$ac_ext << EOF
802
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500803#line 804 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000804#include "confdefs.h"
805
806main(){return(0);}
807EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500808if { (eval echo configure:809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000809 ac_cv_prog_cc_works=yes
810 # If we can't run a trivial program, we are probably using a cross compiler.
811 if (./conftest; exit) 2>/dev/null; then
812 ac_cv_prog_cc_cross=no
813 else
814 ac_cv_prog_cc_cross=yes
815 fi
816else
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
819 ac_cv_prog_cc_works=no
820fi
821rm -fr conftest*
822ac_ext=c
823# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
824ac_cpp='$CPP $CPPFLAGS'
825ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
826ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
827cross_compiling=$ac_cv_prog_cc_cross
828
829echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
830if test $ac_cv_prog_cc_works = no; then
831 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
832fi
833echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500834echo "configure:835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000835echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
836cross_compiling=$ac_cv_prog_cc_cross
837
838echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500839echo "configure:840: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000840if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842else
843 cat > conftest.c <<EOF
844#ifdef __GNUC__
845 yes;
846#endif
847EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500848if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000849 ac_cv_prog_gcc=yes
850else
851 ac_cv_prog_gcc=no
852fi
853fi
854
855echo "$ac_t""$ac_cv_prog_gcc" 1>&6
856
857if test $ac_cv_prog_gcc = yes; then
858 GCC=yes
859else
860 GCC=
861fi
862
863ac_test_CFLAGS="${CFLAGS+set}"
864ac_save_CFLAGS="$CFLAGS"
865CFLAGS=
866echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500867echo "configure:868: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000868if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
870else
871 echo 'void f(){}' > conftest.c
872if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
873 ac_cv_prog_cc_g=yes
874else
875 ac_cv_prog_cc_g=no
876fi
877rm -f conftest*
878
879fi
880
881echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
882if test "$ac_test_CFLAGS" = set; then
883 CFLAGS="$ac_save_CFLAGS"
884elif test $ac_cv_prog_cc_g = yes; then
885 if test "$GCC" = yes; then
886 CFLAGS="-g -O2"
887 else
888 CFLAGS="-g"
889 fi
890else
891 if test "$GCC" = yes; then
892 CFLAGS="-O2"
893 else
894 CFLAGS=
895 fi
896fi
897
Theodore Ts'o74becf31997-04-26 14:37:06 +0000898# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000899if test "${with_linker+set}" = set; then
900 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000901 echo "$ac_t""LD=$withval" 1>&6
902LD=$withval
903else
904 if test -z "$LD" ; then LD=$CC; fi
905echo "$ac_t""LD defaults to $LD" 1>&6
906fi
907export LD
908
909# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000910if test "${with_ccopts+set}" = set; then
911 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000912 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000913CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +0000914fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000915echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500916echo "configure:917: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000917# On Suns, sometimes $CPP names a directory.
918if test -n "$CPP" && test -d "$CPP"; then
919 CPP=
920fi
921if test -z "$CPP"; then
922if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
924else
925 # This must be in double quotes, not single quotes, because CPP may get
926 # substituted into the Makefile and "${CC-cc}" will confuse make.
927 CPP="${CC-cc} -E"
928 # On the NeXT, cc -E runs the code through the compiler's parser,
929 # not just through cpp.
930 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500931#line 932 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000932#include "confdefs.h"
933#include <assert.h>
934Syntax Error
935EOF
936ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500937{ (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000938ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939if test -z "$ac_err"; then
940 :
941else
942 echo "$ac_err" >&5
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 rm -rf conftest*
946 CPP="${CC-cc} -E -traditional-cpp"
947 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500948#line 949 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000949#include "confdefs.h"
950#include <assert.h>
951Syntax Error
952EOF
953ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500954{ (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000955ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
956if test -z "$ac_err"; then
957 :
958else
959 echo "$ac_err" >&5
960 echo "configure: failed program was:" >&5
961 cat conftest.$ac_ext >&5
962 rm -rf conftest*
963 CPP="${CC-cc} -nologo -E"
964 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500965#line 966 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000966#include "confdefs.h"
967#include <assert.h>
968Syntax Error
969EOF
970ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500971{ (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000972ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
973if test -z "$ac_err"; then
974 :
975else
976 echo "$ac_err" >&5
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
979 rm -rf conftest*
980 CPP=/lib/cpp
981fi
982rm -f conftest*
983fi
984rm -f conftest*
985fi
986rm -f conftest*
987 ac_cv_prog_CPP="$CPP"
988fi
989 CPP="$ac_cv_prog_CPP"
990else
991 ac_cv_prog_CPP="$CPP"
992fi
993echo "$ac_t""$CPP" 1>&6
994
995ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
996echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -0500997echo "configure:998: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000998if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1000else
1001 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001002#line 1003 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001003#include "confdefs.h"
1004#include <linux/fs.h>
1005EOF
1006ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001007{ (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001008ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1009if test -z "$ac_err"; then
1010 rm -rf conftest*
1011 eval "ac_cv_header_$ac_safe=yes"
1012else
1013 echo "$ac_err" >&5
1014 echo "configure: failed program was:" >&5
1015 cat conftest.$ac_ext >&5
1016 rm -rf conftest*
1017 eval "ac_cv_header_$ac_safe=no"
1018fi
1019rm -f conftest*
1020fi
1021if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1022 echo "$ac_t""yes" 1>&6
1023 linux_headers=yes
1024else
1025 echo "$ac_t""no" 1>&6
1026linux_headers=no
1027fi
1028
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001029if test "$linux_headers" != yes; then
1030 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001031fi
1032
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001033LIB_EXT=.a
1034STATIC_LIB_EXT=.a
1035PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001036# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001037if test "${with_ldopts+set}" = set; then
1038 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001039 echo "$ac_t""LDFLAGS is $withval" 1>&6
1040LDFLAGS=$withval
1041else
1042 LDFLAGS=
1043fi
1044
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001045# Check whether --with-root-prefix or --without-root-prefix was given.
1046if test "${with_root_prefix+set}" = set; then
1047 withval="$with_root_prefix"
1048 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001049else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001050 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001051fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001052# Check whether --enable-compression or --disable-compression was given.
1053if test "${enable_compression+set}" = set; then
1054 enableval="$enable_compression"
1055 if test "$enableval" = "no"
1056then
1057 echo "Disabling compression support"
1058else
1059 cat >> confdefs.h <<\EOF
1060#define ENABLE_COMPRESSION 1
1061EOF
1062
1063 echo "Enabling compression support"
1064 echo "WARNING: Compression support is experimental"
1065fi
1066
1067else
1068 echo "Disabling compression support by default"
1069
1070fi
1071
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001072# Check whether --enable-htree or --disable-htree was given.
1073if test "${enable_htree+set}" = set; then
1074 enableval="$enable_htree"
1075 if test "$enableval" = "no"
1076then
1077 HTREE_CMT=#
1078 echo "Disabling htree directory support"
1079else
1080 HTREE_CMT=
1081 cat >> confdefs.h <<\EOF
1082#define ENABLE_HTREE 1
1083EOF
1084
1085 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001086fi
1087
1088else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001089 HTREE_CMT=
1090cat >> confdefs.h <<\EOF
1091#define ENABLE_HTREE 1
1092EOF
1093
1094echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001095
1096fi
1097
1098
1099# Check whether --enable-htree-clear or --disable-htree-clear was given.
1100if test "${enable_htree_clear+set}" = set; then
1101 enableval="$enable_htree_clear"
1102 if test "$enableval" = "no"
1103then
1104 HTREE_CLR_CMT=#
1105 echo "Disabling htree clearing"
1106else
1107 HTREE_CLR_CMT=
1108 cat >> confdefs.h <<\EOF
1109#define ENABLE_HTREE_CLEAR 1
1110EOF
1111
1112 echo "Enabling htree clearing"
1113fi
1114
1115else
1116 HTREE_CLR_CMT=#
1117echo "Disabling htree clearing by default"
1118
1119fi
1120
1121
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001122EVMS_ABI_CODE=120
1123# Check whether --enable-evms-10 or --disable-evms-10 was given.
1124if test "${enable_evms_10+set}" = set; then
1125 enableval="$enable_evms_10"
1126 if test "$enableval" != "no"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001127then
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001128 EVMS_ABI_CODE=100
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001129 echo "Enabling EVMS 1.0.0 ABI"
1130fi
1131
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001132fi
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001133
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001134# Check whether --enable-evms-11 or --disable-evms-11 was given.
1135if test "${enable_evms_11+set}" = set; then
1136 enableval="$enable_evms_11"
1137 if test "$enableval" != "no"
1138then
1139 EVMS_ABI_CODE=110
1140 echo "Enabling EVMS 1.1.0 ABI"
1141fi
1142
1143fi
1144
1145if test "$EVMS_ABI_CODE" = "120"
1146then
1147 echo "Using EVMS 1.2.0 ABI by default"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001148fi
1149
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001151if test "${enable_dll_shlibs+set}" = set; then
1152 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001153 if test "$enableval" = "no"
1154then
1155 DLL_CMT=#
1156 MAKEFILE_DLL=/dev/null
1157 echo "Disabling DLL shared libraries"
1158else
1159 DLL_CMT=
1160 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001161 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001162 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001163 echo "Enabling DLL shared libraries"
1164fi
1165
1166else
1167 MAKEFILE_DLL=/dev/null
1168DLL_CMT=#
1169echo "Disabling DLL shared libraries by default"
1170
1171fi
1172
1173
1174
1175# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001176if test "${enable_elf_shlibs+set}" = set; then
1177 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001178 if test "$enableval" = "no"
1179then
1180 ELF_CMT=#
1181 MAKEFILE_ELF=/dev/null
1182 echo "Disabling ELF shared libraries"
1183else
1184 ELF_CMT=
1185 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001186 case "$host_os" in
1187 solaris2.*)
1188 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1189 ;;
1190 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001191 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001192 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001193 echo "Enabling ELF shared libraries"
1194fi
1195
1196else
1197 MAKEFILE_ELF=/dev/null
1198ELF_CMT=#
1199echo "Disabling ELF shared libraries by default"
1200
1201fi
1202
1203
1204
1205# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001206if test "${enable_bsd_shlibs+set}" = set; then
1207 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001208 if test "$enableval" = "no"
1209then
1210 BSDLIB_CMT=#
1211 MAKEFILE_BSDLIB=/dev/null
1212 echo "Disabling BSD shared libraries"
1213else
1214 BSDLIB_CMT=
1215 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001216 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001217 echo "Enabling BSD shared libraries"
1218fi
1219
1220else
1221 MAKEFILE_BSDLIB=/dev/null
1222BSDLIB_CMT=#
1223echo "Disabling BSD shared libraries by default"
1224
1225fi
1226
1227
1228
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001229# Check whether --enable-profile or --disable-profile was given.
1230if test "${enable_profile+set}" = set; then
1231 enableval="$enable_profile"
1232 if test "$enableval" = "no"
1233then
1234 PROFILE_CMT=#
1235 MAKEFILE_PROFILE=/dev/null
1236 echo "Disabling profiling libraries"
1237else
1238 PROFILE_CMT=
1239 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1240 PROFILED_LIB_EXT=_p.a
1241 echo "Building profiling libraries"
1242fi
1243
1244else
1245 PROFILE_CMT=#
1246MAKEFILE_PROFILE=/dev/null
1247echo "Disabling profiling libraries by default"
1248
1249fi
1250
1251
1252
1253# Check whether --enable-checker or --disable-checker was given.
1254if test "${enable_checker+set}" = set; then
1255 enableval="$enable_checker"
1256 if test "$enableval" = "no"
1257then
1258 CHECKER_CMT=#
1259 MAKEFILE_CHECKER=/dev/null
1260 echo "Disabling checker libraries"
1261else
1262 CHECKER_CMT=
1263 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1264 echo "Building checker libraries"
1265fi
1266
1267else
1268 CHECKER_CMT=#
1269MAKEFILE_CHECKER=/dev/null
1270echo "Disabling checker libraries by default"
1271
1272fi
1273
1274
1275
1276
1277
1278
Theodore Ts'o782bebf2002-11-08 18:46:45 -05001279# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1280if test "${enable_jbd_debug+set}" = set; then
1281 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001282 if test "$enableval" = "no"
1283then
1284 echo "Disabling journal debugging"
1285else
1286 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001287#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001288EOF
1289
1290 echo "Enabling journal debugging"
1291fi
1292
1293else
1294 echo "Disabling journal debugging by default"
1295
1296fi
1297
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001298# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1299if test "${enable_blkid_debug+set}" = set; then
1300 enableval="$enable_blkid_debug"
1301 if test "$enableval" = "no"
1302then
1303 echo "Disabling blkid debugging"
1304else
1305 cat >> confdefs.h <<\EOF
1306#define CONFIG_BLKID_DEBUG 1
1307EOF
1308
1309 echo "Enabling blkid debugging"
1310fi
1311
1312else
1313 echo "Disabling blkid debugging by default"
1314
1315fi
1316
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001317# Check whether --enable-swapfs or --disable-swapfs was given.
1318if test "${enable_swapfs+set}" = set; then
1319 enableval="$enable_swapfs"
1320 if test "$enableval" = "no"
1321then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001322 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001323 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001324else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001325 SWAPFS_CMT=
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001326 cat >> confdefs.h <<\EOF
1327#define ENABLE_SWAPFS 1
1328EOF
1329
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001330 echo "Enabling swapfs support"
1331fi
1332
1333else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001334 SWAPFS_CMT=
1335echo "Enabling swapfs support by default"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001336cat >> confdefs.h <<\EOF
1337#define ENABLE_SWAPFS 1
1338EOF
1339
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001340
1341fi
1342
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05001343
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001344# Check whether --enable-debugfs or --disable-debugfs was given.
1345if test "${enable_debugfs+set}" = set; then
1346 enableval="$enable_debugfs"
1347 if test "$enableval" = "no"
1348then
1349 echo "Disabling debugfs support"
1350 DEBUGFS_CMT="#"
1351else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001352 DEBUGFS_CMT=
1353 echo "Enabling debugfs support"
1354fi
1355
1356else
1357 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001358DEBUGFS_CMT=
1359
1360fi
1361
1362
1363# Check whether --enable-imager or --disable-imager was given.
1364if test "${enable_imager+set}" = set; then
1365 enableval="$enable_imager"
1366 if test "$enableval" = "no"
1367then
1368 echo "Disabling e2image support"
1369 IMAGER_CMT="#"
1370else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001371 IMAGER_CMT=
1372 echo "Enabling e2image support"
1373fi
1374
1375else
1376 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001377IMAGER_CMT=
1378
1379fi
1380
1381
1382# Check whether --enable-resizer or --disable-resizer was given.
1383if test "${enable_resizer+set}" = set; then
1384 enableval="$enable_resizer"
1385 if test "$enableval" = "no"
1386then
1387 echo "Disabling e2resize support"
1388 RESIZER_CMT="#"
1389else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001390 RESIZER_CMT=
1391 echo "Enabling e2resize support"
1392fi
1393
1394else
1395 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001396RESIZER_CMT=
1397
1398fi
1399
1400
1401# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1402if test "${enable_dynamic_e2fsck+set}" = set; then
1403 enableval="$enable_dynamic_e2fsck"
1404 if test "$enableval" = "no"
1405then
1406 E2FSCK_TYPE=static
1407 echo "Building e2fsck statically"
1408else
1409 E2FSCK_TYPE=shared
1410 echo "Building e2fsck dynamically"
1411fi
1412
1413else
1414 E2FSCK_TYPE=static
1415echo "Building e2fsck statically by default"
1416
1417fi
1418
1419
1420# Check whether --enable-fsck or --disable-fsck was given.
1421if test "${enable_fsck+set}" = set; then
1422 enableval="$enable_fsck"
1423 if test "$enableval" = "no"
1424then
1425 FSCK_PROG='' FSCK_MAN=''
1426 echo "Not building fsck wrapper"
1427else
1428 FSCK_PROG=fsck FSCK_MAN=fsck.8
1429 echo "Building fsck wrapper"
1430fi
1431
1432else
1433 case "$host_os" in
1434 gnu*)
1435 FSCK_PROG='' FSCK_MAN=''
1436 echo "Not building fsck wrapper by default"
1437 ;;
1438 *)
1439 FSCK_PROG=fsck FSCK_MAN=fsck.8
1440 echo "Building fsck wrapper by default"
1441esac
1442
1443fi
1444
1445
1446
1447MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1448
1449# Check whether --enable-old-bitops or --disable-old-bitops was given.
1450if test "${enable_old_bitops+set}" = set; then
1451 enableval="$enable_old_bitops"
1452 if test "$enableval" = "no"
1453then
1454 echo "Using new (standard) bitmask operations"
1455else
1456 cat >> confdefs.h <<\EOF
1457#define EXT2_OLD_BITOPS 1
1458EOF
1459
1460 echo "Using old (native) bitmask operations"
1461
1462fi
1463
1464else
1465 echo "Using standard bitmask operations by default"
1466
1467fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001468
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001469PACKAGE=e2fsprogs
1470VERSION="$E2FSPROGS_VERSION"
1471cat >> confdefs.h <<EOF
1472#define PACKAGE "$PACKAGE"
1473EOF
1474
1475cat >> confdefs.h <<EOF
1476#define VERSION "$VERSION"
1477EOF
1478
1479
1480
1481
Theodore Ts'o0c897a92002-11-09 12:01:18 -05001482ALL_LINGUAS="it nyc tr de de-utf"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001483echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001484echo "configure:1485: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001485set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1486if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1488else
1489 cat > conftestmake <<\EOF
1490all:
1491 @echo 'ac_maketemp="${MAKE}"'
1492EOF
1493# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1494eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1495if test -n "$ac_maketemp"; then
1496 eval ac_cv_prog_make_${ac_make}_set=yes
1497else
1498 eval ac_cv_prog_make_${ac_make}_set=no
1499fi
1500rm -f conftestmake
1501fi
1502if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1503 echo "$ac_t""yes" 1>&6
1504 SET_MAKE=
1505else
1506 echo "$ac_t""no" 1>&6
1507 SET_MAKE="MAKE=${MAKE-make}"
1508fi
1509
1510# Extract the first word of "ranlib", so it can be a program name with args.
1511set dummy ranlib; ac_word=$2
1512echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001513echo "configure:1514: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001514if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1516else
1517 if test -n "$RANLIB"; then
1518 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1519else
1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1521 ac_dummy="$PATH"
1522 for ac_dir in $ac_dummy; do
1523 test -z "$ac_dir" && ac_dir=.
1524 if test -f $ac_dir/$ac_word; then
1525 ac_cv_prog_RANLIB="ranlib"
1526 break
1527 fi
1528 done
1529 IFS="$ac_save_ifs"
1530 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1531fi
1532fi
1533RANLIB="$ac_cv_prog_RANLIB"
1534if test -n "$RANLIB"; then
1535 echo "$ac_t""$RANLIB" 1>&6
1536else
1537 echo "$ac_t""no" 1>&6
1538fi
1539
1540echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001541echo "configure:1542: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001542if test -d /etc/conf/kconfig.d &&
1543 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1544then
1545 echo "$ac_t""yes" 1>&6
1546 ISC=yes # If later tests want to check for ISC.
1547 cat >> confdefs.h <<\EOF
1548#define _POSIX_SOURCE 1
1549EOF
1550
1551 if test "$GCC" = yes; then
1552 CC="$CC -posix"
1553 else
1554 CC="$CC -Xp"
1555 fi
1556else
1557 echo "$ac_t""no" 1>&6
1558 ISC=
1559fi
1560
1561echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001562echo "configure:1563: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001563if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1565else
1566 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001567#line 1568 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001568#include "confdefs.h"
1569#include <stdlib.h>
1570#include <stdarg.h>
1571#include <string.h>
1572#include <float.h>
1573EOF
1574ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001575{ (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001576ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1577if test -z "$ac_err"; then
1578 rm -rf conftest*
1579 ac_cv_header_stdc=yes
1580else
1581 echo "$ac_err" >&5
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1584 rm -rf conftest*
1585 ac_cv_header_stdc=no
1586fi
1587rm -f conftest*
1588
1589if test $ac_cv_header_stdc = yes; then
1590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1591cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001592#line 1593 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001593#include "confdefs.h"
1594#include <string.h>
1595EOF
1596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1597 egrep "memchr" >/dev/null 2>&1; then
1598 :
1599else
1600 rm -rf conftest*
1601 ac_cv_header_stdc=no
1602fi
1603rm -f conftest*
1604
1605fi
1606
1607if test $ac_cv_header_stdc = yes; then
1608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1609cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001610#line 1611 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001611#include "confdefs.h"
1612#include <stdlib.h>
1613EOF
1614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1615 egrep "free" >/dev/null 2>&1; then
1616 :
1617else
1618 rm -rf conftest*
1619 ac_cv_header_stdc=no
1620fi
1621rm -f conftest*
1622
1623fi
1624
1625if test $ac_cv_header_stdc = yes; then
1626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1627if test "$cross_compiling" = yes; then
1628 :
1629else
1630 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001631#line 1632 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001632#include "confdefs.h"
1633#include <ctype.h>
1634#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1635#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1636#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1637int main () { int i; for (i = 0; i < 256; i++)
1638if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1639exit (0); }
1640
1641EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001642if { (eval echo configure:1643: \"$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 +00001643then
1644 :
1645else
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1648 rm -fr conftest*
1649 ac_cv_header_stdc=no
1650fi
1651rm -fr conftest*
1652fi
1653
1654fi
1655fi
1656
1657echo "$ac_t""$ac_cv_header_stdc" 1>&6
1658if test $ac_cv_header_stdc = yes; then
1659 cat >> confdefs.h <<\EOF
1660#define STDC_HEADERS 1
1661EOF
1662
1663fi
1664
1665echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001666echo "configure:1667: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001667if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669else
1670 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001671#line 1672 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001672#include "confdefs.h"
1673
1674int main() {
1675
1676/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001677typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001678/* SunOS 4.1.1 cc rejects this. */
1679char const *const *ccp;
1680char **p;
1681/* NEC SVR4.0.2 mips cc rejects this. */
1682struct point {int x, y;};
1683static struct point const zero = {0,0};
1684/* AIX XL C 1.02.0.0 rejects this.
1685 It does not let you subtract one const X* pointer from another in an arm
1686 of an if-expression whose if-part is not a constant expression */
1687const char *g = "string";
1688ccp = &g + (g ? g-g : 0);
1689/* HPUX 7.0 cc rejects these. */
1690++ccp;
1691p = (char**) ccp;
1692ccp = (char const *const *) p;
1693{ /* SCO 3.2v4 cc rejects this. */
1694 char *t;
1695 char const *s = 0 ? (char *) 0 : (char const *) 0;
1696
1697 *t++ = 0;
1698}
1699{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1700 int x[] = {25, 17};
1701 const int *foo = &x[0];
1702 ++foo;
1703}
1704{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1705 typedef const int *iptr;
1706 iptr p = 0;
1707 ++p;
1708}
1709{ /* AIX XL C 1.02.0.0 rejects this saying
1710 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1711 struct s { int j; const int *ap[3]; };
1712 struct s *b; b->j = 5;
1713}
1714{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1715 const int foo = 10;
1716}
1717
1718; return 0; }
1719EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001720if { (eval echo configure:1721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001721 rm -rf conftest*
1722 ac_cv_c_const=yes
1723else
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1726 rm -rf conftest*
1727 ac_cv_c_const=no
1728fi
1729rm -f conftest*
1730fi
1731
1732echo "$ac_t""$ac_cv_c_const" 1>&6
1733if test $ac_cv_c_const = no; then
1734 cat >> confdefs.h <<\EOF
1735#define const
1736EOF
1737
1738fi
1739
1740echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001741echo "configure:1742: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001742if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1744else
1745 ac_cv_c_inline=no
1746for ac_kw in inline __inline__ __inline; do
1747 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001748#line 1749 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001749#include "confdefs.h"
1750
1751int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001752} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001753; return 0; }
1754EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001755if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001756 rm -rf conftest*
1757 ac_cv_c_inline=$ac_kw; break
1758else
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1761fi
1762rm -f conftest*
1763done
1764
1765fi
1766
1767echo "$ac_t""$ac_cv_c_inline" 1>&6
1768case "$ac_cv_c_inline" in
1769 inline | yes) ;;
1770 no) cat >> confdefs.h <<\EOF
1771#define inline
1772EOF
1773 ;;
1774 *) cat >> confdefs.h <<EOF
1775#define inline $ac_cv_c_inline
1776EOF
1777 ;;
1778esac
1779
1780echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001781echo "configure:1782: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001782if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1784else
1785 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001786#line 1787 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001787#include "confdefs.h"
1788#include <sys/types.h>
1789#if STDC_HEADERS
1790#include <stdlib.h>
1791#include <stddef.h>
1792#endif
1793EOF
1794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1796 rm -rf conftest*
1797 ac_cv_type_off_t=yes
1798else
1799 rm -rf conftest*
1800 ac_cv_type_off_t=no
1801fi
1802rm -f conftest*
1803
1804fi
1805echo "$ac_t""$ac_cv_type_off_t" 1>&6
1806if test $ac_cv_type_off_t = no; then
1807 cat >> confdefs.h <<\EOF
1808#define off_t long
1809EOF
1810
1811fi
1812
1813echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001814echo "configure:1815: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001815if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817else
1818 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001819#line 1820 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001820#include "confdefs.h"
1821#include <sys/types.h>
1822#if STDC_HEADERS
1823#include <stdlib.h>
1824#include <stddef.h>
1825#endif
1826EOF
1827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1828 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1829 rm -rf conftest*
1830 ac_cv_type_size_t=yes
1831else
1832 rm -rf conftest*
1833 ac_cv_type_size_t=no
1834fi
1835rm -f conftest*
1836
1837fi
1838echo "$ac_t""$ac_cv_type_size_t" 1>&6
1839if test $ac_cv_type_size_t = no; then
1840 cat >> confdefs.h <<\EOF
1841#define size_t unsigned
1842EOF
1843
1844fi
1845
1846# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1847# for constant arguments. Useless!
1848echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001849echo "configure:1850: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001850if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852else
1853 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001854#line 1855 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001855#include "confdefs.h"
1856#include <alloca.h>
1857int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001858char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001859; return 0; }
1860EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001861if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001862 rm -rf conftest*
1863 ac_cv_header_alloca_h=yes
1864else
1865 echo "configure: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1867 rm -rf conftest*
1868 ac_cv_header_alloca_h=no
1869fi
1870rm -f conftest*
1871fi
1872
1873echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1874if test $ac_cv_header_alloca_h = yes; then
1875 cat >> confdefs.h <<\EOF
1876#define HAVE_ALLOCA_H 1
1877EOF
1878
1879fi
1880
1881echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001882echo "configure:1883: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001883if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1885else
1886 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001887#line 1888 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001888#include "confdefs.h"
1889
1890#ifdef __GNUC__
1891# define alloca __builtin_alloca
1892#else
1893# ifdef _MSC_VER
1894# include <malloc.h>
1895# define alloca _alloca
1896# else
1897# if HAVE_ALLOCA_H
1898# include <alloca.h>
1899# else
1900# ifdef _AIX
1901 #pragma alloca
1902# else
1903# ifndef alloca /* predefined by HP cc +Olibcalls */
1904char *alloca ();
1905# endif
1906# endif
1907# endif
1908# endif
1909#endif
1910
1911int main() {
1912char *p = (char *) alloca(1);
1913; return 0; }
1914EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001915if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001916 rm -rf conftest*
1917 ac_cv_func_alloca_works=yes
1918else
1919 echo "configure: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1921 rm -rf conftest*
1922 ac_cv_func_alloca_works=no
1923fi
1924rm -f conftest*
1925fi
1926
1927echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1928if test $ac_cv_func_alloca_works = yes; then
1929 cat >> confdefs.h <<\EOF
1930#define HAVE_ALLOCA 1
1931EOF
1932
1933fi
1934
1935if test $ac_cv_func_alloca_works = no; then
1936 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1937 # that cause trouble. Some versions do not even contain alloca or
1938 # contain a buggy version. If you still want to use their alloca,
1939 # use ar to extract alloca.o from them instead of compiling alloca.c.
1940 ALLOCA=alloca.${ac_objext}
1941 cat >> confdefs.h <<\EOF
1942#define C_ALLOCA 1
1943EOF
1944
1945
1946echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001947echo "configure:1948: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001948if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1950else
1951 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001952#line 1953 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001953#include "confdefs.h"
1954#if defined(CRAY) && ! defined(CRAY2)
1955webecray
1956#else
1957wenotbecray
1958#endif
1959
1960EOF
1961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1962 egrep "webecray" >/dev/null 2>&1; then
1963 rm -rf conftest*
1964 ac_cv_os_cray=yes
1965else
1966 rm -rf conftest*
1967 ac_cv_os_cray=no
1968fi
1969rm -f conftest*
1970
1971fi
1972
1973echo "$ac_t""$ac_cv_os_cray" 1>&6
1974if test $ac_cv_os_cray = yes; then
1975for ac_func in _getb67 GETB67 getb67; do
1976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001977echo "configure:1978: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001978if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1980else
1981 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05001982#line 1983 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001983#include "confdefs.h"
1984/* System header to define __stub macros and hopefully few prototypes,
1985 which can conflict with char $ac_func(); below. */
1986#include <assert.h>
1987/* Override any gcc2 internal prototype to avoid an error. */
1988/* We use char because int might match the return type of a gcc2
1989 builtin and then its argument prototype would still apply. */
1990char $ac_func();
1991
1992int main() {
1993
1994/* The GNU C library defines this for functions which it implements
1995 to always fail with ENOSYS. Some functions are actually named
1996 something starting with __ and the normal name is an alias. */
1997#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1998choke me
1999#else
2000$ac_func();
2001#endif
2002
2003; return 0; }
2004EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002005if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002006 rm -rf conftest*
2007 eval "ac_cv_func_$ac_func=yes"
2008else
2009 echo "configure: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2011 rm -rf conftest*
2012 eval "ac_cv_func_$ac_func=no"
2013fi
2014rm -f conftest*
2015fi
2016
2017if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2018 echo "$ac_t""yes" 1>&6
2019 cat >> confdefs.h <<EOF
2020#define CRAY_STACKSEG_END $ac_func
2021EOF
2022
2023 break
2024else
2025 echo "$ac_t""no" 1>&6
2026fi
2027
2028done
2029fi
2030
2031echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002032echo "configure:2033: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002033if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2035else
2036 if test "$cross_compiling" = yes; then
2037 ac_cv_c_stack_direction=0
2038else
2039 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002040#line 2041 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002041#include "confdefs.h"
2042find_stack_direction ()
2043{
2044 static char *addr = 0;
2045 auto char dummy;
2046 if (addr == 0)
2047 {
2048 addr = &dummy;
2049 return find_stack_direction ();
2050 }
2051 else
2052 return (&dummy > addr) ? 1 : -1;
2053}
2054main ()
2055{
2056 exit (find_stack_direction() < 0);
2057}
2058EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002059if { (eval echo configure:2060: \"$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 +00002060then
2061 ac_cv_c_stack_direction=1
2062else
2063 echo "configure: failed program was:" >&5
2064 cat conftest.$ac_ext >&5
2065 rm -fr conftest*
2066 ac_cv_c_stack_direction=-1
2067fi
2068rm -fr conftest*
2069fi
2070
2071fi
2072
2073echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2074cat >> confdefs.h <<EOF
2075#define STACK_DIRECTION $ac_cv_c_stack_direction
2076EOF
2077
2078fi
2079
2080for ac_hdr in unistd.h
2081do
2082ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2083echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002084echo "configure:2085: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002085if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2087else
2088 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002089#line 2090 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002090#include "confdefs.h"
2091#include <$ac_hdr>
2092EOF
2093ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002094{ (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002095ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2096if test -z "$ac_err"; then
2097 rm -rf conftest*
2098 eval "ac_cv_header_$ac_safe=yes"
2099else
2100 echo "$ac_err" >&5
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2103 rm -rf conftest*
2104 eval "ac_cv_header_$ac_safe=no"
2105fi
2106rm -f conftest*
2107fi
2108if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2111 cat >> confdefs.h <<EOF
2112#define $ac_tr_hdr 1
2113EOF
2114
2115else
2116 echo "$ac_t""no" 1>&6
2117fi
2118done
2119
2120for ac_func in getpagesize
2121do
2122echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002123echo "configure:2124: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002124if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126else
2127 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002128#line 2129 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002129#include "confdefs.h"
2130/* System header to define __stub macros and hopefully few prototypes,
2131 which can conflict with char $ac_func(); below. */
2132#include <assert.h>
2133/* Override any gcc2 internal prototype to avoid an error. */
2134/* We use char because int might match the return type of a gcc2
2135 builtin and then its argument prototype would still apply. */
2136char $ac_func();
2137
2138int main() {
2139
2140/* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2144choke me
2145#else
2146$ac_func();
2147#endif
2148
2149; return 0; }
2150EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002151if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002152 rm -rf conftest*
2153 eval "ac_cv_func_$ac_func=yes"
2154else
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2157 rm -rf conftest*
2158 eval "ac_cv_func_$ac_func=no"
2159fi
2160rm -f conftest*
2161fi
2162
2163if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2166 cat >> confdefs.h <<EOF
2167#define $ac_tr_func 1
2168EOF
2169
2170else
2171 echo "$ac_t""no" 1>&6
2172fi
2173done
2174
2175echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002176echo "configure:2177: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002177if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2179else
2180 if test "$cross_compiling" = yes; then
2181 ac_cv_func_mmap_fixed_mapped=no
2182else
2183 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002184#line 2185 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002185#include "confdefs.h"
2186
2187/* Thanks to Mike Haertel and Jim Avera for this test.
2188 Here is a matrix of mmap possibilities:
2189 mmap private not fixed
2190 mmap private fixed at somewhere currently unmapped
2191 mmap private fixed at somewhere already mapped
2192 mmap shared not fixed
2193 mmap shared fixed at somewhere currently unmapped
2194 mmap shared fixed at somewhere already mapped
2195 For private mappings, we should verify that changes cannot be read()
2196 back from the file, nor mmap's back from the file at a different
2197 address. (There have been systems where private was not correctly
2198 implemented like the infamous i386 svr4.0, and systems where the
2199 VM page cache was not coherent with the filesystem buffer cache
2200 like early versions of FreeBSD and possibly contemporary NetBSD.)
2201 For shared mappings, we should conversely verify that changes get
2202 propogated back to all the places they're supposed to be.
2203
2204 Grep wants private fixed already mapped.
2205 The main things grep needs to know about mmap are:
2206 * does it exist and is it safe to write into the mmap'd area
2207 * how to use it (BSD variants) */
2208#include <sys/types.h>
2209#include <fcntl.h>
2210#include <sys/mman.h>
2211
2212/* This mess was copied from the GNU getpagesize.h. */
2213#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002214# ifdef HAVE_UNISTD_H
2215# include <unistd.h>
2216# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002217
2218/* Assume that all systems that can run configure have sys/param.h. */
2219# ifndef HAVE_SYS_PARAM_H
2220# define HAVE_SYS_PARAM_H 1
2221# endif
2222
2223# ifdef _SC_PAGESIZE
2224# define getpagesize() sysconf(_SC_PAGESIZE)
2225# else /* no _SC_PAGESIZE */
2226# ifdef HAVE_SYS_PARAM_H
2227# include <sys/param.h>
2228# ifdef EXEC_PAGESIZE
2229# define getpagesize() EXEC_PAGESIZE
2230# else /* no EXEC_PAGESIZE */
2231# ifdef NBPG
2232# define getpagesize() NBPG * CLSIZE
2233# ifndef CLSIZE
2234# define CLSIZE 1
2235# endif /* no CLSIZE */
2236# else /* no NBPG */
2237# ifdef NBPC
2238# define getpagesize() NBPC
2239# else /* no NBPC */
2240# ifdef PAGESIZE
2241# define getpagesize() PAGESIZE
2242# endif /* PAGESIZE */
2243# endif /* no NBPC */
2244# endif /* no NBPG */
2245# endif /* no EXEC_PAGESIZE */
2246# else /* no HAVE_SYS_PARAM_H */
2247# define getpagesize() 8192 /* punt totally */
2248# endif /* no HAVE_SYS_PARAM_H */
2249# endif /* no _SC_PAGESIZE */
2250
2251#endif /* no HAVE_GETPAGESIZE */
2252
2253#ifdef __cplusplus
2254extern "C" { void *malloc(unsigned); }
2255#else
2256char *malloc();
2257#endif
2258
2259int
2260main()
2261{
2262 char *data, *data2, *data3;
2263 int i, pagesize;
2264 int fd;
2265
2266 pagesize = getpagesize();
2267
2268 /*
2269 * First, make a file with some known garbage in it.
2270 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002271 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002272 if (!data)
2273 exit(1);
2274 for (i = 0; i < pagesize; ++i)
2275 *(data + i) = rand();
2276 umask(0);
2277 fd = creat("conftestmmap", 0600);
2278 if (fd < 0)
2279 exit(1);
2280 if (write(fd, data, pagesize) != pagesize)
2281 exit(1);
2282 close(fd);
2283
2284 /*
2285 * Next, try to mmap the file at a fixed address which
2286 * already has something else allocated at it. If we can,
2287 * also make sure that we see the same garbage.
2288 */
2289 fd = open("conftestmmap", O_RDWR);
2290 if (fd < 0)
2291 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002292 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002293 if (!data2)
2294 exit(1);
2295 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2296 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2297 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2298 exit(1);
2299 for (i = 0; i < pagesize; ++i)
2300 if (*(data + i) != *(data2 + i))
2301 exit(1);
2302
2303 /*
2304 * Finally, make sure that changes to the mapped area
2305 * do not percolate back to the file as seen by read().
2306 * (This is a bug on some variants of i386 svr4.0.)
2307 */
2308 for (i = 0; i < pagesize; ++i)
2309 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002310 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002311 if (!data3)
2312 exit(1);
2313 if (read(fd, data3, pagesize) != pagesize)
2314 exit(1);
2315 for (i = 0; i < pagesize; ++i)
2316 if (*(data + i) != *(data3 + i))
2317 exit(1);
2318 close(fd);
2319 unlink("conftestmmap");
2320 exit(0);
2321}
2322
2323EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002324if { (eval echo configure:2325: \"$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 +00002325then
2326 ac_cv_func_mmap_fixed_mapped=yes
2327else
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2330 rm -fr conftest*
2331 ac_cv_func_mmap_fixed_mapped=no
2332fi
2333rm -fr conftest*
2334fi
2335
2336fi
2337
2338echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2339if test $ac_cv_func_mmap_fixed_mapped = yes; then
2340 cat >> confdefs.h <<\EOF
2341#define HAVE_MMAP 1
2342EOF
2343
2344fi
2345
2346
2347 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2348unistd.h sys/param.h
2349do
2350ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2351echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002352echo "configure:2353: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002353if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2355else
2356 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002357#line 2358 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002358#include "confdefs.h"
2359#include <$ac_hdr>
2360EOF
2361ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002362{ (eval echo configure:2363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002363ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2364if test -z "$ac_err"; then
2365 rm -rf conftest*
2366 eval "ac_cv_header_$ac_safe=yes"
2367else
2368 echo "$ac_err" >&5
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2371 rm -rf conftest*
2372 eval "ac_cv_header_$ac_safe=no"
2373fi
2374rm -f conftest*
2375fi
2376if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2377 echo "$ac_t""yes" 1>&6
2378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2379 cat >> confdefs.h <<EOF
2380#define $ac_tr_hdr 1
2381EOF
2382
2383else
2384 echo "$ac_t""no" 1>&6
2385fi
2386done
2387
2388 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2389strdup __argz_count __argz_stringify __argz_next
2390do
2391echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002392echo "configure:2393: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002393if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395else
2396 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002397#line 2398 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002398#include "confdefs.h"
2399/* System header to define __stub macros and hopefully few prototypes,
2400 which can conflict with char $ac_func(); below. */
2401#include <assert.h>
2402/* Override any gcc2 internal prototype to avoid an error. */
2403/* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2405char $ac_func();
2406
2407int main() {
2408
2409/* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2413choke me
2414#else
2415$ac_func();
2416#endif
2417
2418; return 0; }
2419EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002420if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002421 rm -rf conftest*
2422 eval "ac_cv_func_$ac_func=yes"
2423else
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 rm -rf conftest*
2427 eval "ac_cv_func_$ac_func=no"
2428fi
2429rm -f conftest*
2430fi
2431
2432if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2435 cat >> confdefs.h <<EOF
2436#define $ac_tr_func 1
2437EOF
2438
2439else
2440 echo "$ac_t""no" 1>&6
2441fi
2442done
2443
2444
2445 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2446 for ac_func in stpcpy
2447do
2448echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002449echo "configure:2450: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002450if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2452else
2453 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002454#line 2455 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002455#include "confdefs.h"
2456/* System header to define __stub macros and hopefully few prototypes,
2457 which can conflict with char $ac_func(); below. */
2458#include <assert.h>
2459/* Override any gcc2 internal prototype to avoid an error. */
2460/* We use char because int might match the return type of a gcc2
2461 builtin and then its argument prototype would still apply. */
2462char $ac_func();
2463
2464int main() {
2465
2466/* The GNU C library defines this for functions which it implements
2467 to always fail with ENOSYS. Some functions are actually named
2468 something starting with __ and the normal name is an alias. */
2469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2470choke me
2471#else
2472$ac_func();
2473#endif
2474
2475; return 0; }
2476EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002477if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002478 rm -rf conftest*
2479 eval "ac_cv_func_$ac_func=yes"
2480else
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2483 rm -rf conftest*
2484 eval "ac_cv_func_$ac_func=no"
2485fi
2486rm -f conftest*
2487fi
2488
2489if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2490 echo "$ac_t""yes" 1>&6
2491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2492 cat >> confdefs.h <<EOF
2493#define $ac_tr_func 1
2494EOF
2495
2496else
2497 echo "$ac_t""no" 1>&6
2498fi
2499done
2500
2501 fi
2502 if test "${ac_cv_func_stpcpy}" = "yes"; then
2503 cat >> confdefs.h <<\EOF
2504#define HAVE_STPCPY 1
2505EOF
2506
2507 fi
2508
2509 if test $ac_cv_header_locale_h = yes; then
2510 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002511echo "configure:2512: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002512if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2514else
2515 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002516#line 2517 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002517#include "confdefs.h"
2518#include <locale.h>
2519int main() {
2520return LC_MESSAGES
2521; return 0; }
2522EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002523if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002524 rm -rf conftest*
2525 am_cv_val_LC_MESSAGES=yes
2526else
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2529 rm -rf conftest*
2530 am_cv_val_LC_MESSAGES=no
2531fi
2532rm -f conftest*
2533fi
2534
2535echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2536 if test $am_cv_val_LC_MESSAGES = yes; then
2537 cat >> confdefs.h <<\EOF
2538#define HAVE_LC_MESSAGES 1
2539EOF
2540
2541 fi
2542 fi
2543 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002544echo "configure:2545: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002545 # Check whether --enable-nls or --disable-nls was given.
2546if test "${enable_nls+set}" = set; then
2547 enableval="$enable_nls"
2548 USE_NLS=$enableval
2549else
2550 USE_NLS=no
2551fi
2552
2553 echo "$ac_t""$USE_NLS" 1>&6
2554
2555
2556 USE_INCLUDED_LIBINTL=no
2557
2558 if test "$USE_NLS" = "yes"; then
2559 cat >> confdefs.h <<\EOF
2560#define ENABLE_NLS 1
2561EOF
2562
2563 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002564echo "configure:2565: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002565 # Check whether --with-included-gettext or --without-included-gettext was given.
2566if test "${with_included_gettext+set}" = set; then
2567 withval="$with_included_gettext"
2568 nls_cv_force_use_gnu_gettext=$withval
2569else
2570 nls_cv_force_use_gnu_gettext=no
2571fi
2572
2573 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2574
2575 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2576 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2577 nls_cv_header_intl=
2578 nls_cv_header_libgt=
2579 CATOBJEXT=NONE
2580
2581 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2582echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002583echo "configure:2584: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002584if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586else
2587 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002588#line 2589 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002589#include "confdefs.h"
2590#include <libintl.h>
2591EOF
2592ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002593{ (eval echo configure:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002594ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2595if test -z "$ac_err"; then
2596 rm -rf conftest*
2597 eval "ac_cv_header_$ac_safe=yes"
2598else
2599 echo "$ac_err" >&5
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 rm -rf conftest*
2603 eval "ac_cv_header_$ac_safe=no"
2604fi
2605rm -f conftest*
2606fi
2607if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2609 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002610echo "configure:2611: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002611if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2613else
2614 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002615#line 2616 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002616#include "confdefs.h"
2617#include <libintl.h>
2618int main() {
2619return (int) gettext ("")
2620; return 0; }
2621EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002622if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002623 rm -rf conftest*
2624 gt_cv_func_gettext_libc=yes
2625else
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2628 rm -rf conftest*
2629 gt_cv_func_gettext_libc=no
2630fi
2631rm -f conftest*
2632fi
2633
2634echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2635
2636 if test "$gt_cv_func_gettext_libc" != "yes"; then
2637 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002638echo "configure:2639: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002639ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2640if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2642else
2643 ac_save_LIBS="$LIBS"
2644LIBS="-lintl $LIBS"
2645cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002646#line 2647 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002647#include "confdefs.h"
2648/* Override any gcc2 internal prototype to avoid an error. */
2649/* We use char because int might match the return type of a gcc2
2650 builtin and then its argument prototype would still apply. */
2651char bindtextdomain();
2652
2653int main() {
2654bindtextdomain()
2655; return 0; }
2656EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002657if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002658 rm -rf conftest*
2659 eval "ac_cv_lib_$ac_lib_var=yes"
2660else
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2663 rm -rf conftest*
2664 eval "ac_cv_lib_$ac_lib_var=no"
2665fi
2666rm -f conftest*
2667LIBS="$ac_save_LIBS"
2668
2669fi
2670if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2671 echo "$ac_t""yes" 1>&6
2672 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002673echo "configure:2674: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002674if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2676else
2677 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002678echo "configure:2679: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002679ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2682else
2683 ac_save_LIBS="$LIBS"
2684LIBS="-lintl $LIBS"
2685cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002686#line 2687 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002687#include "confdefs.h"
2688/* Override any gcc2 internal prototype to avoid an error. */
2689/* We use char because int might match the return type of a gcc2
2690 builtin and then its argument prototype would still apply. */
2691char gettext();
2692
2693int main() {
2694gettext()
2695; return 0; }
2696EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002697if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002698 rm -rf conftest*
2699 eval "ac_cv_lib_$ac_lib_var=yes"
2700else
2701 echo "configure: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2703 rm -rf conftest*
2704 eval "ac_cv_lib_$ac_lib_var=no"
2705fi
2706rm -f conftest*
2707LIBS="$ac_save_LIBS"
2708
2709fi
2710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2711 echo "$ac_t""yes" 1>&6
2712 gt_cv_func_gettext_libintl=yes
2713else
2714 echo "$ac_t""no" 1>&6
2715gt_cv_func_gettext_libintl=no
2716fi
2717
2718fi
2719
2720echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2721else
2722 echo "$ac_t""no" 1>&6
2723fi
2724
2725 fi
2726
2727 if test "$gt_cv_func_gettext_libc" = "yes" \
2728 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2729 cat >> confdefs.h <<\EOF
2730#define HAVE_GETTEXT 1
2731EOF
2732
2733 # Extract the first word of "msgfmt", so it can be a program name with args.
2734set dummy msgfmt; ac_word=$2
2735echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002736echo "configure:2737: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002737if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2739else
2740 case "$MSGFMT" in
2741 /*)
2742 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2743 ;;
2744 *)
2745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2746 for ac_dir in $PATH; do
2747 test -z "$ac_dir" && ac_dir=.
2748 if test -f $ac_dir/$ac_word; then
2749 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2750 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2751 break
2752 fi
2753 fi
2754 done
2755 IFS="$ac_save_ifs"
2756 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2757 ;;
2758esac
2759fi
2760MSGFMT="$ac_cv_path_MSGFMT"
2761if test -n "$MSGFMT"; then
2762 echo "$ac_t""$MSGFMT" 1>&6
2763else
2764 echo "$ac_t""no" 1>&6
2765fi
2766 if test "$MSGFMT" != "no"; then
2767 for ac_func in dcgettext
2768do
2769echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002770echo "configure:2771: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002771if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2773else
2774 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002775#line 2776 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002776#include "confdefs.h"
2777/* System header to define __stub macros and hopefully few prototypes,
2778 which can conflict with char $ac_func(); below. */
2779#include <assert.h>
2780/* Override any gcc2 internal prototype to avoid an error. */
2781/* We use char because int might match the return type of a gcc2
2782 builtin and then its argument prototype would still apply. */
2783char $ac_func();
2784
2785int main() {
2786
2787/* The GNU C library defines this for functions which it implements
2788 to always fail with ENOSYS. Some functions are actually named
2789 something starting with __ and the normal name is an alias. */
2790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2791choke me
2792#else
2793$ac_func();
2794#endif
2795
2796; return 0; }
2797EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002798if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002799 rm -rf conftest*
2800 eval "ac_cv_func_$ac_func=yes"
2801else
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2804 rm -rf conftest*
2805 eval "ac_cv_func_$ac_func=no"
2806fi
2807rm -f conftest*
2808fi
2809
2810if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2811 echo "$ac_t""yes" 1>&6
2812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2813 cat >> confdefs.h <<EOF
2814#define $ac_tr_func 1
2815EOF
2816
2817else
2818 echo "$ac_t""no" 1>&6
2819fi
2820done
2821
2822 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2823set dummy gmsgfmt; ac_word=$2
2824echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002825echo "configure:2826: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002826if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2828else
2829 case "$GMSGFMT" in
2830 /*)
2831 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2832 ;;
2833 ?:/*)
2834 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2835 ;;
2836 *)
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2838 ac_dummy="$PATH"
2839 for ac_dir in $ac_dummy; do
2840 test -z "$ac_dir" && ac_dir=.
2841 if test -f $ac_dir/$ac_word; then
2842 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2843 break
2844 fi
2845 done
2846 IFS="$ac_save_ifs"
2847 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2848 ;;
2849esac
2850fi
2851GMSGFMT="$ac_cv_path_GMSGFMT"
2852if test -n "$GMSGFMT"; then
2853 echo "$ac_t""$GMSGFMT" 1>&6
2854else
2855 echo "$ac_t""no" 1>&6
2856fi
2857
2858 # Extract the first word of "xgettext", so it can be a program name with args.
2859set dummy xgettext; ac_word=$2
2860echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002861echo "configure:2862: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002862if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2864else
2865 case "$XGETTEXT" in
2866 /*)
2867 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2868 ;;
2869 *)
2870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2871 for ac_dir in $PATH; do
2872 test -z "$ac_dir" && ac_dir=.
2873 if test -f $ac_dir/$ac_word; then
2874 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2875 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2876 break
2877 fi
2878 fi
2879 done
2880 IFS="$ac_save_ifs"
2881 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2882 ;;
2883esac
2884fi
2885XGETTEXT="$ac_cv_path_XGETTEXT"
2886if test -n "$XGETTEXT"; then
2887 echo "$ac_t""$XGETTEXT" 1>&6
2888else
2889 echo "$ac_t""no" 1>&6
2890fi
2891
2892 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002893#line 2894 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002894#include "confdefs.h"
2895
2896int main() {
2897extern int _nl_msg_cat_cntr;
2898 return _nl_msg_cat_cntr
2899; return 0; }
2900EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002901if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002902 rm -rf conftest*
2903 CATOBJEXT=.gmo
2904 DATADIRNAME=share
2905else
2906 echo "configure: failed program was:" >&5
2907 cat conftest.$ac_ext >&5
2908 rm -rf conftest*
2909 CATOBJEXT=.mo
2910 DATADIRNAME=lib
2911fi
2912rm -f conftest*
2913 INSTOBJEXT=.mo
2914 fi
2915 fi
2916
2917else
2918 echo "$ac_t""no" 1>&6
2919fi
2920
2921
2922 if test "$CATOBJEXT" = "NONE"; then
2923 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002924echo "configure:2925: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002925 # Check whether --with-catgets or --without-catgets was given.
2926if test "${with_catgets+set}" = set; then
2927 withval="$with_catgets"
2928 nls_cv_use_catgets=$withval
2929else
2930 nls_cv_use_catgets=no
2931fi
2932
2933 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2934
2935 if test "$nls_cv_use_catgets" = "yes"; then
2936 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002937echo "configure:2938: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002938ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2939if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2941else
2942 ac_save_LIBS="$LIBS"
2943LIBS="-li $LIBS"
2944cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002945#line 2946 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002946#include "confdefs.h"
2947
2948int main() {
2949main()
2950; return 0; }
2951EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002952if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002953 rm -rf conftest*
2954 eval "ac_cv_lib_$ac_lib_var=yes"
2955else
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 rm -rf conftest*
2959 eval "ac_cv_lib_$ac_lib_var=no"
2960fi
2961rm -f conftest*
2962LIBS="$ac_save_LIBS"
2963
2964fi
2965if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2969 cat >> confdefs.h <<EOF
2970#define $ac_tr_lib 1
2971EOF
2972
2973 LIBS="-li $LIBS"
2974
2975else
2976 echo "$ac_t""no" 1>&6
2977fi
2978
2979 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002980echo "configure:2981: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002981if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2983else
2984 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002985#line 2986 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002986#include "confdefs.h"
2987/* System header to define __stub macros and hopefully few prototypes,
2988 which can conflict with char catgets(); below. */
2989#include <assert.h>
2990/* Override any gcc2 internal prototype to avoid an error. */
2991/* We use char because int might match the return type of a gcc2
2992 builtin and then its argument prototype would still apply. */
2993char catgets();
2994
2995int main() {
2996
2997/* The GNU C library defines this for functions which it implements
2998 to always fail with ENOSYS. Some functions are actually named
2999 something starting with __ and the normal name is an alias. */
3000#if defined (__stub_catgets) || defined (__stub___catgets)
3001choke me
3002#else
3003catgets();
3004#endif
3005
3006; return 0; }
3007EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003008if { (eval echo configure:3009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003009 rm -rf conftest*
3010 eval "ac_cv_func_catgets=yes"
3011else
3012 echo "configure: failed program was:" >&5
3013 cat conftest.$ac_ext >&5
3014 rm -rf conftest*
3015 eval "ac_cv_func_catgets=no"
3016fi
3017rm -f conftest*
3018fi
3019
3020if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3021 echo "$ac_t""yes" 1>&6
3022 cat >> confdefs.h <<\EOF
3023#define HAVE_CATGETS 1
3024EOF
3025
3026 INTLOBJS="\$(CATOBJS)"
3027 # Extract the first word of "gencat", so it can be a program name with args.
3028set dummy gencat; ac_word=$2
3029echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003030echo "configure:3031: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003031if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3033else
3034 case "$GENCAT" in
3035 /*)
3036 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3037 ;;
3038 ?:/*)
3039 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3040 ;;
3041 *)
3042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3043 ac_dummy="$PATH"
3044 for ac_dir in $ac_dummy; do
3045 test -z "$ac_dir" && ac_dir=.
3046 if test -f $ac_dir/$ac_word; then
3047 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3048 break
3049 fi
3050 done
3051 IFS="$ac_save_ifs"
3052 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3053 ;;
3054esac
3055fi
3056GENCAT="$ac_cv_path_GENCAT"
3057if test -n "$GENCAT"; then
3058 echo "$ac_t""$GENCAT" 1>&6
3059else
3060 echo "$ac_t""no" 1>&6
3061fi
3062 if test "$GENCAT" != "no"; then
3063 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3064set dummy gmsgfmt; ac_word=$2
3065echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003066echo "configure:3067: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003067if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3069else
3070 case "$GMSGFMT" in
3071 /*)
3072 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3073 ;;
3074 ?:/*)
3075 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3076 ;;
3077 *)
3078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3079 ac_dummy="$PATH"
3080 for ac_dir in $ac_dummy; do
3081 test -z "$ac_dir" && ac_dir=.
3082 if test -f $ac_dir/$ac_word; then
3083 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3084 break
3085 fi
3086 done
3087 IFS="$ac_save_ifs"
3088 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3089 ;;
3090esac
3091fi
3092GMSGFMT="$ac_cv_path_GMSGFMT"
3093if test -n "$GMSGFMT"; then
3094 echo "$ac_t""$GMSGFMT" 1>&6
3095else
3096 echo "$ac_t""no" 1>&6
3097fi
3098
3099 if test "$GMSGFMT" = "no"; then
3100 # Extract the first word of "msgfmt", so it can be a program name with args.
3101set dummy msgfmt; ac_word=$2
3102echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003103echo "configure:3104: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003104if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3106else
3107 case "$GMSGFMT" in
3108 /*)
3109 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3110 ;;
3111 *)
3112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3113 for ac_dir in $PATH; do
3114 test -z "$ac_dir" && ac_dir=.
3115 if test -f $ac_dir/$ac_word; then
3116 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3117 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3118 break
3119 fi
3120 fi
3121 done
3122 IFS="$ac_save_ifs"
3123 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3124 ;;
3125esac
3126fi
3127GMSGFMT="$ac_cv_path_GMSGFMT"
3128if test -n "$GMSGFMT"; then
3129 echo "$ac_t""$GMSGFMT" 1>&6
3130else
3131 echo "$ac_t""no" 1>&6
3132fi
3133
3134 fi
3135 # Extract the first word of "xgettext", so it can be a program name with args.
3136set dummy xgettext; ac_word=$2
3137echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003138echo "configure:3139: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003139if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3141else
3142 case "$XGETTEXT" in
3143 /*)
3144 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3145 ;;
3146 *)
3147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3148 for ac_dir in $PATH; do
3149 test -z "$ac_dir" && ac_dir=.
3150 if test -f $ac_dir/$ac_word; then
3151 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3152 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3153 break
3154 fi
3155 fi
3156 done
3157 IFS="$ac_save_ifs"
3158 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3159 ;;
3160esac
3161fi
3162XGETTEXT="$ac_cv_path_XGETTEXT"
3163if test -n "$XGETTEXT"; then
3164 echo "$ac_t""$XGETTEXT" 1>&6
3165else
3166 echo "$ac_t""no" 1>&6
3167fi
3168
3169 USE_INCLUDED_LIBINTL=yes
3170 CATOBJEXT=.cat
3171 INSTOBJEXT=.cat
3172 DATADIRNAME=lib
3173 INTLDEPS='$(top_builddir)/intl/libintl.a'
3174 INTLLIBS=$INTLDEPS
3175 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3176 nls_cv_header_intl=intl/libintl.h
3177 nls_cv_header_libgt=intl/libgettext.h
3178 fi
3179else
3180 echo "$ac_t""no" 1>&6
3181fi
3182
3183 fi
3184 fi
3185
3186 if test "$CATOBJEXT" = "NONE"; then
3187 nls_cv_use_gnu_gettext=yes
3188 fi
3189 fi
3190
3191 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3192 INTLOBJS="\$(GETTOBJS)"
3193 # Extract the first word of "msgfmt", so it can be a program name with args.
3194set dummy msgfmt; ac_word=$2
3195echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003196echo "configure:3197: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003197if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3199else
3200 case "$MSGFMT" in
3201 /*)
3202 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3203 ;;
3204 *)
3205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3206 for ac_dir in $PATH; do
3207 test -z "$ac_dir" && ac_dir=.
3208 if test -f $ac_dir/$ac_word; then
3209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3210 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3211 break
3212 fi
3213 fi
3214 done
3215 IFS="$ac_save_ifs"
3216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3217 ;;
3218esac
3219fi
3220MSGFMT="$ac_cv_path_MSGFMT"
3221if test -n "$MSGFMT"; then
3222 echo "$ac_t""$MSGFMT" 1>&6
3223else
3224 echo "$ac_t""no" 1>&6
3225fi
3226
3227 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3228set dummy gmsgfmt; ac_word=$2
3229echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003230echo "configure:3231: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003231if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3233else
3234 case "$GMSGFMT" in
3235 /*)
3236 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3237 ;;
3238 ?:/*)
3239 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3240 ;;
3241 *)
3242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3243 ac_dummy="$PATH"
3244 for ac_dir in $ac_dummy; do
3245 test -z "$ac_dir" && ac_dir=.
3246 if test -f $ac_dir/$ac_word; then
3247 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3248 break
3249 fi
3250 done
3251 IFS="$ac_save_ifs"
3252 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3253 ;;
3254esac
3255fi
3256GMSGFMT="$ac_cv_path_GMSGFMT"
3257if test -n "$GMSGFMT"; then
3258 echo "$ac_t""$GMSGFMT" 1>&6
3259else
3260 echo "$ac_t""no" 1>&6
3261fi
3262
3263 # Extract the first word of "xgettext", so it can be a program name with args.
3264set dummy xgettext; ac_word=$2
3265echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003266echo "configure:3267: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003267if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3269else
3270 case "$XGETTEXT" in
3271 /*)
3272 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3273 ;;
3274 *)
3275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3276 for ac_dir in $PATH; do
3277 test -z "$ac_dir" && ac_dir=.
3278 if test -f $ac_dir/$ac_word; then
3279 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3280 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3281 break
3282 fi
3283 fi
3284 done
3285 IFS="$ac_save_ifs"
3286 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3287 ;;
3288esac
3289fi
3290XGETTEXT="$ac_cv_path_XGETTEXT"
3291if test -n "$XGETTEXT"; then
3292 echo "$ac_t""$XGETTEXT" 1>&6
3293else
3294 echo "$ac_t""no" 1>&6
3295fi
3296
3297
3298 USE_INCLUDED_LIBINTL=yes
3299 CATOBJEXT=.gmo
3300 INSTOBJEXT=.mo
3301 DATADIRNAME=share
3302 INTLDEPS='$(top_builddir)/intl/libintl.a'
3303 INTLLIBS=$INTLDEPS
3304 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3305 nls_cv_header_intl=intl/libintl.h
3306 nls_cv_header_libgt=intl/libgettext.h
3307 fi
3308
3309 if test "$XGETTEXT" != ":"; then
3310 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3311 : ;
3312 else
3313 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3314 XGETTEXT=":"
3315 fi
3316 fi
3317
3318 # We need to process the po/ directory.
3319 POSUB=po
3320 else
3321 DATADIRNAME=share
3322 nls_cv_header_intl=intl/libintl.h
3323 nls_cv_header_libgt=intl/libgettext.h
3324 fi
3325
3326
3327
3328
3329 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3330 # because some of the sources are only built for this goal.
3331 if test "$PACKAGE" = gettext; then
3332 USE_NLS=yes
3333 USE_INCLUDED_LIBINTL=yes
3334 fi
3335
3336 for lang in $ALL_LINGUAS; do
3337 GMOFILES="$GMOFILES $lang.gmo"
3338 POFILES="$POFILES $lang.po"
3339 done
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354 if test "x$CATOBJEXT" != "x"; then
3355 if test "x$ALL_LINGUAS" = "x"; then
3356 LINGUAS=
3357 else
3358 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003359echo "configure:3360: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003360 NEW_LINGUAS=
3361 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3362 case "$ALL_LINGUAS" in
3363 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3364 esac
3365 done
3366 LINGUAS=$NEW_LINGUAS
3367 echo "$ac_t""$LINGUAS" 1>&6
3368 fi
3369
3370 if test -n "$LINGUAS"; then
3371 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3372 fi
3373 fi
3374
3375 if test $ac_cv_header_locale_h = yes; then
3376 INCLUDE_LOCALE_H="#include <locale.h>"
3377 else
3378 INCLUDE_LOCALE_H="\
3379/* The system does not provide the header <locale.h>. Take care yourself. */"
3380 fi
3381
3382
3383 test -d intl || mkdir intl
3384 if test "$CATOBJEXT" = ".cat"; then
3385 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3386echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003387echo "configure:3388: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003388if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3390else
3391 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003392#line 3393 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003393#include "confdefs.h"
3394#include <linux/version.h>
3395EOF
3396ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003397{ (eval echo configure:3398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003398ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3399if test -z "$ac_err"; then
3400 rm -rf conftest*
3401 eval "ac_cv_header_$ac_safe=yes"
3402else
3403 echo "$ac_err" >&5
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3406 rm -rf conftest*
3407 eval "ac_cv_header_$ac_safe=no"
3408fi
3409rm -f conftest*
3410fi
3411if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3412 echo "$ac_t""yes" 1>&6
3413 msgformat=linux
3414else
3415 echo "$ac_t""no" 1>&6
3416msgformat=xopen
3417fi
3418
3419
3420 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3421 fi
3422 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3423 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3424
3425 if test "$PACKAGE" = "gettext"; then
3426 GT_NO="#NO#"
3427 GT_YES=
3428 else
3429 GT_NO=
3430 GT_YES="#YES#"
3431 fi
3432
3433
3434
3435 MKINSTALLDIRS=
3436 if test -n "$ac_aux_dir"; then
3437 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3438 fi
3439 if test -z "$MKINSTALLDIRS"; then
3440 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3441 fi
3442
3443
3444 l=
3445
3446
3447 test -d po || mkdir po
3448 if test "x$srcdir" != "x."; then
3449 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3450 posrcprefix="$srcdir/"
3451 else
3452 posrcprefix="../$srcdir/"
3453 fi
3454 else
3455 posrcprefix="../"
3456 fi
3457 rm -f po/POTFILES
3458 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3459 < $srcdir/po/POTFILES.in > po/POTFILES
3460
Theodore Ts'o74becf31997-04-26 14:37:06 +00003461
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003462echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003463echo "configure:3464: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003464set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003465if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3467else
3468 cat > conftestmake <<\EOF
3469all:
3470 @echo 'ac_maketemp="${MAKE}"'
3471EOF
3472# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3473eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3474if test -n "$ac_maketemp"; then
3475 eval ac_cv_prog_make_${ac_make}_set=yes
3476else
3477 eval ac_cv_prog_make_${ac_make}_set=no
3478fi
3479rm -f conftestmake
3480fi
3481if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3482 echo "$ac_t""yes" 1>&6
3483 SET_MAKE=
3484else
3485 echo "$ac_t""no" 1>&6
3486 SET_MAKE="MAKE=${MAKE-make}"
3487fi
3488
3489# Extract the first word of "ln", so it can be a program name with args.
3490set dummy ln; ac_word=$2
3491echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003492echo "configure:3493: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003493if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3495else
3496 case "$LN" in
3497 /*)
3498 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3499 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003500 ?:/*)
3501 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3502 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003503 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3505 ac_dummy="$PATH"
3506 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003507 test -z "$ac_dir" && ac_dir=.
3508 if test -f $ac_dir/$ac_word; then
3509 ac_cv_path_LN="$ac_dir/$ac_word"
3510 break
3511 fi
3512 done
3513 IFS="$ac_save_ifs"
3514 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3515 ;;
3516esac
3517fi
3518LN="$ac_cv_path_LN"
3519if test -n "$LN"; then
3520 echo "$ac_t""$LN" 1>&6
3521else
3522 echo "$ac_t""no" 1>&6
3523fi
3524
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003525echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003526echo "configure:3527: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003527if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3529else
3530 rm -f conftestdata
3531if ln -s X conftestdata 2>/dev/null
3532then
3533 rm -f conftestdata
3534 ac_cv_prog_LN_S="ln -s"
3535else
3536 ac_cv_prog_LN_S=ln
3537fi
3538fi
3539LN_S="$ac_cv_prog_LN_S"
3540if test "$ac_cv_prog_LN_S" = "ln -s"; then
3541 echo "$ac_t""yes" 1>&6
3542else
3543 echo "$ac_t""no" 1>&6
3544fi
3545
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003546# Extract the first word of "mv", so it can be a program name with args.
3547set dummy mv; ac_word=$2
3548echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003549echo "configure:3550: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003550if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3552else
3553 case "$MV" in
3554 /*)
3555 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3556 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003557 ?:/*)
3558 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3559 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003560 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3562 ac_dummy="$PATH"
3563 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003564 test -z "$ac_dir" && ac_dir=.
3565 if test -f $ac_dir/$ac_word; then
3566 ac_cv_path_MV="$ac_dir/$ac_word"
3567 break
3568 fi
3569 done
3570 IFS="$ac_save_ifs"
3571 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3572 ;;
3573esac
3574fi
3575MV="$ac_cv_path_MV"
3576if test -n "$MV"; then
3577 echo "$ac_t""$MV" 1>&6
3578else
3579 echo "$ac_t""no" 1>&6
3580fi
3581
3582# Extract the first word of "cp", so it can be a program name with args.
3583set dummy cp; ac_word=$2
3584echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003585echo "configure:3586: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003586if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3588else
3589 case "$CP" in
3590 /*)
3591 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3592 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003593 ?:/*)
3594 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3595 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003596 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3598 ac_dummy="$PATH"
3599 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003600 test -z "$ac_dir" && ac_dir=.
3601 if test -f $ac_dir/$ac_word; then
3602 ac_cv_path_CP="$ac_dir/$ac_word"
3603 break
3604 fi
3605 done
3606 IFS="$ac_save_ifs"
3607 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3608 ;;
3609esac
3610fi
3611CP="$ac_cv_path_CP"
3612if test -n "$CP"; then
3613 echo "$ac_t""$CP" 1>&6
3614else
3615 echo "$ac_t""no" 1>&6
3616fi
3617
3618# Extract the first word of "rm", so it can be a program name with args.
3619set dummy rm; ac_word=$2
3620echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003621echo "configure:3622: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003622if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3624else
3625 case "$RM" in
3626 /*)
3627 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3628 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003629 ?:/*)
3630 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3631 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003632 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3634 ac_dummy="$PATH"
3635 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003636 test -z "$ac_dir" && ac_dir=.
3637 if test -f $ac_dir/$ac_word; then
3638 ac_cv_path_RM="$ac_dir/$ac_word"
3639 break
3640 fi
3641 done
3642 IFS="$ac_save_ifs"
3643 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3644 ;;
3645esac
3646fi
3647RM="$ac_cv_path_RM"
3648if test -n "$RM"; then
3649 echo "$ac_t""$RM" 1>&6
3650else
3651 echo "$ac_t""no" 1>&6
3652fi
3653
3654# Extract the first word of "chmod", so it can be a program name with args.
3655set dummy chmod; ac_word=$2
3656echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003657echo "configure:3658: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003658if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3660else
3661 case "$CHMOD" in
3662 /*)
3663 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3664 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003665 ?:/*)
3666 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3667 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003668 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3670 ac_dummy="$PATH"
3671 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003672 test -z "$ac_dir" && ac_dir=.
3673 if test -f $ac_dir/$ac_word; then
3674 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3675 break
3676 fi
3677 done
3678 IFS="$ac_save_ifs"
3679 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3680 ;;
3681esac
3682fi
3683CHMOD="$ac_cv_path_CHMOD"
3684if test -n "$CHMOD"; then
3685 echo "$ac_t""$CHMOD" 1>&6
3686else
3687 echo "$ac_t""no" 1>&6
3688fi
3689
3690# Extract the first word of "awk", so it can be a program name with args.
3691set dummy awk; ac_word=$2
3692echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003693echo "configure:3694: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003694if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3696else
3697 case "$AWK" in
3698 /*)
3699 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3700 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003701 ?:/*)
3702 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3703 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003704 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3706 ac_dummy="$PATH"
3707 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003708 test -z "$ac_dir" && ac_dir=.
3709 if test -f $ac_dir/$ac_word; then
3710 ac_cv_path_AWK="$ac_dir/$ac_word"
3711 break
3712 fi
3713 done
3714 IFS="$ac_save_ifs"
3715 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3716 ;;
3717esac
3718fi
3719AWK="$ac_cv_path_AWK"
3720if test -n "$AWK"; then
3721 echo "$ac_t""$AWK" 1>&6
3722else
3723 echo "$ac_t""no" 1>&6
3724fi
3725
3726# Extract the first word of "sed", so it can be a program name with args.
3727set dummy sed; ac_word=$2
3728echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003729echo "configure:3730: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003730if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3732else
3733 case "$SED" in
3734 /*)
3735 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3736 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003737 ?:/*)
3738 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3739 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003740 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3742 ac_dummy="$PATH"
3743 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003744 test -z "$ac_dir" && ac_dir=.
3745 if test -f $ac_dir/$ac_word; then
3746 ac_cv_path_SED="$ac_dir/$ac_word"
3747 break
3748 fi
3749 done
3750 IFS="$ac_save_ifs"
3751 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3752 ;;
3753esac
3754fi
3755SED="$ac_cv_path_SED"
3756if test -n "$SED"; then
3757 echo "$ac_t""$SED" 1>&6
3758else
3759 echo "$ac_t""no" 1>&6
3760fi
3761
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003762# Extract the first word of "perl", so it can be a program name with args.
3763set dummy perl; ac_word=$2
3764echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003765echo "configure:3766: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003766if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3768else
3769 case "$PERL" in
3770 /*)
3771 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3772 ;;
3773 ?:/*)
3774 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3775 ;;
3776 *)
3777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3778 ac_dummy="$PATH"
3779 for ac_dir in $ac_dummy; do
3780 test -z "$ac_dir" && ac_dir=.
3781 if test -f $ac_dir/$ac_word; then
3782 ac_cv_path_PERL="$ac_dir/$ac_word"
3783 break
3784 fi
3785 done
3786 IFS="$ac_save_ifs"
3787 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3788 ;;
3789esac
3790fi
3791PERL="$ac_cv_path_PERL"
3792if test -n "$PERL"; then
3793 echo "$ac_t""$PERL" 1>&6
3794else
3795 echo "$ac_t""no" 1>&6
3796fi
3797
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003798# Extract the first word of "ldconfig", so it can be a program name with args.
3799set dummy ldconfig; ac_word=$2
3800echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003801echo "configure:3802: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003802if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3804else
3805 case "$LDCONFIG" in
3806 /*)
3807 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3808 ;;
3809 ?:/*)
3810 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3811 ;;
3812 *)
3813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3814 ac_dummy="$PATH"
3815 for ac_dir in $ac_dummy; do
3816 test -z "$ac_dir" && ac_dir=.
3817 if test -f $ac_dir/$ac_word; then
3818 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3819 break
3820 fi
3821 done
3822 IFS="$ac_save_ifs"
3823 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3824 ;;
3825esac
3826fi
3827LDCONFIG="$ac_cv_path_LDCONFIG"
3828if test -n "$LDCONFIG"; then
3829 echo "$ac_t""$LDCONFIG" 1>&6
3830else
3831 echo "$ac_t""no" 1>&6
3832fi
3833
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003834echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003835echo "configure:3836: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003836
3837build_alias=$build
3838case "$build_alias" in
3839NONE)
3840 case $nonopt in
3841 NONE) build_alias=$host_alias ;;
3842 *) build_alias=$nonopt ;;
3843 esac ;;
3844esac
3845
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003846build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003847build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3848build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3849build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003850echo "$ac_t""$build" 1>&6
3851
3852if test $host != $build; then
3853 ac_tool_prefix=${host_alias}-
3854else
3855 ac_tool_prefix=
3856fi
3857
3858# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3859set dummy ${ac_tool_prefix}ar; ac_word=$2
3860echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003861echo "configure:3862: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003862if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3864else
3865 if test -n "$AR"; then
3866 ac_cv_prog_AR="$AR" # Let the user override the test.
3867else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3869 ac_dummy="$PATH"
3870 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003871 test -z "$ac_dir" && ac_dir=.
3872 if test -f $ac_dir/$ac_word; then
3873 ac_cv_prog_AR="${ac_tool_prefix}ar"
3874 break
3875 fi
3876 done
3877 IFS="$ac_save_ifs"
3878fi
3879fi
3880AR="$ac_cv_prog_AR"
3881if test -n "$AR"; then
3882 echo "$ac_t""$AR" 1>&6
3883else
3884 echo "$ac_t""no" 1>&6
3885fi
3886
3887
3888if test -z "$ac_cv_prog_AR"; then
3889if test -n "$ac_tool_prefix"; then
3890 # Extract the first word of "ar", so it can be a program name with args.
3891set dummy ar; ac_word=$2
3892echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003893echo "configure:3894: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003894if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3896else
3897 if test -n "$AR"; then
3898 ac_cv_prog_AR="$AR" # Let the user override the test.
3899else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3901 ac_dummy="$PATH"
3902 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003903 test -z "$ac_dir" && ac_dir=.
3904 if test -f $ac_dir/$ac_word; then
3905 ac_cv_prog_AR="ar"
3906 break
3907 fi
3908 done
3909 IFS="$ac_save_ifs"
3910 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3911fi
3912fi
3913AR="$ac_cv_prog_AR"
3914if test -n "$AR"; then
3915 echo "$ac_t""$AR" 1>&6
3916else
3917 echo "$ac_t""no" 1>&6
3918fi
3919
3920else
3921 AR="ar"
3922fi
3923fi
3924
3925# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3926set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3927echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003928echo "configure:3929: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003929if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3931else
3932 if test -n "$RANLIB"; then
3933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3934else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3936 ac_dummy="$PATH"
3937 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003938 test -z "$ac_dir" && ac_dir=.
3939 if test -f $ac_dir/$ac_word; then
3940 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3941 break
3942 fi
3943 done
3944 IFS="$ac_save_ifs"
3945fi
3946fi
3947RANLIB="$ac_cv_prog_RANLIB"
3948if test -n "$RANLIB"; then
3949 echo "$ac_t""$RANLIB" 1>&6
3950else
3951 echo "$ac_t""no" 1>&6
3952fi
3953
3954
3955if test -z "$ac_cv_prog_RANLIB"; then
3956if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "ranlib", so it can be a program name with args.
3958set dummy ranlib; ac_word=$2
3959echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003960echo "configure:3961: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003961if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3963else
3964 if test -n "$RANLIB"; then
3965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3966else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3968 ac_dummy="$PATH"
3969 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003970 test -z "$ac_dir" && ac_dir=.
3971 if test -f $ac_dir/$ac_word; then
3972 ac_cv_prog_RANLIB="ranlib"
3973 break
3974 fi
3975 done
3976 IFS="$ac_save_ifs"
3977 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3978fi
3979fi
3980RANLIB="$ac_cv_prog_RANLIB"
3981if test -n "$RANLIB"; then
3982 echo "$ac_t""$RANLIB" 1>&6
3983else
3984 echo "$ac_t""no" 1>&6
3985fi
3986
3987else
3988 RANLIB=":"
3989fi
3990fi
3991
3992# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3993set dummy ${ac_tool_prefix}strip; ac_word=$2
3994echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003995echo "configure:3996: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003996if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3998else
3999 if test -n "$STRIP"; then
4000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4001else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4003 ac_dummy="$PATH"
4004 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004005 test -z "$ac_dir" && ac_dir=.
4006 if test -f $ac_dir/$ac_word; then
4007 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4008 break
4009 fi
4010 done
4011 IFS="$ac_save_ifs"
4012fi
4013fi
4014STRIP="$ac_cv_prog_STRIP"
4015if test -n "$STRIP"; then
4016 echo "$ac_t""$STRIP" 1>&6
4017else
4018 echo "$ac_t""no" 1>&6
4019fi
4020
4021
4022if test -z "$ac_cv_prog_STRIP"; then
4023if test -n "$ac_tool_prefix"; then
4024 # Extract the first word of "strip", so it can be a program name with args.
4025set dummy strip; ac_word=$2
4026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004027echo "configure:4028: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004028if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030else
4031 if test -n "$STRIP"; then
4032 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4033else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4035 ac_dummy="$PATH"
4036 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004037 test -z "$ac_dir" && ac_dir=.
4038 if test -f $ac_dir/$ac_word; then
4039 ac_cv_prog_STRIP="strip"
4040 break
4041 fi
4042 done
4043 IFS="$ac_save_ifs"
4044 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4045fi
4046fi
4047STRIP="$ac_cv_prog_STRIP"
4048if test -n "$STRIP"; then
4049 echo "$ac_t""$STRIP" 1>&6
4050else
4051 echo "$ac_t""no" 1>&6
4052fi
4053
4054else
4055 STRIP=":"
4056fi
4057fi
4058
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004059# Find a good install program. We prefer a C program (faster),
4060# so one script is as good as another. But avoid the broken or
4061# incompatible versions:
4062# SysV /etc/install, /usr/sbin/install
4063# SunOS /usr/etc/install
4064# IRIX /sbin/install
4065# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004066# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004067# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4068# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4069# ./install, which can be erroneously created by make from ./install.sh.
4070echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004071echo "configure:4072: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004072if test -z "$INSTALL"; then
4073if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4075else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004076 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004077 for ac_dir in $PATH; do
4078 # Account for people who put trailing slashes in PATH elements.
4079 case "$ac_dir/" in
4080 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4081 *)
4082 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004083 # Don't use installbsd from OSF since it installs stuff as root
4084 # by default.
4085 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004086 if test -f $ac_dir/$ac_prog; then
4087 if test $ac_prog = install &&
4088 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4089 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004090 :
4091 else
4092 ac_cv_path_install="$ac_dir/$ac_prog -c"
4093 break 2
4094 fi
4095 fi
4096 done
4097 ;;
4098 esac
4099 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004100 IFS="$ac_save_IFS"
4101
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004102fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004103 if test "${ac_cv_path_install+set}" = set; then
4104 INSTALL="$ac_cv_path_install"
4105 else
4106 # As a last resort, use the slow shell script. We don't cache a
4107 # path for INSTALL within a source directory, because that will
4108 # break other packages using the cache if that directory is
4109 # removed, or if the path is relative.
4110 INSTALL="$ac_install_sh"
4111 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004112fi
4113echo "$ac_t""$INSTALL" 1>&6
4114
4115# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4116# It thinks the first close brace ends the variable substitution.
4117test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4118
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004119test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4120
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004121test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4122
Theodore Ts'o6c133521999-07-03 20:37:03 +00004123# See if we need a separate native compiler.
4124if test $cross_compiling = no; then
4125 BUILD_CC="$CC"
4126
4127else
4128 for ac_prog in gcc cc
4129do
4130# Extract the first word of "$ac_prog", so it can be a program name with args.
4131set dummy $ac_prog; ac_word=$2
4132echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004133echo "configure:4134: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00004134if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4136else
4137 if test -n "$BUILD_CC"; then
4138 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4139else
4140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4141 ac_dummy="$PATH"
4142 for ac_dir in $ac_dummy; do
4143 test -z "$ac_dir" && ac_dir=.
4144 if test -f $ac_dir/$ac_word; then
4145 ac_cv_prog_BUILD_CC="$ac_prog"
4146 break
4147 fi
4148 done
4149 IFS="$ac_save_ifs"
4150fi
4151fi
4152BUILD_CC="$ac_cv_prog_BUILD_CC"
4153if test -n "$BUILD_CC"; then
4154 echo "$ac_t""$BUILD_CC" 1>&6
4155else
4156 echo "$ac_t""no" 1>&6
4157fi
4158
4159test -n "$BUILD_CC" && break
4160done
4161
4162fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004163for 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 +00004164do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004165ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004166echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004167echo "configure:4168: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004168if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4170else
4171 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004172#line 4173 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004173#include "confdefs.h"
4174#include <$ac_hdr>
4175EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004176ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004177{ (eval echo configure:4178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004178ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004179if test -z "$ac_err"; then
4180 rm -rf conftest*
4181 eval "ac_cv_header_$ac_safe=yes"
4182else
4183 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004186 rm -rf conftest*
4187 eval "ac_cv_header_$ac_safe=no"
4188fi
4189rm -f conftest*
4190fi
4191if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004194 cat >> confdefs.h <<EOF
4195#define $ac_tr_hdr 1
4196EOF
4197
4198else
4199 echo "$ac_t""no" 1>&6
4200fi
4201done
4202
4203echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004204echo "configure:4205: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004205if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4207else
4208 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004209#line 4210 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004210#include "confdefs.h"
4211/* System header to define __stub macros and hopefully few prototypes,
4212 which can conflict with char vprintf(); below. */
4213#include <assert.h>
4214/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004215/* We use char because int might match the return type of a gcc2
4216 builtin and then its argument prototype would still apply. */
4217char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004218
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004219int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004220
4221/* The GNU C library defines this for functions which it implements
4222 to always fail with ENOSYS. Some functions are actually named
4223 something starting with __ and the normal name is an alias. */
4224#if defined (__stub_vprintf) || defined (__stub___vprintf)
4225choke me
4226#else
4227vprintf();
4228#endif
4229
4230; return 0; }
4231EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004232if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004233 rm -rf conftest*
4234 eval "ac_cv_func_vprintf=yes"
4235else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004236 echo "configure: failed program was:" >&5
4237 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004238 rm -rf conftest*
4239 eval "ac_cv_func_vprintf=no"
4240fi
4241rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004242fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004243
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004244if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4246 cat >> confdefs.h <<\EOF
4247#define HAVE_VPRINTF 1
4248EOF
4249
4250else
4251 echo "$ac_t""no" 1>&6
4252fi
4253
4254if test "$ac_cv_func_vprintf" != yes; then
4255echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004256echo "configure:4257: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004257if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4259else
4260 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004261#line 4262 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004262#include "confdefs.h"
4263/* System header to define __stub macros and hopefully few prototypes,
4264 which can conflict with char _doprnt(); below. */
4265#include <assert.h>
4266/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004267/* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4269char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004270
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004271int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004272
4273/* The GNU C library defines this for functions which it implements
4274 to always fail with ENOSYS. Some functions are actually named
4275 something starting with __ and the normal name is an alias. */
4276#if defined (__stub__doprnt) || defined (__stub____doprnt)
4277choke me
4278#else
4279_doprnt();
4280#endif
4281
4282; return 0; }
4283EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004284if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004285 rm -rf conftest*
4286 eval "ac_cv_func__doprnt=yes"
4287else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004290 rm -rf conftest*
4291 eval "ac_cv_func__doprnt=no"
4292fi
4293rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004294fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004295
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004296if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 cat >> confdefs.h <<\EOF
4299#define HAVE_DOPRNT 1
4300EOF
4301
4302else
4303 echo "$ac_t""no" 1>&6
4304fi
4305
4306fi
4307
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004308echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004309echo "configure:4310: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004310if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4312else
4313 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004314#line 4315 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004315#include "confdefs.h"
4316#include <unistd.h>
4317int main() {
4318extern int llseek(int);
4319; return 0; }
4320EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004321if { (eval echo configure:4322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004322 rm -rf conftest*
4323 e2fsprogs_cv_have_llseek_prototype=no
4324else
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4327 rm -rf conftest*
4328 e2fsprogs_cv_have_llseek_prototype=yes
4329fi
4330rm -f conftest*
4331fi
4332
4333echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4334if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4335 cat >> confdefs.h <<\EOF
4336#define HAVE_LLSEEK_PROTOTYPE 1
4337EOF
4338
4339fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004340echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004341echo "configure:4342: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004342if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4344else
4345 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004346#line 4347 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004347#include "confdefs.h"
4348#define _LARGEFILE_SOURCE
4349#define _LARGEFILE64_SOURCE
4350#include <unistd.h>
4351int main() {
4352extern int lseek64(int);
4353; return 0; }
4354EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004355if { (eval echo configure:4356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004356 rm -rf conftest*
4357 e2fsprogs_cv_have_lseek64_prototype=no
4358else
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4361 rm -rf conftest*
4362 e2fsprogs_cv_have_lseek64_prototype=yes
4363fi
4364rm -f conftest*
4365fi
4366
4367echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4368if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4369 cat >> confdefs.h <<\EOF
4370#define HAVE_LSEEK64_PROTOTYPE 1
4371EOF
4372
4373fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004374if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4375 # if cross-compiling, with no cached values, just assume something common.
4376 ac_cv_sizeof_short=2
4377 ac_cv_sizeof_int=4
4378 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004379 ac_cv_sizeof_long_long=8
4380 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 +00004381fi
4382echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004383echo "configure:4384: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004384if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4386else
4387 if test "$cross_compiling" = yes; then
4388 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4389else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004390 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004391#line 4392 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004392#include "confdefs.h"
4393#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004394#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004395main()
4396{
4397 FILE *f=fopen("conftestval", "w");
4398 if (!f) exit(1);
4399 fprintf(f, "%d\n", sizeof(short));
4400 exit(0);
4401}
4402EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004403if { (eval echo configure:4404: \"$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 +00004404then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004405 ac_cv_sizeof_short=`cat conftestval`
4406else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4409 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004410 ac_cv_sizeof_short=0
4411fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004412rm -fr conftest*
4413fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004414
4415fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004416echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4417cat >> confdefs.h <<EOF
4418#define SIZEOF_SHORT $ac_cv_sizeof_short
4419EOF
4420
4421
4422echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004423echo "configure:4424: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004424if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4426else
4427 if test "$cross_compiling" = yes; then
4428 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4429else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004430 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004431#line 4432 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004432#include "confdefs.h"
4433#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004434#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004435main()
4436{
4437 FILE *f=fopen("conftestval", "w");
4438 if (!f) exit(1);
4439 fprintf(f, "%d\n", sizeof(int));
4440 exit(0);
4441}
4442EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004443if { (eval echo configure:4444: \"$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 +00004444then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004445 ac_cv_sizeof_int=`cat conftestval`
4446else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004447 echo "configure: failed program was:" >&5
4448 cat conftest.$ac_ext >&5
4449 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004450 ac_cv_sizeof_int=0
4451fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004452rm -fr conftest*
4453fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004454
4455fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004456echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4457cat >> confdefs.h <<EOF
4458#define SIZEOF_INT $ac_cv_sizeof_int
4459EOF
4460
4461
4462echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004463echo "configure:4464: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004464if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4466else
4467 if test "$cross_compiling" = yes; then
4468 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4469else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004470 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004471#line 4472 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004472#include "confdefs.h"
4473#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004474#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004475main()
4476{
4477 FILE *f=fopen("conftestval", "w");
4478 if (!f) exit(1);
4479 fprintf(f, "%d\n", sizeof(long));
4480 exit(0);
4481}
4482EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004483if { (eval echo configure:4484: \"$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 +00004484then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004485 ac_cv_sizeof_long=`cat conftestval`
4486else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4489 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004490 ac_cv_sizeof_long=0
4491fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004492rm -fr conftest*
4493fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004494
4495fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004496echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4497cat >> confdefs.h <<EOF
4498#define SIZEOF_LONG $ac_cv_sizeof_long
4499EOF
4500
4501
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004502echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004503echo "configure:4504: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004504if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4506else
4507 if test "$cross_compiling" = yes; then
4508 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4509else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004510 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004511#line 4512 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004512#include "confdefs.h"
4513#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004514#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004515main()
4516{
4517 FILE *f=fopen("conftestval", "w");
4518 if (!f) exit(1);
4519 fprintf(f, "%d\n", sizeof(long long));
4520 exit(0);
4521}
4522EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004523if { (eval echo configure:4524: \"$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 +00004524then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004525 ac_cv_sizeof_long_long=`cat conftestval`
4526else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4529 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004530 ac_cv_sizeof_long_long=0
4531fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004532rm -fr conftest*
4533fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004534
4535fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004536echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4537cat >> confdefs.h <<EOF
4538#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4539EOF
4540
4541
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004542SIZEOF_SHORT=$ac_cv_sizeof_short
4543SIZEOF_INT=$ac_cv_sizeof_int
4544SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004545SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4546
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004547
4548
4549
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004550echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004551echo "configure:4552: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004552if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4554else
4555 ac_cv_c_bigendian=unknown
4556# See if sys/param.h defines the BYTE_ORDER macro.
4557cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004558#line 4559 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004559#include "confdefs.h"
4560#include <sys/types.h>
4561#include <sys/param.h>
4562int main() {
4563
4564#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4565 bogus endian macros
4566#endif
4567; return 0; }
4568EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004569if { (eval echo configure:4570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004570 rm -rf conftest*
4571 # It does; now see whether it defined to BIG_ENDIAN or not.
4572cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004573#line 4574 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004574#include "confdefs.h"
4575#include <sys/types.h>
4576#include <sys/param.h>
4577int main() {
4578
4579#if BYTE_ORDER != BIG_ENDIAN
4580 not big endian
4581#endif
4582; return 0; }
4583EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004584if { (eval echo configure:4585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004585 rm -rf conftest*
4586 ac_cv_c_bigendian=yes
4587else
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4590 rm -rf conftest*
4591 ac_cv_c_bigendian=no
4592fi
4593rm -f conftest*
4594else
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597fi
4598rm -f conftest*
4599if test $ac_cv_c_bigendian = unknown; then
4600if test "$cross_compiling" = yes; then
4601 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4602else
4603 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004604#line 4605 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004605#include "confdefs.h"
4606main () {
4607 /* Are we little or big endian? From Harbison&Steele. */
4608 union
4609 {
4610 long l;
4611 char c[sizeof (long)];
4612 } u;
4613 u.l = 1;
4614 exit (u.c[sizeof (long) - 1] == 1);
4615}
4616EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004617if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004618then
4619 ac_cv_c_bigendian=no
4620else
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4623 rm -fr conftest*
4624 ac_cv_c_bigendian=yes
4625fi
4626rm -fr conftest*
4627fi
4628
4629fi
4630fi
4631
4632echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4633if test $ac_cv_c_bigendian = yes; then
4634 cat >> confdefs.h <<\EOF
4635#define WORDS_BIGENDIAN 1
4636EOF
4637
4638fi
4639
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004640echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004641echo "configure:4642: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004642if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4644else
4645 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004646#line 4647 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004647#include "confdefs.h"
4648#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004649int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004650struct stat stat; stat.st_flags = 0;
4651; return 0; }
4652EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004653if { (eval echo configure:4654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004654 rm -rf conftest*
4655 e2fsprogs_cv_struct_st_flags=yes
4656else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004659 rm -rf conftest*
4660 e2fsprogs_cv_struct_st_flags=no
4661fi
4662rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004663fi
4664
4665echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4666if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004667 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004668echo "configure:4669: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004669 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4671else
4672 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004673#line 4674 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004674#include "confdefs.h"
4675#include <sys/stat.h>
4676int main() {
4677struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4678; return 0; }
4679EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004680if { (eval echo configure:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004681 rm -rf conftest*
4682 e2fsprogs_cv_struct_st_flags_immut=yes
4683else
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 rm -rf conftest*
4687 e2fsprogs_cv_struct_st_flags_immut=no
4688fi
4689rm -f conftest*
4690fi
4691
4692 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4693 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4694 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004695#define HAVE_STAT_FLAGS 1
4696EOF
4697
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004698 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004699fi
Theodore Ts'oe12f2ae2003-01-23 16:45:16 -05004700for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf pathconf
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004701do
4702echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004703echo "configure:4704: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004704if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4706else
4707 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004708#line 4709 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004709#include "confdefs.h"
4710/* System header to define __stub macros and hopefully few prototypes,
4711 which can conflict with char $ac_func(); below. */
4712#include <assert.h>
4713/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004714/* We use char because int might match the return type of a gcc2
4715 builtin and then its argument prototype would still apply. */
4716char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004717
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004718int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004719
4720/* The GNU C library defines this for functions which it implements
4721 to always fail with ENOSYS. Some functions are actually named
4722 something starting with __ and the normal name is an alias. */
4723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724choke me
4725#else
4726$ac_func();
4727#endif
4728
4729; return 0; }
4730EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004731if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004732 rm -rf conftest*
4733 eval "ac_cv_func_$ac_func=yes"
4734else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004737 rm -rf conftest*
4738 eval "ac_cv_func_$ac_func=no"
4739fi
4740rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004741fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004742
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004743if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4744 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004746 cat >> confdefs.h <<EOF
4747#define $ac_tr_func 1
4748EOF
4749
4750else
4751 echo "$ac_t""no" 1>&6
4752fi
4753done
4754
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004755SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004756echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004757echo "configure:4758: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004758ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4759if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004760 echo $ac_n "(cached) $ac_c" 1>&6
4761else
4762 ac_save_LIBS="$LIBS"
4763LIBS="-lsocket $LIBS"
4764cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004765#line 4766 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004766#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004767/* Override any gcc2 internal prototype to avoid an error. */
4768/* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4770char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004771
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004772int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004773socket()
4774; return 0; }
4775EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004776if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004777 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004778 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004779else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004782 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004783 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004784fi
4785rm -f conftest*
4786LIBS="$ac_save_LIBS"
4787
4788fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004789if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004790 echo "$ac_t""yes" 1>&6
4791 SOCKET_LIB=-lsocket
4792else
4793 echo "$ac_t""no" 1>&6
4794fi
4795
4796
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004797echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004798echo "configure:4799: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004799if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4801else
4802 cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004803#line 4804 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004804#include "confdefs.h"
4805#include <unistd.h>
4806EOF
4807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4808 egrep "optreset" >/dev/null 2>&1; then
4809 rm -rf conftest*
4810 ac_cv_have_optreset=yes
4811else
4812 rm -rf conftest*
4813 ac_cv_have_optreset=no
4814fi
4815rm -f conftest*
4816
4817fi
4818echo "$ac_t""$ac_cv_have_optreset" 1>&6
4819if test $ac_cv_have_optreset = yes; then
4820 cat >> confdefs.h <<\EOF
4821#define HAVE_OPTRESET 1
4822EOF
4823
4824fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004825case "$host_os" in
4826linux*)
4827 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004828#define HAVE_EXT2_IOCTLS 1
4829EOF
4830
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004831 ;;
4832esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04004833LINUX_CMT="#"
4834case "$host_os" in
4835linux*)
4836 LINUX_CMT=
4837 ;;
4838esac
4839
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004840case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004841linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004842 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4843 root_prefix="";
4844 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004845 fi
4846 ;;
4847esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004848case "$host_os" in
4849linux* | gnu*)
4850 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004851 prefix="/usr";
4852 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04004853 if test "$mandir" = '${prefix}/man' ; then
4854 echo "...and mandir defaults to /usr/share/man"
4855 mandir=/usr/share/man
4856 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004857 fi
4858;;
4859esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004860if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004861 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004862 root_prefix="$ac_default_prefix"
4863 else
4864 root_prefix="$prefix"
4865 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004866 root_bindir=$bindir
4867 root_sbindir=$sbindir
4868 root_libdir=$libdir
4869 root_sysconfdir=$sysconfdir
4870else
4871 root_bindir='${root_prefix}/bin'
4872 root_sbindir='${root_prefix}/sbin'
4873 root_libdir='${root_prefix}/lib'
4874 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004875fi
4876
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004877
4878
4879
4880
Theodore Ts'oae851481997-04-29 18:13:24 +00004881echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004882echo "configure:4883: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004883if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4885else
4886 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4887cat > conftest.$ac_ext <<EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004888#line 4889 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004889#include "confdefs.h"
4890#include <stdio.h>
4891int main() {
4892fflush(stdout);
4893; return 0; }
4894EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004895if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004896 rm -rf conftest*
4897 ac_cv_e2fsprogs_use_static=yes
4898else
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4901 rm -rf conftest*
4902 ac_cv_e2fsprogs_use_static=no
4903fi
4904rm -f conftest*
4905LDFLAGS=$SAVE_LDFLAGS
4906fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004907
Theodore Ts'odefde781999-01-04 07:39:19 +00004908case "$host_os" in
4909solaris2.*)
4910 ac_cv_e2fsprogs_use_static=no
4911;;
4912esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004913echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004914LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004915if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004916 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004917fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004918
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004919SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4920ET_DIR=`cd ${srcdir}/lib/et; pwd`
4921
4922
4923if test "$cross_compiling" = yes ; then
4924 DO_TEST_SUITE=
4925else
4926 DO_TEST_SUITE=check
4927fi
4928
4929test -d lib || mkdir lib
4930test -d include || mkdir include
4931test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004932test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004933rmakefile=
4934if test -d ${srcdir}/resize ; then
4935 rmakefile=resize/Makefile
4936fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004937trap '' 1 2 15
4938cat > confcache <<\EOF
4939# This file is a shell script that caches the results of configure
4940# tests run on this system so they can be shared between configure
4941# scripts and configure runs. It is not useful on other systems.
4942# If it contains results you don't want to keep, you may remove or edit it.
4943#
4944# By default, configure uses ./config.cache as the cache file,
4945# creating it if it does not exist already. You can give configure
4946# the --cache-file=FILE option to use a different cache file; that is
4947# what configure does when it calls configure scripts in
4948# subdirectories, so they share the cache.
4949# Giving --cache-file=/dev/null disables caching, for debugging configure.
4950# config.status only pays attention to the cache file if you give it the
4951# --recheck option to rerun configure.
4952#
4953EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004954# The following way of writing the cache mishandles newlines in values,
4955# but we know of no workaround that is simple, portable, and efficient.
4956# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004957# Ultrix sh set writes to stderr and can't be redirected directly,
4958# and sets the high bit in the cache file unless we assign to the vars.
4959(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004960 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004961 *ac_space=\ *)
4962 # `set' does not quote correctly, so add quotes (double-quote substitution
4963 # turns \\\\ into \\, and sed turns \\ into \).
4964 sed -n \
4965 -e "s/'/'\\\\''/g" \
4966 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4967 ;;
4968 *)
4969 # `set' quotes correctly as required by POSIX, so do not add quotes.
4970 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4971 ;;
4972 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004973if cmp -s $cache_file confcache; then
4974 :
4975else
4976 if test -w $cache_file; then
4977 echo "updating cache $cache_file"
4978 cat confcache > $cache_file
4979 else
4980 echo "not updating unwritable cache $cache_file"
4981 fi
4982fi
4983rm -f confcache
4984
4985trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4986
4987test "x$prefix" = xNONE && prefix=$ac_default_prefix
4988# Let make expand exec_prefix.
4989test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4990
4991# Any assignment to VPATH causes Sun make to only execute
4992# the first set of double-colon rules, so remove it if not needed.
4993# If there is a colon in the path, we need to keep it.
4994if test "x$srcdir" = x.; then
4995 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4996fi
4997
4998trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4999
5000# Transform confdefs.h into DEFS.
5001# Protect against shell expansion while executing Makefile rules.
5002# Protect against Makefile macro expansion.
5003cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005004s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005005s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
5006s%\[%\\&%g
5007s%\]%\\&%g
5008s%\$%$$%g
5009EOF
5010DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
5011rm -f conftest.defs
5012
5013
5014# Without the "./", some shells look in PATH for config.status.
5015: ${CONFIG_STATUS=./config.status}
5016
5017echo creating $CONFIG_STATUS
5018rm -f $CONFIG_STATUS
5019cat > $CONFIG_STATUS <<EOF
5020#! /bin/sh
5021# Generated automatically by configure.
5022# Run this file to recreate the current configuration.
5023# This directory was configured as follows,
5024# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5025#
5026# $0 $ac_configure_args
5027#
5028# Compiler output produced by configure, useful for debugging
5029# configure, is in ./config.log if it exists.
5030
5031ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5032for ac_option
5033do
5034 case "\$ac_option" in
5035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5036 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5037 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5038 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005039 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005040 exit 0 ;;
5041 -help | --help | --hel | --he | --h)
5042 echo "\$ac_cs_usage"; exit 0 ;;
5043 *) echo "\$ac_cs_usage"; exit 1 ;;
5044 esac
5045done
5046
5047ac_given_srcdir=$srcdir
5048ac_given_INSTALL="$INSTALL"
5049
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005050trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005051 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'oe12f2ae2003-01-23 16:45:16 -05005052 lib/blkid/Makefile lib/blkid/blkid_types.h lib/evms/Makefile
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005053 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5054 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005055 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005056EOF
5057cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005058
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005059# Protect against being on the right side of a sed subst in config.status.
5060sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5061 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005062$ac_vpsub
5063$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005064s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005065s%@CFLAGS@%$CFLAGS%g
5066s%@CPPFLAGS@%$CPPFLAGS%g
5067s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005068s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005069s%@DEFS@%$DEFS%g
5070s%@LDFLAGS@%$LDFLAGS%g
5071s%@LIBS@%$LIBS%g
5072s%@exec_prefix@%$exec_prefix%g
5073s%@prefix@%$prefix%g
5074s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005075s%@bindir@%$bindir%g
5076s%@sbindir@%$sbindir%g
5077s%@libexecdir@%$libexecdir%g
5078s%@datadir@%$datadir%g
5079s%@sysconfdir@%$sysconfdir%g
5080s%@sharedstatedir@%$sharedstatedir%g
5081s%@localstatedir@%$localstatedir%g
5082s%@libdir@%$libdir%g
5083s%@includedir@%$includedir%g
5084s%@oldincludedir@%$oldincludedir%g
5085s%@infodir@%$infodir%g
5086s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005087/@MCONFIG@/r $MCONFIG
5088s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005089s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5090s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
5091s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005092s%@host@%$host%g
5093s%@host_alias@%$host_alias%g
5094s%@host_cpu@%$host_cpu%g
5095s%@host_vendor@%$host_vendor%g
5096s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005097s%@CC@%$CC%g
5098s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00005099s%@CPP@%$CPP%g
5100s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04005101s%@HTREE_CMT@%$HTREE_CMT%g
5102s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05005103s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005104s%@DLL_CMT@%$DLL_CMT%g
5105/@MAKEFILE_DLL@/r $MAKEFILE_DLL
5106s%@MAKEFILE_DLL@%%g
5107s%@ELF_CMT@%$ELF_CMT%g
5108/@MAKEFILE_ELF@/r $MAKEFILE_ELF
5109s%@MAKEFILE_ELF@%%g
5110s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5111/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5112s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005113s%@PROFILE_CMT@%$PROFILE_CMT%g
5114/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5115s%@MAKEFILE_PROFILE@%%g
5116s%@CHECKER_CMT@%$CHECKER_CMT%g
5117/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5118s%@MAKEFILE_CHECKER@%%g
5119s%@LIB_EXT@%$LIB_EXT%g
5120s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5121s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05005122s%@SWAPFS_CMT@%$SWAPFS_CMT%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005123s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5124s%@IMAGER_CMT@%$IMAGER_CMT%g
5125s%@RESIZER_CMT@%$RESIZER_CMT%g
5126s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5127s%@FSCK_PROG@%$FSCK_PROG%g
5128s%@FSCK_MAN@%$FSCK_MAN%g
5129/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5130s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005131s%@PACKAGE@%$PACKAGE%g
5132s%@VERSION@%$VERSION%g
5133s%@SET_MAKE@%$SET_MAKE%g
5134s%@RANLIB@%$RANLIB%g
5135s%@ALLOCA@%$ALLOCA%g
5136s%@USE_NLS@%$USE_NLS%g
5137s%@MSGFMT@%$MSGFMT%g
5138s%@GMSGFMT@%$GMSGFMT%g
5139s%@XGETTEXT@%$XGETTEXT%g
5140s%@GENCAT@%$GENCAT%g
5141s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5142s%@CATALOGS@%$CATALOGS%g
5143s%@CATOBJEXT@%$CATOBJEXT%g
5144s%@DATADIRNAME@%$DATADIRNAME%g
5145s%@GMOFILES@%$GMOFILES%g
5146s%@INSTOBJEXT@%$INSTOBJEXT%g
5147s%@INTLDEPS@%$INTLDEPS%g
5148s%@INTLLIBS@%$INTLLIBS%g
5149s%@INTLOBJS@%$INTLOBJS%g
5150s%@POFILES@%$POFILES%g
5151s%@POSUB@%$POSUB%g
5152s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5153s%@GT_NO@%$GT_NO%g
5154s%@GT_YES@%$GT_YES%g
5155s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5156s%@l@%$l%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005157s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005158s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005159s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005160s%@MV@%$MV%g
5161s%@CP@%$CP%g
5162s%@RM@%$RM%g
5163s%@CHMOD@%$CHMOD%g
5164s%@AWK@%$AWK%g
5165s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00005166s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005167s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005168s%@build@%$build%g
5169s%@build_alias@%$build_alias%g
5170s%@build_cpu@%$build_cpu%g
5171s%@build_vendor@%$build_vendor%g
5172s%@build_os@%$build_os%g
5173s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005174s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005175s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005176s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005177s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00005178s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005179s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5180s%@SIZEOF_INT@%$SIZEOF_INT%g
5181s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005182s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005183s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04005184s%@LINUX_CMT@%$LINUX_CMT%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005185s%@root_prefix@%$root_prefix%g
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005186s%@root_bindir@%$root_bindir%g
5187s%@root_sbindir@%$root_sbindir%g
5188s%@root_libdir@%$root_libdir%g
5189s%@root_sysconfdir@%$root_sysconfdir%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005190s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005191s%@SS_DIR@%$SS_DIR%g
5192s%@ET_DIR@%$ET_DIR%g
5193s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5194
5195CEOF
5196EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005197
5198cat >> $CONFIG_STATUS <<\EOF
5199
5200# Split the substitutions into bite-sized pieces for seds with
5201# small command number limits, like on Digital OSF/1 and HP-UX.
5202ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5203ac_file=1 # Number of current file.
5204ac_beg=1 # First line for current file.
5205ac_end=$ac_max_sed_cmds # Line after last line for current file.
5206ac_more_lines=:
5207ac_sed_cmds=""
5208while $ac_more_lines; do
5209 if test $ac_beg -gt 1; then
5210 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5211 else
5212 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5213 fi
5214 if test ! -s conftest.s$ac_file; then
5215 ac_more_lines=false
5216 rm -f conftest.s$ac_file
5217 else
5218 if test -z "$ac_sed_cmds"; then
5219 ac_sed_cmds="sed -f conftest.s$ac_file"
5220 else
5221 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5222 fi
5223 ac_file=`expr $ac_file + 1`
5224 ac_beg=$ac_end
5225 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5226 fi
5227done
5228if test -z "$ac_sed_cmds"; then
5229 ac_sed_cmds=cat
5230fi
5231EOF
5232
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005233cat >> $CONFIG_STATUS <<EOF
5234
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005235CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005236 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'oe12f2ae2003-01-23 16:45:16 -05005237 lib/blkid/Makefile lib/blkid/blkid_types.h lib/evms/Makefile
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005238 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5239 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005240 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005241EOF
5242cat >> $CONFIG_STATUS <<\EOF
5243for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005244 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005245 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005246 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005247 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5248 *) ac_file_in="${ac_file}.in" ;;
5249 esac
5250
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005251 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005252
5253 # Remove last slash and all that follows it. Not all systems have dirname.
5254 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5255 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5256 # The file is in a subdirectory.
5257 test ! -d "$ac_dir" && mkdir "$ac_dir"
5258 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5259 # A "../" for each directory in $ac_dir_suffix.
5260 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5261 else
5262 ac_dir_suffix= ac_dots=
5263 fi
5264
5265 case "$ac_given_srcdir" in
5266 .) srcdir=.
5267 if test -z "$ac_dots"; then top_srcdir=.
5268 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5269 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5270 *) # Relative path.
5271 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5272 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5273 esac
5274
5275 case "$ac_given_INSTALL" in
5276 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5277 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5278 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005279
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005280 echo creating "$ac_file"
5281 rm -f "$ac_file"
5282 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5283 case "$ac_file" in
5284 *Makefile*) ac_comsub="1i\\
5285# $configure_input" ;;
5286 *) ac_comsub= ;;
5287 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005288
5289 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 +00005290 sed -e "$ac_comsub
5291s%@configure_input@%$configure_input%g
5292s%@srcdir@%$srcdir%g
5293s%@top_srcdir@%$top_srcdir%g
5294s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005295" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005296fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005297rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005298
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005299EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005300
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005301cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005302ac_sources="$nls_cv_header_libgt"
5303ac_dests="$nls_cv_header_intl"
5304EOF
5305
5306cat >> $CONFIG_STATUS <<\EOF
5307srcdir=$ac_given_srcdir
5308while test -n "$ac_sources"; do
5309 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5310 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5311
5312 echo "linking $srcdir/$ac_source to $ac_dest"
5313
5314 if test ! -r $srcdir/$ac_source; then
5315 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5316 fi
5317 rm -f $ac_dest
5318
5319 # Make relative symlinks.
5320 # Remove last slash and all that follows it. Not all systems have dirname.
5321 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5322 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5323 # The dest file is in a subdirectory.
5324 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5325 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5326 # A "../" for each directory in $ac_dest_dir_suffix.
5327 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5328 else
5329 ac_dest_dir_suffix= ac_dots=
5330 fi
5331
5332 case "$srcdir" in
5333 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5334 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5335 esac
5336
5337 # Make a symlink if possible; otherwise try a hard link.
5338 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5339 ln $srcdir/$ac_source $ac_dest; then :
5340 else
5341 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5342 fi
5343done
5344EOF
5345cat >> $CONFIG_STATUS <<EOF
5346
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005347
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005348EOF
5349cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005350case "$CONFIG_FILES" in *po/Makefile.in*)
5351 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5352 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005353
5354exit 0
5355EOF
5356chmod +x $CONFIG_STATUS
5357rm -fr confdefs* $ac_clean_files
5358test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5359