blob: 76d776b4aec608c480da423ac1c350028d537c89 [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'o80bfaa32000-08-18 15:08:37 +000045 --enable-jfs-debug enable journal debugging"
46ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000047 --disable-swapfs disable support of legacy byte-swapped filesystems"
48ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000049 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000050ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000051 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000052ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000053 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000054ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000055 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000056ac_help="$ac_help
57 --enable-fsck build fsck wrapper program"
58ac_help="$ac_help
59 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000060ac_help="$ac_help
61 --enable-nls Turn on Native Language Support"
62ac_help="$ac_help
63 --with-included-gettext use the GNU gettext library included here"
64ac_help="$ac_help
65 --with-catgets use catgets functions if available"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000066
67# Initialize some variables set by options.
68# The variables have the same names as the options, with
69# dashes changed to underlines.
70build=NONE
71cache_file=./config.cache
72exec_prefix=NONE
73host=NONE
74no_create=
75nonopt=NONE
76no_recursion=
77prefix=NONE
78program_prefix=NONE
79program_suffix=NONE
80program_transform_name=s,x,x,
81silent=
82site=
83srcdir=
84target=NONE
85verbose=
86x_includes=NONE
87x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000088bindir='${exec_prefix}/bin'
89sbindir='${exec_prefix}/sbin'
90libexecdir='${exec_prefix}/libexec'
91datadir='${prefix}/share'
92sysconfdir='${prefix}/etc'
93sharedstatedir='${prefix}/com'
94localstatedir='${prefix}/var'
95libdir='${exec_prefix}/lib'
96includedir='${prefix}/include'
97oldincludedir='/usr/include'
98infodir='${prefix}/info'
99mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000100
101# Initialize some other variables.
102subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000103MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000104SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000105# Maximum number of lines to put in a shell here document.
106ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000107
108ac_prev=
109for ac_option
110do
111
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
115 ac_prev=
116 continue
117 fi
118
119 case "$ac_option" in
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121 *) ac_optarg= ;;
122 esac
123
124 # Accept the important Cygnus configure options, so we can diagnose typos.
125
126 case "$ac_option" in
127
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
129 ac_prev=bindir ;;
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
132
133 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000134 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000136 build="$ac_optarg" ;;
137
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
144
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146 ac_prev=datadir ;;
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148 | --da=*)
149 datadir="$ac_optarg" ;;
150
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 fi
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
159
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 fi
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 case "$ac_option" in
168 *=*) ;;
169 *) ac_optarg=yes ;;
170 esac
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
172
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
181
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
184 with_gas=yes ;;
185
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
189 cat << EOF
190Usage: configure [options] [host]
191Options: [defaults in brackets after descriptions]
192Configuration:
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
200 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000202 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
207 [PREFIX/share]
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 [PREFIX/com]
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
222EOF
223 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000224Host type:
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000235EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
238 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000239 exit 0 ;;
240
241 -host | --host | --hos | --ho)
242 ac_prev=host ;;
243 -host=* | --host=* | --hos=* | --ho=*)
244 host="$ac_optarg" ;;
245
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
252
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
254 ac_prev=infodir ;;
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
257
258 -libdir | --libdir | --libdi | --libd)
259 ac_prev=libdir ;;
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
262
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
269
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
278
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280 ac_prev=mandir ;;
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
283
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000284 -nfp | --nfp | --nf)
285 # Obsolete; use --without-fp.
286 with_fp=no ;;
287
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 | --no-cr | --no-c)
290 no_create=yes ;;
291
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 no_recursion=yes ;;
295
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
304
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306 ac_prev=prefix ;;
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
309
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
316
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
323
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
340
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
343 silent=yes ;;
344
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346 ac_prev=sbindir ;;
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348 | --sbi=* | --sb=*)
349 sbindir="$ac_optarg" ;;
350
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
354 | --sha | --sh)
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359 | --sha=* | --sh=*)
360 sharedstatedir="$ac_optarg" ;;
361
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000362 -site | --site | --sit)
363 ac_prev=site ;;
364 -site=* | --site=* | --sit=*)
365 site="$ac_optarg" ;;
366
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368 ac_prev=srcdir ;;
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
371
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
378
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000379 -target | --target | --targe | --targ | --tar | --ta | --t)
380 ac_prev=target ;;
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
383
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 verbose=yes ;;
386
387 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000388 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000389 exit 0 ;;
390
391 -with-* | --with-*)
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 fi
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 case "$ac_option" in
399 *=*) ;;
400 *) ac_optarg=yes ;;
401 esac
402 eval "with_${ac_package}='$ac_optarg'" ;;
403
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 fi
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
412
413 --x)
414 # Obsolete; use --with-x.
415 with_x=yes ;;
416
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
423
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
430
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 ;;
433
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000434 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 fi
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 fi
441 nonopt="$ac_option"
442 ;;
443
444 esac
445done
446
447if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449fi
450
451trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452
453# File descriptor usage:
454# 0 standard input
455# 1 file creation
456# 2 errors and warnings
457# 3 some systems may open it to /dev/tty
458# 4 used on the Kubota Titan
459# 6 checking for... messages and results
460# 5 compiler messages saved in config.log
461if test "$silent" = yes; then
462 exec 6>/dev/null
463else
464 exec 6>&1
465fi
466exec 5>./config.log
467
468echo "\
469This file contains any messages produced by compilers while
470running configure, to aid debugging if configure makes a mistake.
471" 1>&5
472
473# Strip out --no-create and --no-recursion so they do not pile up.
474# Also quote any args containing shell metacharacters.
475ac_configure_args=
476for ac_arg
477do
478 case "$ac_arg" in
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486 esac
487done
488
489# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000490# Only set these to C if already set. These must not be set unconditionally
491# because not all systems understand e.g. LANG=C (notably SCO).
492# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000494if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000495if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000498
499# confdefs.h avoids OS command line length limits that DEFS can exceed.
500rm -rf conftest* confdefs.h
501# AIX cpp loses on an empty file, so make sure it contains at least a newline.
502echo > confdefs.h
503
504# A filename unique to this package, relative to the directory that
505# configure is in, which we can look for to find out if srcdir is correct.
506ac_unique_file=version.h
507
508# Find the source files, if location was not specified.
509if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
512 ac_prog=$0
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515 srcdir=$ac_confdir
516 if test ! -r $srcdir/$ac_unique_file; then
517 srcdir=..
518 fi
519else
520 ac_srcdir_defaulted=no
521fi
522if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 else
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 fi
528fi
529srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530
531# Prefer explicitly selected file to automatically selected ones.
532if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE; then
534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535 else
536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 fi
538fi
539for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
542 . "$ac_site_file"
543 fi
544done
545
546if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
548 . $cache_file
549else
550 echo "creating cache $cache_file"
551 > $cache_file
552fi
553
554ac_ext=c
555# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000557ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000558ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000559cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000560
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000561ac_exeext=
562ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000563if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='
567' ac_t=' '
568 else
569 ac_n=-n ac_c= ac_t=
570 fi
571else
572 ac_n= ac_c='\c' ac_t=
573fi
574
575
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000576
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000577MCONFIG=./MCONFIG
578
Theodore Ts'o74becf31997-04-26 14:37:06 +0000579BINARY_TYPE=bin
580E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
581 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
582DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
583 | tr \" " "`
584MONTH=`echo $DATE | awk -F- '{print $2}'`
585YEAR=`echo $DATE | awk -F- '{print $3}'`
586
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000587if expr $YEAR ">" 1900 > /dev/null ; then
588 E2FSPROGS_YEAR=$YEAR
589elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000590 E2FSPROGS_YEAR=19$YEAR
591else
592 E2FSPROGS_YEAR=20$YEAR
593fi
594
595case $MONTH in
596Jan) E2FSPROGS_MONTH="January" ;;
597Feb) E2FSPROGS_MONTH="February" ;;
598Mar) E2FSPROGS_MONTH="March" ;;
599Apr) E2FSPROGS_MONTH="April" ;;
600May) E2FSPROGS_MONTH="May" ;;
601Jun) E2FSPROGS_MONTH="June" ;;
602Jul) E2FSPROGS_MONTH="July" ;;
603Aug) E2FSPROGS_MONTH="August" ;;
604Sep) E2FSPROGS_MONTH="September" ;;
605Oct) E2FSPROGS_MONTH="October" ;;
606Nov) E2FSPROGS_MONTH="November" ;;
607Dec) E2FSPROGS_MONTH="December" ;;
608*) echo "Unknown month $MONTH??" ;;
609esac
610
611unset DATE MONTH YEAR
612echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
613echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
614
615
616
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000617ac_aux_dir=
618for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
619 if test -f $ac_dir/install-sh; then
620 ac_aux_dir=$ac_dir
621 ac_install_sh="$ac_aux_dir/install-sh -c"
622 break
623 elif test -f $ac_dir/install.sh; then
624 ac_aux_dir=$ac_dir
625 ac_install_sh="$ac_aux_dir/install.sh -c"
626 break
627 fi
628done
629if test -z "$ac_aux_dir"; then
630 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
631fi
632ac_config_guess=$ac_aux_dir/config.guess
633ac_config_sub=$ac_aux_dir/config.sub
634ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
635
636
637# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000638if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000639else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
640fi
641
642echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500643echo "configure:644: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000644
645host_alias=$host
646case "$host_alias" in
647NONE)
648 case $nonopt in
649 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000650 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000651 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
652 fi ;;
653 *) host_alias=$nonopt ;;
654 esac ;;
655esac
656
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000657host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000658host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000661echo "$ac_t""$host" 1>&6
662
Theodore Ts'o74becf31997-04-26 14:37:06 +0000663# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000664if test "${with_cc+set}" = set; then
665 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000666 echo "$ac_t""CC=$withval" 1>&6
667CC=$withval
668else
669 if test -z "$CC" ; then CC=cc; fi
670echo "$ac_t""CC defaults to $CC" 1>&6
671fi
672export CC
673
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000674# Extract the first word of "gcc", so it can be a program name with args.
675set dummy gcc; ac_word=$2
676echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500677echo "configure:678: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000678if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
680else
681 if test -n "$CC"; then
682 ac_cv_prog_CC="$CC" # Let the user override the test.
683else
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 ac_dummy="$PATH"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 ac_cv_prog_CC="gcc"
690 break
691 fi
692 done
693 IFS="$ac_save_ifs"
694fi
695fi
696CC="$ac_cv_prog_CC"
697if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
699else
700 echo "$ac_t""no" 1>&6
701fi
702
703if test -z "$CC"; then
704 # Extract the first word of "cc", so it can be a program name with args.
705set dummy cc; ac_word=$2
706echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500707echo "configure:708: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000708if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
710else
711 if test -n "$CC"; then
712 ac_cv_prog_CC="$CC" # Let the user override the test.
713else
714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
715 ac_prog_rejected=no
716 ac_dummy="$PATH"
717 for ac_dir in $ac_dummy; do
718 test -z "$ac_dir" && ac_dir=.
719 if test -f $ac_dir/$ac_word; then
720 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
721 ac_prog_rejected=yes
722 continue
723 fi
724 ac_cv_prog_CC="cc"
725 break
726 fi
727 done
728 IFS="$ac_save_ifs"
729if test $ac_prog_rejected = yes; then
730 # We found a bogon in the path, so make sure we never use it.
731 set dummy $ac_cv_prog_CC
732 shift
733 if test $# -gt 0; then
734 # We chose a different compiler from the bogus one.
735 # However, it has the same basename, so the bogon will be chosen
736 # first if we set CC to just the basename; use the full file name.
737 shift
738 set dummy "$ac_dir/$ac_word" "$@"
739 shift
740 ac_cv_prog_CC="$@"
741 fi
742fi
743fi
744fi
745CC="$ac_cv_prog_CC"
746if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
748else
749 echo "$ac_t""no" 1>&6
750fi
751
752 if test -z "$CC"; then
753 case "`uname -s`" in
754 *win32* | *WIN32*)
755 # Extract the first word of "cl", so it can be a program name with args.
756set dummy cl; ac_word=$2
757echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500758echo "configure:759: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000759if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
761else
762 if test -n "$CC"; then
763 ac_cv_prog_CC="$CC" # Let the user override the test.
764else
765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 ac_dummy="$PATH"
767 for ac_dir in $ac_dummy; do
768 test -z "$ac_dir" && ac_dir=.
769 if test -f $ac_dir/$ac_word; then
770 ac_cv_prog_CC="cl"
771 break
772 fi
773 done
774 IFS="$ac_save_ifs"
775fi
776fi
777CC="$ac_cv_prog_CC"
778if test -n "$CC"; then
779 echo "$ac_t""$CC" 1>&6
780else
781 echo "$ac_t""no" 1>&6
782fi
783 ;;
784 esac
785 fi
786 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
787fi
788
789echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500790echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000791
792ac_ext=c
793# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794ac_cpp='$CPP $CPPFLAGS'
795ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797cross_compiling=$ac_cv_prog_cc_cross
798
799cat > conftest.$ac_ext << EOF
800
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500801#line 802 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000802#include "confdefs.h"
803
804main(){return(0);}
805EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500806if { (eval echo configure:807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000807 ac_cv_prog_cc_works=yes
808 # If we can't run a trivial program, we are probably using a cross compiler.
809 if (./conftest; exit) 2>/dev/null; then
810 ac_cv_prog_cc_cross=no
811 else
812 ac_cv_prog_cc_cross=yes
813 fi
814else
815 echo "configure: failed program was:" >&5
816 cat conftest.$ac_ext >&5
817 ac_cv_prog_cc_works=no
818fi
819rm -fr conftest*
820ac_ext=c
821# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
822ac_cpp='$CPP $CPPFLAGS'
823ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
824ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
825cross_compiling=$ac_cv_prog_cc_cross
826
827echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
828if test $ac_cv_prog_cc_works = no; then
829 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
830fi
831echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500832echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000833echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
834cross_compiling=$ac_cv_prog_cc_cross
835
836echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500837echo "configure:838: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000838if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840else
841 cat > conftest.c <<EOF
842#ifdef __GNUC__
843 yes;
844#endif
845EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500846if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000847 ac_cv_prog_gcc=yes
848else
849 ac_cv_prog_gcc=no
850fi
851fi
852
853echo "$ac_t""$ac_cv_prog_gcc" 1>&6
854
855if test $ac_cv_prog_gcc = yes; then
856 GCC=yes
857else
858 GCC=
859fi
860
861ac_test_CFLAGS="${CFLAGS+set}"
862ac_save_CFLAGS="$CFLAGS"
863CFLAGS=
864echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500865echo "configure:866: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000866if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
868else
869 echo 'void f(){}' > conftest.c
870if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
871 ac_cv_prog_cc_g=yes
872else
873 ac_cv_prog_cc_g=no
874fi
875rm -f conftest*
876
877fi
878
879echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
880if test "$ac_test_CFLAGS" = set; then
881 CFLAGS="$ac_save_CFLAGS"
882elif test $ac_cv_prog_cc_g = yes; then
883 if test "$GCC" = yes; then
884 CFLAGS="-g -O2"
885 else
886 CFLAGS="-g"
887 fi
888else
889 if test "$GCC" = yes; then
890 CFLAGS="-O2"
891 else
892 CFLAGS=
893 fi
894fi
895
Theodore Ts'o74becf31997-04-26 14:37:06 +0000896# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000897if test "${with_linker+set}" = set; then
898 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000899 echo "$ac_t""LD=$withval" 1>&6
900LD=$withval
901else
902 if test -z "$LD" ; then LD=$CC; fi
903echo "$ac_t""LD defaults to $LD" 1>&6
904fi
905export LD
906
907# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000908if test "${with_ccopts+set}" = set; then
909 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000910 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000911CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +0000912fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000913echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500914echo "configure:915: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000915# On Suns, sometimes $CPP names a directory.
916if test -n "$CPP" && test -d "$CPP"; then
917 CPP=
918fi
919if test -z "$CPP"; then
920if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
922else
923 # This must be in double quotes, not single quotes, because CPP may get
924 # substituted into the Makefile and "${CC-cc}" will confuse make.
925 CPP="${CC-cc} -E"
926 # On the NeXT, cc -E runs the code through the compiler's parser,
927 # not just through cpp.
928 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500929#line 930 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000930#include "confdefs.h"
931#include <assert.h>
932Syntax Error
933EOF
934ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500935{ (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000936ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
937if test -z "$ac_err"; then
938 :
939else
940 echo "$ac_err" >&5
941 echo "configure: failed program was:" >&5
942 cat conftest.$ac_ext >&5
943 rm -rf conftest*
944 CPP="${CC-cc} -E -traditional-cpp"
945 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500946#line 947 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000947#include "confdefs.h"
948#include <assert.h>
949Syntax Error
950EOF
951ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500952{ (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000953ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
954if test -z "$ac_err"; then
955 :
956else
957 echo "$ac_err" >&5
958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
960 rm -rf conftest*
961 CPP="${CC-cc} -nologo -E"
962 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500963#line 964 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000964#include "confdefs.h"
965#include <assert.h>
966Syntax Error
967EOF
968ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500969{ (eval echo configure:970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000970ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
971if test -z "$ac_err"; then
972 :
973else
974 echo "$ac_err" >&5
975 echo "configure: failed program was:" >&5
976 cat conftest.$ac_ext >&5
977 rm -rf conftest*
978 CPP=/lib/cpp
979fi
980rm -f conftest*
981fi
982rm -f conftest*
983fi
984rm -f conftest*
985 ac_cv_prog_CPP="$CPP"
986fi
987 CPP="$ac_cv_prog_CPP"
988else
989 ac_cv_prog_CPP="$CPP"
990fi
991echo "$ac_t""$CPP" 1>&6
992
993ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
994echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -0500995echo "configure:996: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000996if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
998else
999 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001000#line 1001 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001001#include "confdefs.h"
1002#include <linux/fs.h>
1003EOF
1004ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001005{ (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001006ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1007if test -z "$ac_err"; then
1008 rm -rf conftest*
1009 eval "ac_cv_header_$ac_safe=yes"
1010else
1011 echo "$ac_err" >&5
1012 echo "configure: failed program was:" >&5
1013 cat conftest.$ac_ext >&5
1014 rm -rf conftest*
1015 eval "ac_cv_header_$ac_safe=no"
1016fi
1017rm -f conftest*
1018fi
1019if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1020 echo "$ac_t""yes" 1>&6
1021 linux_headers=yes
1022else
1023 echo "$ac_t""no" 1>&6
1024linux_headers=no
1025fi
1026
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001027if test "$linux_headers" != yes; then
1028 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001029fi
1030
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001031LIB_EXT=.a
1032STATIC_LIB_EXT=.a
1033PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001034# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001035if test "${with_ldopts+set}" = set; then
1036 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001037 echo "$ac_t""LDFLAGS is $withval" 1>&6
1038LDFLAGS=$withval
1039else
1040 LDFLAGS=
1041fi
1042
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001043# Check whether --with-root-prefix or --without-root-prefix was given.
1044if test "${with_root_prefix+set}" = set; then
1045 withval="$with_root_prefix"
1046 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001047else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001048 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001049fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001050# Check whether --enable-compression or --disable-compression was given.
1051if test "${enable_compression+set}" = set; then
1052 enableval="$enable_compression"
1053 if test "$enableval" = "no"
1054then
1055 echo "Disabling compression support"
1056else
1057 cat >> confdefs.h <<\EOF
1058#define ENABLE_COMPRESSION 1
1059EOF
1060
1061 echo "Enabling compression support"
1062 echo "WARNING: Compression support is experimental"
1063fi
1064
1065else
1066 echo "Disabling compression support by default"
1067
1068fi
1069
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001070# Check whether --enable-htree or --disable-htree was given.
1071if test "${enable_htree+set}" = set; then
1072 enableval="$enable_htree"
1073 if test "$enableval" = "no"
1074then
1075 HTREE_CMT=#
1076 echo "Disabling htree directory support"
1077else
1078 HTREE_CMT=
1079 cat >> confdefs.h <<\EOF
1080#define ENABLE_HTREE 1
1081EOF
1082
1083 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001084fi
1085
1086else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04001087 HTREE_CMT=
1088cat >> confdefs.h <<\EOF
1089#define ENABLE_HTREE 1
1090EOF
1091
1092echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04001093
1094fi
1095
1096
1097# Check whether --enable-htree-clear or --disable-htree-clear was given.
1098if test "${enable_htree_clear+set}" = set; then
1099 enableval="$enable_htree_clear"
1100 if test "$enableval" = "no"
1101then
1102 HTREE_CLR_CMT=#
1103 echo "Disabling htree clearing"
1104else
1105 HTREE_CLR_CMT=
1106 cat >> confdefs.h <<\EOF
1107#define ENABLE_HTREE_CLEAR 1
1108EOF
1109
1110 echo "Enabling htree clearing"
1111fi
1112
1113else
1114 HTREE_CLR_CMT=#
1115echo "Disabling htree clearing by default"
1116
1117fi
1118
1119
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001120EVMS_ABI_CODE=120
1121# Check whether --enable-evms-10 or --disable-evms-10 was given.
1122if test "${enable_evms_10+set}" = set; then
1123 enableval="$enable_evms_10"
1124 if test "$enableval" != "no"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001125then
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001126 EVMS_ABI_CODE=100
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001127 echo "Enabling EVMS 1.0.0 ABI"
1128fi
1129
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001130fi
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001131
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001132# Check whether --enable-evms-11 or --disable-evms-11 was given.
1133if test "${enable_evms_11+set}" = set; then
1134 enableval="$enable_evms_11"
1135 if test "$enableval" != "no"
1136then
1137 EVMS_ABI_CODE=110
1138 echo "Enabling EVMS 1.1.0 ABI"
1139fi
1140
1141fi
1142
1143if test "$EVMS_ABI_CODE" = "120"
1144then
1145 echo "Using EVMS 1.2.0 ABI by default"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04001146fi
1147
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001148# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001149if test "${enable_dll_shlibs+set}" = set; then
1150 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001151 if test "$enableval" = "no"
1152then
1153 DLL_CMT=#
1154 MAKEFILE_DLL=/dev/null
1155 echo "Disabling DLL shared libraries"
1156else
1157 DLL_CMT=
1158 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001159 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001160 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001161 echo "Enabling DLL shared libraries"
1162fi
1163
1164else
1165 MAKEFILE_DLL=/dev/null
1166DLL_CMT=#
1167echo "Disabling DLL shared libraries by default"
1168
1169fi
1170
1171
1172
1173# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001174if test "${enable_elf_shlibs+set}" = set; then
1175 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001176 if test "$enableval" = "no"
1177then
1178 ELF_CMT=#
1179 MAKEFILE_ELF=/dev/null
1180 echo "Disabling ELF shared libraries"
1181else
1182 ELF_CMT=
1183 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001184 case "$host_os" in
1185 solaris2.*)
1186 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1187 ;;
1188 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001189 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001190 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001191 echo "Enabling ELF shared libraries"
1192fi
1193
1194else
1195 MAKEFILE_ELF=/dev/null
1196ELF_CMT=#
1197echo "Disabling ELF shared libraries by default"
1198
1199fi
1200
1201
1202
1203# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001204if test "${enable_bsd_shlibs+set}" = set; then
1205 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001206 if test "$enableval" = "no"
1207then
1208 BSDLIB_CMT=#
1209 MAKEFILE_BSDLIB=/dev/null
1210 echo "Disabling BSD shared libraries"
1211else
1212 BSDLIB_CMT=
1213 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001214 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001215 echo "Enabling BSD shared libraries"
1216fi
1217
1218else
1219 MAKEFILE_BSDLIB=/dev/null
1220BSDLIB_CMT=#
1221echo "Disabling BSD shared libraries by default"
1222
1223fi
1224
1225
1226
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001227# Check whether --enable-profile or --disable-profile was given.
1228if test "${enable_profile+set}" = set; then
1229 enableval="$enable_profile"
1230 if test "$enableval" = "no"
1231then
1232 PROFILE_CMT=#
1233 MAKEFILE_PROFILE=/dev/null
1234 echo "Disabling profiling libraries"
1235else
1236 PROFILE_CMT=
1237 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1238 PROFILED_LIB_EXT=_p.a
1239 echo "Building profiling libraries"
1240fi
1241
1242else
1243 PROFILE_CMT=#
1244MAKEFILE_PROFILE=/dev/null
1245echo "Disabling profiling libraries by default"
1246
1247fi
1248
1249
1250
1251# Check whether --enable-checker or --disable-checker was given.
1252if test "${enable_checker+set}" = set; then
1253 enableval="$enable_checker"
1254 if test "$enableval" = "no"
1255then
1256 CHECKER_CMT=#
1257 MAKEFILE_CHECKER=/dev/null
1258 echo "Disabling checker libraries"
1259else
1260 CHECKER_CMT=
1261 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1262 echo "Building checker libraries"
1263fi
1264
1265else
1266 CHECKER_CMT=#
1267MAKEFILE_CHECKER=/dev/null
1268echo "Disabling checker libraries by default"
1269
1270fi
1271
1272
1273
1274
1275
1276
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001277# Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1278if test "${enable_jfs_debug+set}" = set; then
1279 enableval="$enable_jfs_debug"
1280 if test "$enableval" = "no"
1281then
1282 echo "Disabling journal debugging"
1283else
1284 cat >> confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05001285#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001286EOF
1287
1288 echo "Enabling journal debugging"
1289fi
1290
1291else
1292 echo "Disabling journal debugging by default"
1293
1294fi
1295
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001296# Check whether --enable-swapfs or --disable-swapfs was given.
1297if test "${enable_swapfs+set}" = set; then
1298 enableval="$enable_swapfs"
1299 if test "$enableval" = "no"
1300then
1301 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001302else
1303 cat >> confdefs.h <<\EOF
1304#define ENABLE_SWAPFS 1
1305EOF
1306
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001307 echo "Enabling swapfs support"
1308fi
1309
1310else
1311 echo "Enabling swapfs support by default"
1312cat >> confdefs.h <<\EOF
1313#define ENABLE_SWAPFS 1
1314EOF
1315
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001316
1317fi
1318
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001319# Check whether --enable-debugfs or --disable-debugfs was given.
1320if test "${enable_debugfs+set}" = set; then
1321 enableval="$enable_debugfs"
1322 if test "$enableval" = "no"
1323then
1324 echo "Disabling debugfs support"
1325 DEBUGFS_CMT="#"
1326else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001327 DEBUGFS_CMT=
1328 echo "Enabling debugfs support"
1329fi
1330
1331else
1332 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001333DEBUGFS_CMT=
1334
1335fi
1336
1337
1338# Check whether --enable-imager or --disable-imager was given.
1339if test "${enable_imager+set}" = set; then
1340 enableval="$enable_imager"
1341 if test "$enableval" = "no"
1342then
1343 echo "Disabling e2image support"
1344 IMAGER_CMT="#"
1345else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001346 IMAGER_CMT=
1347 echo "Enabling e2image support"
1348fi
1349
1350else
1351 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001352IMAGER_CMT=
1353
1354fi
1355
1356
1357# Check whether --enable-resizer or --disable-resizer was given.
1358if test "${enable_resizer+set}" = set; then
1359 enableval="$enable_resizer"
1360 if test "$enableval" = "no"
1361then
1362 echo "Disabling e2resize support"
1363 RESIZER_CMT="#"
1364else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001365 RESIZER_CMT=
1366 echo "Enabling e2resize support"
1367fi
1368
1369else
1370 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001371RESIZER_CMT=
1372
1373fi
1374
1375
1376# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1377if test "${enable_dynamic_e2fsck+set}" = set; then
1378 enableval="$enable_dynamic_e2fsck"
1379 if test "$enableval" = "no"
1380then
1381 E2FSCK_TYPE=static
1382 echo "Building e2fsck statically"
1383else
1384 E2FSCK_TYPE=shared
1385 echo "Building e2fsck dynamically"
1386fi
1387
1388else
1389 E2FSCK_TYPE=static
1390echo "Building e2fsck statically by default"
1391
1392fi
1393
1394
1395# Check whether --enable-fsck or --disable-fsck was given.
1396if test "${enable_fsck+set}" = set; then
1397 enableval="$enable_fsck"
1398 if test "$enableval" = "no"
1399then
1400 FSCK_PROG='' FSCK_MAN=''
1401 echo "Not building fsck wrapper"
1402else
1403 FSCK_PROG=fsck FSCK_MAN=fsck.8
1404 echo "Building fsck wrapper"
1405fi
1406
1407else
1408 case "$host_os" in
1409 gnu*)
1410 FSCK_PROG='' FSCK_MAN=''
1411 echo "Not building fsck wrapper by default"
1412 ;;
1413 *)
1414 FSCK_PROG=fsck FSCK_MAN=fsck.8
1415 echo "Building fsck wrapper by default"
1416esac
1417
1418fi
1419
1420
1421
1422MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1423
1424# Check whether --enable-old-bitops or --disable-old-bitops was given.
1425if test "${enable_old_bitops+set}" = set; then
1426 enableval="$enable_old_bitops"
1427 if test "$enableval" = "no"
1428then
1429 echo "Using new (standard) bitmask operations"
1430else
1431 cat >> confdefs.h <<\EOF
1432#define EXT2_OLD_BITOPS 1
1433EOF
1434
1435 echo "Using old (native) bitmask operations"
1436
1437fi
1438
1439else
1440 echo "Using standard bitmask operations by default"
1441
1442fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001443
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001444PACKAGE=e2fsprogs
1445VERSION="$E2FSPROGS_VERSION"
1446cat >> confdefs.h <<EOF
1447#define PACKAGE "$PACKAGE"
1448EOF
1449
1450cat >> confdefs.h <<EOF
1451#define VERSION "$VERSION"
1452EOF
1453
1454
1455
1456
Theodore Ts'o6e71e672001-10-08 12:51:00 -04001457ALL_LINGUAS="it nyc tr"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001458echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001459echo "configure:1460: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001460set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1461if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1463else
1464 cat > conftestmake <<\EOF
1465all:
1466 @echo 'ac_maketemp="${MAKE}"'
1467EOF
1468# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1469eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1470if test -n "$ac_maketemp"; then
1471 eval ac_cv_prog_make_${ac_make}_set=yes
1472else
1473 eval ac_cv_prog_make_${ac_make}_set=no
1474fi
1475rm -f conftestmake
1476fi
1477if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1478 echo "$ac_t""yes" 1>&6
1479 SET_MAKE=
1480else
1481 echo "$ac_t""no" 1>&6
1482 SET_MAKE="MAKE=${MAKE-make}"
1483fi
1484
1485# Extract the first word of "ranlib", so it can be a program name with args.
1486set dummy ranlib; ac_word=$2
1487echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001488echo "configure:1489: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001489if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1491else
1492 if test -n "$RANLIB"; then
1493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1494else
1495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1496 ac_dummy="$PATH"
1497 for ac_dir in $ac_dummy; do
1498 test -z "$ac_dir" && ac_dir=.
1499 if test -f $ac_dir/$ac_word; then
1500 ac_cv_prog_RANLIB="ranlib"
1501 break
1502 fi
1503 done
1504 IFS="$ac_save_ifs"
1505 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1506fi
1507fi
1508RANLIB="$ac_cv_prog_RANLIB"
1509if test -n "$RANLIB"; then
1510 echo "$ac_t""$RANLIB" 1>&6
1511else
1512 echo "$ac_t""no" 1>&6
1513fi
1514
1515echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001516echo "configure:1517: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001517if test -d /etc/conf/kconfig.d &&
1518 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1519then
1520 echo "$ac_t""yes" 1>&6
1521 ISC=yes # If later tests want to check for ISC.
1522 cat >> confdefs.h <<\EOF
1523#define _POSIX_SOURCE 1
1524EOF
1525
1526 if test "$GCC" = yes; then
1527 CC="$CC -posix"
1528 else
1529 CC="$CC -Xp"
1530 fi
1531else
1532 echo "$ac_t""no" 1>&6
1533 ISC=
1534fi
1535
1536echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001537echo "configure:1538: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001538if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540else
1541 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001542#line 1543 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001543#include "confdefs.h"
1544#include <stdlib.h>
1545#include <stdarg.h>
1546#include <string.h>
1547#include <float.h>
1548EOF
1549ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001550{ (eval echo configure:1551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001551ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1552if test -z "$ac_err"; then
1553 rm -rf conftest*
1554 ac_cv_header_stdc=yes
1555else
1556 echo "$ac_err" >&5
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1559 rm -rf conftest*
1560 ac_cv_header_stdc=no
1561fi
1562rm -f conftest*
1563
1564if test $ac_cv_header_stdc = yes; then
1565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1566cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001567#line 1568 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001568#include "confdefs.h"
1569#include <string.h>
1570EOF
1571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1572 egrep "memchr" >/dev/null 2>&1; then
1573 :
1574else
1575 rm -rf conftest*
1576 ac_cv_header_stdc=no
1577fi
1578rm -f conftest*
1579
1580fi
1581
1582if test $ac_cv_header_stdc = yes; then
1583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1584cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001585#line 1586 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001586#include "confdefs.h"
1587#include <stdlib.h>
1588EOF
1589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1590 egrep "free" >/dev/null 2>&1; then
1591 :
1592else
1593 rm -rf conftest*
1594 ac_cv_header_stdc=no
1595fi
1596rm -f conftest*
1597
1598fi
1599
1600if test $ac_cv_header_stdc = yes; then
1601 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1602if test "$cross_compiling" = yes; then
1603 :
1604else
1605 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001606#line 1607 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001607#include "confdefs.h"
1608#include <ctype.h>
1609#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1610#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1611#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1612int main () { int i; for (i = 0; i < 256; i++)
1613if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1614exit (0); }
1615
1616EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001617if { (eval echo configure:1618: \"$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 +00001618then
1619 :
1620else
1621 echo "configure: failed program was:" >&5
1622 cat conftest.$ac_ext >&5
1623 rm -fr conftest*
1624 ac_cv_header_stdc=no
1625fi
1626rm -fr conftest*
1627fi
1628
1629fi
1630fi
1631
1632echo "$ac_t""$ac_cv_header_stdc" 1>&6
1633if test $ac_cv_header_stdc = yes; then
1634 cat >> confdefs.h <<\EOF
1635#define STDC_HEADERS 1
1636EOF
1637
1638fi
1639
1640echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001641echo "configure:1642: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001642if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644else
1645 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001646#line 1647 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001647#include "confdefs.h"
1648
1649int main() {
1650
1651/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001652typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001653/* SunOS 4.1.1 cc rejects this. */
1654char const *const *ccp;
1655char **p;
1656/* NEC SVR4.0.2 mips cc rejects this. */
1657struct point {int x, y;};
1658static struct point const zero = {0,0};
1659/* AIX XL C 1.02.0.0 rejects this.
1660 It does not let you subtract one const X* pointer from another in an arm
1661 of an if-expression whose if-part is not a constant expression */
1662const char *g = "string";
1663ccp = &g + (g ? g-g : 0);
1664/* HPUX 7.0 cc rejects these. */
1665++ccp;
1666p = (char**) ccp;
1667ccp = (char const *const *) p;
1668{ /* SCO 3.2v4 cc rejects this. */
1669 char *t;
1670 char const *s = 0 ? (char *) 0 : (char const *) 0;
1671
1672 *t++ = 0;
1673}
1674{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1675 int x[] = {25, 17};
1676 const int *foo = &x[0];
1677 ++foo;
1678}
1679{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1680 typedef const int *iptr;
1681 iptr p = 0;
1682 ++p;
1683}
1684{ /* AIX XL C 1.02.0.0 rejects this saying
1685 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1686 struct s { int j; const int *ap[3]; };
1687 struct s *b; b->j = 5;
1688}
1689{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1690 const int foo = 10;
1691}
1692
1693; return 0; }
1694EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001695if { (eval echo configure:1696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001696 rm -rf conftest*
1697 ac_cv_c_const=yes
1698else
1699 echo "configure: failed program was:" >&5
1700 cat conftest.$ac_ext >&5
1701 rm -rf conftest*
1702 ac_cv_c_const=no
1703fi
1704rm -f conftest*
1705fi
1706
1707echo "$ac_t""$ac_cv_c_const" 1>&6
1708if test $ac_cv_c_const = no; then
1709 cat >> confdefs.h <<\EOF
1710#define const
1711EOF
1712
1713fi
1714
1715echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001716echo "configure:1717: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001717if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1719else
1720 ac_cv_c_inline=no
1721for ac_kw in inline __inline__ __inline; do
1722 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001723#line 1724 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001724#include "confdefs.h"
1725
1726int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001727} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001728; return 0; }
1729EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001730if { (eval echo configure:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001731 rm -rf conftest*
1732 ac_cv_c_inline=$ac_kw; break
1733else
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1736fi
1737rm -f conftest*
1738done
1739
1740fi
1741
1742echo "$ac_t""$ac_cv_c_inline" 1>&6
1743case "$ac_cv_c_inline" in
1744 inline | yes) ;;
1745 no) cat >> confdefs.h <<\EOF
1746#define inline
1747EOF
1748 ;;
1749 *) cat >> confdefs.h <<EOF
1750#define inline $ac_cv_c_inline
1751EOF
1752 ;;
1753esac
1754
1755echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001756echo "configure:1757: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001757if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1759else
1760 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001761#line 1762 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001762#include "confdefs.h"
1763#include <sys/types.h>
1764#if STDC_HEADERS
1765#include <stdlib.h>
1766#include <stddef.h>
1767#endif
1768EOF
1769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1770 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1771 rm -rf conftest*
1772 ac_cv_type_off_t=yes
1773else
1774 rm -rf conftest*
1775 ac_cv_type_off_t=no
1776fi
1777rm -f conftest*
1778
1779fi
1780echo "$ac_t""$ac_cv_type_off_t" 1>&6
1781if test $ac_cv_type_off_t = no; then
1782 cat >> confdefs.h <<\EOF
1783#define off_t long
1784EOF
1785
1786fi
1787
1788echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001789echo "configure:1790: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001790if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1792else
1793 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001794#line 1795 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001795#include "confdefs.h"
1796#include <sys/types.h>
1797#if STDC_HEADERS
1798#include <stdlib.h>
1799#include <stddef.h>
1800#endif
1801EOF
1802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1803 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1804 rm -rf conftest*
1805 ac_cv_type_size_t=yes
1806else
1807 rm -rf conftest*
1808 ac_cv_type_size_t=no
1809fi
1810rm -f conftest*
1811
1812fi
1813echo "$ac_t""$ac_cv_type_size_t" 1>&6
1814if test $ac_cv_type_size_t = no; then
1815 cat >> confdefs.h <<\EOF
1816#define size_t unsigned
1817EOF
1818
1819fi
1820
1821# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1822# for constant arguments. Useless!
1823echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001824echo "configure:1825: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001825if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1827else
1828 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001829#line 1830 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001830#include "confdefs.h"
1831#include <alloca.h>
1832int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001833char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001834; return 0; }
1835EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001836if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001837 rm -rf conftest*
1838 ac_cv_header_alloca_h=yes
1839else
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1842 rm -rf conftest*
1843 ac_cv_header_alloca_h=no
1844fi
1845rm -f conftest*
1846fi
1847
1848echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1849if test $ac_cv_header_alloca_h = yes; then
1850 cat >> confdefs.h <<\EOF
1851#define HAVE_ALLOCA_H 1
1852EOF
1853
1854fi
1855
1856echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001857echo "configure:1858: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001858if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860else
1861 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001862#line 1863 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001863#include "confdefs.h"
1864
1865#ifdef __GNUC__
1866# define alloca __builtin_alloca
1867#else
1868# ifdef _MSC_VER
1869# include <malloc.h>
1870# define alloca _alloca
1871# else
1872# if HAVE_ALLOCA_H
1873# include <alloca.h>
1874# else
1875# ifdef _AIX
1876 #pragma alloca
1877# else
1878# ifndef alloca /* predefined by HP cc +Olibcalls */
1879char *alloca ();
1880# endif
1881# endif
1882# endif
1883# endif
1884#endif
1885
1886int main() {
1887char *p = (char *) alloca(1);
1888; return 0; }
1889EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001890if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001891 rm -rf conftest*
1892 ac_cv_func_alloca_works=yes
1893else
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1896 rm -rf conftest*
1897 ac_cv_func_alloca_works=no
1898fi
1899rm -f conftest*
1900fi
1901
1902echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1903if test $ac_cv_func_alloca_works = yes; then
1904 cat >> confdefs.h <<\EOF
1905#define HAVE_ALLOCA 1
1906EOF
1907
1908fi
1909
1910if test $ac_cv_func_alloca_works = no; then
1911 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1912 # that cause trouble. Some versions do not even contain alloca or
1913 # contain a buggy version. If you still want to use their alloca,
1914 # use ar to extract alloca.o from them instead of compiling alloca.c.
1915 ALLOCA=alloca.${ac_objext}
1916 cat >> confdefs.h <<\EOF
1917#define C_ALLOCA 1
1918EOF
1919
1920
1921echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001922echo "configure:1923: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001923if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1925else
1926 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001927#line 1928 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001928#include "confdefs.h"
1929#if defined(CRAY) && ! defined(CRAY2)
1930webecray
1931#else
1932wenotbecray
1933#endif
1934
1935EOF
1936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1937 egrep "webecray" >/dev/null 2>&1; then
1938 rm -rf conftest*
1939 ac_cv_os_cray=yes
1940else
1941 rm -rf conftest*
1942 ac_cv_os_cray=no
1943fi
1944rm -f conftest*
1945
1946fi
1947
1948echo "$ac_t""$ac_cv_os_cray" 1>&6
1949if test $ac_cv_os_cray = yes; then
1950for ac_func in _getb67 GETB67 getb67; do
1951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001952echo "configure:1953: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001953if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1955else
1956 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001957#line 1958 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001958#include "confdefs.h"
1959/* System header to define __stub macros and hopefully few prototypes,
1960 which can conflict with char $ac_func(); below. */
1961#include <assert.h>
1962/* Override any gcc2 internal prototype to avoid an error. */
1963/* We use char because int might match the return type of a gcc2
1964 builtin and then its argument prototype would still apply. */
1965char $ac_func();
1966
1967int main() {
1968
1969/* The GNU C library defines this for functions which it implements
1970 to always fail with ENOSYS. Some functions are actually named
1971 something starting with __ and the normal name is an alias. */
1972#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1973choke me
1974#else
1975$ac_func();
1976#endif
1977
1978; return 0; }
1979EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05001980if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001981 rm -rf conftest*
1982 eval "ac_cv_func_$ac_func=yes"
1983else
1984 echo "configure: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1986 rm -rf conftest*
1987 eval "ac_cv_func_$ac_func=no"
1988fi
1989rm -f conftest*
1990fi
1991
1992if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1993 echo "$ac_t""yes" 1>&6
1994 cat >> confdefs.h <<EOF
1995#define CRAY_STACKSEG_END $ac_func
1996EOF
1997
1998 break
1999else
2000 echo "$ac_t""no" 1>&6
2001fi
2002
2003done
2004fi
2005
2006echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002007echo "configure:2008: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002008if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2010else
2011 if test "$cross_compiling" = yes; then
2012 ac_cv_c_stack_direction=0
2013else
2014 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002015#line 2016 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002016#include "confdefs.h"
2017find_stack_direction ()
2018{
2019 static char *addr = 0;
2020 auto char dummy;
2021 if (addr == 0)
2022 {
2023 addr = &dummy;
2024 return find_stack_direction ();
2025 }
2026 else
2027 return (&dummy > addr) ? 1 : -1;
2028}
2029main ()
2030{
2031 exit (find_stack_direction() < 0);
2032}
2033EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002034if { (eval echo configure:2035: \"$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 +00002035then
2036 ac_cv_c_stack_direction=1
2037else
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 rm -fr conftest*
2041 ac_cv_c_stack_direction=-1
2042fi
2043rm -fr conftest*
2044fi
2045
2046fi
2047
2048echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2049cat >> confdefs.h <<EOF
2050#define STACK_DIRECTION $ac_cv_c_stack_direction
2051EOF
2052
2053fi
2054
2055for ac_hdr in unistd.h
2056do
2057ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2058echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002059echo "configure:2060: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002060if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062else
2063 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002064#line 2065 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002065#include "confdefs.h"
2066#include <$ac_hdr>
2067EOF
2068ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002069{ (eval echo configure:2070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002070ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2071if test -z "$ac_err"; then
2072 rm -rf conftest*
2073 eval "ac_cv_header_$ac_safe=yes"
2074else
2075 echo "$ac_err" >&5
2076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2078 rm -rf conftest*
2079 eval "ac_cv_header_$ac_safe=no"
2080fi
2081rm -f conftest*
2082fi
2083if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2084 echo "$ac_t""yes" 1>&6
2085 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2086 cat >> confdefs.h <<EOF
2087#define $ac_tr_hdr 1
2088EOF
2089
2090else
2091 echo "$ac_t""no" 1>&6
2092fi
2093done
2094
2095for ac_func in getpagesize
2096do
2097echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002098echo "configure:2099: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002099if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2101else
2102 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002103#line 2104 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002104#include "confdefs.h"
2105/* System header to define __stub macros and hopefully few prototypes,
2106 which can conflict with char $ac_func(); below. */
2107#include <assert.h>
2108/* Override any gcc2 internal prototype to avoid an error. */
2109/* We use char because int might match the return type of a gcc2
2110 builtin and then its argument prototype would still apply. */
2111char $ac_func();
2112
2113int main() {
2114
2115/* The GNU C library defines this for functions which it implements
2116 to always fail with ENOSYS. Some functions are actually named
2117 something starting with __ and the normal name is an alias. */
2118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2119choke me
2120#else
2121$ac_func();
2122#endif
2123
2124; return 0; }
2125EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002126if { (eval echo configure:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002127 rm -rf conftest*
2128 eval "ac_cv_func_$ac_func=yes"
2129else
2130 echo "configure: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2132 rm -rf conftest*
2133 eval "ac_cv_func_$ac_func=no"
2134fi
2135rm -f conftest*
2136fi
2137
2138if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2139 echo "$ac_t""yes" 1>&6
2140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2141 cat >> confdefs.h <<EOF
2142#define $ac_tr_func 1
2143EOF
2144
2145else
2146 echo "$ac_t""no" 1>&6
2147fi
2148done
2149
2150echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002151echo "configure:2152: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002152if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2154else
2155 if test "$cross_compiling" = yes; then
2156 ac_cv_func_mmap_fixed_mapped=no
2157else
2158 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002159#line 2160 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002160#include "confdefs.h"
2161
2162/* Thanks to Mike Haertel and Jim Avera for this test.
2163 Here is a matrix of mmap possibilities:
2164 mmap private not fixed
2165 mmap private fixed at somewhere currently unmapped
2166 mmap private fixed at somewhere already mapped
2167 mmap shared not fixed
2168 mmap shared fixed at somewhere currently unmapped
2169 mmap shared fixed at somewhere already mapped
2170 For private mappings, we should verify that changes cannot be read()
2171 back from the file, nor mmap's back from the file at a different
2172 address. (There have been systems where private was not correctly
2173 implemented like the infamous i386 svr4.0, and systems where the
2174 VM page cache was not coherent with the filesystem buffer cache
2175 like early versions of FreeBSD and possibly contemporary NetBSD.)
2176 For shared mappings, we should conversely verify that changes get
2177 propogated back to all the places they're supposed to be.
2178
2179 Grep wants private fixed already mapped.
2180 The main things grep needs to know about mmap are:
2181 * does it exist and is it safe to write into the mmap'd area
2182 * how to use it (BSD variants) */
2183#include <sys/types.h>
2184#include <fcntl.h>
2185#include <sys/mman.h>
2186
2187/* This mess was copied from the GNU getpagesize.h. */
2188#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002189# ifdef HAVE_UNISTD_H
2190# include <unistd.h>
2191# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002192
2193/* Assume that all systems that can run configure have sys/param.h. */
2194# ifndef HAVE_SYS_PARAM_H
2195# define HAVE_SYS_PARAM_H 1
2196# endif
2197
2198# ifdef _SC_PAGESIZE
2199# define getpagesize() sysconf(_SC_PAGESIZE)
2200# else /* no _SC_PAGESIZE */
2201# ifdef HAVE_SYS_PARAM_H
2202# include <sys/param.h>
2203# ifdef EXEC_PAGESIZE
2204# define getpagesize() EXEC_PAGESIZE
2205# else /* no EXEC_PAGESIZE */
2206# ifdef NBPG
2207# define getpagesize() NBPG * CLSIZE
2208# ifndef CLSIZE
2209# define CLSIZE 1
2210# endif /* no CLSIZE */
2211# else /* no NBPG */
2212# ifdef NBPC
2213# define getpagesize() NBPC
2214# else /* no NBPC */
2215# ifdef PAGESIZE
2216# define getpagesize() PAGESIZE
2217# endif /* PAGESIZE */
2218# endif /* no NBPC */
2219# endif /* no NBPG */
2220# endif /* no EXEC_PAGESIZE */
2221# else /* no HAVE_SYS_PARAM_H */
2222# define getpagesize() 8192 /* punt totally */
2223# endif /* no HAVE_SYS_PARAM_H */
2224# endif /* no _SC_PAGESIZE */
2225
2226#endif /* no HAVE_GETPAGESIZE */
2227
2228#ifdef __cplusplus
2229extern "C" { void *malloc(unsigned); }
2230#else
2231char *malloc();
2232#endif
2233
2234int
2235main()
2236{
2237 char *data, *data2, *data3;
2238 int i, pagesize;
2239 int fd;
2240
2241 pagesize = getpagesize();
2242
2243 /*
2244 * First, make a file with some known garbage in it.
2245 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002246 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002247 if (!data)
2248 exit(1);
2249 for (i = 0; i < pagesize; ++i)
2250 *(data + i) = rand();
2251 umask(0);
2252 fd = creat("conftestmmap", 0600);
2253 if (fd < 0)
2254 exit(1);
2255 if (write(fd, data, pagesize) != pagesize)
2256 exit(1);
2257 close(fd);
2258
2259 /*
2260 * Next, try to mmap the file at a fixed address which
2261 * already has something else allocated at it. If we can,
2262 * also make sure that we see the same garbage.
2263 */
2264 fd = open("conftestmmap", O_RDWR);
2265 if (fd < 0)
2266 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002267 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002268 if (!data2)
2269 exit(1);
2270 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2271 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2272 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2273 exit(1);
2274 for (i = 0; i < pagesize; ++i)
2275 if (*(data + i) != *(data2 + i))
2276 exit(1);
2277
2278 /*
2279 * Finally, make sure that changes to the mapped area
2280 * do not percolate back to the file as seen by read().
2281 * (This is a bug on some variants of i386 svr4.0.)
2282 */
2283 for (i = 0; i < pagesize; ++i)
2284 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002285 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002286 if (!data3)
2287 exit(1);
2288 if (read(fd, data3, pagesize) != pagesize)
2289 exit(1);
2290 for (i = 0; i < pagesize; ++i)
2291 if (*(data + i) != *(data3 + i))
2292 exit(1);
2293 close(fd);
2294 unlink("conftestmmap");
2295 exit(0);
2296}
2297
2298EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002299if { (eval echo configure:2300: \"$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 +00002300then
2301 ac_cv_func_mmap_fixed_mapped=yes
2302else
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2305 rm -fr conftest*
2306 ac_cv_func_mmap_fixed_mapped=no
2307fi
2308rm -fr conftest*
2309fi
2310
2311fi
2312
2313echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2314if test $ac_cv_func_mmap_fixed_mapped = yes; then
2315 cat >> confdefs.h <<\EOF
2316#define HAVE_MMAP 1
2317EOF
2318
2319fi
2320
2321
2322 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2323unistd.h sys/param.h
2324do
2325ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2326echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002327echo "configure:2328: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002328if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330else
2331 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002332#line 2333 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002333#include "confdefs.h"
2334#include <$ac_hdr>
2335EOF
2336ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002337{ (eval echo configure:2338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002338ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2339if test -z "$ac_err"; then
2340 rm -rf conftest*
2341 eval "ac_cv_header_$ac_safe=yes"
2342else
2343 echo "$ac_err" >&5
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2346 rm -rf conftest*
2347 eval "ac_cv_header_$ac_safe=no"
2348fi
2349rm -f conftest*
2350fi
2351if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2352 echo "$ac_t""yes" 1>&6
2353 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2354 cat >> confdefs.h <<EOF
2355#define $ac_tr_hdr 1
2356EOF
2357
2358else
2359 echo "$ac_t""no" 1>&6
2360fi
2361done
2362
2363 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2364strdup __argz_count __argz_stringify __argz_next
2365do
2366echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002367echo "configure:2368: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002368if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2370else
2371 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002372#line 2373 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002373#include "confdefs.h"
2374/* System header to define __stub macros and hopefully few prototypes,
2375 which can conflict with char $ac_func(); below. */
2376#include <assert.h>
2377/* Override any gcc2 internal prototype to avoid an error. */
2378/* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2380char $ac_func();
2381
2382int main() {
2383
2384/* The GNU C library defines this for functions which it implements
2385 to always fail with ENOSYS. Some functions are actually named
2386 something starting with __ and the normal name is an alias. */
2387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2388choke me
2389#else
2390$ac_func();
2391#endif
2392
2393; return 0; }
2394EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002395if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002396 rm -rf conftest*
2397 eval "ac_cv_func_$ac_func=yes"
2398else
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2401 rm -rf conftest*
2402 eval "ac_cv_func_$ac_func=no"
2403fi
2404rm -f conftest*
2405fi
2406
2407if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2410 cat >> confdefs.h <<EOF
2411#define $ac_tr_func 1
2412EOF
2413
2414else
2415 echo "$ac_t""no" 1>&6
2416fi
2417done
2418
2419
2420 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2421 for ac_func in stpcpy
2422do
2423echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002424echo "configure:2425: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002425if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2427else
2428 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002429#line 2430 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002430#include "confdefs.h"
2431/* System header to define __stub macros and hopefully few prototypes,
2432 which can conflict with char $ac_func(); below. */
2433#include <assert.h>
2434/* Override any gcc2 internal prototype to avoid an error. */
2435/* We use char because int might match the return type of a gcc2
2436 builtin and then its argument prototype would still apply. */
2437char $ac_func();
2438
2439int main() {
2440
2441/* The GNU C library defines this for functions which it implements
2442 to always fail with ENOSYS. Some functions are actually named
2443 something starting with __ and the normal name is an alias. */
2444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2445choke me
2446#else
2447$ac_func();
2448#endif
2449
2450; return 0; }
2451EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002452if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002453 rm -rf conftest*
2454 eval "ac_cv_func_$ac_func=yes"
2455else
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 rm -rf conftest*
2459 eval "ac_cv_func_$ac_func=no"
2460fi
2461rm -f conftest*
2462fi
2463
2464if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2465 echo "$ac_t""yes" 1>&6
2466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2467 cat >> confdefs.h <<EOF
2468#define $ac_tr_func 1
2469EOF
2470
2471else
2472 echo "$ac_t""no" 1>&6
2473fi
2474done
2475
2476 fi
2477 if test "${ac_cv_func_stpcpy}" = "yes"; then
2478 cat >> confdefs.h <<\EOF
2479#define HAVE_STPCPY 1
2480EOF
2481
2482 fi
2483
2484 if test $ac_cv_header_locale_h = yes; then
2485 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002486echo "configure:2487: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002487if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2489else
2490 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002491#line 2492 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002492#include "confdefs.h"
2493#include <locale.h>
2494int main() {
2495return LC_MESSAGES
2496; return 0; }
2497EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002498if { (eval echo configure:2499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002499 rm -rf conftest*
2500 am_cv_val_LC_MESSAGES=yes
2501else
2502 echo "configure: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2504 rm -rf conftest*
2505 am_cv_val_LC_MESSAGES=no
2506fi
2507rm -f conftest*
2508fi
2509
2510echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2511 if test $am_cv_val_LC_MESSAGES = yes; then
2512 cat >> confdefs.h <<\EOF
2513#define HAVE_LC_MESSAGES 1
2514EOF
2515
2516 fi
2517 fi
2518 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002519echo "configure:2520: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002520 # Check whether --enable-nls or --disable-nls was given.
2521if test "${enable_nls+set}" = set; then
2522 enableval="$enable_nls"
2523 USE_NLS=$enableval
2524else
2525 USE_NLS=no
2526fi
2527
2528 echo "$ac_t""$USE_NLS" 1>&6
2529
2530
2531 USE_INCLUDED_LIBINTL=no
2532
2533 if test "$USE_NLS" = "yes"; then
2534 cat >> confdefs.h <<\EOF
2535#define ENABLE_NLS 1
2536EOF
2537
2538 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002539echo "configure:2540: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002540 # Check whether --with-included-gettext or --without-included-gettext was given.
2541if test "${with_included_gettext+set}" = set; then
2542 withval="$with_included_gettext"
2543 nls_cv_force_use_gnu_gettext=$withval
2544else
2545 nls_cv_force_use_gnu_gettext=no
2546fi
2547
2548 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2549
2550 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2551 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2552 nls_cv_header_intl=
2553 nls_cv_header_libgt=
2554 CATOBJEXT=NONE
2555
2556 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2557echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002558echo "configure:2559: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002559if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2561else
2562 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002563#line 2564 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002564#include "confdefs.h"
2565#include <libintl.h>
2566EOF
2567ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002568{ (eval echo configure:2569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002569ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2570if test -z "$ac_err"; then
2571 rm -rf conftest*
2572 eval "ac_cv_header_$ac_safe=yes"
2573else
2574 echo "$ac_err" >&5
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2577 rm -rf conftest*
2578 eval "ac_cv_header_$ac_safe=no"
2579fi
2580rm -f conftest*
2581fi
2582if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2583 echo "$ac_t""yes" 1>&6
2584 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002585echo "configure:2586: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002586if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2588else
2589 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002590#line 2591 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002591#include "confdefs.h"
2592#include <libintl.h>
2593int main() {
2594return (int) gettext ("")
2595; return 0; }
2596EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002597if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002598 rm -rf conftest*
2599 gt_cv_func_gettext_libc=yes
2600else
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 rm -rf conftest*
2604 gt_cv_func_gettext_libc=no
2605fi
2606rm -f conftest*
2607fi
2608
2609echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2610
2611 if test "$gt_cv_func_gettext_libc" != "yes"; then
2612 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002613echo "configure:2614: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002614ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2615if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2617else
2618 ac_save_LIBS="$LIBS"
2619LIBS="-lintl $LIBS"
2620cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002621#line 2622 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002622#include "confdefs.h"
2623/* Override any gcc2 internal prototype to avoid an error. */
2624/* We use char because int might match the return type of a gcc2
2625 builtin and then its argument prototype would still apply. */
2626char bindtextdomain();
2627
2628int main() {
2629bindtextdomain()
2630; return 0; }
2631EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002632if { (eval echo configure:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002633 rm -rf conftest*
2634 eval "ac_cv_lib_$ac_lib_var=yes"
2635else
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 rm -rf conftest*
2639 eval "ac_cv_lib_$ac_lib_var=no"
2640fi
2641rm -f conftest*
2642LIBS="$ac_save_LIBS"
2643
2644fi
2645if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2646 echo "$ac_t""yes" 1>&6
2647 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002648echo "configure:2649: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002649if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2651else
2652 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002653echo "configure:2654: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002654ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2655if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2657else
2658 ac_save_LIBS="$LIBS"
2659LIBS="-lintl $LIBS"
2660cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002661#line 2662 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002662#include "confdefs.h"
2663/* Override any gcc2 internal prototype to avoid an error. */
2664/* We use char because int might match the return type of a gcc2
2665 builtin and then its argument prototype would still apply. */
2666char gettext();
2667
2668int main() {
2669gettext()
2670; return 0; }
2671EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002672if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002673 rm -rf conftest*
2674 eval "ac_cv_lib_$ac_lib_var=yes"
2675else
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2678 rm -rf conftest*
2679 eval "ac_cv_lib_$ac_lib_var=no"
2680fi
2681rm -f conftest*
2682LIBS="$ac_save_LIBS"
2683
2684fi
2685if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 gt_cv_func_gettext_libintl=yes
2688else
2689 echo "$ac_t""no" 1>&6
2690gt_cv_func_gettext_libintl=no
2691fi
2692
2693fi
2694
2695echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2696else
2697 echo "$ac_t""no" 1>&6
2698fi
2699
2700 fi
2701
2702 if test "$gt_cv_func_gettext_libc" = "yes" \
2703 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2704 cat >> confdefs.h <<\EOF
2705#define HAVE_GETTEXT 1
2706EOF
2707
2708 # Extract the first word of "msgfmt", so it can be a program name with args.
2709set dummy msgfmt; ac_word=$2
2710echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002711echo "configure:2712: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002712if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2714else
2715 case "$MSGFMT" in
2716 /*)
2717 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2718 ;;
2719 *)
2720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2721 for ac_dir in $PATH; do
2722 test -z "$ac_dir" && ac_dir=.
2723 if test -f $ac_dir/$ac_word; then
2724 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2725 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2726 break
2727 fi
2728 fi
2729 done
2730 IFS="$ac_save_ifs"
2731 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2732 ;;
2733esac
2734fi
2735MSGFMT="$ac_cv_path_MSGFMT"
2736if test -n "$MSGFMT"; then
2737 echo "$ac_t""$MSGFMT" 1>&6
2738else
2739 echo "$ac_t""no" 1>&6
2740fi
2741 if test "$MSGFMT" != "no"; then
2742 for ac_func in dcgettext
2743do
2744echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002745echo "configure:2746: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002746if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2748else
2749 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002750#line 2751 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002751#include "confdefs.h"
2752/* System header to define __stub macros and hopefully few prototypes,
2753 which can conflict with char $ac_func(); below. */
2754#include <assert.h>
2755/* Override any gcc2 internal prototype to avoid an error. */
2756/* We use char because int might match the return type of a gcc2
2757 builtin and then its argument prototype would still apply. */
2758char $ac_func();
2759
2760int main() {
2761
2762/* The GNU C library defines this for functions which it implements
2763 to always fail with ENOSYS. Some functions are actually named
2764 something starting with __ and the normal name is an alias. */
2765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2766choke me
2767#else
2768$ac_func();
2769#endif
2770
2771; return 0; }
2772EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002773if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002774 rm -rf conftest*
2775 eval "ac_cv_func_$ac_func=yes"
2776else
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2779 rm -rf conftest*
2780 eval "ac_cv_func_$ac_func=no"
2781fi
2782rm -f conftest*
2783fi
2784
2785if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2786 echo "$ac_t""yes" 1>&6
2787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2788 cat >> confdefs.h <<EOF
2789#define $ac_tr_func 1
2790EOF
2791
2792else
2793 echo "$ac_t""no" 1>&6
2794fi
2795done
2796
2797 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2798set dummy gmsgfmt; ac_word=$2
2799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002800echo "configure:2801: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002801if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2803else
2804 case "$GMSGFMT" in
2805 /*)
2806 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2807 ;;
2808 ?:/*)
2809 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2810 ;;
2811 *)
2812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2813 ac_dummy="$PATH"
2814 for ac_dir in $ac_dummy; do
2815 test -z "$ac_dir" && ac_dir=.
2816 if test -f $ac_dir/$ac_word; then
2817 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2818 break
2819 fi
2820 done
2821 IFS="$ac_save_ifs"
2822 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2823 ;;
2824esac
2825fi
2826GMSGFMT="$ac_cv_path_GMSGFMT"
2827if test -n "$GMSGFMT"; then
2828 echo "$ac_t""$GMSGFMT" 1>&6
2829else
2830 echo "$ac_t""no" 1>&6
2831fi
2832
2833 # Extract the first word of "xgettext", so it can be a program name with args.
2834set dummy xgettext; ac_word=$2
2835echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002836echo "configure:2837: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002837if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2838 echo $ac_n "(cached) $ac_c" 1>&6
2839else
2840 case "$XGETTEXT" in
2841 /*)
2842 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2843 ;;
2844 *)
2845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2846 for ac_dir in $PATH; do
2847 test -z "$ac_dir" && ac_dir=.
2848 if test -f $ac_dir/$ac_word; then
2849 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2850 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2851 break
2852 fi
2853 fi
2854 done
2855 IFS="$ac_save_ifs"
2856 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2857 ;;
2858esac
2859fi
2860XGETTEXT="$ac_cv_path_XGETTEXT"
2861if test -n "$XGETTEXT"; then
2862 echo "$ac_t""$XGETTEXT" 1>&6
2863else
2864 echo "$ac_t""no" 1>&6
2865fi
2866
2867 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002868#line 2869 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002869#include "confdefs.h"
2870
2871int main() {
2872extern int _nl_msg_cat_cntr;
2873 return _nl_msg_cat_cntr
2874; return 0; }
2875EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002876if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002877 rm -rf conftest*
2878 CATOBJEXT=.gmo
2879 DATADIRNAME=share
2880else
2881 echo "configure: failed program was:" >&5
2882 cat conftest.$ac_ext >&5
2883 rm -rf conftest*
2884 CATOBJEXT=.mo
2885 DATADIRNAME=lib
2886fi
2887rm -f conftest*
2888 INSTOBJEXT=.mo
2889 fi
2890 fi
2891
2892else
2893 echo "$ac_t""no" 1>&6
2894fi
2895
2896
2897 if test "$CATOBJEXT" = "NONE"; then
2898 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002899echo "configure:2900: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002900 # Check whether --with-catgets or --without-catgets was given.
2901if test "${with_catgets+set}" = set; then
2902 withval="$with_catgets"
2903 nls_cv_use_catgets=$withval
2904else
2905 nls_cv_use_catgets=no
2906fi
2907
2908 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2909
2910 if test "$nls_cv_use_catgets" = "yes"; then
2911 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002912echo "configure:2913: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002913ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2914if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2916else
2917 ac_save_LIBS="$LIBS"
2918LIBS="-li $LIBS"
2919cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002920#line 2921 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002921#include "confdefs.h"
2922
2923int main() {
2924main()
2925; return 0; }
2926EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002927if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002928 rm -rf conftest*
2929 eval "ac_cv_lib_$ac_lib_var=yes"
2930else
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 rm -rf conftest*
2934 eval "ac_cv_lib_$ac_lib_var=no"
2935fi
2936rm -f conftest*
2937LIBS="$ac_save_LIBS"
2938
2939fi
2940if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2941 echo "$ac_t""yes" 1>&6
2942 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2943 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2944 cat >> confdefs.h <<EOF
2945#define $ac_tr_lib 1
2946EOF
2947
2948 LIBS="-li $LIBS"
2949
2950else
2951 echo "$ac_t""no" 1>&6
2952fi
2953
2954 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002955echo "configure:2956: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002956if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2958else
2959 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002960#line 2961 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002961#include "confdefs.h"
2962/* System header to define __stub macros and hopefully few prototypes,
2963 which can conflict with char catgets(); below. */
2964#include <assert.h>
2965/* Override any gcc2 internal prototype to avoid an error. */
2966/* We use char because int might match the return type of a gcc2
2967 builtin and then its argument prototype would still apply. */
2968char catgets();
2969
2970int main() {
2971
2972/* The GNU C library defines this for functions which it implements
2973 to always fail with ENOSYS. Some functions are actually named
2974 something starting with __ and the normal name is an alias. */
2975#if defined (__stub_catgets) || defined (__stub___catgets)
2976choke me
2977#else
2978catgets();
2979#endif
2980
2981; return 0; }
2982EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002983if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002984 rm -rf conftest*
2985 eval "ac_cv_func_catgets=yes"
2986else
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2989 rm -rf conftest*
2990 eval "ac_cv_func_catgets=no"
2991fi
2992rm -f conftest*
2993fi
2994
2995if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2996 echo "$ac_t""yes" 1>&6
2997 cat >> confdefs.h <<\EOF
2998#define HAVE_CATGETS 1
2999EOF
3000
3001 INTLOBJS="\$(CATOBJS)"
3002 # Extract the first word of "gencat", so it can be a program name with args.
3003set dummy gencat; ac_word=$2
3004echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003005echo "configure:3006: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003006if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3008else
3009 case "$GENCAT" in
3010 /*)
3011 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3012 ;;
3013 ?:/*)
3014 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3015 ;;
3016 *)
3017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3018 ac_dummy="$PATH"
3019 for ac_dir in $ac_dummy; do
3020 test -z "$ac_dir" && ac_dir=.
3021 if test -f $ac_dir/$ac_word; then
3022 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3023 break
3024 fi
3025 done
3026 IFS="$ac_save_ifs"
3027 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3028 ;;
3029esac
3030fi
3031GENCAT="$ac_cv_path_GENCAT"
3032if test -n "$GENCAT"; then
3033 echo "$ac_t""$GENCAT" 1>&6
3034else
3035 echo "$ac_t""no" 1>&6
3036fi
3037 if test "$GENCAT" != "no"; then
3038 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3039set dummy gmsgfmt; ac_word=$2
3040echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003041echo "configure:3042: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003042if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3044else
3045 case "$GMSGFMT" in
3046 /*)
3047 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3048 ;;
3049 ?:/*)
3050 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3051 ;;
3052 *)
3053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3054 ac_dummy="$PATH"
3055 for ac_dir in $ac_dummy; do
3056 test -z "$ac_dir" && ac_dir=.
3057 if test -f $ac_dir/$ac_word; then
3058 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3059 break
3060 fi
3061 done
3062 IFS="$ac_save_ifs"
3063 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3064 ;;
3065esac
3066fi
3067GMSGFMT="$ac_cv_path_GMSGFMT"
3068if test -n "$GMSGFMT"; then
3069 echo "$ac_t""$GMSGFMT" 1>&6
3070else
3071 echo "$ac_t""no" 1>&6
3072fi
3073
3074 if test "$GMSGFMT" = "no"; then
3075 # Extract the first word of "msgfmt", so it can be a program name with args.
3076set dummy msgfmt; ac_word=$2
3077echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003078echo "configure:3079: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003079if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3081else
3082 case "$GMSGFMT" in
3083 /*)
3084 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3085 ;;
3086 *)
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3088 for ac_dir in $PATH; do
3089 test -z "$ac_dir" && ac_dir=.
3090 if test -f $ac_dir/$ac_word; then
3091 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3092 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3093 break
3094 fi
3095 fi
3096 done
3097 IFS="$ac_save_ifs"
3098 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3099 ;;
3100esac
3101fi
3102GMSGFMT="$ac_cv_path_GMSGFMT"
3103if test -n "$GMSGFMT"; then
3104 echo "$ac_t""$GMSGFMT" 1>&6
3105else
3106 echo "$ac_t""no" 1>&6
3107fi
3108
3109 fi
3110 # Extract the first word of "xgettext", so it can be a program name with args.
3111set dummy xgettext; ac_word=$2
3112echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003113echo "configure:3114: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003114if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3116else
3117 case "$XGETTEXT" in
3118 /*)
3119 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3120 ;;
3121 *)
3122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3123 for ac_dir in $PATH; do
3124 test -z "$ac_dir" && ac_dir=.
3125 if test -f $ac_dir/$ac_word; then
3126 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3127 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3128 break
3129 fi
3130 fi
3131 done
3132 IFS="$ac_save_ifs"
3133 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3134 ;;
3135esac
3136fi
3137XGETTEXT="$ac_cv_path_XGETTEXT"
3138if test -n "$XGETTEXT"; then
3139 echo "$ac_t""$XGETTEXT" 1>&6
3140else
3141 echo "$ac_t""no" 1>&6
3142fi
3143
3144 USE_INCLUDED_LIBINTL=yes
3145 CATOBJEXT=.cat
3146 INSTOBJEXT=.cat
3147 DATADIRNAME=lib
3148 INTLDEPS='$(top_builddir)/intl/libintl.a'
3149 INTLLIBS=$INTLDEPS
3150 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3151 nls_cv_header_intl=intl/libintl.h
3152 nls_cv_header_libgt=intl/libgettext.h
3153 fi
3154else
3155 echo "$ac_t""no" 1>&6
3156fi
3157
3158 fi
3159 fi
3160
3161 if test "$CATOBJEXT" = "NONE"; then
3162 nls_cv_use_gnu_gettext=yes
3163 fi
3164 fi
3165
3166 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3167 INTLOBJS="\$(GETTOBJS)"
3168 # Extract the first word of "msgfmt", so it can be a program name with args.
3169set dummy msgfmt; ac_word=$2
3170echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003171echo "configure:3172: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003172if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3174else
3175 case "$MSGFMT" in
3176 /*)
3177 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3178 ;;
3179 *)
3180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3181 for ac_dir in $PATH; do
3182 test -z "$ac_dir" && ac_dir=.
3183 if test -f $ac_dir/$ac_word; then
3184 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3185 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3186 break
3187 fi
3188 fi
3189 done
3190 IFS="$ac_save_ifs"
3191 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3192 ;;
3193esac
3194fi
3195MSGFMT="$ac_cv_path_MSGFMT"
3196if test -n "$MSGFMT"; then
3197 echo "$ac_t""$MSGFMT" 1>&6
3198else
3199 echo "$ac_t""no" 1>&6
3200fi
3201
3202 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3203set dummy gmsgfmt; ac_word=$2
3204echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003205echo "configure:3206: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003206if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3208else
3209 case "$GMSGFMT" in
3210 /*)
3211 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3212 ;;
3213 ?:/*)
3214 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3215 ;;
3216 *)
3217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3218 ac_dummy="$PATH"
3219 for ac_dir in $ac_dummy; do
3220 test -z "$ac_dir" && ac_dir=.
3221 if test -f $ac_dir/$ac_word; then
3222 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3223 break
3224 fi
3225 done
3226 IFS="$ac_save_ifs"
3227 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3228 ;;
3229esac
3230fi
3231GMSGFMT="$ac_cv_path_GMSGFMT"
3232if test -n "$GMSGFMT"; then
3233 echo "$ac_t""$GMSGFMT" 1>&6
3234else
3235 echo "$ac_t""no" 1>&6
3236fi
3237
3238 # Extract the first word of "xgettext", so it can be a program name with args.
3239set dummy xgettext; ac_word=$2
3240echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003241echo "configure:3242: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003242if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3244else
3245 case "$XGETTEXT" in
3246 /*)
3247 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3248 ;;
3249 *)
3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3251 for ac_dir in $PATH; do
3252 test -z "$ac_dir" && ac_dir=.
3253 if test -f $ac_dir/$ac_word; then
3254 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3255 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3256 break
3257 fi
3258 fi
3259 done
3260 IFS="$ac_save_ifs"
3261 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3262 ;;
3263esac
3264fi
3265XGETTEXT="$ac_cv_path_XGETTEXT"
3266if test -n "$XGETTEXT"; then
3267 echo "$ac_t""$XGETTEXT" 1>&6
3268else
3269 echo "$ac_t""no" 1>&6
3270fi
3271
3272
3273 USE_INCLUDED_LIBINTL=yes
3274 CATOBJEXT=.gmo
3275 INSTOBJEXT=.mo
3276 DATADIRNAME=share
3277 INTLDEPS='$(top_builddir)/intl/libintl.a'
3278 INTLLIBS=$INTLDEPS
3279 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3280 nls_cv_header_intl=intl/libintl.h
3281 nls_cv_header_libgt=intl/libgettext.h
3282 fi
3283
3284 if test "$XGETTEXT" != ":"; then
3285 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3286 : ;
3287 else
3288 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3289 XGETTEXT=":"
3290 fi
3291 fi
3292
3293 # We need to process the po/ directory.
3294 POSUB=po
3295 else
3296 DATADIRNAME=share
3297 nls_cv_header_intl=intl/libintl.h
3298 nls_cv_header_libgt=intl/libgettext.h
3299 fi
3300
3301
3302
3303
3304 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3305 # because some of the sources are only built for this goal.
3306 if test "$PACKAGE" = gettext; then
3307 USE_NLS=yes
3308 USE_INCLUDED_LIBINTL=yes
3309 fi
3310
3311 for lang in $ALL_LINGUAS; do
3312 GMOFILES="$GMOFILES $lang.gmo"
3313 POFILES="$POFILES $lang.po"
3314 done
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329 if test "x$CATOBJEXT" != "x"; then
3330 if test "x$ALL_LINGUAS" = "x"; then
3331 LINGUAS=
3332 else
3333 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003334echo "configure:3335: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003335 NEW_LINGUAS=
3336 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3337 case "$ALL_LINGUAS" in
3338 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3339 esac
3340 done
3341 LINGUAS=$NEW_LINGUAS
3342 echo "$ac_t""$LINGUAS" 1>&6
3343 fi
3344
3345 if test -n "$LINGUAS"; then
3346 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3347 fi
3348 fi
3349
3350 if test $ac_cv_header_locale_h = yes; then
3351 INCLUDE_LOCALE_H="#include <locale.h>"
3352 else
3353 INCLUDE_LOCALE_H="\
3354/* The system does not provide the header <locale.h>. Take care yourself. */"
3355 fi
3356
3357
3358 test -d intl || mkdir intl
3359 if test "$CATOBJEXT" = ".cat"; then
3360 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3361echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003362echo "configure:3363: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003363if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3365else
3366 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003367#line 3368 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003368#include "confdefs.h"
3369#include <linux/version.h>
3370EOF
3371ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003372{ (eval echo configure:3373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003373ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3374if test -z "$ac_err"; then
3375 rm -rf conftest*
3376 eval "ac_cv_header_$ac_safe=yes"
3377else
3378 echo "$ac_err" >&5
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3381 rm -rf conftest*
3382 eval "ac_cv_header_$ac_safe=no"
3383fi
3384rm -f conftest*
3385fi
3386if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3388 msgformat=linux
3389else
3390 echo "$ac_t""no" 1>&6
3391msgformat=xopen
3392fi
3393
3394
3395 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3396 fi
3397 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3398 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3399
3400 if test "$PACKAGE" = "gettext"; then
3401 GT_NO="#NO#"
3402 GT_YES=
3403 else
3404 GT_NO=
3405 GT_YES="#YES#"
3406 fi
3407
3408
3409
3410 MKINSTALLDIRS=
3411 if test -n "$ac_aux_dir"; then
3412 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3413 fi
3414 if test -z "$MKINSTALLDIRS"; then
3415 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3416 fi
3417
3418
3419 l=
3420
3421
3422 test -d po || mkdir po
3423 if test "x$srcdir" != "x."; then
3424 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3425 posrcprefix="$srcdir/"
3426 else
3427 posrcprefix="../$srcdir/"
3428 fi
3429 else
3430 posrcprefix="../"
3431 fi
3432 rm -f po/POTFILES
3433 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3434 < $srcdir/po/POTFILES.in > po/POTFILES
3435
Theodore Ts'o74becf31997-04-26 14:37:06 +00003436
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003437echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003438echo "configure:3439: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003439set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003440if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3442else
3443 cat > conftestmake <<\EOF
3444all:
3445 @echo 'ac_maketemp="${MAKE}"'
3446EOF
3447# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3448eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3449if test -n "$ac_maketemp"; then
3450 eval ac_cv_prog_make_${ac_make}_set=yes
3451else
3452 eval ac_cv_prog_make_${ac_make}_set=no
3453fi
3454rm -f conftestmake
3455fi
3456if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3457 echo "$ac_t""yes" 1>&6
3458 SET_MAKE=
3459else
3460 echo "$ac_t""no" 1>&6
3461 SET_MAKE="MAKE=${MAKE-make}"
3462fi
3463
3464# Extract the first word of "ln", so it can be a program name with args.
3465set dummy ln; ac_word=$2
3466echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003467echo "configure:3468: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003468if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3470else
3471 case "$LN" in
3472 /*)
3473 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3474 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003475 ?:/*)
3476 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3477 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003478 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3480 ac_dummy="$PATH"
3481 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003482 test -z "$ac_dir" && ac_dir=.
3483 if test -f $ac_dir/$ac_word; then
3484 ac_cv_path_LN="$ac_dir/$ac_word"
3485 break
3486 fi
3487 done
3488 IFS="$ac_save_ifs"
3489 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3490 ;;
3491esac
3492fi
3493LN="$ac_cv_path_LN"
3494if test -n "$LN"; then
3495 echo "$ac_t""$LN" 1>&6
3496else
3497 echo "$ac_t""no" 1>&6
3498fi
3499
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003500echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003501echo "configure:3502: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003502if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3504else
3505 rm -f conftestdata
3506if ln -s X conftestdata 2>/dev/null
3507then
3508 rm -f conftestdata
3509 ac_cv_prog_LN_S="ln -s"
3510else
3511 ac_cv_prog_LN_S=ln
3512fi
3513fi
3514LN_S="$ac_cv_prog_LN_S"
3515if test "$ac_cv_prog_LN_S" = "ln -s"; then
3516 echo "$ac_t""yes" 1>&6
3517else
3518 echo "$ac_t""no" 1>&6
3519fi
3520
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003521# Extract the first word of "mv", so it can be a program name with args.
3522set dummy mv; ac_word=$2
3523echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003524echo "configure:3525: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003525if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3527else
3528 case "$MV" in
3529 /*)
3530 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3531 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003532 ?:/*)
3533 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3534 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003535 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3537 ac_dummy="$PATH"
3538 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003539 test -z "$ac_dir" && ac_dir=.
3540 if test -f $ac_dir/$ac_word; then
3541 ac_cv_path_MV="$ac_dir/$ac_word"
3542 break
3543 fi
3544 done
3545 IFS="$ac_save_ifs"
3546 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3547 ;;
3548esac
3549fi
3550MV="$ac_cv_path_MV"
3551if test -n "$MV"; then
3552 echo "$ac_t""$MV" 1>&6
3553else
3554 echo "$ac_t""no" 1>&6
3555fi
3556
3557# Extract the first word of "cp", so it can be a program name with args.
3558set dummy cp; ac_word=$2
3559echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003560echo "configure:3561: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003561if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3563else
3564 case "$CP" in
3565 /*)
3566 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3567 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003568 ?:/*)
3569 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3570 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003571 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3573 ac_dummy="$PATH"
3574 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003575 test -z "$ac_dir" && ac_dir=.
3576 if test -f $ac_dir/$ac_word; then
3577 ac_cv_path_CP="$ac_dir/$ac_word"
3578 break
3579 fi
3580 done
3581 IFS="$ac_save_ifs"
3582 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3583 ;;
3584esac
3585fi
3586CP="$ac_cv_path_CP"
3587if test -n "$CP"; then
3588 echo "$ac_t""$CP" 1>&6
3589else
3590 echo "$ac_t""no" 1>&6
3591fi
3592
3593# Extract the first word of "rm", so it can be a program name with args.
3594set dummy rm; ac_word=$2
3595echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003596echo "configure:3597: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003597if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3599else
3600 case "$RM" in
3601 /*)
3602 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3603 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003604 ?:/*)
3605 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3606 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003607 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3609 ac_dummy="$PATH"
3610 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003611 test -z "$ac_dir" && ac_dir=.
3612 if test -f $ac_dir/$ac_word; then
3613 ac_cv_path_RM="$ac_dir/$ac_word"
3614 break
3615 fi
3616 done
3617 IFS="$ac_save_ifs"
3618 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3619 ;;
3620esac
3621fi
3622RM="$ac_cv_path_RM"
3623if test -n "$RM"; then
3624 echo "$ac_t""$RM" 1>&6
3625else
3626 echo "$ac_t""no" 1>&6
3627fi
3628
3629# Extract the first word of "chmod", so it can be a program name with args.
3630set dummy chmod; ac_word=$2
3631echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003632echo "configure:3633: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003633if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3635else
3636 case "$CHMOD" in
3637 /*)
3638 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3639 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003640 ?:/*)
3641 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3642 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003643 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3645 ac_dummy="$PATH"
3646 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003647 test -z "$ac_dir" && ac_dir=.
3648 if test -f $ac_dir/$ac_word; then
3649 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3650 break
3651 fi
3652 done
3653 IFS="$ac_save_ifs"
3654 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3655 ;;
3656esac
3657fi
3658CHMOD="$ac_cv_path_CHMOD"
3659if test -n "$CHMOD"; then
3660 echo "$ac_t""$CHMOD" 1>&6
3661else
3662 echo "$ac_t""no" 1>&6
3663fi
3664
3665# Extract the first word of "awk", so it can be a program name with args.
3666set dummy awk; ac_word=$2
3667echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003668echo "configure:3669: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003669if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3671else
3672 case "$AWK" in
3673 /*)
3674 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3675 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003676 ?:/*)
3677 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3678 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003679 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3681 ac_dummy="$PATH"
3682 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003683 test -z "$ac_dir" && ac_dir=.
3684 if test -f $ac_dir/$ac_word; then
3685 ac_cv_path_AWK="$ac_dir/$ac_word"
3686 break
3687 fi
3688 done
3689 IFS="$ac_save_ifs"
3690 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3691 ;;
3692esac
3693fi
3694AWK="$ac_cv_path_AWK"
3695if test -n "$AWK"; then
3696 echo "$ac_t""$AWK" 1>&6
3697else
3698 echo "$ac_t""no" 1>&6
3699fi
3700
3701# Extract the first word of "sed", so it can be a program name with args.
3702set dummy sed; ac_word=$2
3703echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003704echo "configure:3705: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003705if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3707else
3708 case "$SED" in
3709 /*)
3710 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3711 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003712 ?:/*)
3713 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3714 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003715 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3717 ac_dummy="$PATH"
3718 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003719 test -z "$ac_dir" && ac_dir=.
3720 if test -f $ac_dir/$ac_word; then
3721 ac_cv_path_SED="$ac_dir/$ac_word"
3722 break
3723 fi
3724 done
3725 IFS="$ac_save_ifs"
3726 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3727 ;;
3728esac
3729fi
3730SED="$ac_cv_path_SED"
3731if test -n "$SED"; then
3732 echo "$ac_t""$SED" 1>&6
3733else
3734 echo "$ac_t""no" 1>&6
3735fi
3736
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003737# Extract the first word of "perl", so it can be a program name with args.
3738set dummy perl; ac_word=$2
3739echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003740echo "configure:3741: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003741if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3743else
3744 case "$PERL" in
3745 /*)
3746 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3747 ;;
3748 ?:/*)
3749 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3750 ;;
3751 *)
3752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3753 ac_dummy="$PATH"
3754 for ac_dir in $ac_dummy; do
3755 test -z "$ac_dir" && ac_dir=.
3756 if test -f $ac_dir/$ac_word; then
3757 ac_cv_path_PERL="$ac_dir/$ac_word"
3758 break
3759 fi
3760 done
3761 IFS="$ac_save_ifs"
3762 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3763 ;;
3764esac
3765fi
3766PERL="$ac_cv_path_PERL"
3767if test -n "$PERL"; then
3768 echo "$ac_t""$PERL" 1>&6
3769else
3770 echo "$ac_t""no" 1>&6
3771fi
3772
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003773# Extract the first word of "ldconfig", so it can be a program name with args.
3774set dummy ldconfig; ac_word=$2
3775echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003776echo "configure:3777: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003777if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3779else
3780 case "$LDCONFIG" in
3781 /*)
3782 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3783 ;;
3784 ?:/*)
3785 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3786 ;;
3787 *)
3788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3789 ac_dummy="$PATH"
3790 for ac_dir in $ac_dummy; do
3791 test -z "$ac_dir" && ac_dir=.
3792 if test -f $ac_dir/$ac_word; then
3793 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3794 break
3795 fi
3796 done
3797 IFS="$ac_save_ifs"
3798 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3799 ;;
3800esac
3801fi
3802LDCONFIG="$ac_cv_path_LDCONFIG"
3803if test -n "$LDCONFIG"; then
3804 echo "$ac_t""$LDCONFIG" 1>&6
3805else
3806 echo "$ac_t""no" 1>&6
3807fi
3808
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003809echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003810echo "configure:3811: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003811
3812build_alias=$build
3813case "$build_alias" in
3814NONE)
3815 case $nonopt in
3816 NONE) build_alias=$host_alias ;;
3817 *) build_alias=$nonopt ;;
3818 esac ;;
3819esac
3820
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003821build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003822build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3823build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3824build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003825echo "$ac_t""$build" 1>&6
3826
3827if test $host != $build; then
3828 ac_tool_prefix=${host_alias}-
3829else
3830 ac_tool_prefix=
3831fi
3832
3833# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3834set dummy ${ac_tool_prefix}ar; ac_word=$2
3835echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003836echo "configure:3837: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003837if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3839else
3840 if test -n "$AR"; then
3841 ac_cv_prog_AR="$AR" # Let the user override the test.
3842else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3844 ac_dummy="$PATH"
3845 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003846 test -z "$ac_dir" && ac_dir=.
3847 if test -f $ac_dir/$ac_word; then
3848 ac_cv_prog_AR="${ac_tool_prefix}ar"
3849 break
3850 fi
3851 done
3852 IFS="$ac_save_ifs"
3853fi
3854fi
3855AR="$ac_cv_prog_AR"
3856if test -n "$AR"; then
3857 echo "$ac_t""$AR" 1>&6
3858else
3859 echo "$ac_t""no" 1>&6
3860fi
3861
3862
3863if test -z "$ac_cv_prog_AR"; then
3864if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "ar", so it can be a program name with args.
3866set dummy ar; ac_word=$2
3867echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003868echo "configure:3869: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003869if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3871else
3872 if test -n "$AR"; then
3873 ac_cv_prog_AR="$AR" # Let the user override the test.
3874else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3876 ac_dummy="$PATH"
3877 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003878 test -z "$ac_dir" && ac_dir=.
3879 if test -f $ac_dir/$ac_word; then
3880 ac_cv_prog_AR="ar"
3881 break
3882 fi
3883 done
3884 IFS="$ac_save_ifs"
3885 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3886fi
3887fi
3888AR="$ac_cv_prog_AR"
3889if test -n "$AR"; then
3890 echo "$ac_t""$AR" 1>&6
3891else
3892 echo "$ac_t""no" 1>&6
3893fi
3894
3895else
3896 AR="ar"
3897fi
3898fi
3899
3900# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3901set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3902echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003903echo "configure:3904: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003904if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906else
3907 if test -n "$RANLIB"; then
3908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3909else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3911 ac_dummy="$PATH"
3912 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003913 test -z "$ac_dir" && ac_dir=.
3914 if test -f $ac_dir/$ac_word; then
3915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3916 break
3917 fi
3918 done
3919 IFS="$ac_save_ifs"
3920fi
3921fi
3922RANLIB="$ac_cv_prog_RANLIB"
3923if test -n "$RANLIB"; then
3924 echo "$ac_t""$RANLIB" 1>&6
3925else
3926 echo "$ac_t""no" 1>&6
3927fi
3928
3929
3930if test -z "$ac_cv_prog_RANLIB"; then
3931if test -n "$ac_tool_prefix"; then
3932 # Extract the first word of "ranlib", so it can be a program name with args.
3933set dummy ranlib; ac_word=$2
3934echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003935echo "configure:3936: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003936if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3938else
3939 if test -n "$RANLIB"; then
3940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3941else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3943 ac_dummy="$PATH"
3944 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003945 test -z "$ac_dir" && ac_dir=.
3946 if test -f $ac_dir/$ac_word; then
3947 ac_cv_prog_RANLIB="ranlib"
3948 break
3949 fi
3950 done
3951 IFS="$ac_save_ifs"
3952 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3953fi
3954fi
3955RANLIB="$ac_cv_prog_RANLIB"
3956if test -n "$RANLIB"; then
3957 echo "$ac_t""$RANLIB" 1>&6
3958else
3959 echo "$ac_t""no" 1>&6
3960fi
3961
3962else
3963 RANLIB=":"
3964fi
3965fi
3966
3967# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3968set dummy ${ac_tool_prefix}strip; ac_word=$2
3969echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05003970echo "configure:3971: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003971if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3973else
3974 if test -n "$STRIP"; then
3975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3976else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3978 ac_dummy="$PATH"
3979 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003980 test -z "$ac_dir" && ac_dir=.
3981 if test -f $ac_dir/$ac_word; then
3982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3983 break
3984 fi
3985 done
3986 IFS="$ac_save_ifs"
3987fi
3988fi
3989STRIP="$ac_cv_prog_STRIP"
3990if test -n "$STRIP"; then
3991 echo "$ac_t""$STRIP" 1>&6
3992else
3993 echo "$ac_t""no" 1>&6
3994fi
3995
3996
3997if test -z "$ac_cv_prog_STRIP"; then
3998if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "strip", so it can be a program name with args.
4000set dummy strip; ac_word=$2
4001echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004002echo "configure:4003: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004003if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4005else
4006 if test -n "$STRIP"; then
4007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4008else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4010 ac_dummy="$PATH"
4011 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004012 test -z "$ac_dir" && ac_dir=.
4013 if test -f $ac_dir/$ac_word; then
4014 ac_cv_prog_STRIP="strip"
4015 break
4016 fi
4017 done
4018 IFS="$ac_save_ifs"
4019 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4020fi
4021fi
4022STRIP="$ac_cv_prog_STRIP"
4023if test -n "$STRIP"; then
4024 echo "$ac_t""$STRIP" 1>&6
4025else
4026 echo "$ac_t""no" 1>&6
4027fi
4028
4029else
4030 STRIP=":"
4031fi
4032fi
4033
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004034# Find a good install program. We prefer a C program (faster),
4035# so one script is as good as another. But avoid the broken or
4036# incompatible versions:
4037# SysV /etc/install, /usr/sbin/install
4038# SunOS /usr/etc/install
4039# IRIX /sbin/install
4040# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004041# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004042# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4043# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4044# ./install, which can be erroneously created by make from ./install.sh.
4045echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004046echo "configure:4047: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004047if test -z "$INSTALL"; then
4048if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004051 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004052 for ac_dir in $PATH; do
4053 # Account for people who put trailing slashes in PATH elements.
4054 case "$ac_dir/" in
4055 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4056 *)
4057 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004058 # Don't use installbsd from OSF since it installs stuff as root
4059 # by default.
4060 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004061 if test -f $ac_dir/$ac_prog; then
4062 if test $ac_prog = install &&
4063 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4064 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004065 :
4066 else
4067 ac_cv_path_install="$ac_dir/$ac_prog -c"
4068 break 2
4069 fi
4070 fi
4071 done
4072 ;;
4073 esac
4074 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004075 IFS="$ac_save_IFS"
4076
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004077fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004078 if test "${ac_cv_path_install+set}" = set; then
4079 INSTALL="$ac_cv_path_install"
4080 else
4081 # As a last resort, use the slow shell script. We don't cache a
4082 # path for INSTALL within a source directory, because that will
4083 # break other packages using the cache if that directory is
4084 # removed, or if the path is relative.
4085 INSTALL="$ac_install_sh"
4086 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004087fi
4088echo "$ac_t""$INSTALL" 1>&6
4089
4090# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4091# It thinks the first close brace ends the variable substitution.
4092test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4093
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004094test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4095
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004096test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4097
Theodore Ts'o6c133521999-07-03 20:37:03 +00004098# See if we need a separate native compiler.
4099if test $cross_compiling = no; then
4100 BUILD_CC="$CC"
4101
4102else
4103 for ac_prog in gcc cc
4104do
4105# Extract the first word of "$ac_prog", so it can be a program name with args.
4106set dummy $ac_prog; ac_word=$2
4107echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004108echo "configure:4109: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00004109if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4111else
4112 if test -n "$BUILD_CC"; then
4113 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4114else
4115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4116 ac_dummy="$PATH"
4117 for ac_dir in $ac_dummy; do
4118 test -z "$ac_dir" && ac_dir=.
4119 if test -f $ac_dir/$ac_word; then
4120 ac_cv_prog_BUILD_CC="$ac_prog"
4121 break
4122 fi
4123 done
4124 IFS="$ac_save_ifs"
4125fi
4126fi
4127BUILD_CC="$ac_cv_prog_BUILD_CC"
4128if test -n "$BUILD_CC"; then
4129 echo "$ac_t""$BUILD_CC" 1>&6
4130else
4131 echo "$ac_t""no" 1>&6
4132fi
4133
4134test -n "$BUILD_CC" && break
4135done
4136
4137fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004138for 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 +00004139do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004140ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004141echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004142echo "configure:4143: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004143if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4145else
4146 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004147#line 4148 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004148#include "confdefs.h"
4149#include <$ac_hdr>
4150EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004151ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004152{ (eval echo configure:4153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004153ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004154if test -z "$ac_err"; then
4155 rm -rf conftest*
4156 eval "ac_cv_header_$ac_safe=yes"
4157else
4158 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004161 rm -rf conftest*
4162 eval "ac_cv_header_$ac_safe=no"
4163fi
4164rm -f conftest*
4165fi
4166if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004169 cat >> confdefs.h <<EOF
4170#define $ac_tr_hdr 1
4171EOF
4172
4173else
4174 echo "$ac_t""no" 1>&6
4175fi
4176done
4177
4178echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004179echo "configure:4180: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004180if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4182else
4183 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004184#line 4185 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004185#include "confdefs.h"
4186/* System header to define __stub macros and hopefully few prototypes,
4187 which can conflict with char vprintf(); below. */
4188#include <assert.h>
4189/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004190/* We use char because int might match the return type of a gcc2
4191 builtin and then its argument prototype would still apply. */
4192char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004193
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004194int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004195
4196/* The GNU C library defines this for functions which it implements
4197 to always fail with ENOSYS. Some functions are actually named
4198 something starting with __ and the normal name is an alias. */
4199#if defined (__stub_vprintf) || defined (__stub___vprintf)
4200choke me
4201#else
4202vprintf();
4203#endif
4204
4205; return 0; }
4206EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004207if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004208 rm -rf conftest*
4209 eval "ac_cv_func_vprintf=yes"
4210else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004213 rm -rf conftest*
4214 eval "ac_cv_func_vprintf=no"
4215fi
4216rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004217fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004218
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004219if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4220 echo "$ac_t""yes" 1>&6
4221 cat >> confdefs.h <<\EOF
4222#define HAVE_VPRINTF 1
4223EOF
4224
4225else
4226 echo "$ac_t""no" 1>&6
4227fi
4228
4229if test "$ac_cv_func_vprintf" != yes; then
4230echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004231echo "configure:4232: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004232if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234else
4235 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004236#line 4237 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004237#include "confdefs.h"
4238/* System header to define __stub macros and hopefully few prototypes,
4239 which can conflict with char _doprnt(); below. */
4240#include <assert.h>
4241/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004242/* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004245
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004246int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004247
4248/* The GNU C library defines this for functions which it implements
4249 to always fail with ENOSYS. Some functions are actually named
4250 something starting with __ and the normal name is an alias. */
4251#if defined (__stub__doprnt) || defined (__stub____doprnt)
4252choke me
4253#else
4254_doprnt();
4255#endif
4256
4257; return 0; }
4258EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004260 rm -rf conftest*
4261 eval "ac_cv_func__doprnt=yes"
4262else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004265 rm -rf conftest*
4266 eval "ac_cv_func__doprnt=no"
4267fi
4268rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004269fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004270
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004271if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 cat >> confdefs.h <<\EOF
4274#define HAVE_DOPRNT 1
4275EOF
4276
4277else
4278 echo "$ac_t""no" 1>&6
4279fi
4280
4281fi
4282
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004283echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004284echo "configure:4285: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004285if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4287else
4288 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004289#line 4290 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004290#include "confdefs.h"
4291#include <unistd.h>
4292int main() {
4293extern int llseek(int);
4294; return 0; }
4295EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004296if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004297 rm -rf conftest*
4298 e2fsprogs_cv_have_llseek_prototype=no
4299else
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4302 rm -rf conftest*
4303 e2fsprogs_cv_have_llseek_prototype=yes
4304fi
4305rm -f conftest*
4306fi
4307
4308echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4309if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4310 cat >> confdefs.h <<\EOF
4311#define HAVE_LLSEEK_PROTOTYPE 1
4312EOF
4313
4314fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004315echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004316echo "configure:4317: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004317if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4319else
4320 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004321#line 4322 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004322#include "confdefs.h"
4323#define _LARGEFILE_SOURCE
4324#define _LARGEFILE64_SOURCE
4325#include <unistd.h>
4326int main() {
4327extern int lseek64(int);
4328; return 0; }
4329EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004330if { (eval echo configure:4331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004331 rm -rf conftest*
4332 e2fsprogs_cv_have_lseek64_prototype=no
4333else
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 rm -rf conftest*
4337 e2fsprogs_cv_have_lseek64_prototype=yes
4338fi
4339rm -f conftest*
4340fi
4341
4342echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4343if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4344 cat >> confdefs.h <<\EOF
4345#define HAVE_LSEEK64_PROTOTYPE 1
4346EOF
4347
4348fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004349if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4350 # if cross-compiling, with no cached values, just assume something common.
4351 ac_cv_sizeof_short=2
4352 ac_cv_sizeof_int=4
4353 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004354 ac_cv_sizeof_long_long=8
4355 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 +00004356fi
4357echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004358echo "configure:4359: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004359if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4361else
4362 if test "$cross_compiling" = yes; then
4363 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4364else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004365 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004366#line 4367 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004367#include "confdefs.h"
4368#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004369#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004370main()
4371{
4372 FILE *f=fopen("conftestval", "w");
4373 if (!f) exit(1);
4374 fprintf(f, "%d\n", sizeof(short));
4375 exit(0);
4376}
4377EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004378if { (eval echo configure:4379: \"$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 +00004379then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004380 ac_cv_sizeof_short=`cat conftestval`
4381else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4384 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004385 ac_cv_sizeof_short=0
4386fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004387rm -fr conftest*
4388fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004389
4390fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004391echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4392cat >> confdefs.h <<EOF
4393#define SIZEOF_SHORT $ac_cv_sizeof_short
4394EOF
4395
4396
4397echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004398echo "configure:4399: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004399if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4401else
4402 if test "$cross_compiling" = yes; then
4403 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4404else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004405 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004406#line 4407 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004407#include "confdefs.h"
4408#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004409#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004410main()
4411{
4412 FILE *f=fopen("conftestval", "w");
4413 if (!f) exit(1);
4414 fprintf(f, "%d\n", sizeof(int));
4415 exit(0);
4416}
4417EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004418if { (eval echo configure:4419: \"$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 +00004419then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004420 ac_cv_sizeof_int=`cat conftestval`
4421else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004425 ac_cv_sizeof_int=0
4426fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004427rm -fr conftest*
4428fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004429
4430fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004431echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4432cat >> confdefs.h <<EOF
4433#define SIZEOF_INT $ac_cv_sizeof_int
4434EOF
4435
4436
4437echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004438echo "configure:4439: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004439if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4441else
4442 if test "$cross_compiling" = yes; then
4443 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4444else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004445 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004446#line 4447 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004447#include "confdefs.h"
4448#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004449#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004450main()
4451{
4452 FILE *f=fopen("conftestval", "w");
4453 if (!f) exit(1);
4454 fprintf(f, "%d\n", sizeof(long));
4455 exit(0);
4456}
4457EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004458if { (eval echo configure:4459: \"$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 +00004459then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004460 ac_cv_sizeof_long=`cat conftestval`
4461else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4464 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004465 ac_cv_sizeof_long=0
4466fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004467rm -fr conftest*
4468fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004469
4470fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004471echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4472cat >> confdefs.h <<EOF
4473#define SIZEOF_LONG $ac_cv_sizeof_long
4474EOF
4475
4476
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004477echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004478echo "configure:4479: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004479if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4481else
4482 if test "$cross_compiling" = yes; then
4483 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4484else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004485 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004486#line 4487 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004487#include "confdefs.h"
4488#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004489#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004490main()
4491{
4492 FILE *f=fopen("conftestval", "w");
4493 if (!f) exit(1);
4494 fprintf(f, "%d\n", sizeof(long long));
4495 exit(0);
4496}
4497EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004498if { (eval echo configure:4499: \"$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 +00004499then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004500 ac_cv_sizeof_long_long=`cat conftestval`
4501else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4504 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004505 ac_cv_sizeof_long_long=0
4506fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004507rm -fr conftest*
4508fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004509
4510fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004511echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4512cat >> confdefs.h <<EOF
4513#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4514EOF
4515
4516
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004517SIZEOF_SHORT=$ac_cv_sizeof_short
4518SIZEOF_INT=$ac_cv_sizeof_int
4519SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004520SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4521
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004522
4523
4524
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004525echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004526echo "configure:4527: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004527if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4529else
4530 ac_cv_c_bigendian=unknown
4531# See if sys/param.h defines the BYTE_ORDER macro.
4532cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004533#line 4534 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004534#include "confdefs.h"
4535#include <sys/types.h>
4536#include <sys/param.h>
4537int main() {
4538
4539#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4540 bogus endian macros
4541#endif
4542; return 0; }
4543EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004544if { (eval echo configure:4545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004545 rm -rf conftest*
4546 # It does; now see whether it defined to BIG_ENDIAN or not.
4547cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004548#line 4549 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004549#include "confdefs.h"
4550#include <sys/types.h>
4551#include <sys/param.h>
4552int main() {
4553
4554#if BYTE_ORDER != BIG_ENDIAN
4555 not big endian
4556#endif
4557; return 0; }
4558EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004559if { (eval echo configure:4560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004560 rm -rf conftest*
4561 ac_cv_c_bigendian=yes
4562else
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4565 rm -rf conftest*
4566 ac_cv_c_bigendian=no
4567fi
4568rm -f conftest*
4569else
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4572fi
4573rm -f conftest*
4574if test $ac_cv_c_bigendian = unknown; then
4575if test "$cross_compiling" = yes; then
4576 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4577else
4578 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004579#line 4580 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004580#include "confdefs.h"
4581main () {
4582 /* Are we little or big endian? From Harbison&Steele. */
4583 union
4584 {
4585 long l;
4586 char c[sizeof (long)];
4587 } u;
4588 u.l = 1;
4589 exit (u.c[sizeof (long) - 1] == 1);
4590}
4591EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004592if { (eval echo configure:4593: \"$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 +00004593then
4594 ac_cv_c_bigendian=no
4595else
4596 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4598 rm -fr conftest*
4599 ac_cv_c_bigendian=yes
4600fi
4601rm -fr conftest*
4602fi
4603
4604fi
4605fi
4606
4607echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4608if test $ac_cv_c_bigendian = yes; then
4609 cat >> confdefs.h <<\EOF
4610#define WORDS_BIGENDIAN 1
4611EOF
4612
4613fi
4614
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004615echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004616echo "configure:4617: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004617if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4619else
4620 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004621#line 4622 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004622#include "confdefs.h"
4623#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004624int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004625struct stat stat; stat.st_flags = 0;
4626; return 0; }
4627EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004628if { (eval echo configure:4629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004629 rm -rf conftest*
4630 e2fsprogs_cv_struct_st_flags=yes
4631else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004632 echo "configure: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004634 rm -rf conftest*
4635 e2fsprogs_cv_struct_st_flags=no
4636fi
4637rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004638fi
4639
4640echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4641if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004642 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004643echo "configure:4644: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004644 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4646else
4647 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004648#line 4649 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004649#include "confdefs.h"
4650#include <sys/stat.h>
4651int main() {
4652struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4653; return 0; }
4654EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004655if { (eval echo configure:4656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004656 rm -rf conftest*
4657 e2fsprogs_cv_struct_st_flags_immut=yes
4658else
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 rm -rf conftest*
4662 e2fsprogs_cv_struct_st_flags_immut=no
4663fi
4664rm -f conftest*
4665fi
4666
4667 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4668 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4669 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004670#define HAVE_STAT_FLAGS 1
4671EOF
4672
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004673 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004674fi
Theodore Ts'o593c6ea2002-07-14 15:58:38 -04004675for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf pathconf
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004676do
4677echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004678echo "configure:4679: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004679if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4681else
4682 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004683#line 4684 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004684#include "confdefs.h"
4685/* System header to define __stub macros and hopefully few prototypes,
4686 which can conflict with char $ac_func(); below. */
4687#include <assert.h>
4688/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004689/* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4691char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004692
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004693int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004694
4695/* The GNU C library defines this for functions which it implements
4696 to always fail with ENOSYS. Some functions are actually named
4697 something starting with __ and the normal name is an alias. */
4698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4699choke me
4700#else
4701$ac_func();
4702#endif
4703
4704; return 0; }
4705EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004706if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004707 rm -rf conftest*
4708 eval "ac_cv_func_$ac_func=yes"
4709else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004712 rm -rf conftest*
4713 eval "ac_cv_func_$ac_func=no"
4714fi
4715rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004716fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004717
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004718if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004721 cat >> confdefs.h <<EOF
4722#define $ac_tr_func 1
4723EOF
4724
4725else
4726 echo "$ac_t""no" 1>&6
4727fi
4728done
4729
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004730SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004731echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004732echo "configure:4733: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004733ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4734if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004735 echo $ac_n "(cached) $ac_c" 1>&6
4736else
4737 ac_save_LIBS="$LIBS"
4738LIBS="-lsocket $LIBS"
4739cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004740#line 4741 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004741#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004742/* Override any gcc2 internal prototype to avoid an error. */
4743/* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4745char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004746
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004747int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004748socket()
4749; return 0; }
4750EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004751if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004752 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004753 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004754else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004757 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004758 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004759fi
4760rm -f conftest*
4761LIBS="$ac_save_LIBS"
4762
4763fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004764if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004765 echo "$ac_t""yes" 1>&6
4766 SOCKET_LIB=-lsocket
4767else
4768 echo "$ac_t""no" 1>&6
4769fi
4770
4771
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004772echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004773echo "configure:4774: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004774if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4776else
4777 cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004778#line 4779 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004779#include "confdefs.h"
4780#include <unistd.h>
4781EOF
4782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783 egrep "optreset" >/dev/null 2>&1; then
4784 rm -rf conftest*
4785 ac_cv_have_optreset=yes
4786else
4787 rm -rf conftest*
4788 ac_cv_have_optreset=no
4789fi
4790rm -f conftest*
4791
4792fi
4793echo "$ac_t""$ac_cv_have_optreset" 1>&6
4794if test $ac_cv_have_optreset = yes; then
4795 cat >> confdefs.h <<\EOF
4796#define HAVE_OPTRESET 1
4797EOF
4798
4799fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004800case "$host_os" in
4801linux*)
4802 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004803#define HAVE_EXT2_IOCTLS 1
4804EOF
4805
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004806 ;;
4807esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04004808LINUX_CMT="#"
4809case "$host_os" in
4810linux*)
4811 LINUX_CMT=
4812 ;;
4813esac
4814
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004815case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004816linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004817 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4818 root_prefix="";
4819 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004820 fi
4821 ;;
4822esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004823case "$host_os" in
4824linux* | gnu*)
4825 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004826 prefix="/usr";
4827 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04004828 if test "$mandir" = '${prefix}/man' ; then
4829 echo "...and mandir defaults to /usr/share/man"
4830 mandir=/usr/share/man
4831 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004832 fi
4833;;
4834esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004835if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004836 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004837 root_prefix="$ac_default_prefix"
4838 else
4839 root_prefix="$prefix"
4840 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004841 root_bindir=$bindir
4842 root_sbindir=$sbindir
4843 root_libdir=$libdir
4844 root_sysconfdir=$sysconfdir
4845else
4846 root_bindir='${root_prefix}/bin'
4847 root_sbindir='${root_prefix}/sbin'
4848 root_libdir='${root_prefix}/lib'
4849 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004850fi
4851
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04004852
4853
4854
4855
Theodore Ts'oae851481997-04-29 18:13:24 +00004856echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004857echo "configure:4858: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004858if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4860else
4861 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4862cat > conftest.$ac_ext <<EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004863#line 4864 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004864#include "confdefs.h"
4865#include <stdio.h>
4866int main() {
4867fflush(stdout);
4868; return 0; }
4869EOF
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05004870if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004871 rm -rf conftest*
4872 ac_cv_e2fsprogs_use_static=yes
4873else
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 rm -rf conftest*
4877 ac_cv_e2fsprogs_use_static=no
4878fi
4879rm -f conftest*
4880LDFLAGS=$SAVE_LDFLAGS
4881fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004882
Theodore Ts'odefde781999-01-04 07:39:19 +00004883case "$host_os" in
4884solaris2.*)
4885 ac_cv_e2fsprogs_use_static=no
4886;;
4887esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004888echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004889LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004890if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004891 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004892fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004893
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004894SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4895ET_DIR=`cd ${srcdir}/lib/et; pwd`
4896
4897
4898if test "$cross_compiling" = yes ; then
4899 DO_TEST_SUITE=
4900else
4901 DO_TEST_SUITE=check
4902fi
4903
4904test -d lib || mkdir lib
4905test -d include || mkdir include
4906test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004907test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004908rmakefile=
4909if test -d ${srcdir}/resize ; then
4910 rmakefile=resize/Makefile
4911fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004912trap '' 1 2 15
4913cat > confcache <<\EOF
4914# This file is a shell script that caches the results of configure
4915# tests run on this system so they can be shared between configure
4916# scripts and configure runs. It is not useful on other systems.
4917# If it contains results you don't want to keep, you may remove or edit it.
4918#
4919# By default, configure uses ./config.cache as the cache file,
4920# creating it if it does not exist already. You can give configure
4921# the --cache-file=FILE option to use a different cache file; that is
4922# what configure does when it calls configure scripts in
4923# subdirectories, so they share the cache.
4924# Giving --cache-file=/dev/null disables caching, for debugging configure.
4925# config.status only pays attention to the cache file if you give it the
4926# --recheck option to rerun configure.
4927#
4928EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004929# The following way of writing the cache mishandles newlines in values,
4930# but we know of no workaround that is simple, portable, and efficient.
4931# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004932# Ultrix sh set writes to stderr and can't be redirected directly,
4933# and sets the high bit in the cache file unless we assign to the vars.
4934(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004935 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004936 *ac_space=\ *)
4937 # `set' does not quote correctly, so add quotes (double-quote substitution
4938 # turns \\\\ into \\, and sed turns \\ into \).
4939 sed -n \
4940 -e "s/'/'\\\\''/g" \
4941 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4942 ;;
4943 *)
4944 # `set' quotes correctly as required by POSIX, so do not add quotes.
4945 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4946 ;;
4947 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004948if cmp -s $cache_file confcache; then
4949 :
4950else
4951 if test -w $cache_file; then
4952 echo "updating cache $cache_file"
4953 cat confcache > $cache_file
4954 else
4955 echo "not updating unwritable cache $cache_file"
4956 fi
4957fi
4958rm -f confcache
4959
4960trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4961
4962test "x$prefix" = xNONE && prefix=$ac_default_prefix
4963# Let make expand exec_prefix.
4964test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4965
4966# Any assignment to VPATH causes Sun make to only execute
4967# the first set of double-colon rules, so remove it if not needed.
4968# If there is a colon in the path, we need to keep it.
4969if test "x$srcdir" = x.; then
4970 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4971fi
4972
4973trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4974
4975# Transform confdefs.h into DEFS.
4976# Protect against shell expansion while executing Makefile rules.
4977# Protect against Makefile macro expansion.
4978cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004979s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004980s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4981s%\[%\\&%g
4982s%\]%\\&%g
4983s%\$%$$%g
4984EOF
4985DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4986rm -f conftest.defs
4987
4988
4989# Without the "./", some shells look in PATH for config.status.
4990: ${CONFIG_STATUS=./config.status}
4991
4992echo creating $CONFIG_STATUS
4993rm -f $CONFIG_STATUS
4994cat > $CONFIG_STATUS <<EOF
4995#! /bin/sh
4996# Generated automatically by configure.
4997# Run this file to recreate the current configuration.
4998# This directory was configured as follows,
4999# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5000#
5001# $0 $ac_configure_args
5002#
5003# Compiler output produced by configure, useful for debugging
5004# configure, is in ./config.log if it exists.
5005
5006ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5007for ac_option
5008do
5009 case "\$ac_option" in
5010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5011 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5012 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5013 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005014 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005015 exit 0 ;;
5016 -help | --help | --hel | --he | --h)
5017 echo "\$ac_cs_usage"; exit 0 ;;
5018 *) echo "\$ac_cs_usage"; exit 1 ;;
5019 esac
5020done
5021
5022ac_given_srcdir=$srcdir
5023ac_given_INSTALL="$INSTALL"
5024
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005025trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005026 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04005027 lib/evms/Makefile
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005028 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5029 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005030 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005031EOF
5032cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005033
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005034# Protect against being on the right side of a sed subst in config.status.
5035sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5036 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005037$ac_vpsub
5038$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005039s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005040s%@CFLAGS@%$CFLAGS%g
5041s%@CPPFLAGS@%$CPPFLAGS%g
5042s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005043s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005044s%@DEFS@%$DEFS%g
5045s%@LDFLAGS@%$LDFLAGS%g
5046s%@LIBS@%$LIBS%g
5047s%@exec_prefix@%$exec_prefix%g
5048s%@prefix@%$prefix%g
5049s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005050s%@bindir@%$bindir%g
5051s%@sbindir@%$sbindir%g
5052s%@libexecdir@%$libexecdir%g
5053s%@datadir@%$datadir%g
5054s%@sysconfdir@%$sysconfdir%g
5055s%@sharedstatedir@%$sharedstatedir%g
5056s%@localstatedir@%$localstatedir%g
5057s%@libdir@%$libdir%g
5058s%@includedir@%$includedir%g
5059s%@oldincludedir@%$oldincludedir%g
5060s%@infodir@%$infodir%g
5061s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005062/@MCONFIG@/r $MCONFIG
5063s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005064s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5065s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
5066s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005067s%@host@%$host%g
5068s%@host_alias@%$host_alias%g
5069s%@host_cpu@%$host_cpu%g
5070s%@host_vendor@%$host_vendor%g
5071s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005072s%@CC@%$CC%g
5073s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00005074s%@CPP@%$CPP%g
5075s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04005076s%@HTREE_CMT@%$HTREE_CMT%g
5077s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05005078s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005079s%@DLL_CMT@%$DLL_CMT%g
5080/@MAKEFILE_DLL@/r $MAKEFILE_DLL
5081s%@MAKEFILE_DLL@%%g
5082s%@ELF_CMT@%$ELF_CMT%g
5083/@MAKEFILE_ELF@/r $MAKEFILE_ELF
5084s%@MAKEFILE_ELF@%%g
5085s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5086/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5087s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005088s%@PROFILE_CMT@%$PROFILE_CMT%g
5089/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5090s%@MAKEFILE_PROFILE@%%g
5091s%@CHECKER_CMT@%$CHECKER_CMT%g
5092/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5093s%@MAKEFILE_CHECKER@%%g
5094s%@LIB_EXT@%$LIB_EXT%g
5095s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5096s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
5097s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5098s%@IMAGER_CMT@%$IMAGER_CMT%g
5099s%@RESIZER_CMT@%$RESIZER_CMT%g
5100s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5101s%@FSCK_PROG@%$FSCK_PROG%g
5102s%@FSCK_MAN@%$FSCK_MAN%g
5103/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5104s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005105s%@PACKAGE@%$PACKAGE%g
5106s%@VERSION@%$VERSION%g
5107s%@SET_MAKE@%$SET_MAKE%g
5108s%@RANLIB@%$RANLIB%g
5109s%@ALLOCA@%$ALLOCA%g
5110s%@USE_NLS@%$USE_NLS%g
5111s%@MSGFMT@%$MSGFMT%g
5112s%@GMSGFMT@%$GMSGFMT%g
5113s%@XGETTEXT@%$XGETTEXT%g
5114s%@GENCAT@%$GENCAT%g
5115s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5116s%@CATALOGS@%$CATALOGS%g
5117s%@CATOBJEXT@%$CATOBJEXT%g
5118s%@DATADIRNAME@%$DATADIRNAME%g
5119s%@GMOFILES@%$GMOFILES%g
5120s%@INSTOBJEXT@%$INSTOBJEXT%g
5121s%@INTLDEPS@%$INTLDEPS%g
5122s%@INTLLIBS@%$INTLLIBS%g
5123s%@INTLOBJS@%$INTLOBJS%g
5124s%@POFILES@%$POFILES%g
5125s%@POSUB@%$POSUB%g
5126s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5127s%@GT_NO@%$GT_NO%g
5128s%@GT_YES@%$GT_YES%g
5129s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5130s%@l@%$l%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005131s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005132s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005133s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005134s%@MV@%$MV%g
5135s%@CP@%$CP%g
5136s%@RM@%$RM%g
5137s%@CHMOD@%$CHMOD%g
5138s%@AWK@%$AWK%g
5139s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00005140s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005141s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005142s%@build@%$build%g
5143s%@build_alias@%$build_alias%g
5144s%@build_cpu@%$build_cpu%g
5145s%@build_vendor@%$build_vendor%g
5146s%@build_os@%$build_os%g
5147s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005148s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005149s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005150s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005151s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00005152s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005153s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5154s%@SIZEOF_INT@%$SIZEOF_INT%g
5155s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005156s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005157s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04005158s%@LINUX_CMT@%$LINUX_CMT%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005159s%@root_prefix@%$root_prefix%g
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005160s%@root_bindir@%$root_bindir%g
5161s%@root_sbindir@%$root_sbindir%g
5162s%@root_libdir@%$root_libdir%g
5163s%@root_sysconfdir@%$root_sysconfdir%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005164s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005165s%@SS_DIR@%$SS_DIR%g
5166s%@ET_DIR@%$ET_DIR%g
5167s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5168
5169CEOF
5170EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005171
5172cat >> $CONFIG_STATUS <<\EOF
5173
5174# Split the substitutions into bite-sized pieces for seds with
5175# small command number limits, like on Digital OSF/1 and HP-UX.
5176ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5177ac_file=1 # Number of current file.
5178ac_beg=1 # First line for current file.
5179ac_end=$ac_max_sed_cmds # Line after last line for current file.
5180ac_more_lines=:
5181ac_sed_cmds=""
5182while $ac_more_lines; do
5183 if test $ac_beg -gt 1; then
5184 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5185 else
5186 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5187 fi
5188 if test ! -s conftest.s$ac_file; then
5189 ac_more_lines=false
5190 rm -f conftest.s$ac_file
5191 else
5192 if test -z "$ac_sed_cmds"; then
5193 ac_sed_cmds="sed -f conftest.s$ac_file"
5194 else
5195 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5196 fi
5197 ac_file=`expr $ac_file + 1`
5198 ac_beg=$ac_end
5199 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5200 fi
5201done
5202if test -z "$ac_sed_cmds"; then
5203 ac_sed_cmds=cat
5204fi
5205EOF
5206
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005207cat >> $CONFIG_STATUS <<EOF
5208
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005209CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005210 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04005211 lib/evms/Makefile
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04005212 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5213 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005214 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005215EOF
5216cat >> $CONFIG_STATUS <<\EOF
5217for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005218 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005219 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005220 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005221 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5222 *) ac_file_in="${ac_file}.in" ;;
5223 esac
5224
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005225 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005226
5227 # Remove last slash and all that follows it. Not all systems have dirname.
5228 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5229 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5230 # The file is in a subdirectory.
5231 test ! -d "$ac_dir" && mkdir "$ac_dir"
5232 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5233 # A "../" for each directory in $ac_dir_suffix.
5234 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5235 else
5236 ac_dir_suffix= ac_dots=
5237 fi
5238
5239 case "$ac_given_srcdir" in
5240 .) srcdir=.
5241 if test -z "$ac_dots"; then top_srcdir=.
5242 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5243 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5244 *) # Relative path.
5245 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5246 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5247 esac
5248
5249 case "$ac_given_INSTALL" in
5250 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5251 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5252 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005253
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005254 echo creating "$ac_file"
5255 rm -f "$ac_file"
5256 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5257 case "$ac_file" in
5258 *Makefile*) ac_comsub="1i\\
5259# $configure_input" ;;
5260 *) ac_comsub= ;;
5261 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005262
5263 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 +00005264 sed -e "$ac_comsub
5265s%@configure_input@%$configure_input%g
5266s%@srcdir@%$srcdir%g
5267s%@top_srcdir@%$top_srcdir%g
5268s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005269" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005270fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005271rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005272
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005273EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005274
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005275cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005276ac_sources="$nls_cv_header_libgt"
5277ac_dests="$nls_cv_header_intl"
5278EOF
5279
5280cat >> $CONFIG_STATUS <<\EOF
5281srcdir=$ac_given_srcdir
5282while test -n "$ac_sources"; do
5283 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5284 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5285
5286 echo "linking $srcdir/$ac_source to $ac_dest"
5287
5288 if test ! -r $srcdir/$ac_source; then
5289 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5290 fi
5291 rm -f $ac_dest
5292
5293 # Make relative symlinks.
5294 # Remove last slash and all that follows it. Not all systems have dirname.
5295 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5296 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5297 # The dest file is in a subdirectory.
5298 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5299 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5300 # A "../" for each directory in $ac_dest_dir_suffix.
5301 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5302 else
5303 ac_dest_dir_suffix= ac_dots=
5304 fi
5305
5306 case "$srcdir" in
5307 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5308 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5309 esac
5310
5311 # Make a symlink if possible; otherwise try a hard link.
5312 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5313 ln $srcdir/$ac_source $ac_dest; then :
5314 else
5315 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5316 fi
5317done
5318EOF
5319cat >> $CONFIG_STATUS <<EOF
5320
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005321
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005322EOF
5323cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005324case "$CONFIG_FILES" in *po/Makefile.in*)
5325 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5326 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005327
5328exit 0
5329EOF
5330chmod +x $CONFIG_STATUS
5331rm -fr confdefs* $ac_clean_files
5332test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5333