blob: 692bc3722bd7bd11d151803dcf552e0a871addf7 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004# Generated automatically using autoconf version 2.13
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
Theodore Ts'o74becf31997-04-26 14:37:06 +000015 --with-cc=COMPILER select compiler to use"
16ac_help="$ac_help
17 --with-linker=LINKER select linker to use"
18ac_help="$ac_help
19 --with-ccopts=CCOPTS select compiler command line options"
20ac_help="$ac_help
21 --with-ldopts=LDOPTS select linker command line options"
22ac_help="$ac_help
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000023 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000024ac_help="$ac_help
Theodore Ts'o19178752000-02-11 15:55:07 +000025 --enable-compression enable EXPERIMENTAL compression support"
26ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000027 --enable-dll-shlibs select DLL libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000028ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000029 --enable-elf-shlibs select ELF shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000030ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000031 --enable-bsd-shlibs select BSD shared libraries"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000032ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000033 --enable-profile build profiling libraries"
34ac_help="$ac_help
35 --enable-checker build checker libraries"
36ac_help="$ac_help
Theodore Ts'o80bfaa32000-08-18 15:08:37 +000037 --enable-jfs-debug enable journal debugging"
38ac_help="$ac_help
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000039 --disable-swapfs disable support of legacy byte-swapped filesystems"
40ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000041 --disable-debugfs disable support of debugfs program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000042ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000043 --disable-imager disable support of e2image program"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000044ac_help="$ac_help
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000045 --disable-resizer disable support of e2resize program"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000046ac_help="$ac_help
Theodore Ts'oa4d09611997-04-29 14:28:00 +000047 --enable-dynamic-e2fsck build e2fsck dynamically"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000048ac_help="$ac_help
49 --enable-fsck build fsck wrapper program"
50ac_help="$ac_help
51 --enable-old-bitops Use old (non-standard but native) bitmask operations"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +000052ac_help="$ac_help
53 --enable-nls Turn on Native Language Support"
54ac_help="$ac_help
55 --with-included-gettext use the GNU gettext library included here"
56ac_help="$ac_help
57 --with-catgets use catgets functions if available"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000058
59# Initialize some variables set by options.
60# The variables have the same names as the options, with
61# dashes changed to underlines.
62build=NONE
63cache_file=./config.cache
64exec_prefix=NONE
65host=NONE
66no_create=
67nonopt=NONE
68no_recursion=
69prefix=NONE
70program_prefix=NONE
71program_suffix=NONE
72program_transform_name=s,x,x,
73silent=
74site=
75srcdir=
76target=NONE
77verbose=
78x_includes=NONE
79x_libraries=NONE
Theodore Ts'o21c84b71997-04-29 16:15:03 +000080bindir='${exec_prefix}/bin'
81sbindir='${exec_prefix}/sbin'
82libexecdir='${exec_prefix}/libexec'
83datadir='${prefix}/share'
84sysconfdir='${prefix}/etc'
85sharedstatedir='${prefix}/com'
86localstatedir='${prefix}/var'
87libdir='${exec_prefix}/lib'
88includedir='${prefix}/include'
89oldincludedir='/usr/include'
90infodir='${prefix}/info'
91mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000092
93# Initialize some other variables.
94subdirs=
Theodore Ts'o21c84b71997-04-29 16:15:03 +000095MFLAGS= MAKEFLAGS=
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000096SHELL=${CONFIG_SHELL-/bin/sh}
Theodore Ts'o21c84b71997-04-29 16:15:03 +000097# Maximum number of lines to put in a shell here document.
98ac_max_here_lines=12
Theodore Ts'o50e1e101997-04-26 13:58:21 +000099
100ac_prev=
101for ac_option
102do
103
104 # If the previous option needs an argument, assign it.
105 if test -n "$ac_prev"; then
106 eval "$ac_prev=\$ac_option"
107 ac_prev=
108 continue
109 fi
110
111 case "$ac_option" in
112 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 *) ac_optarg= ;;
114 esac
115
116 # Accept the important Cygnus configure options, so we can diagnose typos.
117
118 case "$ac_option" in
119
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000120 -bindir | --bindir | --bindi | --bind | --bin | --bi)
121 ac_prev=bindir ;;
122 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
123 bindir="$ac_optarg" ;;
124
125 -build | --build | --buil | --bui | --bu)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000126 ac_prev=build ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000127 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000128 build="$ac_optarg" ;;
129
130 -cache-file | --cache-file | --cache-fil | --cache-fi \
131 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
132 ac_prev=cache_file ;;
133 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
134 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
135 cache_file="$ac_optarg" ;;
136
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000137 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
138 ac_prev=datadir ;;
139 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
140 | --da=*)
141 datadir="$ac_optarg" ;;
142
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000143 -disable-* | --disable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 fi
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}=no" ;;
151
152 -enable-* | --enable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 fi
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 case "$ac_option" in
160 *=*) ;;
161 *) ac_optarg=yes ;;
162 esac
163 eval "enable_${ac_feature}='$ac_optarg'" ;;
164
165 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
166 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
167 | --exec | --exe | --ex)
168 ac_prev=exec_prefix ;;
169 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
170 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
171 | --exec=* | --exe=* | --ex=*)
172 exec_prefix="$ac_optarg" ;;
173
174 -gas | --gas | --ga | --g)
175 # Obsolete; use --with-gas.
176 with_gas=yes ;;
177
178 -help | --help | --hel | --he)
179 # Omit some internal or obsolete options to make the list less imposing.
180 # This message is too long to be a string in the A/UX 3.1 sh.
181 cat << EOF
182Usage: configure [options] [host]
183Options: [defaults in brackets after descriptions]
184Configuration:
185 --cache-file=FILE cache test results in FILE
186 --help print this message
187 --no-create do not create output files
188 --quiet, --silent do not print \`checking...' messages
189 --version print the version of autoconf that created configure
190Directory and file names:
191 --prefix=PREFIX install architecture-independent files in PREFIX
192 [$ac_default_prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000193 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000194 [same as prefix]
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000195 --bindir=DIR user executables in DIR [EPREFIX/bin]
196 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
197 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
198 --datadir=DIR read-only architecture-independent data in DIR
199 [PREFIX/share]
200 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
201 --sharedstatedir=DIR modifiable architecture-independent data in DIR
202 [PREFIX/com]
203 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
204 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
205 --includedir=DIR C header files in DIR [PREFIX/include]
206 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
207 --infodir=DIR info documentation in DIR [PREFIX/info]
208 --mandir=DIR man documentation in DIR [PREFIX/man]
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000209 --srcdir=DIR find the sources in DIR [configure dir or ..]
210 --program-prefix=PREFIX prepend PREFIX to installed program names
211 --program-suffix=SUFFIX append SUFFIX to installed program names
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000212 --program-transform-name=PROGRAM
213 run sed PROGRAM on installed program names
214EOF
215 cat << EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000216Host type:
217 --build=BUILD configure for building on BUILD [BUILD=HOST]
218 --host=HOST configure for HOST [guessed]
219 --target=TARGET configure for TARGET [TARGET=HOST]
220Features and packages:
221 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
222 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
223 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
224 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
225 --x-includes=DIR X include files are in DIR
226 --x-libraries=DIR X library files are in DIR
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000227EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000228 if test -n "$ac_help"; then
229 echo "--enable and --with options recognized:$ac_help"
230 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000231 exit 0 ;;
232
233 -host | --host | --hos | --ho)
234 ac_prev=host ;;
235 -host=* | --host=* | --hos=* | --ho=*)
236 host="$ac_optarg" ;;
237
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000238 -includedir | --includedir | --includedi | --included | --include \
239 | --includ | --inclu | --incl | --inc)
240 ac_prev=includedir ;;
241 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
242 | --includ=* | --inclu=* | --incl=* | --inc=*)
243 includedir="$ac_optarg" ;;
244
245 -infodir | --infodir | --infodi | --infod | --info | --inf)
246 ac_prev=infodir ;;
247 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
248 infodir="$ac_optarg" ;;
249
250 -libdir | --libdir | --libdi | --libd)
251 ac_prev=libdir ;;
252 -libdir=* | --libdir=* | --libdi=* | --libd=*)
253 libdir="$ac_optarg" ;;
254
255 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
256 | --libexe | --libex | --libe)
257 ac_prev=libexecdir ;;
258 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
259 | --libexe=* | --libex=* | --libe=*)
260 libexecdir="$ac_optarg" ;;
261
262 -localstatedir | --localstatedir | --localstatedi | --localstated \
263 | --localstate | --localstat | --localsta | --localst \
264 | --locals | --local | --loca | --loc | --lo)
265 ac_prev=localstatedir ;;
266 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
267 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
268 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
269 localstatedir="$ac_optarg" ;;
270
271 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
272 ac_prev=mandir ;;
273 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
274 mandir="$ac_optarg" ;;
275
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000276 -nfp | --nfp | --nf)
277 # Obsolete; use --without-fp.
278 with_fp=no ;;
279
280 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
281 | --no-cr | --no-c)
282 no_create=yes ;;
283
284 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
285 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
286 no_recursion=yes ;;
287
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000288 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
289 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
290 | --oldin | --oldi | --old | --ol | --o)
291 ac_prev=oldincludedir ;;
292 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
293 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
294 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
295 oldincludedir="$ac_optarg" ;;
296
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
298 ac_prev=prefix ;;
299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
300 prefix="$ac_optarg" ;;
301
302 -program-prefix | --program-prefix | --program-prefi | --program-pref \
303 | --program-pre | --program-pr | --program-p)
304 ac_prev=program_prefix ;;
305 -program-prefix=* | --program-prefix=* | --program-prefi=* \
306 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
307 program_prefix="$ac_optarg" ;;
308
309 -program-suffix | --program-suffix | --program-suffi | --program-suff \
310 | --program-suf | --program-su | --program-s)
311 ac_prev=program_suffix ;;
312 -program-suffix=* | --program-suffix=* | --program-suffi=* \
313 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
314 program_suffix="$ac_optarg" ;;
315
316 -program-transform-name | --program-transform-name \
317 | --program-transform-nam | --program-transform-na \
318 | --program-transform-n | --program-transform- \
319 | --program-transform | --program-transfor \
320 | --program-transfo | --program-transf \
321 | --program-trans | --program-tran \
322 | --progr-tra | --program-tr | --program-t)
323 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
332
333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
334 | -silent | --silent | --silen | --sile | --sil)
335 silent=yes ;;
336
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000337 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
338 ac_prev=sbindir ;;
339 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
340 | --sbi=* | --sb=*)
341 sbindir="$ac_optarg" ;;
342
343 -sharedstatedir | --sharedstatedir | --sharedstatedi \
344 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
345 | --sharedst | --shareds | --shared | --share | --shar \
346 | --sha | --sh)
347 ac_prev=sharedstatedir ;;
348 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
349 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
350 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
351 | --sha=* | --sh=*)
352 sharedstatedir="$ac_optarg" ;;
353
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000354 -site | --site | --sit)
355 ac_prev=site ;;
356 -site=* | --site=* | --sit=*)
357 site="$ac_optarg" ;;
358
359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
360 ac_prev=srcdir ;;
361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
362 srcdir="$ac_optarg" ;;
363
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000364 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
365 | --syscon | --sysco | --sysc | --sys | --sy)
366 ac_prev=sysconfdir ;;
367 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
368 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
369 sysconfdir="$ac_optarg" ;;
370
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000371 -target | --target | --targe | --targ | --tar | --ta | --t)
372 ac_prev=target ;;
373 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
374 target="$ac_optarg" ;;
375
376 -v | -verbose | --verbose | --verbos | --verbo | --verb)
377 verbose=yes ;;
378
379 -version | --version | --versio | --versi | --vers)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000380 echo "configure generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000381 exit 0 ;;
382
383 -with-* | --with-*)
384 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 fi
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 case "$ac_option" in
391 *=*) ;;
392 *) ac_optarg=yes ;;
393 esac
394 eval "with_${ac_package}='$ac_optarg'" ;;
395
396 -without-* | --without-*)
397 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 fi
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}=no" ;;
404
405 --x)
406 # Obsolete; use --with-x.
407 with_x=yes ;;
408
409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
410 | --x-incl | --x-inc | --x-in | --x-i)
411 ac_prev=x_includes ;;
412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
414 x_includes="$ac_optarg" ;;
415
416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
418 ac_prev=x_libraries ;;
419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
421 x_libraries="$ac_optarg" ;;
422
423 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 ;;
425
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000426 *)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000427 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
428 echo "configure: warning: $ac_option: invalid host type" 1>&2
429 fi
430 if test "x$nonopt" != xNONE; then
431 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
432 fi
433 nonopt="$ac_option"
434 ;;
435
436 esac
437done
438
439if test -n "$ac_prev"; then
440 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
441fi
442
443trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
444
445# File descriptor usage:
446# 0 standard input
447# 1 file creation
448# 2 errors and warnings
449# 3 some systems may open it to /dev/tty
450# 4 used on the Kubota Titan
451# 6 checking for... messages and results
452# 5 compiler messages saved in config.log
453if test "$silent" = yes; then
454 exec 6>/dev/null
455else
456 exec 6>&1
457fi
458exec 5>./config.log
459
460echo "\
461This file contains any messages produced by compilers while
462running configure, to aid debugging if configure makes a mistake.
463" 1>&5
464
465# Strip out --no-create and --no-recursion so they do not pile up.
466# Also quote any args containing shell metacharacters.
467ac_configure_args=
468for ac_arg
469do
470 case "$ac_arg" in
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c) ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
476 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
477 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 esac
479done
480
481# NLS nuisances.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000482# Only set these to C if already set. These must not be set unconditionally
483# because not all systems understand e.g. LANG=C (notably SCO).
484# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
485# Non-C LC_CTYPE values break the ctype check.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000486if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000487if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
488if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
489if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000490
491# confdefs.h avoids OS command line length limits that DEFS can exceed.
492rm -rf conftest* confdefs.h
493# AIX cpp loses on an empty file, so make sure it contains at least a newline.
494echo > confdefs.h
495
496# A filename unique to this package, relative to the directory that
497# configure is in, which we can look for to find out if srcdir is correct.
498ac_unique_file=version.h
499
500# Find the source files, if location was not specified.
501if test -z "$srcdir"; then
502 ac_srcdir_defaulted=yes
503 # Try the directory containing this script, then its parent.
504 ac_prog=$0
505 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
506 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
507 srcdir=$ac_confdir
508 if test ! -r $srcdir/$ac_unique_file; then
509 srcdir=..
510 fi
511else
512 ac_srcdir_defaulted=no
513fi
514if test ! -r $srcdir/$ac_unique_file; then
515 if test "$ac_srcdir_defaulted" = yes; then
516 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
517 else
518 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
519 fi
520fi
521srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
522
523# Prefer explicitly selected file to automatically selected ones.
524if test -z "$CONFIG_SITE"; then
525 if test "x$prefix" != xNONE; then
526 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
527 else
528 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 fi
530fi
531for ac_site_file in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
534 . "$ac_site_file"
535 fi
536done
537
538if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
540 . $cache_file
541else
542 echo "creating cache $cache_file"
543 > $cache_file
544fi
545
546ac_ext=c
547# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000549ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000550ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000551cross_compiling=$ac_cv_prog_cc_cross
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000552
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000553ac_exeext=
554ac_objext=o
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000555if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='
559' ac_t=' '
560 else
561 ac_n=-n ac_c= ac_t=
562 fi
563else
564 ac_n= ac_c='\c' ac_t=
565fi
566
567
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000568
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000569MCONFIG=./MCONFIG
570
Theodore Ts'o74becf31997-04-26 14:37:06 +0000571BINARY_TYPE=bin
572E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
573 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
574DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
575 | tr \" " "`
576MONTH=`echo $DATE | awk -F- '{print $2}'`
577YEAR=`echo $DATE | awk -F- '{print $3}'`
578
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000579if expr $YEAR ">" 1900 > /dev/null ; then
580 E2FSPROGS_YEAR=$YEAR
581elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +0000582 E2FSPROGS_YEAR=19$YEAR
583else
584 E2FSPROGS_YEAR=20$YEAR
585fi
586
587case $MONTH in
588Jan) E2FSPROGS_MONTH="January" ;;
589Feb) E2FSPROGS_MONTH="February" ;;
590Mar) E2FSPROGS_MONTH="March" ;;
591Apr) E2FSPROGS_MONTH="April" ;;
592May) E2FSPROGS_MONTH="May" ;;
593Jun) E2FSPROGS_MONTH="June" ;;
594Jul) E2FSPROGS_MONTH="July" ;;
595Aug) E2FSPROGS_MONTH="August" ;;
596Sep) E2FSPROGS_MONTH="September" ;;
597Oct) E2FSPROGS_MONTH="October" ;;
598Nov) E2FSPROGS_MONTH="November" ;;
599Dec) E2FSPROGS_MONTH="December" ;;
600*) echo "Unknown month $MONTH??" ;;
601esac
602
603unset DATE MONTH YEAR
604echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
605echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
606
607
608
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000609ac_aux_dir=
610for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
611 if test -f $ac_dir/install-sh; then
612 ac_aux_dir=$ac_dir
613 ac_install_sh="$ac_aux_dir/install-sh -c"
614 break
615 elif test -f $ac_dir/install.sh; then
616 ac_aux_dir=$ac_dir
617 ac_install_sh="$ac_aux_dir/install.sh -c"
618 break
619 fi
620done
621if test -z "$ac_aux_dir"; then
622 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
623fi
624ac_config_guess=$ac_aux_dir/config.guess
625ac_config_sub=$ac_aux_dir/config.sub
626ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
627
628
629# Make sure we can run config.sub.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000630if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000631else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
632fi
633
634echo $ac_n "checking host system type""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -0400635echo "configure:636: checking host system type" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000636
637host_alias=$host
638case "$host_alias" in
639NONE)
640 case $nonopt in
641 NONE)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000642 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000643 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644 fi ;;
645 *) host_alias=$nonopt ;;
646 esac ;;
647esac
648
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +0000649host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000650host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000653echo "$ac_t""$host" 1>&6
654
Theodore Ts'o74becf31997-04-26 14:37:06 +0000655# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000656if test "${with_cc+set}" = set; then
657 withval="$with_cc"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000658 echo "$ac_t""CC=$withval" 1>&6
659CC=$withval
660else
661 if test -z "$CC" ; then CC=cc; fi
662echo "$ac_t""CC defaults to $CC" 1>&6
663fi
664export CC
665
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000666# Extract the first word of "gcc", so it can be a program name with args.
667set dummy gcc; ac_word=$2
668echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -0400669echo "configure:670: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000670if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
672else
673 if test -n "$CC"; then
674 ac_cv_prog_CC="$CC" # Let the user override the test.
675else
676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 ac_dummy="$PATH"
678 for ac_dir in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir=.
680 if test -f $ac_dir/$ac_word; then
681 ac_cv_prog_CC="gcc"
682 break
683 fi
684 done
685 IFS="$ac_save_ifs"
686fi
687fi
688CC="$ac_cv_prog_CC"
689if test -n "$CC"; then
690 echo "$ac_t""$CC" 1>&6
691else
692 echo "$ac_t""no" 1>&6
693fi
694
695if test -z "$CC"; then
696 # Extract the first word of "cc", so it can be a program name with args.
697set dummy cc; ac_word=$2
698echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -0400699echo "configure:700: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000700if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
702else
703 if test -n "$CC"; then
704 ac_cv_prog_CC="$CC" # Let the user override the test.
705else
706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
707 ac_prog_rejected=no
708 ac_dummy="$PATH"
709 for ac_dir in $ac_dummy; do
710 test -z "$ac_dir" && ac_dir=.
711 if test -f $ac_dir/$ac_word; then
712 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
713 ac_prog_rejected=yes
714 continue
715 fi
716 ac_cv_prog_CC="cc"
717 break
718 fi
719 done
720 IFS="$ac_save_ifs"
721if test $ac_prog_rejected = yes; then
722 # We found a bogon in the path, so make sure we never use it.
723 set dummy $ac_cv_prog_CC
724 shift
725 if test $# -gt 0; then
726 # We chose a different compiler from the bogus one.
727 # However, it has the same basename, so the bogon will be chosen
728 # first if we set CC to just the basename; use the full file name.
729 shift
730 set dummy "$ac_dir/$ac_word" "$@"
731 shift
732 ac_cv_prog_CC="$@"
733 fi
734fi
735fi
736fi
737CC="$ac_cv_prog_CC"
738if test -n "$CC"; then
739 echo "$ac_t""$CC" 1>&6
740else
741 echo "$ac_t""no" 1>&6
742fi
743
744 if test -z "$CC"; then
745 case "`uname -s`" in
746 *win32* | *WIN32*)
747 # Extract the first word of "cl", so it can be a program name with args.
748set dummy cl; ac_word=$2
749echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -0400750echo "configure:751: checking for $ac_word" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000751if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753else
754 if test -n "$CC"; then
755 ac_cv_prog_CC="$CC" # Let the user override the test.
756else
757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
758 ac_dummy="$PATH"
759 for ac_dir in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir=.
761 if test -f $ac_dir/$ac_word; then
762 ac_cv_prog_CC="cl"
763 break
764 fi
765 done
766 IFS="$ac_save_ifs"
767fi
768fi
769CC="$ac_cv_prog_CC"
770if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
772else
773 echo "$ac_t""no" 1>&6
774fi
775 ;;
776 esac
777 fi
778 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
779fi
780
781echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -0400782echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000783
784ac_ext=c
785# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786ac_cpp='$CPP $CPPFLAGS'
787ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789cross_compiling=$ac_cv_prog_cc_cross
790
791cat > conftest.$ac_ext << EOF
792
Theodore Ts'oea97be52001-09-19 15:20:12 -0400793#line 794 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000794#include "confdefs.h"
795
796main(){return(0);}
797EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -0400798if { (eval echo configure:799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000799 ac_cv_prog_cc_works=yes
800 # If we can't run a trivial program, we are probably using a cross compiler.
801 if (./conftest; exit) 2>/dev/null; then
802 ac_cv_prog_cc_cross=no
803 else
804 ac_cv_prog_cc_cross=yes
805 fi
806else
807 echo "configure: failed program was:" >&5
808 cat conftest.$ac_ext >&5
809 ac_cv_prog_cc_works=no
810fi
811rm -fr conftest*
812ac_ext=c
813# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
814ac_cpp='$CPP $CPPFLAGS'
815ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
816ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
817cross_compiling=$ac_cv_prog_cc_cross
818
819echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
820if test $ac_cv_prog_cc_works = no; then
821 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
822fi
823echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -0400824echo "configure:825: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000825echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
826cross_compiling=$ac_cv_prog_cc_cross
827
828echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -0400829echo "configure:830: checking whether we are using GNU C" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000830if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
832else
833 cat > conftest.c <<EOF
834#ifdef __GNUC__
835 yes;
836#endif
837EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -0400838if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000839 ac_cv_prog_gcc=yes
840else
841 ac_cv_prog_gcc=no
842fi
843fi
844
845echo "$ac_t""$ac_cv_prog_gcc" 1>&6
846
847if test $ac_cv_prog_gcc = yes; then
848 GCC=yes
849else
850 GCC=
851fi
852
853ac_test_CFLAGS="${CFLAGS+set}"
854ac_save_CFLAGS="$CFLAGS"
855CFLAGS=
856echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -0400857echo "configure:858: checking whether ${CC-cc} accepts -g" >&5
Theodore Ts'o73ae2d42000-02-02 16:13:14 +0000858if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
860else
861 echo 'void f(){}' > conftest.c
862if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
863 ac_cv_prog_cc_g=yes
864else
865 ac_cv_prog_cc_g=no
866fi
867rm -f conftest*
868
869fi
870
871echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
872if test "$ac_test_CFLAGS" = set; then
873 CFLAGS="$ac_save_CFLAGS"
874elif test $ac_cv_prog_cc_g = yes; then
875 if test "$GCC" = yes; then
876 CFLAGS="-g -O2"
877 else
878 CFLAGS="-g"
879 fi
880else
881 if test "$GCC" = yes; then
882 CFLAGS="-O2"
883 else
884 CFLAGS=
885 fi
886fi
887
Theodore Ts'o74becf31997-04-26 14:37:06 +0000888# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000889if test "${with_linker+set}" = set; then
890 withval="$with_linker"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000891 echo "$ac_t""LD=$withval" 1>&6
892LD=$withval
893else
894 if test -z "$LD" ; then LD=$CC; fi
895echo "$ac_t""LD defaults to $LD" 1>&6
896fi
897export LD
898
899# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000900if test "${with_ccopts+set}" = set; then
901 withval="$with_ccopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +0000902 echo "$ac_t""CCOPTS is $withval" 1>&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +0000903CFLAGS=$withval
Theodore Ts'o74becf31997-04-26 14:37:06 +0000904fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000905echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -0400906echo "configure:907: checking how to run the C preprocessor" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000907# On Suns, sometimes $CPP names a directory.
908if test -n "$CPP" && test -d "$CPP"; then
909 CPP=
910fi
911if test -z "$CPP"; then
912if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
914else
915 # This must be in double quotes, not single quotes, because CPP may get
916 # substituted into the Makefile and "${CC-cc}" will confuse make.
917 CPP="${CC-cc} -E"
918 # On the NeXT, cc -E runs the code through the compiler's parser,
919 # not just through cpp.
920 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -0400921#line 922 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000922#include "confdefs.h"
923#include <assert.h>
924Syntax Error
925EOF
926ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oea97be52001-09-19 15:20:12 -0400927{ (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000928ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
929if test -z "$ac_err"; then
930 :
931else
932 echo "$ac_err" >&5
933 echo "configure: failed program was:" >&5
934 cat conftest.$ac_ext >&5
935 rm -rf conftest*
936 CPP="${CC-cc} -E -traditional-cpp"
937 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -0400938#line 939 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000939#include "confdefs.h"
940#include <assert.h>
941Syntax Error
942EOF
943ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oea97be52001-09-19 15:20:12 -0400944{ (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000945ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
946if test -z "$ac_err"; then
947 :
948else
949 echo "$ac_err" >&5
950 echo "configure: failed program was:" >&5
951 cat conftest.$ac_ext >&5
952 rm -rf conftest*
953 CPP="${CC-cc} -nologo -E"
954 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -0400955#line 956 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000956#include "confdefs.h"
957#include <assert.h>
958Syntax Error
959EOF
960ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oea97be52001-09-19 15:20:12 -0400961{ (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000962ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
963if test -z "$ac_err"; then
964 :
965else
966 echo "$ac_err" >&5
967 echo "configure: failed program was:" >&5
968 cat conftest.$ac_ext >&5
969 rm -rf conftest*
970 CPP=/lib/cpp
971fi
972rm -f conftest*
973fi
974rm -f conftest*
975fi
976rm -f conftest*
977 ac_cv_prog_CPP="$CPP"
978fi
979 CPP="$ac_cv_prog_CPP"
980else
981 ac_cv_prog_CPP="$CPP"
982fi
983echo "$ac_t""$CPP" 1>&6
984
985ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
986echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -0400987echo "configure:988: checking for linux/fs.h" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000988if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990else
991 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -0400992#line 993 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000993#include "confdefs.h"
994#include <linux/fs.h>
995EOF
996ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oea97be52001-09-19 15:20:12 -0400997{ (eval echo configure:998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +0000998ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
999if test -z "$ac_err"; then
1000 rm -rf conftest*
1001 eval "ac_cv_header_$ac_safe=yes"
1002else
1003 echo "$ac_err" >&5
1004 echo "configure: failed program was:" >&5
1005 cat conftest.$ac_ext >&5
1006 rm -rf conftest*
1007 eval "ac_cv_header_$ac_safe=no"
1008fi
1009rm -f conftest*
1010fi
1011if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1012 echo "$ac_t""yes" 1>&6
1013 linux_headers=yes
1014else
1015 echo "$ac_t""no" 1>&6
1016linux_headers=no
1017fi
1018
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001019if test "$linux_headers" != yes; then
1020 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001021fi
1022
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001023LIB_EXT=.a
1024STATIC_LIB_EXT=.a
1025PROFILE_LIB_EXT=.a
Theodore Ts'o74becf31997-04-26 14:37:06 +00001026# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001027if test "${with_ldopts+set}" = set; then
1028 withval="$with_ldopts"
Theodore Ts'o74becf31997-04-26 14:37:06 +00001029 echo "$ac_t""LDFLAGS is $withval" 1>&6
1030LDFLAGS=$withval
1031else
1032 LDFLAGS=
1033fi
1034
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001035# Check whether --with-root-prefix or --without-root-prefix was given.
1036if test "${with_root_prefix+set}" = set; then
1037 withval="$with_root_prefix"
1038 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001039else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001040 root_prefix=NONE
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001041fi
Theodore Ts'o19178752000-02-11 15:55:07 +00001042# Check whether --enable-compression or --disable-compression was given.
1043if test "${enable_compression+set}" = set; then
1044 enableval="$enable_compression"
1045 if test "$enableval" = "no"
1046then
1047 echo "Disabling compression support"
1048else
1049 cat >> confdefs.h <<\EOF
1050#define ENABLE_COMPRESSION 1
1051EOF
1052
1053 echo "Enabling compression support"
1054 echo "WARNING: Compression support is experimental"
1055fi
1056
1057else
1058 echo "Disabling compression support by default"
1059
1060fi
1061
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001063if test "${enable_dll_shlibs+set}" = set; then
1064 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001065 if test "$enableval" = "no"
1066then
1067 DLL_CMT=#
1068 MAKEFILE_DLL=/dev/null
1069 echo "Disabling DLL shared libraries"
1070else
1071 DLL_CMT=
1072 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00001073 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001074 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001075 echo "Enabling DLL shared libraries"
1076fi
1077
1078else
1079 MAKEFILE_DLL=/dev/null
1080DLL_CMT=#
1081echo "Disabling DLL shared libraries by default"
1082
1083fi
1084
1085
1086
1087# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001088if test "${enable_elf_shlibs+set}" = set; then
1089 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001090 if test "$enableval" = "no"
1091then
1092 ELF_CMT=#
1093 MAKEFILE_ELF=/dev/null
1094 echo "Disabling ELF shared libraries"
1095else
1096 ELF_CMT=
1097 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00001098 case "$host_os" in
1099 solaris2.*)
1100 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1101 ;;
1102 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00001103 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001104 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001105 echo "Enabling ELF shared libraries"
1106fi
1107
1108else
1109 MAKEFILE_ELF=/dev/null
1110ELF_CMT=#
1111echo "Disabling ELF shared libraries by default"
1112
1113fi
1114
1115
1116
1117# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001118if test "${enable_bsd_shlibs+set}" = set; then
1119 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001120 if test "$enableval" = "no"
1121then
1122 BSDLIB_CMT=#
1123 MAKEFILE_BSDLIB=/dev/null
1124 echo "Disabling BSD shared libraries"
1125else
1126 BSDLIB_CMT=
1127 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001128 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001129 echo "Enabling BSD shared libraries"
1130fi
1131
1132else
1133 MAKEFILE_BSDLIB=/dev/null
1134BSDLIB_CMT=#
1135echo "Disabling BSD shared libraries by default"
1136
1137fi
1138
1139
1140
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001141# Check whether --enable-profile or --disable-profile was given.
1142if test "${enable_profile+set}" = set; then
1143 enableval="$enable_profile"
1144 if test "$enableval" = "no"
1145then
1146 PROFILE_CMT=#
1147 MAKEFILE_PROFILE=/dev/null
1148 echo "Disabling profiling libraries"
1149else
1150 PROFILE_CMT=
1151 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1152 PROFILED_LIB_EXT=_p.a
1153 echo "Building profiling libraries"
1154fi
1155
1156else
1157 PROFILE_CMT=#
1158MAKEFILE_PROFILE=/dev/null
1159echo "Disabling profiling libraries by default"
1160
1161fi
1162
1163
1164
1165# Check whether --enable-checker or --disable-checker was given.
1166if test "${enable_checker+set}" = set; then
1167 enableval="$enable_checker"
1168 if test "$enableval" = "no"
1169then
1170 CHECKER_CMT=#
1171 MAKEFILE_CHECKER=/dev/null
1172 echo "Disabling checker libraries"
1173else
1174 CHECKER_CMT=
1175 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1176 echo "Building checker libraries"
1177fi
1178
1179else
1180 CHECKER_CMT=#
1181MAKEFILE_CHECKER=/dev/null
1182echo "Disabling checker libraries by default"
1183
1184fi
1185
1186
1187
1188
1189
1190
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00001191# Check whether --enable-jfs-debug or --disable-jfs-debug was given.
1192if test "${enable_jfs_debug+set}" = set; then
1193 enableval="$enable_jfs_debug"
1194 if test "$enableval" = "no"
1195then
1196 echo "Disabling journal debugging"
1197else
1198 cat >> confdefs.h <<\EOF
1199#define JFS_DEBUG 1
1200EOF
1201
1202 echo "Enabling journal debugging"
1203fi
1204
1205else
1206 echo "Disabling journal debugging by default"
1207
1208fi
1209
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001210# Check whether --enable-swapfs or --disable-swapfs was given.
1211if test "${enable_swapfs+set}" = set; then
1212 enableval="$enable_swapfs"
1213 if test "$enableval" = "no"
1214then
1215 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001216else
1217 cat >> confdefs.h <<\EOF
1218#define ENABLE_SWAPFS 1
1219EOF
1220
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001221 echo "Enabling swapfs support"
1222fi
1223
1224else
1225 echo "Enabling swapfs support by default"
1226cat >> confdefs.h <<\EOF
1227#define ENABLE_SWAPFS 1
1228EOF
1229
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001230
1231fi
1232
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001233# Check whether --enable-debugfs or --disable-debugfs was given.
1234if test "${enable_debugfs+set}" = set; then
1235 enableval="$enable_debugfs"
1236 if test "$enableval" = "no"
1237then
1238 echo "Disabling debugfs support"
1239 DEBUGFS_CMT="#"
1240else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001241 DEBUGFS_CMT=
1242 echo "Enabling debugfs support"
1243fi
1244
1245else
1246 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001247DEBUGFS_CMT=
1248
1249fi
1250
1251
1252# Check whether --enable-imager or --disable-imager was given.
1253if test "${enable_imager+set}" = set; then
1254 enableval="$enable_imager"
1255 if test "$enableval" = "no"
1256then
1257 echo "Disabling e2image support"
1258 IMAGER_CMT="#"
1259else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001260 IMAGER_CMT=
1261 echo "Enabling e2image support"
1262fi
1263
1264else
1265 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001266IMAGER_CMT=
1267
1268fi
1269
1270
1271# Check whether --enable-resizer or --disable-resizer was given.
1272if test "${enable_resizer+set}" = set; then
1273 enableval="$enable_resizer"
1274 if test "$enableval" = "no"
1275then
1276 echo "Disabling e2resize support"
1277 RESIZER_CMT="#"
1278else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001279 RESIZER_CMT=
1280 echo "Enabling e2resize support"
1281fi
1282
1283else
1284 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00001285RESIZER_CMT=
1286
1287fi
1288
1289
1290# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1291if test "${enable_dynamic_e2fsck+set}" = set; then
1292 enableval="$enable_dynamic_e2fsck"
1293 if test "$enableval" = "no"
1294then
1295 E2FSCK_TYPE=static
1296 echo "Building e2fsck statically"
1297else
1298 E2FSCK_TYPE=shared
1299 echo "Building e2fsck dynamically"
1300fi
1301
1302else
1303 E2FSCK_TYPE=static
1304echo "Building e2fsck statically by default"
1305
1306fi
1307
1308
1309# Check whether --enable-fsck or --disable-fsck was given.
1310if test "${enable_fsck+set}" = set; then
1311 enableval="$enable_fsck"
1312 if test "$enableval" = "no"
1313then
1314 FSCK_PROG='' FSCK_MAN=''
1315 echo "Not building fsck wrapper"
1316else
1317 FSCK_PROG=fsck FSCK_MAN=fsck.8
1318 echo "Building fsck wrapper"
1319fi
1320
1321else
1322 case "$host_os" in
1323 gnu*)
1324 FSCK_PROG='' FSCK_MAN=''
1325 echo "Not building fsck wrapper by default"
1326 ;;
1327 *)
1328 FSCK_PROG=fsck FSCK_MAN=fsck.8
1329 echo "Building fsck wrapper by default"
1330esac
1331
1332fi
1333
1334
1335
1336MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1337
1338# Check whether --enable-old-bitops or --disable-old-bitops was given.
1339if test "${enable_old_bitops+set}" = set; then
1340 enableval="$enable_old_bitops"
1341 if test "$enableval" = "no"
1342then
1343 echo "Using new (standard) bitmask operations"
1344else
1345 cat >> confdefs.h <<\EOF
1346#define EXT2_OLD_BITOPS 1
1347EOF
1348
1349 echo "Using old (native) bitmask operations"
1350
1351fi
1352
1353else
1354 echo "Using standard bitmask operations by default"
1355
1356fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001357
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001358PACKAGE=e2fsprogs
1359VERSION="$E2FSPROGS_VERSION"
1360cat >> confdefs.h <<EOF
1361#define PACKAGE "$PACKAGE"
1362EOF
1363
1364cat >> confdefs.h <<EOF
1365#define VERSION "$VERSION"
1366EOF
1367
1368
1369
1370
Theodore Ts'o19178752000-02-11 15:55:07 +00001371ALL_LINGUAS="it nyc"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001372echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001373echo "configure:1374: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001374set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1375if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377else
1378 cat > conftestmake <<\EOF
1379all:
1380 @echo 'ac_maketemp="${MAKE}"'
1381EOF
1382# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1383eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1384if test -n "$ac_maketemp"; then
1385 eval ac_cv_prog_make_${ac_make}_set=yes
1386else
1387 eval ac_cv_prog_make_${ac_make}_set=no
1388fi
1389rm -f conftestmake
1390fi
1391if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1392 echo "$ac_t""yes" 1>&6
1393 SET_MAKE=
1394else
1395 echo "$ac_t""no" 1>&6
1396 SET_MAKE="MAKE=${MAKE-make}"
1397fi
1398
1399# Extract the first word of "ranlib", so it can be a program name with args.
1400set dummy ranlib; ac_word=$2
1401echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001402echo "configure:1403: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001403if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1405else
1406 if test -n "$RANLIB"; then
1407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1408else
1409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1410 ac_dummy="$PATH"
1411 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_RANLIB="ranlib"
1415 break
1416 fi
1417 done
1418 IFS="$ac_save_ifs"
1419 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1420fi
1421fi
1422RANLIB="$ac_cv_prog_RANLIB"
1423if test -n "$RANLIB"; then
1424 echo "$ac_t""$RANLIB" 1>&6
1425else
1426 echo "$ac_t""no" 1>&6
1427fi
1428
1429echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001430echo "configure:1431: checking for POSIXized ISC" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001431if test -d /etc/conf/kconfig.d &&
1432 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1433then
1434 echo "$ac_t""yes" 1>&6
1435 ISC=yes # If later tests want to check for ISC.
1436 cat >> confdefs.h <<\EOF
1437#define _POSIX_SOURCE 1
1438EOF
1439
1440 if test "$GCC" = yes; then
1441 CC="$CC -posix"
1442 else
1443 CC="$CC -Xp"
1444 fi
1445else
1446 echo "$ac_t""no" 1>&6
1447 ISC=
1448fi
1449
1450echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001451echo "configure:1452: checking for ANSI C header files" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001452if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1454else
1455 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001456#line 1457 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001457#include "confdefs.h"
1458#include <stdlib.h>
1459#include <stdarg.h>
1460#include <string.h>
1461#include <float.h>
1462EOF
1463ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oea97be52001-09-19 15:20:12 -04001464{ (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001465ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1466if test -z "$ac_err"; then
1467 rm -rf conftest*
1468 ac_cv_header_stdc=yes
1469else
1470 echo "$ac_err" >&5
1471 echo "configure: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1473 rm -rf conftest*
1474 ac_cv_header_stdc=no
1475fi
1476rm -f conftest*
1477
1478if test $ac_cv_header_stdc = yes; then
1479 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1480cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001481#line 1482 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001482#include "confdefs.h"
1483#include <string.h>
1484EOF
1485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1486 egrep "memchr" >/dev/null 2>&1; then
1487 :
1488else
1489 rm -rf conftest*
1490 ac_cv_header_stdc=no
1491fi
1492rm -f conftest*
1493
1494fi
1495
1496if test $ac_cv_header_stdc = yes; then
1497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1498cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001499#line 1500 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001500#include "confdefs.h"
1501#include <stdlib.h>
1502EOF
1503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1504 egrep "free" >/dev/null 2>&1; then
1505 :
1506else
1507 rm -rf conftest*
1508 ac_cv_header_stdc=no
1509fi
1510rm -f conftest*
1511
1512fi
1513
1514if test $ac_cv_header_stdc = yes; then
1515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1516if test "$cross_compiling" = yes; then
1517 :
1518else
1519 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001520#line 1521 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001521#include "confdefs.h"
1522#include <ctype.h>
1523#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1524#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1525#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1526int main () { int i; for (i = 0; i < 256; i++)
1527if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1528exit (0); }
1529
1530EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001531if { (eval echo configure:1532: \"$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 +00001532then
1533 :
1534else
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1537 rm -fr conftest*
1538 ac_cv_header_stdc=no
1539fi
1540rm -fr conftest*
1541fi
1542
1543fi
1544fi
1545
1546echo "$ac_t""$ac_cv_header_stdc" 1>&6
1547if test $ac_cv_header_stdc = yes; then
1548 cat >> confdefs.h <<\EOF
1549#define STDC_HEADERS 1
1550EOF
1551
1552fi
1553
1554echo $ac_n "checking for working const""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001555echo "configure:1556: checking for working const" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001556if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558else
1559 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001560#line 1561 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001561#include "confdefs.h"
1562
1563int main() {
1564
1565/* Ultrix mips cc rejects this. */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001566typedef int charset[2]; const charset x;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001567/* SunOS 4.1.1 cc rejects this. */
1568char const *const *ccp;
1569char **p;
1570/* NEC SVR4.0.2 mips cc rejects this. */
1571struct point {int x, y;};
1572static struct point const zero = {0,0};
1573/* AIX XL C 1.02.0.0 rejects this.
1574 It does not let you subtract one const X* pointer from another in an arm
1575 of an if-expression whose if-part is not a constant expression */
1576const char *g = "string";
1577ccp = &g + (g ? g-g : 0);
1578/* HPUX 7.0 cc rejects these. */
1579++ccp;
1580p = (char**) ccp;
1581ccp = (char const *const *) p;
1582{ /* SCO 3.2v4 cc rejects this. */
1583 char *t;
1584 char const *s = 0 ? (char *) 0 : (char const *) 0;
1585
1586 *t++ = 0;
1587}
1588{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1589 int x[] = {25, 17};
1590 const int *foo = &x[0];
1591 ++foo;
1592}
1593{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1594 typedef const int *iptr;
1595 iptr p = 0;
1596 ++p;
1597}
1598{ /* AIX XL C 1.02.0.0 rejects this saying
1599 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1600 struct s { int j; const int *ap[3]; };
1601 struct s *b; b->j = 5;
1602}
1603{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1604 const int foo = 10;
1605}
1606
1607; return 0; }
1608EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001609if { (eval echo configure:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001610 rm -rf conftest*
1611 ac_cv_c_const=yes
1612else
1613 echo "configure: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1615 rm -rf conftest*
1616 ac_cv_c_const=no
1617fi
1618rm -f conftest*
1619fi
1620
1621echo "$ac_t""$ac_cv_c_const" 1>&6
1622if test $ac_cv_c_const = no; then
1623 cat >> confdefs.h <<\EOF
1624#define const
1625EOF
1626
1627fi
1628
1629echo $ac_n "checking for inline""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001630echo "configure:1631: checking for inline" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001631if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1633else
1634 ac_cv_c_inline=no
1635for ac_kw in inline __inline__ __inline; do
1636 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001637#line 1638 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001638#include "confdefs.h"
1639
1640int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001641} $ac_kw foo() {
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001642; return 0; }
1643EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001644if { (eval echo configure:1645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001645 rm -rf conftest*
1646 ac_cv_c_inline=$ac_kw; break
1647else
1648 echo "configure: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1650fi
1651rm -f conftest*
1652done
1653
1654fi
1655
1656echo "$ac_t""$ac_cv_c_inline" 1>&6
1657case "$ac_cv_c_inline" in
1658 inline | yes) ;;
1659 no) cat >> confdefs.h <<\EOF
1660#define inline
1661EOF
1662 ;;
1663 *) cat >> confdefs.h <<EOF
1664#define inline $ac_cv_c_inline
1665EOF
1666 ;;
1667esac
1668
1669echo $ac_n "checking for off_t""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001670echo "configure:1671: checking for off_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001671if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1673else
1674 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001675#line 1676 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001676#include "confdefs.h"
1677#include <sys/types.h>
1678#if STDC_HEADERS
1679#include <stdlib.h>
1680#include <stddef.h>
1681#endif
1682EOF
1683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1684 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1685 rm -rf conftest*
1686 ac_cv_type_off_t=yes
1687else
1688 rm -rf conftest*
1689 ac_cv_type_off_t=no
1690fi
1691rm -f conftest*
1692
1693fi
1694echo "$ac_t""$ac_cv_type_off_t" 1>&6
1695if test $ac_cv_type_off_t = no; then
1696 cat >> confdefs.h <<\EOF
1697#define off_t long
1698EOF
1699
1700fi
1701
1702echo $ac_n "checking for size_t""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001703echo "configure:1704: checking for size_t" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001704if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1706else
1707 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001708#line 1709 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001709#include "confdefs.h"
1710#include <sys/types.h>
1711#if STDC_HEADERS
1712#include <stdlib.h>
1713#include <stddef.h>
1714#endif
1715EOF
1716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1717 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1718 rm -rf conftest*
1719 ac_cv_type_size_t=yes
1720else
1721 rm -rf conftest*
1722 ac_cv_type_size_t=no
1723fi
1724rm -f conftest*
1725
1726fi
1727echo "$ac_t""$ac_cv_type_size_t" 1>&6
1728if test $ac_cv_type_size_t = no; then
1729 cat >> confdefs.h <<\EOF
1730#define size_t unsigned
1731EOF
1732
1733fi
1734
1735# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1736# for constant arguments. Useless!
1737echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001738echo "configure:1739: checking for working alloca.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001739if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1741else
1742 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001743#line 1744 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001744#include "confdefs.h"
1745#include <alloca.h>
1746int main() {
Theodore Ts'o250f79f2001-05-19 22:02:22 +00001747char *p = alloca(2 * sizeof(int));
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001748; return 0; }
1749EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001750if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001751 rm -rf conftest*
1752 ac_cv_header_alloca_h=yes
1753else
1754 echo "configure: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1756 rm -rf conftest*
1757 ac_cv_header_alloca_h=no
1758fi
1759rm -f conftest*
1760fi
1761
1762echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1763if test $ac_cv_header_alloca_h = yes; then
1764 cat >> confdefs.h <<\EOF
1765#define HAVE_ALLOCA_H 1
1766EOF
1767
1768fi
1769
1770echo $ac_n "checking for alloca""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001771echo "configure:1772: checking for alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001772if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1774else
1775 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001776#line 1777 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001777#include "confdefs.h"
1778
1779#ifdef __GNUC__
1780# define alloca __builtin_alloca
1781#else
1782# ifdef _MSC_VER
1783# include <malloc.h>
1784# define alloca _alloca
1785# else
1786# if HAVE_ALLOCA_H
1787# include <alloca.h>
1788# else
1789# ifdef _AIX
1790 #pragma alloca
1791# else
1792# ifndef alloca /* predefined by HP cc +Olibcalls */
1793char *alloca ();
1794# endif
1795# endif
1796# endif
1797# endif
1798#endif
1799
1800int main() {
1801char *p = (char *) alloca(1);
1802; return 0; }
1803EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001804if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001805 rm -rf conftest*
1806 ac_cv_func_alloca_works=yes
1807else
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 rm -rf conftest*
1811 ac_cv_func_alloca_works=no
1812fi
1813rm -f conftest*
1814fi
1815
1816echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1817if test $ac_cv_func_alloca_works = yes; then
1818 cat >> confdefs.h <<\EOF
1819#define HAVE_ALLOCA 1
1820EOF
1821
1822fi
1823
1824if test $ac_cv_func_alloca_works = no; then
1825 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1826 # that cause trouble. Some versions do not even contain alloca or
1827 # contain a buggy version. If you still want to use their alloca,
1828 # use ar to extract alloca.o from them instead of compiling alloca.c.
1829 ALLOCA=alloca.${ac_objext}
1830 cat >> confdefs.h <<\EOF
1831#define C_ALLOCA 1
1832EOF
1833
1834
1835echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001836echo "configure:1837: checking whether alloca needs Cray hooks" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001837if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839else
1840 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001841#line 1842 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001842#include "confdefs.h"
1843#if defined(CRAY) && ! defined(CRAY2)
1844webecray
1845#else
1846wenotbecray
1847#endif
1848
1849EOF
1850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1851 egrep "webecray" >/dev/null 2>&1; then
1852 rm -rf conftest*
1853 ac_cv_os_cray=yes
1854else
1855 rm -rf conftest*
1856 ac_cv_os_cray=no
1857fi
1858rm -f conftest*
1859
1860fi
1861
1862echo "$ac_t""$ac_cv_os_cray" 1>&6
1863if test $ac_cv_os_cray = yes; then
1864for ac_func in _getb67 GETB67 getb67; do
1865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001866echo "configure:1867: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001867if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1869else
1870 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001871#line 1872 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001872#include "confdefs.h"
1873/* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $ac_func(); below. */
1875#include <assert.h>
1876/* Override any gcc2 internal prototype to avoid an error. */
1877/* We use char because int might match the return type of a gcc2
1878 builtin and then its argument prototype would still apply. */
1879char $ac_func();
1880
1881int main() {
1882
1883/* The GNU C library defines this for functions which it implements
1884 to always fail with ENOSYS. Some functions are actually named
1885 something starting with __ and the normal name is an alias. */
1886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1887choke me
1888#else
1889$ac_func();
1890#endif
1891
1892; return 0; }
1893EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001894if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001895 rm -rf conftest*
1896 eval "ac_cv_func_$ac_func=yes"
1897else
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1900 rm -rf conftest*
1901 eval "ac_cv_func_$ac_func=no"
1902fi
1903rm -f conftest*
1904fi
1905
1906if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1908 cat >> confdefs.h <<EOF
1909#define CRAY_STACKSEG_END $ac_func
1910EOF
1911
1912 break
1913else
1914 echo "$ac_t""no" 1>&6
1915fi
1916
1917done
1918fi
1919
1920echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001921echo "configure:1922: checking stack direction for C alloca" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001922if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1924else
1925 if test "$cross_compiling" = yes; then
1926 ac_cv_c_stack_direction=0
1927else
1928 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001929#line 1930 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001930#include "confdefs.h"
1931find_stack_direction ()
1932{
1933 static char *addr = 0;
1934 auto char dummy;
1935 if (addr == 0)
1936 {
1937 addr = &dummy;
1938 return find_stack_direction ();
1939 }
1940 else
1941 return (&dummy > addr) ? 1 : -1;
1942}
1943main ()
1944{
1945 exit (find_stack_direction() < 0);
1946}
1947EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001948if { (eval echo configure:1949: \"$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 +00001949then
1950 ac_cv_c_stack_direction=1
1951else
1952 echo "configure: failed program was:" >&5
1953 cat conftest.$ac_ext >&5
1954 rm -fr conftest*
1955 ac_cv_c_stack_direction=-1
1956fi
1957rm -fr conftest*
1958fi
1959
1960fi
1961
1962echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1963cat >> confdefs.h <<EOF
1964#define STACK_DIRECTION $ac_cv_c_stack_direction
1965EOF
1966
1967fi
1968
1969for ac_hdr in unistd.h
1970do
1971ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1972echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04001973echo "configure:1974: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001974if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1976else
1977 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04001978#line 1979 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001979#include "confdefs.h"
1980#include <$ac_hdr>
1981EOF
1982ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oea97be52001-09-19 15:20:12 -04001983{ (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00001984ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1985if test -z "$ac_err"; then
1986 rm -rf conftest*
1987 eval "ac_cv_header_$ac_safe=yes"
1988else
1989 echo "$ac_err" >&5
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1992 rm -rf conftest*
1993 eval "ac_cv_header_$ac_safe=no"
1994fi
1995rm -f conftest*
1996fi
1997if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1998 echo "$ac_t""yes" 1>&6
1999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2000 cat >> confdefs.h <<EOF
2001#define $ac_tr_hdr 1
2002EOF
2003
2004else
2005 echo "$ac_t""no" 1>&6
2006fi
2007done
2008
2009for ac_func in getpagesize
2010do
2011echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002012echo "configure:2013: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002013if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2015else
2016 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002017#line 2018 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002018#include "confdefs.h"
2019/* System header to define __stub macros and hopefully few prototypes,
2020 which can conflict with char $ac_func(); below. */
2021#include <assert.h>
2022/* Override any gcc2 internal prototype to avoid an error. */
2023/* We use char because int might match the return type of a gcc2
2024 builtin and then its argument prototype would still apply. */
2025char $ac_func();
2026
2027int main() {
2028
2029/* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2033choke me
2034#else
2035$ac_func();
2036#endif
2037
2038; return 0; }
2039EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002040if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002041 rm -rf conftest*
2042 eval "ac_cv_func_$ac_func=yes"
2043else
2044 echo "configure: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2046 rm -rf conftest*
2047 eval "ac_cv_func_$ac_func=no"
2048fi
2049rm -f conftest*
2050fi
2051
2052if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2053 echo "$ac_t""yes" 1>&6
2054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2055 cat >> confdefs.h <<EOF
2056#define $ac_tr_func 1
2057EOF
2058
2059else
2060 echo "$ac_t""no" 1>&6
2061fi
2062done
2063
2064echo $ac_n "checking for working mmap""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002065echo "configure:2066: checking for working mmap" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002066if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2068else
2069 if test "$cross_compiling" = yes; then
2070 ac_cv_func_mmap_fixed_mapped=no
2071else
2072 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002073#line 2074 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002074#include "confdefs.h"
2075
2076/* Thanks to Mike Haertel and Jim Avera for this test.
2077 Here is a matrix of mmap possibilities:
2078 mmap private not fixed
2079 mmap private fixed at somewhere currently unmapped
2080 mmap private fixed at somewhere already mapped
2081 mmap shared not fixed
2082 mmap shared fixed at somewhere currently unmapped
2083 mmap shared fixed at somewhere already mapped
2084 For private mappings, we should verify that changes cannot be read()
2085 back from the file, nor mmap's back from the file at a different
2086 address. (There have been systems where private was not correctly
2087 implemented like the infamous i386 svr4.0, and systems where the
2088 VM page cache was not coherent with the filesystem buffer cache
2089 like early versions of FreeBSD and possibly contemporary NetBSD.)
2090 For shared mappings, we should conversely verify that changes get
2091 propogated back to all the places they're supposed to be.
2092
2093 Grep wants private fixed already mapped.
2094 The main things grep needs to know about mmap are:
2095 * does it exist and is it safe to write into the mmap'd area
2096 * how to use it (BSD variants) */
2097#include <sys/types.h>
2098#include <fcntl.h>
2099#include <sys/mman.h>
2100
2101/* This mess was copied from the GNU getpagesize.h. */
2102#ifndef HAVE_GETPAGESIZE
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002103# ifdef HAVE_UNISTD_H
2104# include <unistd.h>
2105# endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002106
2107/* Assume that all systems that can run configure have sys/param.h. */
2108# ifndef HAVE_SYS_PARAM_H
2109# define HAVE_SYS_PARAM_H 1
2110# endif
2111
2112# ifdef _SC_PAGESIZE
2113# define getpagesize() sysconf(_SC_PAGESIZE)
2114# else /* no _SC_PAGESIZE */
2115# ifdef HAVE_SYS_PARAM_H
2116# include <sys/param.h>
2117# ifdef EXEC_PAGESIZE
2118# define getpagesize() EXEC_PAGESIZE
2119# else /* no EXEC_PAGESIZE */
2120# ifdef NBPG
2121# define getpagesize() NBPG * CLSIZE
2122# ifndef CLSIZE
2123# define CLSIZE 1
2124# endif /* no CLSIZE */
2125# else /* no NBPG */
2126# ifdef NBPC
2127# define getpagesize() NBPC
2128# else /* no NBPC */
2129# ifdef PAGESIZE
2130# define getpagesize() PAGESIZE
2131# endif /* PAGESIZE */
2132# endif /* no NBPC */
2133# endif /* no NBPG */
2134# endif /* no EXEC_PAGESIZE */
2135# else /* no HAVE_SYS_PARAM_H */
2136# define getpagesize() 8192 /* punt totally */
2137# endif /* no HAVE_SYS_PARAM_H */
2138# endif /* no _SC_PAGESIZE */
2139
2140#endif /* no HAVE_GETPAGESIZE */
2141
2142#ifdef __cplusplus
2143extern "C" { void *malloc(unsigned); }
2144#else
2145char *malloc();
2146#endif
2147
2148int
2149main()
2150{
2151 char *data, *data2, *data3;
2152 int i, pagesize;
2153 int fd;
2154
2155 pagesize = getpagesize();
2156
2157 /*
2158 * First, make a file with some known garbage in it.
2159 */
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002160 data = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002161 if (!data)
2162 exit(1);
2163 for (i = 0; i < pagesize; ++i)
2164 *(data + i) = rand();
2165 umask(0);
2166 fd = creat("conftestmmap", 0600);
2167 if (fd < 0)
2168 exit(1);
2169 if (write(fd, data, pagesize) != pagesize)
2170 exit(1);
2171 close(fd);
2172
2173 /*
2174 * Next, try to mmap the file at a fixed address which
2175 * already has something else allocated at it. If we can,
2176 * also make sure that we see the same garbage.
2177 */
2178 fd = open("conftestmmap", O_RDWR);
2179 if (fd < 0)
2180 exit(1);
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002181 data2 = malloc(2 * pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002182 if (!data2)
2183 exit(1);
2184 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2185 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2186 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2187 exit(1);
2188 for (i = 0; i < pagesize; ++i)
2189 if (*(data + i) != *(data2 + i))
2190 exit(1);
2191
2192 /*
2193 * Finally, make sure that changes to the mapped area
2194 * do not percolate back to the file as seen by read().
2195 * (This is a bug on some variants of i386 svr4.0.)
2196 */
2197 for (i = 0; i < pagesize; ++i)
2198 *(data2 + i) = *(data2 + i) + 1;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00002199 data3 = malloc(pagesize);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002200 if (!data3)
2201 exit(1);
2202 if (read(fd, data3, pagesize) != pagesize)
2203 exit(1);
2204 for (i = 0; i < pagesize; ++i)
2205 if (*(data + i) != *(data3 + i))
2206 exit(1);
2207 close(fd);
2208 unlink("conftestmmap");
2209 exit(0);
2210}
2211
2212EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002213if { (eval echo configure:2214: \"$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 +00002214then
2215 ac_cv_func_mmap_fixed_mapped=yes
2216else
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2219 rm -fr conftest*
2220 ac_cv_func_mmap_fixed_mapped=no
2221fi
2222rm -fr conftest*
2223fi
2224
2225fi
2226
2227echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2228if test $ac_cv_func_mmap_fixed_mapped = yes; then
2229 cat >> confdefs.h <<\EOF
2230#define HAVE_MMAP 1
2231EOF
2232
2233fi
2234
2235
2236 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2237unistd.h sys/param.h
2238do
2239ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2240echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002241echo "configure:2242: checking for $ac_hdr" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002242if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2244else
2245 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002246#line 2247 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002247#include "confdefs.h"
2248#include <$ac_hdr>
2249EOF
2250ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oea97be52001-09-19 15:20:12 -04002251{ (eval echo configure:2252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002252ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2253if test -z "$ac_err"; then
2254 rm -rf conftest*
2255 eval "ac_cv_header_$ac_safe=yes"
2256else
2257 echo "$ac_err" >&5
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2260 rm -rf conftest*
2261 eval "ac_cv_header_$ac_safe=no"
2262fi
2263rm -f conftest*
2264fi
2265if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2266 echo "$ac_t""yes" 1>&6
2267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2268 cat >> confdefs.h <<EOF
2269#define $ac_tr_hdr 1
2270EOF
2271
2272else
2273 echo "$ac_t""no" 1>&6
2274fi
2275done
2276
2277 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2278strdup __argz_count __argz_stringify __argz_next
2279do
2280echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002281echo "configure:2282: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002282if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2284else
2285 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002286#line 2287 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002287#include "confdefs.h"
2288/* System header to define __stub macros and hopefully few prototypes,
2289 which can conflict with char $ac_func(); below. */
2290#include <assert.h>
2291/* Override any gcc2 internal prototype to avoid an error. */
2292/* We use char because int might match the return type of a gcc2
2293 builtin and then its argument prototype would still apply. */
2294char $ac_func();
2295
2296int main() {
2297
2298/* The GNU C library defines this for functions which it implements
2299 to always fail with ENOSYS. Some functions are actually named
2300 something starting with __ and the normal name is an alias. */
2301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2302choke me
2303#else
2304$ac_func();
2305#endif
2306
2307; return 0; }
2308EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002309if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002310 rm -rf conftest*
2311 eval "ac_cv_func_$ac_func=yes"
2312else
2313 echo "configure: failed program was:" >&5
2314 cat conftest.$ac_ext >&5
2315 rm -rf conftest*
2316 eval "ac_cv_func_$ac_func=no"
2317fi
2318rm -f conftest*
2319fi
2320
2321if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2324 cat >> confdefs.h <<EOF
2325#define $ac_tr_func 1
2326EOF
2327
2328else
2329 echo "$ac_t""no" 1>&6
2330fi
2331done
2332
2333
2334 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2335 for ac_func in stpcpy
2336do
2337echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002338echo "configure:2339: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002339if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2341else
2342 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002343#line 2344 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002344#include "confdefs.h"
2345/* System header to define __stub macros and hopefully few prototypes,
2346 which can conflict with char $ac_func(); below. */
2347#include <assert.h>
2348/* Override any gcc2 internal prototype to avoid an error. */
2349/* We use char because int might match the return type of a gcc2
2350 builtin and then its argument prototype would still apply. */
2351char $ac_func();
2352
2353int main() {
2354
2355/* The GNU C library defines this for functions which it implements
2356 to always fail with ENOSYS. Some functions are actually named
2357 something starting with __ and the normal name is an alias. */
2358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2359choke me
2360#else
2361$ac_func();
2362#endif
2363
2364; return 0; }
2365EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002366if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002367 rm -rf conftest*
2368 eval "ac_cv_func_$ac_func=yes"
2369else
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 rm -rf conftest*
2373 eval "ac_cv_func_$ac_func=no"
2374fi
2375rm -f conftest*
2376fi
2377
2378if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2381 cat >> confdefs.h <<EOF
2382#define $ac_tr_func 1
2383EOF
2384
2385else
2386 echo "$ac_t""no" 1>&6
2387fi
2388done
2389
2390 fi
2391 if test "${ac_cv_func_stpcpy}" = "yes"; then
2392 cat >> confdefs.h <<\EOF
2393#define HAVE_STPCPY 1
2394EOF
2395
2396 fi
2397
2398 if test $ac_cv_header_locale_h = yes; then
2399 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002400echo "configure:2401: checking for LC_MESSAGES" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002401if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2403else
2404 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002405#line 2406 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002406#include "confdefs.h"
2407#include <locale.h>
2408int main() {
2409return LC_MESSAGES
2410; return 0; }
2411EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002412if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002413 rm -rf conftest*
2414 am_cv_val_LC_MESSAGES=yes
2415else
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2418 rm -rf conftest*
2419 am_cv_val_LC_MESSAGES=no
2420fi
2421rm -f conftest*
2422fi
2423
2424echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2425 if test $am_cv_val_LC_MESSAGES = yes; then
2426 cat >> confdefs.h <<\EOF
2427#define HAVE_LC_MESSAGES 1
2428EOF
2429
2430 fi
2431 fi
2432 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002433echo "configure:2434: checking whether NLS is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002434 # Check whether --enable-nls or --disable-nls was given.
2435if test "${enable_nls+set}" = set; then
2436 enableval="$enable_nls"
2437 USE_NLS=$enableval
2438else
2439 USE_NLS=no
2440fi
2441
2442 echo "$ac_t""$USE_NLS" 1>&6
2443
2444
2445 USE_INCLUDED_LIBINTL=no
2446
2447 if test "$USE_NLS" = "yes"; then
2448 cat >> confdefs.h <<\EOF
2449#define ENABLE_NLS 1
2450EOF
2451
2452 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002453echo "configure:2454: checking whether included gettext is requested" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002454 # Check whether --with-included-gettext or --without-included-gettext was given.
2455if test "${with_included_gettext+set}" = set; then
2456 withval="$with_included_gettext"
2457 nls_cv_force_use_gnu_gettext=$withval
2458else
2459 nls_cv_force_use_gnu_gettext=no
2460fi
2461
2462 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2463
2464 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2465 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2466 nls_cv_header_intl=
2467 nls_cv_header_libgt=
2468 CATOBJEXT=NONE
2469
2470 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2471echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002472echo "configure:2473: checking for libintl.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002473if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2475else
2476 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002477#line 2478 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002478#include "confdefs.h"
2479#include <libintl.h>
2480EOF
2481ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oea97be52001-09-19 15:20:12 -04002482{ (eval echo configure:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002483ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484if test -z "$ac_err"; then
2485 rm -rf conftest*
2486 eval "ac_cv_header_$ac_safe=yes"
2487else
2488 echo "$ac_err" >&5
2489 echo "configure: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2491 rm -rf conftest*
2492 eval "ac_cv_header_$ac_safe=no"
2493fi
2494rm -f conftest*
2495fi
2496if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002499echo "configure:2500: checking for gettext in libc" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002500if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2502else
2503 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002504#line 2505 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002505#include "confdefs.h"
2506#include <libintl.h>
2507int main() {
2508return (int) gettext ("")
2509; return 0; }
2510EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002511if { (eval echo configure:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002512 rm -rf conftest*
2513 gt_cv_func_gettext_libc=yes
2514else
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2517 rm -rf conftest*
2518 gt_cv_func_gettext_libc=no
2519fi
2520rm -f conftest*
2521fi
2522
2523echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2524
2525 if test "$gt_cv_func_gettext_libc" != "yes"; then
2526 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002527echo "configure:2528: checking for bindtextdomain in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002528ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2529if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2531else
2532 ac_save_LIBS="$LIBS"
2533LIBS="-lintl $LIBS"
2534cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002535#line 2536 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002536#include "confdefs.h"
2537/* Override any gcc2 internal prototype to avoid an error. */
2538/* We use char because int might match the return type of a gcc2
2539 builtin and then its argument prototype would still apply. */
2540char bindtextdomain();
2541
2542int main() {
2543bindtextdomain()
2544; return 0; }
2545EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002546if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002547 rm -rf conftest*
2548 eval "ac_cv_lib_$ac_lib_var=yes"
2549else
2550 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 rm -rf conftest*
2553 eval "ac_cv_lib_$ac_lib_var=no"
2554fi
2555rm -f conftest*
2556LIBS="$ac_save_LIBS"
2557
2558fi
2559if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2560 echo "$ac_t""yes" 1>&6
2561 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002562echo "configure:2563: checking for gettext in libintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002563if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2565else
2566 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002567echo "configure:2568: checking for gettext in -lintl" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002568ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2569if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2571else
2572 ac_save_LIBS="$LIBS"
2573LIBS="-lintl $LIBS"
2574cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002575#line 2576 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002576#include "confdefs.h"
2577/* Override any gcc2 internal prototype to avoid an error. */
2578/* We use char because int might match the return type of a gcc2
2579 builtin and then its argument prototype would still apply. */
2580char gettext();
2581
2582int main() {
2583gettext()
2584; return 0; }
2585EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002586if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002587 rm -rf conftest*
2588 eval "ac_cv_lib_$ac_lib_var=yes"
2589else
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 rm -rf conftest*
2593 eval "ac_cv_lib_$ac_lib_var=no"
2594fi
2595rm -f conftest*
2596LIBS="$ac_save_LIBS"
2597
2598fi
2599if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2600 echo "$ac_t""yes" 1>&6
2601 gt_cv_func_gettext_libintl=yes
2602else
2603 echo "$ac_t""no" 1>&6
2604gt_cv_func_gettext_libintl=no
2605fi
2606
2607fi
2608
2609echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2610else
2611 echo "$ac_t""no" 1>&6
2612fi
2613
2614 fi
2615
2616 if test "$gt_cv_func_gettext_libc" = "yes" \
2617 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2618 cat >> confdefs.h <<\EOF
2619#define HAVE_GETTEXT 1
2620EOF
2621
2622 # Extract the first word of "msgfmt", so it can be a program name with args.
2623set dummy msgfmt; ac_word=$2
2624echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002625echo "configure:2626: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002626if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2628else
2629 case "$MSGFMT" in
2630 /*)
2631 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2632 ;;
2633 *)
2634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2635 for ac_dir in $PATH; do
2636 test -z "$ac_dir" && ac_dir=.
2637 if test -f $ac_dir/$ac_word; then
2638 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2639 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2640 break
2641 fi
2642 fi
2643 done
2644 IFS="$ac_save_ifs"
2645 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2646 ;;
2647esac
2648fi
2649MSGFMT="$ac_cv_path_MSGFMT"
2650if test -n "$MSGFMT"; then
2651 echo "$ac_t""$MSGFMT" 1>&6
2652else
2653 echo "$ac_t""no" 1>&6
2654fi
2655 if test "$MSGFMT" != "no"; then
2656 for ac_func in dcgettext
2657do
2658echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002659echo "configure:2660: checking for $ac_func" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002660if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2662else
2663 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002664#line 2665 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002665#include "confdefs.h"
2666/* System header to define __stub macros and hopefully few prototypes,
2667 which can conflict with char $ac_func(); below. */
2668#include <assert.h>
2669/* Override any gcc2 internal prototype to avoid an error. */
2670/* We use char because int might match the return type of a gcc2
2671 builtin and then its argument prototype would still apply. */
2672char $ac_func();
2673
2674int main() {
2675
2676/* The GNU C library defines this for functions which it implements
2677 to always fail with ENOSYS. Some functions are actually named
2678 something starting with __ and the normal name is an alias. */
2679#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2680choke me
2681#else
2682$ac_func();
2683#endif
2684
2685; return 0; }
2686EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002687if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002688 rm -rf conftest*
2689 eval "ac_cv_func_$ac_func=yes"
2690else
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 rm -rf conftest*
2694 eval "ac_cv_func_$ac_func=no"
2695fi
2696rm -f conftest*
2697fi
2698
2699if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2700 echo "$ac_t""yes" 1>&6
2701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2702 cat >> confdefs.h <<EOF
2703#define $ac_tr_func 1
2704EOF
2705
2706else
2707 echo "$ac_t""no" 1>&6
2708fi
2709done
2710
2711 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2712set dummy gmsgfmt; ac_word=$2
2713echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002714echo "configure:2715: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002715if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2717else
2718 case "$GMSGFMT" in
2719 /*)
2720 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2721 ;;
2722 ?:/*)
2723 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2724 ;;
2725 *)
2726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2727 ac_dummy="$PATH"
2728 for ac_dir in $ac_dummy; do
2729 test -z "$ac_dir" && ac_dir=.
2730 if test -f $ac_dir/$ac_word; then
2731 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2732 break
2733 fi
2734 done
2735 IFS="$ac_save_ifs"
2736 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2737 ;;
2738esac
2739fi
2740GMSGFMT="$ac_cv_path_GMSGFMT"
2741if test -n "$GMSGFMT"; then
2742 echo "$ac_t""$GMSGFMT" 1>&6
2743else
2744 echo "$ac_t""no" 1>&6
2745fi
2746
2747 # Extract the first word of "xgettext", so it can be a program name with args.
2748set dummy xgettext; ac_word=$2
2749echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002750echo "configure:2751: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002751if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2753else
2754 case "$XGETTEXT" in
2755 /*)
2756 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2757 ;;
2758 *)
2759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2760 for ac_dir in $PATH; do
2761 test -z "$ac_dir" && ac_dir=.
2762 if test -f $ac_dir/$ac_word; then
2763 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2764 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2765 break
2766 fi
2767 fi
2768 done
2769 IFS="$ac_save_ifs"
2770 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2771 ;;
2772esac
2773fi
2774XGETTEXT="$ac_cv_path_XGETTEXT"
2775if test -n "$XGETTEXT"; then
2776 echo "$ac_t""$XGETTEXT" 1>&6
2777else
2778 echo "$ac_t""no" 1>&6
2779fi
2780
2781 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002782#line 2783 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002783#include "confdefs.h"
2784
2785int main() {
2786extern int _nl_msg_cat_cntr;
2787 return _nl_msg_cat_cntr
2788; return 0; }
2789EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002790if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002791 rm -rf conftest*
2792 CATOBJEXT=.gmo
2793 DATADIRNAME=share
2794else
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 rm -rf conftest*
2798 CATOBJEXT=.mo
2799 DATADIRNAME=lib
2800fi
2801rm -f conftest*
2802 INSTOBJEXT=.mo
2803 fi
2804 fi
2805
2806else
2807 echo "$ac_t""no" 1>&6
2808fi
2809
2810
2811 if test "$CATOBJEXT" = "NONE"; then
2812 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002813echo "configure:2814: checking whether catgets can be used" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002814 # Check whether --with-catgets or --without-catgets was given.
2815if test "${with_catgets+set}" = set; then
2816 withval="$with_catgets"
2817 nls_cv_use_catgets=$withval
2818else
2819 nls_cv_use_catgets=no
2820fi
2821
2822 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2823
2824 if test "$nls_cv_use_catgets" = "yes"; then
2825 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002826echo "configure:2827: checking for main in -li" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002827ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2828if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830else
2831 ac_save_LIBS="$LIBS"
2832LIBS="-li $LIBS"
2833cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002834#line 2835 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002835#include "confdefs.h"
2836
2837int main() {
2838main()
2839; return 0; }
2840EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002841if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002842 rm -rf conftest*
2843 eval "ac_cv_lib_$ac_lib_var=yes"
2844else
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2847 rm -rf conftest*
2848 eval "ac_cv_lib_$ac_lib_var=no"
2849fi
2850rm -f conftest*
2851LIBS="$ac_save_LIBS"
2852
2853fi
2854if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2857 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2858 cat >> confdefs.h <<EOF
2859#define $ac_tr_lib 1
2860EOF
2861
2862 LIBS="-li $LIBS"
2863
2864else
2865 echo "$ac_t""no" 1>&6
2866fi
2867
2868 echo $ac_n "checking for catgets""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002869echo "configure:2870: checking for catgets" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002870if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2872else
2873 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002874#line 2875 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002875#include "confdefs.h"
2876/* System header to define __stub macros and hopefully few prototypes,
2877 which can conflict with char catgets(); below. */
2878#include <assert.h>
2879/* Override any gcc2 internal prototype to avoid an error. */
2880/* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2882char catgets();
2883
2884int main() {
2885
2886/* The GNU C library defines this for functions which it implements
2887 to always fail with ENOSYS. Some functions are actually named
2888 something starting with __ and the normal name is an alias. */
2889#if defined (__stub_catgets) || defined (__stub___catgets)
2890choke me
2891#else
2892catgets();
2893#endif
2894
2895; return 0; }
2896EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04002897if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002898 rm -rf conftest*
2899 eval "ac_cv_func_catgets=yes"
2900else
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2903 rm -rf conftest*
2904 eval "ac_cv_func_catgets=no"
2905fi
2906rm -f conftest*
2907fi
2908
2909if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2910 echo "$ac_t""yes" 1>&6
2911 cat >> confdefs.h <<\EOF
2912#define HAVE_CATGETS 1
2913EOF
2914
2915 INTLOBJS="\$(CATOBJS)"
2916 # Extract the first word of "gencat", so it can be a program name with args.
2917set dummy gencat; ac_word=$2
2918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002919echo "configure:2920: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002920if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2922else
2923 case "$GENCAT" in
2924 /*)
2925 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2926 ;;
2927 ?:/*)
2928 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2929 ;;
2930 *)
2931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2932 ac_dummy="$PATH"
2933 for ac_dir in $ac_dummy; do
2934 test -z "$ac_dir" && ac_dir=.
2935 if test -f $ac_dir/$ac_word; then
2936 ac_cv_path_GENCAT="$ac_dir/$ac_word"
2937 break
2938 fi
2939 done
2940 IFS="$ac_save_ifs"
2941 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2942 ;;
2943esac
2944fi
2945GENCAT="$ac_cv_path_GENCAT"
2946if test -n "$GENCAT"; then
2947 echo "$ac_t""$GENCAT" 1>&6
2948else
2949 echo "$ac_t""no" 1>&6
2950fi
2951 if test "$GENCAT" != "no"; then
2952 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2953set dummy gmsgfmt; ac_word=$2
2954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002955echo "configure:2956: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002956if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2958else
2959 case "$GMSGFMT" in
2960 /*)
2961 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2962 ;;
2963 ?:/*)
2964 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2965 ;;
2966 *)
2967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2968 ac_dummy="$PATH"
2969 for ac_dir in $ac_dummy; do
2970 test -z "$ac_dir" && ac_dir=.
2971 if test -f $ac_dir/$ac_word; then
2972 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2973 break
2974 fi
2975 done
2976 IFS="$ac_save_ifs"
2977 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2978 ;;
2979esac
2980fi
2981GMSGFMT="$ac_cv_path_GMSGFMT"
2982if test -n "$GMSGFMT"; then
2983 echo "$ac_t""$GMSGFMT" 1>&6
2984else
2985 echo "$ac_t""no" 1>&6
2986fi
2987
2988 if test "$GMSGFMT" = "no"; then
2989 # Extract the first word of "msgfmt", so it can be a program name with args.
2990set dummy msgfmt; ac_word=$2
2991echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04002992echo "configure:2993: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002993if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2995else
2996 case "$GMSGFMT" in
2997 /*)
2998 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2999 ;;
3000 *)
3001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3002 for ac_dir in $PATH; do
3003 test -z "$ac_dir" && ac_dir=.
3004 if test -f $ac_dir/$ac_word; then
3005 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3006 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3007 break
3008 fi
3009 fi
3010 done
3011 IFS="$ac_save_ifs"
3012 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3013 ;;
3014esac
3015fi
3016GMSGFMT="$ac_cv_path_GMSGFMT"
3017if test -n "$GMSGFMT"; then
3018 echo "$ac_t""$GMSGFMT" 1>&6
3019else
3020 echo "$ac_t""no" 1>&6
3021fi
3022
3023 fi
3024 # Extract the first word of "xgettext", so it can be a program name with args.
3025set dummy xgettext; ac_word=$2
3026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003027echo "configure:3028: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003028if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3030else
3031 case "$XGETTEXT" in
3032 /*)
3033 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3034 ;;
3035 *)
3036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3037 for ac_dir in $PATH; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3041 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3042 break
3043 fi
3044 fi
3045 done
3046 IFS="$ac_save_ifs"
3047 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3048 ;;
3049esac
3050fi
3051XGETTEXT="$ac_cv_path_XGETTEXT"
3052if test -n "$XGETTEXT"; then
3053 echo "$ac_t""$XGETTEXT" 1>&6
3054else
3055 echo "$ac_t""no" 1>&6
3056fi
3057
3058 USE_INCLUDED_LIBINTL=yes
3059 CATOBJEXT=.cat
3060 INSTOBJEXT=.cat
3061 DATADIRNAME=lib
3062 INTLDEPS='$(top_builddir)/intl/libintl.a'
3063 INTLLIBS=$INTLDEPS
3064 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3065 nls_cv_header_intl=intl/libintl.h
3066 nls_cv_header_libgt=intl/libgettext.h
3067 fi
3068else
3069 echo "$ac_t""no" 1>&6
3070fi
3071
3072 fi
3073 fi
3074
3075 if test "$CATOBJEXT" = "NONE"; then
3076 nls_cv_use_gnu_gettext=yes
3077 fi
3078 fi
3079
3080 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3081 INTLOBJS="\$(GETTOBJS)"
3082 # Extract the first word of "msgfmt", so it can be a program name with args.
3083set dummy msgfmt; ac_word=$2
3084echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003085echo "configure:3086: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003086if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3088else
3089 case "$MSGFMT" in
3090 /*)
3091 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3092 ;;
3093 *)
3094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3095 for ac_dir in $PATH; do
3096 test -z "$ac_dir" && ac_dir=.
3097 if test -f $ac_dir/$ac_word; then
3098 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3099 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3100 break
3101 fi
3102 fi
3103 done
3104 IFS="$ac_save_ifs"
3105 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3106 ;;
3107esac
3108fi
3109MSGFMT="$ac_cv_path_MSGFMT"
3110if test -n "$MSGFMT"; then
3111 echo "$ac_t""$MSGFMT" 1>&6
3112else
3113 echo "$ac_t""no" 1>&6
3114fi
3115
3116 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3117set dummy gmsgfmt; ac_word=$2
3118echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003119echo "configure:3120: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003120if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3122else
3123 case "$GMSGFMT" in
3124 /*)
3125 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3126 ;;
3127 ?:/*)
3128 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3129 ;;
3130 *)
3131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3132 ac_dummy="$PATH"
3133 for ac_dir in $ac_dummy; do
3134 test -z "$ac_dir" && ac_dir=.
3135 if test -f $ac_dir/$ac_word; then
3136 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3137 break
3138 fi
3139 done
3140 IFS="$ac_save_ifs"
3141 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3142 ;;
3143esac
3144fi
3145GMSGFMT="$ac_cv_path_GMSGFMT"
3146if test -n "$GMSGFMT"; then
3147 echo "$ac_t""$GMSGFMT" 1>&6
3148else
3149 echo "$ac_t""no" 1>&6
3150fi
3151
3152 # Extract the first word of "xgettext", so it can be a program name with args.
3153set dummy xgettext; ac_word=$2
3154echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003155echo "configure:3156: checking for $ac_word" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003156if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3158else
3159 case "$XGETTEXT" in
3160 /*)
3161 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3162 ;;
3163 *)
3164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3165 for ac_dir in $PATH; do
3166 test -z "$ac_dir" && ac_dir=.
3167 if test -f $ac_dir/$ac_word; then
3168 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3169 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3170 break
3171 fi
3172 fi
3173 done
3174 IFS="$ac_save_ifs"
3175 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3176 ;;
3177esac
3178fi
3179XGETTEXT="$ac_cv_path_XGETTEXT"
3180if test -n "$XGETTEXT"; then
3181 echo "$ac_t""$XGETTEXT" 1>&6
3182else
3183 echo "$ac_t""no" 1>&6
3184fi
3185
3186
3187 USE_INCLUDED_LIBINTL=yes
3188 CATOBJEXT=.gmo
3189 INSTOBJEXT=.mo
3190 DATADIRNAME=share
3191 INTLDEPS='$(top_builddir)/intl/libintl.a'
3192 INTLLIBS=$INTLDEPS
3193 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3194 nls_cv_header_intl=intl/libintl.h
3195 nls_cv_header_libgt=intl/libgettext.h
3196 fi
3197
3198 if test "$XGETTEXT" != ":"; then
3199 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3200 : ;
3201 else
3202 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3203 XGETTEXT=":"
3204 fi
3205 fi
3206
3207 # We need to process the po/ directory.
3208 POSUB=po
3209 else
3210 DATADIRNAME=share
3211 nls_cv_header_intl=intl/libintl.h
3212 nls_cv_header_libgt=intl/libgettext.h
3213 fi
3214
3215
3216
3217
3218 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3219 # because some of the sources are only built for this goal.
3220 if test "$PACKAGE" = gettext; then
3221 USE_NLS=yes
3222 USE_INCLUDED_LIBINTL=yes
3223 fi
3224
3225 for lang in $ALL_LINGUAS; do
3226 GMOFILES="$GMOFILES $lang.gmo"
3227 POFILES="$POFILES $lang.po"
3228 done
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243 if test "x$CATOBJEXT" != "x"; then
3244 if test "x$ALL_LINGUAS" = "x"; then
3245 LINGUAS=
3246 else
3247 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003248echo "configure:3249: checking for catalogs to be installed" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003249 NEW_LINGUAS=
3250 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3251 case "$ALL_LINGUAS" in
3252 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3253 esac
3254 done
3255 LINGUAS=$NEW_LINGUAS
3256 echo "$ac_t""$LINGUAS" 1>&6
3257 fi
3258
3259 if test -n "$LINGUAS"; then
3260 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3261 fi
3262 fi
3263
3264 if test $ac_cv_header_locale_h = yes; then
3265 INCLUDE_LOCALE_H="#include <locale.h>"
3266 else
3267 INCLUDE_LOCALE_H="\
3268/* The system does not provide the header <locale.h>. Take care yourself. */"
3269 fi
3270
3271
3272 test -d intl || mkdir intl
3273 if test "$CATOBJEXT" = ".cat"; then
3274 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3275echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003276echo "configure:3277: checking for linux/version.h" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003277if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3279else
3280 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04003281#line 3282 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003282#include "confdefs.h"
3283#include <linux/version.h>
3284EOF
3285ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oea97be52001-09-19 15:20:12 -04003286{ (eval echo configure:3287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003287ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3288if test -z "$ac_err"; then
3289 rm -rf conftest*
3290 eval "ac_cv_header_$ac_safe=yes"
3291else
3292 echo "$ac_err" >&5
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3295 rm -rf conftest*
3296 eval "ac_cv_header_$ac_safe=no"
3297fi
3298rm -f conftest*
3299fi
3300if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3301 echo "$ac_t""yes" 1>&6
3302 msgformat=linux
3303else
3304 echo "$ac_t""no" 1>&6
3305msgformat=xopen
3306fi
3307
3308
3309 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3310 fi
3311 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3312 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3313
3314 if test "$PACKAGE" = "gettext"; then
3315 GT_NO="#NO#"
3316 GT_YES=
3317 else
3318 GT_NO=
3319 GT_YES="#YES#"
3320 fi
3321
3322
3323
3324 MKINSTALLDIRS=
3325 if test -n "$ac_aux_dir"; then
3326 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3327 fi
3328 if test -z "$MKINSTALLDIRS"; then
3329 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3330 fi
3331
3332
3333 l=
3334
3335
3336 test -d po || mkdir po
3337 if test "x$srcdir" != "x."; then
3338 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3339 posrcprefix="$srcdir/"
3340 else
3341 posrcprefix="../$srcdir/"
3342 fi
3343 else
3344 posrcprefix="../"
3345 fi
3346 rm -f po/POTFILES
3347 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3348 < $srcdir/po/POTFILES.in > po/POTFILES
3349
Theodore Ts'o74becf31997-04-26 14:37:06 +00003350
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003351echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003352echo "configure:3353: checking whether ${MAKE-make} sets \${MAKE}" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003353set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003354if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3356else
3357 cat > conftestmake <<\EOF
3358all:
3359 @echo 'ac_maketemp="${MAKE}"'
3360EOF
3361# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3362eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3363if test -n "$ac_maketemp"; then
3364 eval ac_cv_prog_make_${ac_make}_set=yes
3365else
3366 eval ac_cv_prog_make_${ac_make}_set=no
3367fi
3368rm -f conftestmake
3369fi
3370if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3372 SET_MAKE=
3373else
3374 echo "$ac_t""no" 1>&6
3375 SET_MAKE="MAKE=${MAKE-make}"
3376fi
3377
3378# Extract the first word of "ln", so it can be a program name with args.
3379set dummy ln; ac_word=$2
3380echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003381echo "configure:3382: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003382if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3384else
3385 case "$LN" in
3386 /*)
3387 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3388 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003389 ?:/*)
3390 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3391 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003392 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3394 ac_dummy="$PATH"
3395 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003396 test -z "$ac_dir" && ac_dir=.
3397 if test -f $ac_dir/$ac_word; then
3398 ac_cv_path_LN="$ac_dir/$ac_word"
3399 break
3400 fi
3401 done
3402 IFS="$ac_save_ifs"
3403 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3404 ;;
3405esac
3406fi
3407LN="$ac_cv_path_LN"
3408if test -n "$LN"; then
3409 echo "$ac_t""$LN" 1>&6
3410else
3411 echo "$ac_t""no" 1>&6
3412fi
3413
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003414echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003415echo "configure:3416: checking whether ln -s works" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003416if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3418else
3419 rm -f conftestdata
3420if ln -s X conftestdata 2>/dev/null
3421then
3422 rm -f conftestdata
3423 ac_cv_prog_LN_S="ln -s"
3424else
3425 ac_cv_prog_LN_S=ln
3426fi
3427fi
3428LN_S="$ac_cv_prog_LN_S"
3429if test "$ac_cv_prog_LN_S" = "ln -s"; then
3430 echo "$ac_t""yes" 1>&6
3431else
3432 echo "$ac_t""no" 1>&6
3433fi
3434
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003435# Extract the first word of "mv", so it can be a program name with args.
3436set dummy mv; ac_word=$2
3437echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003438echo "configure:3439: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003439if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3441else
3442 case "$MV" in
3443 /*)
3444 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3445 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003446 ?:/*)
3447 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3448 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003449 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3451 ac_dummy="$PATH"
3452 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003453 test -z "$ac_dir" && ac_dir=.
3454 if test -f $ac_dir/$ac_word; then
3455 ac_cv_path_MV="$ac_dir/$ac_word"
3456 break
3457 fi
3458 done
3459 IFS="$ac_save_ifs"
3460 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3461 ;;
3462esac
3463fi
3464MV="$ac_cv_path_MV"
3465if test -n "$MV"; then
3466 echo "$ac_t""$MV" 1>&6
3467else
3468 echo "$ac_t""no" 1>&6
3469fi
3470
3471# Extract the first word of "cp", so it can be a program name with args.
3472set dummy cp; ac_word=$2
3473echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003474echo "configure:3475: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003475if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3477else
3478 case "$CP" in
3479 /*)
3480 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3481 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003482 ?:/*)
3483 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3484 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003485 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3487 ac_dummy="$PATH"
3488 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003489 test -z "$ac_dir" && ac_dir=.
3490 if test -f $ac_dir/$ac_word; then
3491 ac_cv_path_CP="$ac_dir/$ac_word"
3492 break
3493 fi
3494 done
3495 IFS="$ac_save_ifs"
3496 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3497 ;;
3498esac
3499fi
3500CP="$ac_cv_path_CP"
3501if test -n "$CP"; then
3502 echo "$ac_t""$CP" 1>&6
3503else
3504 echo "$ac_t""no" 1>&6
3505fi
3506
3507# Extract the first word of "rm", so it can be a program name with args.
3508set dummy rm; ac_word=$2
3509echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003510echo "configure:3511: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003511if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3513else
3514 case "$RM" in
3515 /*)
3516 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3517 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003518 ?:/*)
3519 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3520 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003521 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3523 ac_dummy="$PATH"
3524 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003525 test -z "$ac_dir" && ac_dir=.
3526 if test -f $ac_dir/$ac_word; then
3527 ac_cv_path_RM="$ac_dir/$ac_word"
3528 break
3529 fi
3530 done
3531 IFS="$ac_save_ifs"
3532 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3533 ;;
3534esac
3535fi
3536RM="$ac_cv_path_RM"
3537if test -n "$RM"; then
3538 echo "$ac_t""$RM" 1>&6
3539else
3540 echo "$ac_t""no" 1>&6
3541fi
3542
3543# Extract the first word of "chmod", so it can be a program name with args.
3544set dummy chmod; ac_word=$2
3545echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003546echo "configure:3547: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003547if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3549else
3550 case "$CHMOD" in
3551 /*)
3552 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3553 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003554 ?:/*)
3555 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3556 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003557 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3559 ac_dummy="$PATH"
3560 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003561 test -z "$ac_dir" && ac_dir=.
3562 if test -f $ac_dir/$ac_word; then
3563 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3564 break
3565 fi
3566 done
3567 IFS="$ac_save_ifs"
3568 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3569 ;;
3570esac
3571fi
3572CHMOD="$ac_cv_path_CHMOD"
3573if test -n "$CHMOD"; then
3574 echo "$ac_t""$CHMOD" 1>&6
3575else
3576 echo "$ac_t""no" 1>&6
3577fi
3578
3579# Extract the first word of "awk", so it can be a program name with args.
3580set dummy awk; ac_word=$2
3581echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003582echo "configure:3583: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003583if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3585else
3586 case "$AWK" in
3587 /*)
3588 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3589 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003590 ?:/*)
3591 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3592 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003593 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3595 ac_dummy="$PATH"
3596 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003597 test -z "$ac_dir" && ac_dir=.
3598 if test -f $ac_dir/$ac_word; then
3599 ac_cv_path_AWK="$ac_dir/$ac_word"
3600 break
3601 fi
3602 done
3603 IFS="$ac_save_ifs"
3604 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3605 ;;
3606esac
3607fi
3608AWK="$ac_cv_path_AWK"
3609if test -n "$AWK"; then
3610 echo "$ac_t""$AWK" 1>&6
3611else
3612 echo "$ac_t""no" 1>&6
3613fi
3614
3615# Extract the first word of "sed", so it can be a program name with args.
3616set dummy sed; ac_word=$2
3617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003618echo "configure:3619: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003619if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3621else
3622 case "$SED" in
3623 /*)
3624 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3625 ;;
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003626 ?:/*)
3627 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3628 ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003629 *)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3631 ac_dummy="$PATH"
3632 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003633 test -z "$ac_dir" && ac_dir=.
3634 if test -f $ac_dir/$ac_word; then
3635 ac_cv_path_SED="$ac_dir/$ac_word"
3636 break
3637 fi
3638 done
3639 IFS="$ac_save_ifs"
3640 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3641 ;;
3642esac
3643fi
3644SED="$ac_cv_path_SED"
3645if test -n "$SED"; then
3646 echo "$ac_t""$SED" 1>&6
3647else
3648 echo "$ac_t""no" 1>&6
3649fi
3650
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003651# Extract the first word of "perl", so it can be a program name with args.
3652set dummy perl; ac_word=$2
3653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003654echo "configure:3655: checking for $ac_word" >&5
Theodore Ts'o9d564f71999-07-03 20:25:58 +00003655if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3657else
3658 case "$PERL" in
3659 /*)
3660 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3661 ;;
3662 ?:/*)
3663 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3664 ;;
3665 *)
3666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3667 ac_dummy="$PATH"
3668 for ac_dir in $ac_dummy; do
3669 test -z "$ac_dir" && ac_dir=.
3670 if test -f $ac_dir/$ac_word; then
3671 ac_cv_path_PERL="$ac_dir/$ac_word"
3672 break
3673 fi
3674 done
3675 IFS="$ac_save_ifs"
3676 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3677 ;;
3678esac
3679fi
3680PERL="$ac_cv_path_PERL"
3681if test -n "$PERL"; then
3682 echo "$ac_t""$PERL" 1>&6
3683else
3684 echo "$ac_t""no" 1>&6
3685fi
3686
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003687# Extract the first word of "ldconfig", so it can be a program name with args.
3688set dummy ldconfig; ac_word=$2
3689echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003690echo "configure:3691: checking for $ac_word" >&5
Theodore Ts'o250f79f2001-05-19 22:02:22 +00003691if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3693else
3694 case "$LDCONFIG" in
3695 /*)
3696 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3697 ;;
3698 ?:/*)
3699 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3700 ;;
3701 *)
3702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3703 ac_dummy="$PATH"
3704 for ac_dir in $ac_dummy; do
3705 test -z "$ac_dir" && ac_dir=.
3706 if test -f $ac_dir/$ac_word; then
3707 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3708 break
3709 fi
3710 done
3711 IFS="$ac_save_ifs"
3712 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3713 ;;
3714esac
3715fi
3716LDCONFIG="$ac_cv_path_LDCONFIG"
3717if test -n "$LDCONFIG"; then
3718 echo "$ac_t""$LDCONFIG" 1>&6
3719else
3720 echo "$ac_t""no" 1>&6
3721fi
3722
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003723echo $ac_n "checking build system type""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003724echo "configure:3725: checking build system type" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003725
3726build_alias=$build
3727case "$build_alias" in
3728NONE)
3729 case $nonopt in
3730 NONE) build_alias=$host_alias ;;
3731 *) build_alias=$nonopt ;;
3732 esac ;;
3733esac
3734
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003735build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003736build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3737build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3738build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003739echo "$ac_t""$build" 1>&6
3740
3741if test $host != $build; then
3742 ac_tool_prefix=${host_alias}-
3743else
3744 ac_tool_prefix=
3745fi
3746
3747# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3748set dummy ${ac_tool_prefix}ar; ac_word=$2
3749echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003750echo "configure:3751: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003751if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3753else
3754 if test -n "$AR"; then
3755 ac_cv_prog_AR="$AR" # Let the user override the test.
3756else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3758 ac_dummy="$PATH"
3759 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003760 test -z "$ac_dir" && ac_dir=.
3761 if test -f $ac_dir/$ac_word; then
3762 ac_cv_prog_AR="${ac_tool_prefix}ar"
3763 break
3764 fi
3765 done
3766 IFS="$ac_save_ifs"
3767fi
3768fi
3769AR="$ac_cv_prog_AR"
3770if test -n "$AR"; then
3771 echo "$ac_t""$AR" 1>&6
3772else
3773 echo "$ac_t""no" 1>&6
3774fi
3775
3776
3777if test -z "$ac_cv_prog_AR"; then
3778if test -n "$ac_tool_prefix"; then
3779 # Extract the first word of "ar", so it can be a program name with args.
3780set dummy ar; ac_word=$2
3781echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003782echo "configure:3783: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003783if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3785else
3786 if test -n "$AR"; then
3787 ac_cv_prog_AR="$AR" # Let the user override the test.
3788else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3790 ac_dummy="$PATH"
3791 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003792 test -z "$ac_dir" && ac_dir=.
3793 if test -f $ac_dir/$ac_word; then
3794 ac_cv_prog_AR="ar"
3795 break
3796 fi
3797 done
3798 IFS="$ac_save_ifs"
3799 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3800fi
3801fi
3802AR="$ac_cv_prog_AR"
3803if test -n "$AR"; then
3804 echo "$ac_t""$AR" 1>&6
3805else
3806 echo "$ac_t""no" 1>&6
3807fi
3808
3809else
3810 AR="ar"
3811fi
3812fi
3813
3814# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3815set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3816echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003817echo "configure:3818: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003818if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3820else
3821 if test -n "$RANLIB"; then
3822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3823else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3825 ac_dummy="$PATH"
3826 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003827 test -z "$ac_dir" && ac_dir=.
3828 if test -f $ac_dir/$ac_word; then
3829 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3830 break
3831 fi
3832 done
3833 IFS="$ac_save_ifs"
3834fi
3835fi
3836RANLIB="$ac_cv_prog_RANLIB"
3837if test -n "$RANLIB"; then
3838 echo "$ac_t""$RANLIB" 1>&6
3839else
3840 echo "$ac_t""no" 1>&6
3841fi
3842
3843
3844if test -z "$ac_cv_prog_RANLIB"; then
3845if test -n "$ac_tool_prefix"; then
3846 # Extract the first word of "ranlib", so it can be a program name with args.
3847set dummy ranlib; ac_word=$2
3848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003849echo "configure:3850: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003850if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3852else
3853 if test -n "$RANLIB"; then
3854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3855else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3857 ac_dummy="$PATH"
3858 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003859 test -z "$ac_dir" && ac_dir=.
3860 if test -f $ac_dir/$ac_word; then
3861 ac_cv_prog_RANLIB="ranlib"
3862 break
3863 fi
3864 done
3865 IFS="$ac_save_ifs"
3866 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3867fi
3868fi
3869RANLIB="$ac_cv_prog_RANLIB"
3870if test -n "$RANLIB"; then
3871 echo "$ac_t""$RANLIB" 1>&6
3872else
3873 echo "$ac_t""no" 1>&6
3874fi
3875
3876else
3877 RANLIB=":"
3878fi
3879fi
3880
3881# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3882set dummy ${ac_tool_prefix}strip; ac_word=$2
3883echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003884echo "configure:3885: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003885if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3887else
3888 if test -n "$STRIP"; then
3889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3890else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3892 ac_dummy="$PATH"
3893 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003894 test -z "$ac_dir" && ac_dir=.
3895 if test -f $ac_dir/$ac_word; then
3896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3897 break
3898 fi
3899 done
3900 IFS="$ac_save_ifs"
3901fi
3902fi
3903STRIP="$ac_cv_prog_STRIP"
3904if test -n "$STRIP"; then
3905 echo "$ac_t""$STRIP" 1>&6
3906else
3907 echo "$ac_t""no" 1>&6
3908fi
3909
3910
3911if test -z "$ac_cv_prog_STRIP"; then
3912if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "strip", so it can be a program name with args.
3914set dummy strip; ac_word=$2
3915echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003916echo "configure:3917: checking for $ac_word" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003917if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3919else
3920 if test -n "$STRIP"; then
3921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3922else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3924 ac_dummy="$PATH"
3925 for ac_dir in $ac_dummy; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003926 test -z "$ac_dir" && ac_dir=.
3927 if test -f $ac_dir/$ac_word; then
3928 ac_cv_prog_STRIP="strip"
3929 break
3930 fi
3931 done
3932 IFS="$ac_save_ifs"
3933 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3934fi
3935fi
3936STRIP="$ac_cv_prog_STRIP"
3937if test -n "$STRIP"; then
3938 echo "$ac_t""$STRIP" 1>&6
3939else
3940 echo "$ac_t""no" 1>&6
3941fi
3942
3943else
3944 STRIP=":"
3945fi
3946fi
3947
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003948# Find a good install program. We prefer a C program (faster),
3949# so one script is as good as another. But avoid the broken or
3950# incompatible versions:
3951# SysV /etc/install, /usr/sbin/install
3952# SunOS /usr/etc/install
3953# IRIX /sbin/install
3954# AIX /bin/install
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003955# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003956# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3957# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3958# ./install, which can be erroneously created by make from ./install.sh.
3959echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04003960echo "configure:3961: checking for a BSD compatible install" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003961if test -z "$INSTALL"; then
3962if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3964else
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003965 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003966 for ac_dir in $PATH; do
3967 # Account for people who put trailing slashes in PATH elements.
3968 case "$ac_dir/" in
3969 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3970 *)
3971 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00003972 # Don't use installbsd from OSF since it installs stuff as root
3973 # by default.
3974 for ac_prog in ginstall scoinst install; do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003975 if test -f $ac_dir/$ac_prog; then
3976 if test $ac_prog = install &&
3977 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3978 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003979 :
3980 else
3981 ac_cv_path_install="$ac_dir/$ac_prog -c"
3982 break 2
3983 fi
3984 fi
3985 done
3986 ;;
3987 esac
3988 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003989 IFS="$ac_save_IFS"
3990
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003991fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003992 if test "${ac_cv_path_install+set}" = set; then
3993 INSTALL="$ac_cv_path_install"
3994 else
3995 # As a last resort, use the slow shell script. We don't cache a
3996 # path for INSTALL within a source directory, because that will
3997 # break other packages using the cache if that directory is
3998 # removed, or if the path is relative.
3999 INSTALL="$ac_install_sh"
4000 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004001fi
4002echo "$ac_t""$INSTALL" 1>&6
4003
4004# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4005# It thinks the first close brace ends the variable substitution.
4006test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4007
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004008test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4009
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004010test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4011
Theodore Ts'o6c133521999-07-03 20:37:03 +00004012# See if we need a separate native compiler.
4013if test $cross_compiling = no; then
4014 BUILD_CC="$CC"
4015
4016else
4017 for ac_prog in gcc cc
4018do
4019# Extract the first word of "$ac_prog", so it can be a program name with args.
4020set dummy $ac_prog; ac_word=$2
4021echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004022echo "configure:4023: checking for $ac_word" >&5
Theodore Ts'o6c133521999-07-03 20:37:03 +00004023if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4025else
4026 if test -n "$BUILD_CC"; then
4027 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4028else
4029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4030 ac_dummy="$PATH"
4031 for ac_dir in $ac_dummy; do
4032 test -z "$ac_dir" && ac_dir=.
4033 if test -f $ac_dir/$ac_word; then
4034 ac_cv_prog_BUILD_CC="$ac_prog"
4035 break
4036 fi
4037 done
4038 IFS="$ac_save_ifs"
4039fi
4040fi
4041BUILD_CC="$ac_cv_prog_BUILD_CC"
4042if test -n "$BUILD_CC"; then
4043 echo "$ac_t""$BUILD_CC" 1>&6
4044else
4045 echo "$ac_t""no" 1>&6
4046fi
4047
4048test -n "$BUILD_CC" && break
4049done
4050
4051fi
Theodore Ts'o4d0f3e12001-01-11 15:48:50 +00004052for 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 +00004053do
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004054ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004055echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004056echo "configure:4057: checking for $ac_hdr" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004057if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4059else
4060 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004061#line 4062 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004062#include "confdefs.h"
4063#include <$ac_hdr>
4064EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Theodore Ts'oea97be52001-09-19 15:20:12 -04004066{ (eval echo configure:4067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004067ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004068if test -z "$ac_err"; then
4069 rm -rf conftest*
4070 eval "ac_cv_header_$ac_safe=yes"
4071else
4072 echo "$ac_err" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004075 rm -rf conftest*
4076 eval "ac_cv_header_$ac_safe=no"
4077fi
4078rm -f conftest*
4079fi
4080if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004083 cat >> confdefs.h <<EOF
4084#define $ac_tr_hdr 1
4085EOF
4086
4087else
4088 echo "$ac_t""no" 1>&6
4089fi
4090done
4091
4092echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004093echo "configure:4094: checking for vprintf" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004094if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4096else
4097 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004098#line 4099 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004099#include "confdefs.h"
4100/* System header to define __stub macros and hopefully few prototypes,
4101 which can conflict with char vprintf(); below. */
4102#include <assert.h>
4103/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004104/* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4106char vprintf();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004107
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004108int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004109
4110/* The GNU C library defines this for functions which it implements
4111 to always fail with ENOSYS. Some functions are actually named
4112 something starting with __ and the normal name is an alias. */
4113#if defined (__stub_vprintf) || defined (__stub___vprintf)
4114choke me
4115#else
4116vprintf();
4117#endif
4118
4119; return 0; }
4120EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004121if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004122 rm -rf conftest*
4123 eval "ac_cv_func_vprintf=yes"
4124else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004127 rm -rf conftest*
4128 eval "ac_cv_func_vprintf=no"
4129fi
4130rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004131fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004132
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004133if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 cat >> confdefs.h <<\EOF
4136#define HAVE_VPRINTF 1
4137EOF
4138
4139else
4140 echo "$ac_t""no" 1>&6
4141fi
4142
4143if test "$ac_cv_func_vprintf" != yes; then
4144echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004145echo "configure:4146: checking for _doprnt" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004146if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4148else
4149 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004150#line 4151 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004151#include "confdefs.h"
4152/* System header to define __stub macros and hopefully few prototypes,
4153 which can conflict with char _doprnt(); below. */
4154#include <assert.h>
4155/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004156/* We use char because int might match the return type of a gcc2
4157 builtin and then its argument prototype would still apply. */
4158char _doprnt();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004159
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004160int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004161
4162/* The GNU C library defines this for functions which it implements
4163 to always fail with ENOSYS. Some functions are actually named
4164 something starting with __ and the normal name is an alias. */
4165#if defined (__stub__doprnt) || defined (__stub____doprnt)
4166choke me
4167#else
4168_doprnt();
4169#endif
4170
4171; return 0; }
4172EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004173if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004174 rm -rf conftest*
4175 eval "ac_cv_func__doprnt=yes"
4176else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004179 rm -rf conftest*
4180 eval "ac_cv_func__doprnt=no"
4181fi
4182rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004183fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004184
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004185if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4186 echo "$ac_t""yes" 1>&6
4187 cat >> confdefs.h <<\EOF
4188#define HAVE_DOPRNT 1
4189EOF
4190
4191else
4192 echo "$ac_t""no" 1>&6
4193fi
4194
4195fi
4196
4197echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004198echo "configure:4199: checking whether struct dirent has a d_namlen field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004199if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4201else
4202 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004203#line 4204 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004204#include "confdefs.h"
4205#include <sys/types.h>
4206#include <dirent.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004207int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004208struct dirent de; de.d_namlen = 0;
4209; return 0; }
4210EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004211if { (eval echo configure:4212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004212 rm -rf conftest*
4213 e2fsprogs_cv_struct_d_namlen=yes
4214else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004217 rm -rf conftest*
4218 e2fsprogs_cv_struct_d_namlen=no
4219fi
4220rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004221fi
4222
4223echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
4224if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
4225 cat >> confdefs.h <<\EOF
4226#define HAVE_DIRENT_NAMLEN 1
4227EOF
4228
4229fi
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004230echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004231echo "configure:4232: checking whether llseek declared in unistd.h" >&5
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004232if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234else
4235 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004236#line 4237 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004237#include "confdefs.h"
4238#include <unistd.h>
4239int main() {
4240extern int llseek(int);
4241; return 0; }
4242EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004243if { (eval echo configure:4244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00004244 rm -rf conftest*
4245 e2fsprogs_cv_have_llseek_prototype=no
4246else
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4249 rm -rf conftest*
4250 e2fsprogs_cv_have_llseek_prototype=yes
4251fi
4252rm -f conftest*
4253fi
4254
4255echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4256if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4257 cat >> confdefs.h <<\EOF
4258#define HAVE_LLSEEK_PROTOTYPE 1
4259EOF
4260
4261fi
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004262echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004263echo "configure:4264: checking whether lseek64 declared in unistd.h" >&5
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004264if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4266else
4267 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004268#line 4269 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004269#include "confdefs.h"
4270#define _LARGEFILE_SOURCE
4271#define _LARGEFILE64_SOURCE
4272#include <unistd.h>
4273int main() {
4274extern int lseek64(int);
4275; return 0; }
4276EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004277if { (eval echo configure:4278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00004278 rm -rf conftest*
4279 e2fsprogs_cv_have_lseek64_prototype=no
4280else
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4283 rm -rf conftest*
4284 e2fsprogs_cv_have_lseek64_prototype=yes
4285fi
4286rm -f conftest*
4287fi
4288
4289echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4290if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4291 cat >> confdefs.h <<\EOF
4292#define HAVE_LSEEK64_PROTOTYPE 1
4293EOF
4294
4295fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004296if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4297 # if cross-compiling, with no cached values, just assume something common.
4298 ac_cv_sizeof_short=2
4299 ac_cv_sizeof_int=4
4300 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00004301 ac_cv_sizeof_long_long=8
4302 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 +00004303fi
4304echo $ac_n "checking size of short""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004305echo "configure:4306: checking size of short" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004306if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4308else
4309 if test "$cross_compiling" = yes; then
4310 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4311else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004312 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004313#line 4314 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004314#include "confdefs.h"
4315#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004316#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004317main()
4318{
4319 FILE *f=fopen("conftestval", "w");
4320 if (!f) exit(1);
4321 fprintf(f, "%d\n", sizeof(short));
4322 exit(0);
4323}
4324EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004325if { (eval echo configure:4326: \"$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 +00004326then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004327 ac_cv_sizeof_short=`cat conftestval`
4328else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004332 ac_cv_sizeof_short=0
4333fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004334rm -fr conftest*
4335fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004336
4337fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004338echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4339cat >> confdefs.h <<EOF
4340#define SIZEOF_SHORT $ac_cv_sizeof_short
4341EOF
4342
4343
4344echo $ac_n "checking size of int""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004345echo "configure:4346: checking size of int" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004346if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4348else
4349 if test "$cross_compiling" = yes; then
4350 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4351else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004352 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004353#line 4354 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004354#include "confdefs.h"
4355#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004356#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004357main()
4358{
4359 FILE *f=fopen("conftestval", "w");
4360 if (!f) exit(1);
4361 fprintf(f, "%d\n", sizeof(int));
4362 exit(0);
4363}
4364EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004365if { (eval echo configure:4366: \"$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 +00004366then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004367 ac_cv_sizeof_int=`cat conftestval`
4368else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4371 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004372 ac_cv_sizeof_int=0
4373fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004374rm -fr conftest*
4375fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004376
4377fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004378echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4379cat >> confdefs.h <<EOF
4380#define SIZEOF_INT $ac_cv_sizeof_int
4381EOF
4382
4383
4384echo $ac_n "checking size of long""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004385echo "configure:4386: checking size of long" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004386if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4388else
4389 if test "$cross_compiling" = yes; then
4390 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4391else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004392 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004393#line 4394 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004394#include "confdefs.h"
4395#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004396#include <sys/types.h>
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004397main()
4398{
4399 FILE *f=fopen("conftestval", "w");
4400 if (!f) exit(1);
4401 fprintf(f, "%d\n", sizeof(long));
4402 exit(0);
4403}
4404EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004405if { (eval echo configure:4406: \"$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 +00004406then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004407 ac_cv_sizeof_long=`cat conftestval`
4408else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004409 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4411 rm -fr conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004412 ac_cv_sizeof_long=0
4413fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004414rm -fr conftest*
4415fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004416
4417fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004418echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4419cat >> confdefs.h <<EOF
4420#define SIZEOF_LONG $ac_cv_sizeof_long
4421EOF
4422
4423
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004424echo $ac_n "checking size of long long""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004425echo "configure:4426: checking size of long long" >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004426if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4427 echo $ac_n "(cached) $ac_c" 1>&6
4428else
4429 if test "$cross_compiling" = yes; then
4430 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4431else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004432 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004433#line 4434 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004434#include "confdefs.h"
4435#include <stdio.h>
Theodore Ts'o250f79f2001-05-19 22:02:22 +00004436#include <sys/types.h>
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004437main()
4438{
4439 FILE *f=fopen("conftestval", "w");
4440 if (!f) exit(1);
4441 fprintf(f, "%d\n", sizeof(long long));
4442 exit(0);
4443}
4444EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004445if { (eval echo configure:4446: \"$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 +00004446then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004447 ac_cv_sizeof_long_long=`cat conftestval`
4448else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4451 rm -fr conftest*
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004452 ac_cv_sizeof_long_long=0
4453fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004454rm -fr conftest*
4455fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004456
4457fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004458echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4459cat >> confdefs.h <<EOF
4460#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4461EOF
4462
4463
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004464SIZEOF_SHORT=$ac_cv_sizeof_short
4465SIZEOF_INT=$ac_cv_sizeof_int
4466SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004467SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4468
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004469
4470
4471
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004472echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004473echo "configure:4474: checking whether byte ordering is bigendian" >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004474if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4476else
4477 ac_cv_c_bigendian=unknown
4478# See if sys/param.h defines the BYTE_ORDER macro.
4479cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004480#line 4481 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004481#include "confdefs.h"
4482#include <sys/types.h>
4483#include <sys/param.h>
4484int main() {
4485
4486#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4487 bogus endian macros
4488#endif
4489; return 0; }
4490EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004491if { (eval echo configure:4492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004492 rm -rf conftest*
4493 # It does; now see whether it defined to BIG_ENDIAN or not.
4494cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004495#line 4496 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004496#include "confdefs.h"
4497#include <sys/types.h>
4498#include <sys/param.h>
4499int main() {
4500
4501#if BYTE_ORDER != BIG_ENDIAN
4502 not big endian
4503#endif
4504; return 0; }
4505EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004506if { (eval echo configure:4507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004507 rm -rf conftest*
4508 ac_cv_c_bigendian=yes
4509else
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4512 rm -rf conftest*
4513 ac_cv_c_bigendian=no
4514fi
4515rm -f conftest*
4516else
4517 echo "configure: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4519fi
4520rm -f conftest*
4521if test $ac_cv_c_bigendian = unknown; then
4522if test "$cross_compiling" = yes; then
4523 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4524else
4525 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004526#line 4527 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004527#include "confdefs.h"
4528main () {
4529 /* Are we little or big endian? From Harbison&Steele. */
4530 union
4531 {
4532 long l;
4533 char c[sizeof (long)];
4534 } u;
4535 u.l = 1;
4536 exit (u.c[sizeof (long) - 1] == 1);
4537}
4538EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004539if { (eval echo configure:4540: \"$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 +00004540then
4541 ac_cv_c_bigendian=no
4542else
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4545 rm -fr conftest*
4546 ac_cv_c_bigendian=yes
4547fi
4548rm -fr conftest*
4549fi
4550
4551fi
4552fi
4553
4554echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4555if test $ac_cv_c_bigendian = yes; then
4556 cat >> confdefs.h <<\EOF
4557#define WORDS_BIGENDIAN 1
4558EOF
4559
4560fi
4561
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004562echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004563echo "configure:4564: checking whether struct stat has a st_flags field" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004564if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4566else
4567 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004568#line 4569 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004569#include "confdefs.h"
4570#include <sys/stat.h>
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004571int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004572struct stat stat; stat.st_flags = 0;
4573; return 0; }
4574EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004575if { (eval echo configure:4576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004576 rm -rf conftest*
4577 e2fsprogs_cv_struct_st_flags=yes
4578else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004579 echo "configure: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004581 rm -rf conftest*
4582 e2fsprogs_cv_struct_st_flags=no
4583fi
4584rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004585fi
4586
4587echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4588if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004589 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004590echo "configure:4591: checking whether st_flags field is useful" >&5
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004591 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4593else
4594 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004595#line 4596 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004596#include "confdefs.h"
4597#include <sys/stat.h>
4598int main() {
4599struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4600; return 0; }
4601EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004602if { (eval echo configure:4603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004603 rm -rf conftest*
4604 e2fsprogs_cv_struct_st_flags_immut=yes
4605else
4606 echo "configure: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4608 rm -rf conftest*
4609 e2fsprogs_cv_struct_st_flags_immut=no
4610fi
4611rm -f conftest*
4612fi
4613
4614 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4615 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4616 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004617#define HAVE_STAT_FLAGS 1
4618EOF
4619
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00004620 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004621fi
Theodore Ts'o53abed02001-08-27 12:18:16 -04004622for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004623do
4624echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004625echo "configure:4626: checking for $ac_func" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004626if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4628else
4629 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004630#line 4631 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004631#include "confdefs.h"
4632/* System header to define __stub macros and hopefully few prototypes,
4633 which can conflict with char $ac_func(); below. */
4634#include <assert.h>
4635/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004636/* We use char because int might match the return type of a gcc2
4637 builtin and then its argument prototype would still apply. */
4638char $ac_func();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004639
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004640int main() {
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004641
4642/* The GNU C library defines this for functions which it implements
4643 to always fail with ENOSYS. Some functions are actually named
4644 something starting with __ and the normal name is an alias. */
4645#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4646choke me
4647#else
4648$ac_func();
4649#endif
4650
4651; return 0; }
4652EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004653if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004654 rm -rf conftest*
4655 eval "ac_cv_func_$ac_func=yes"
4656else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004659 rm -rf conftest*
4660 eval "ac_cv_func_$ac_func=no"
4661fi
4662rm -f conftest*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004663fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004664
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004665if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004668 cat >> confdefs.h <<EOF
4669#define $ac_tr_func 1
4670EOF
4671
4672else
4673 echo "$ac_t""no" 1>&6
4674fi
4675done
4676
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004677SOCKET_LIB=''
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004678echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004679echo "configure:4680: checking for socket in -lsocket" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004680ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4681if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004682 echo $ac_n "(cached) $ac_c" 1>&6
4683else
4684 ac_save_LIBS="$LIBS"
4685LIBS="-lsocket $LIBS"
4686cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004687#line 4688 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004688#include "confdefs.h"
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004689/* Override any gcc2 internal prototype to avoid an error. */
4690/* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692char socket();
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004693
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004694int main() {
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004695socket()
4696; return 0; }
4697EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004698if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004699 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004700 eval "ac_cv_lib_$ac_lib_var=yes"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004701else
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004704 rm -rf conftest*
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004705 eval "ac_cv_lib_$ac_lib_var=no"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004706fi
4707rm -f conftest*
4708LIBS="$ac_save_LIBS"
4709
4710fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004711if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004712 echo "$ac_t""yes" 1>&6
4713 SOCKET_LIB=-lsocket
4714else
4715 echo "$ac_t""no" 1>&6
4716fi
4717
4718
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004719echo $ac_n "checking for optreset""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004720echo "configure:4721: checking for optreset" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004721if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4723else
4724 cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004725#line 4726 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004726#include "confdefs.h"
4727#include <unistd.h>
4728EOF
4729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730 egrep "optreset" >/dev/null 2>&1; then
4731 rm -rf conftest*
4732 ac_cv_have_optreset=yes
4733else
4734 rm -rf conftest*
4735 ac_cv_have_optreset=no
4736fi
4737rm -f conftest*
4738
4739fi
4740echo "$ac_t""$ac_cv_have_optreset" 1>&6
4741if test $ac_cv_have_optreset = yes; then
4742 cat >> confdefs.h <<\EOF
4743#define HAVE_OPTRESET 1
4744EOF
4745
4746fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004747case "$host_os" in
4748linux*)
4749 cat >> confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004750#define HAVE_EXT2_IOCTLS 1
4751EOF
4752
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00004753 ;;
4754esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004755case "$host_os" in
Theodore Ts'o6c133521999-07-03 20:37:03 +00004756linux* | gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004757 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4758 root_prefix="";
4759 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004760 fi
4761 ;;
4762esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004763case "$host_os" in
4764linux* | gnu*)
4765 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004766 prefix="/usr";
4767 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004768 fi
4769;;
4770esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004771if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00004772 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004773 root_prefix="$ac_default_prefix"
4774 else
4775 root_prefix="$prefix"
4776 fi
4777fi
4778
Theodore Ts'oae851481997-04-29 18:13:24 +00004779echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
Theodore Ts'oea97be52001-09-19 15:20:12 -04004780echo "configure:4781: checking whether linker accepts -static" >&5
Theodore Ts'oae851481997-04-29 18:13:24 +00004781if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4783else
4784 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4785cat > conftest.$ac_ext <<EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004786#line 4787 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00004787#include "confdefs.h"
4788#include <stdio.h>
4789int main() {
4790fflush(stdout);
4791; return 0; }
4792EOF
Theodore Ts'oea97be52001-09-19 15:20:12 -04004793if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Theodore Ts'oae851481997-04-29 18:13:24 +00004794 rm -rf conftest*
4795 ac_cv_e2fsprogs_use_static=yes
4796else
4797 echo "configure: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4799 rm -rf conftest*
4800 ac_cv_e2fsprogs_use_static=no
4801fi
4802rm -f conftest*
4803LDFLAGS=$SAVE_LDFLAGS
4804fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004805
Theodore Ts'odefde781999-01-04 07:39:19 +00004806case "$host_os" in
4807solaris2.*)
4808 ac_cv_e2fsprogs_use_static=no
4809;;
4810esac
Theodore Ts'oae851481997-04-29 18:13:24 +00004811echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00004812LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00004813if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004814 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00004815fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004816
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004817SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4818ET_DIR=`cd ${srcdir}/lib/et; pwd`
4819
4820
4821if test "$cross_compiling" = yes ; then
4822 DO_TEST_SUITE=
4823else
4824 DO_TEST_SUITE=check
4825fi
4826
4827test -d lib || mkdir lib
4828test -d include || mkdir include
4829test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00004830test -d include/asm || mkdir include/asm
Theodore Ts'obc210071997-06-17 05:41:36 +00004831rmakefile=
4832if test -d ${srcdir}/resize ; then
4833 rmakefile=resize/Makefile
4834fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004835trap '' 1 2 15
4836cat > confcache <<\EOF
4837# This file is a shell script that caches the results of configure
4838# tests run on this system so they can be shared between configure
4839# scripts and configure runs. It is not useful on other systems.
4840# If it contains results you don't want to keep, you may remove or edit it.
4841#
4842# By default, configure uses ./config.cache as the cache file,
4843# creating it if it does not exist already. You can give configure
4844# the --cache-file=FILE option to use a different cache file; that is
4845# what configure does when it calls configure scripts in
4846# subdirectories, so they share the cache.
4847# Giving --cache-file=/dev/null disables caching, for debugging configure.
4848# config.status only pays attention to the cache file if you give it the
4849# --recheck option to rerun configure.
4850#
4851EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004852# The following way of writing the cache mishandles newlines in values,
4853# but we know of no workaround that is simple, portable, and efficient.
4854# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004855# Ultrix sh set writes to stderr and can't be redirected directly,
4856# and sets the high bit in the cache file unless we assign to the vars.
4857(set) 2>&1 |
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004858 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004859 *ac_space=\ *)
4860 # `set' does not quote correctly, so add quotes (double-quote substitution
4861 # turns \\\\ into \\, and sed turns \\ into \).
4862 sed -n \
4863 -e "s/'/'\\\\''/g" \
4864 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4865 ;;
4866 *)
4867 # `set' quotes correctly as required by POSIX, so do not add quotes.
4868 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4869 ;;
4870 esac >> confcache
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004871if cmp -s $cache_file confcache; then
4872 :
4873else
4874 if test -w $cache_file; then
4875 echo "updating cache $cache_file"
4876 cat confcache > $cache_file
4877 else
4878 echo "not updating unwritable cache $cache_file"
4879 fi
4880fi
4881rm -f confcache
4882
4883trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4884
4885test "x$prefix" = xNONE && prefix=$ac_default_prefix
4886# Let make expand exec_prefix.
4887test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4888
4889# Any assignment to VPATH causes Sun make to only execute
4890# the first set of double-colon rules, so remove it if not needed.
4891# If there is a colon in the path, we need to keep it.
4892if test "x$srcdir" = x.; then
4893 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4894fi
4895
4896trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4897
4898# Transform confdefs.h into DEFS.
4899# Protect against shell expansion while executing Makefile rules.
4900# Protect against Makefile macro expansion.
4901cat > conftest.defs <<\EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004902s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004903s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4904s%\[%\\&%g
4905s%\]%\\&%g
4906s%\$%$$%g
4907EOF
4908DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4909rm -f conftest.defs
4910
4911
4912# Without the "./", some shells look in PATH for config.status.
4913: ${CONFIG_STATUS=./config.status}
4914
4915echo creating $CONFIG_STATUS
4916rm -f $CONFIG_STATUS
4917cat > $CONFIG_STATUS <<EOF
4918#! /bin/sh
4919# Generated automatically by configure.
4920# Run this file to recreate the current configuration.
4921# This directory was configured as follows,
4922# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4923#
4924# $0 $ac_configure_args
4925#
4926# Compiler output produced by configure, useful for debugging
4927# configure, is in ./config.log if it exists.
4928
4929ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4930for ac_option
4931do
4932 case "\$ac_option" in
4933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4934 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4935 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4936 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004937 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004938 exit 0 ;;
4939 -help | --help | --hel | --he | --h)
4940 echo "\$ac_cs_usage"; exit 0 ;;
4941 *) echo "\$ac_cs_usage"; exit 1 ;;
4942 esac
4943done
4944
4945ac_given_srcdir=$srcdir
4946ac_given_INSTALL="$INSTALL"
4947
Theodore Ts'o44339bd1997-10-15 02:47:20 +00004948trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004949 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
4950 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004951 tests/progs/Makefile $rmakefile doc/Makefile
4952 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004953EOF
4954cat >> $CONFIG_STATUS <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004955
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004956# Protect against being on the right side of a sed subst in config.status.
4957sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4958 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004959$ac_vpsub
4960$extrasub
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004961s%@SHELL@%$SHELL%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004962s%@CFLAGS@%$CFLAGS%g
4963s%@CPPFLAGS@%$CPPFLAGS%g
4964s%@CXXFLAGS@%$CXXFLAGS%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00004965s%@FFLAGS@%$FFLAGS%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004966s%@DEFS@%$DEFS%g
4967s%@LDFLAGS@%$LDFLAGS%g
4968s%@LIBS@%$LIBS%g
4969s%@exec_prefix@%$exec_prefix%g
4970s%@prefix@%$prefix%g
4971s%@program_transform_name@%$program_transform_name%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004972s%@bindir@%$bindir%g
4973s%@sbindir@%$sbindir%g
4974s%@libexecdir@%$libexecdir%g
4975s%@datadir@%$datadir%g
4976s%@sysconfdir@%$sysconfdir%g
4977s%@sharedstatedir@%$sharedstatedir%g
4978s%@localstatedir@%$localstatedir%g
4979s%@libdir@%$libdir%g
4980s%@includedir@%$includedir%g
4981s%@oldincludedir@%$oldincludedir%g
4982s%@infodir@%$infodir%g
4983s%@mandir@%$mandir%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004984/@MCONFIG@/r $MCONFIG
4985s%@MCONFIG@%%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004986s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
4987s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
4988s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004989s%@host@%$host%g
4990s%@host_alias@%$host_alias%g
4991s%@host_cpu@%$host_cpu%g
4992s%@host_vendor@%$host_vendor%g
4993s%@host_os@%$host_os%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00004994s%@CC@%$CC%g
4995s%@LD@%$LD%g
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004996s%@CPP@%$CPP%g
4997s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004998s%@DLL_CMT@%$DLL_CMT%g
4999/@MAKEFILE_DLL@/r $MAKEFILE_DLL
5000s%@MAKEFILE_DLL@%%g
5001s%@ELF_CMT@%$ELF_CMT%g
5002/@MAKEFILE_ELF@/r $MAKEFILE_ELF
5003s%@MAKEFILE_ELF@%%g
5004s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5005/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5006s%@MAKEFILE_BSDLIB@%%g
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005007s%@PROFILE_CMT@%$PROFILE_CMT%g
5008/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5009s%@MAKEFILE_PROFILE@%%g
5010s%@CHECKER_CMT@%$CHECKER_CMT%g
5011/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5012s%@MAKEFILE_CHECKER@%%g
5013s%@LIB_EXT@%$LIB_EXT%g
5014s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5015s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
5016s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5017s%@IMAGER_CMT@%$IMAGER_CMT%g
5018s%@RESIZER_CMT@%$RESIZER_CMT%g
5019s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5020s%@FSCK_PROG@%$FSCK_PROG%g
5021s%@FSCK_MAN@%$FSCK_MAN%g
5022/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5023s%@MAKEFILE_LIBRARY@%%g
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005024s%@PACKAGE@%$PACKAGE%g
5025s%@VERSION@%$VERSION%g
5026s%@SET_MAKE@%$SET_MAKE%g
5027s%@RANLIB@%$RANLIB%g
5028s%@ALLOCA@%$ALLOCA%g
5029s%@USE_NLS@%$USE_NLS%g
5030s%@MSGFMT@%$MSGFMT%g
5031s%@GMSGFMT@%$GMSGFMT%g
5032s%@XGETTEXT@%$XGETTEXT%g
5033s%@GENCAT@%$GENCAT%g
5034s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5035s%@CATALOGS@%$CATALOGS%g
5036s%@CATOBJEXT@%$CATOBJEXT%g
5037s%@DATADIRNAME@%$DATADIRNAME%g
5038s%@GMOFILES@%$GMOFILES%g
5039s%@INSTOBJEXT@%$INSTOBJEXT%g
5040s%@INTLDEPS@%$INTLDEPS%g
5041s%@INTLLIBS@%$INTLLIBS%g
5042s%@INTLOBJS@%$INTLOBJS%g
5043s%@POFILES@%$POFILES%g
5044s%@POSUB@%$POSUB%g
5045s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5046s%@GT_NO@%$GT_NO%g
5047s%@GT_YES@%$GT_YES%g
5048s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5049s%@l@%$l%g
Theodore Ts'o74becf31997-04-26 14:37:06 +00005050s%@BINARY_TYPE@%$BINARY_TYPE%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005051s%@LN@%$LN%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005052s%@LN_S@%$LN_S%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005053s%@MV@%$MV%g
5054s%@CP@%$CP%g
5055s%@RM@%$RM%g
5056s%@CHMOD@%$CHMOD%g
5057s%@AWK@%$AWK%g
5058s%@SED@%$SED%g
Theodore Ts'o9d564f71999-07-03 20:25:58 +00005059s%@PERL@%$PERL%g
Theodore Ts'o250f79f2001-05-19 22:02:22 +00005060s%@LDCONFIG@%$LDCONFIG%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005061s%@build@%$build%g
5062s%@build_alias@%$build_alias%g
5063s%@build_cpu@%$build_cpu%g
5064s%@build_vendor@%$build_vendor%g
5065s%@build_os@%$build_os%g
5066s%@AR@%$AR%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005067s%@STRIP@%$STRIP%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005068s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00005069s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005070s%@INSTALL_DATA@%$INSTALL_DATA%g
Theodore Ts'o6c133521999-07-03 20:37:03 +00005071s%@BUILD_CC@%$BUILD_CC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005072s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5073s%@SIZEOF_INT@%$SIZEOF_INT%g
5074s%@SIZEOF_LONG@%$SIZEOF_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005075s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005076s%@SOCKET_LIB@%$SOCKET_LIB%g
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005077s%@root_prefix@%$root_prefix%g
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005078s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005079s%@SS_DIR@%$SS_DIR%g
5080s%@ET_DIR@%$ET_DIR%g
5081s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5082
5083CEOF
5084EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005085
5086cat >> $CONFIG_STATUS <<\EOF
5087
5088# Split the substitutions into bite-sized pieces for seds with
5089# small command number limits, like on Digital OSF/1 and HP-UX.
5090ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5091ac_file=1 # Number of current file.
5092ac_beg=1 # First line for current file.
5093ac_end=$ac_max_sed_cmds # Line after last line for current file.
5094ac_more_lines=:
5095ac_sed_cmds=""
5096while $ac_more_lines; do
5097 if test $ac_beg -gt 1; then
5098 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5099 else
5100 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5101 fi
5102 if test ! -s conftest.s$ac_file; then
5103 ac_more_lines=false
5104 rm -f conftest.s$ac_file
5105 else
5106 if test -z "$ac_sed_cmds"; then
5107 ac_sed_cmds="sed -f conftest.s$ac_file"
5108 else
5109 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5110 fi
5111 ac_file=`expr $ac_file + 1`
5112 ac_beg=$ac_end
5113 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5114 fi
5115done
5116if test -z "$ac_sed_cmds"; then
5117 ac_sed_cmds=cat
5118fi
5119EOF
5120
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005121cat >> $CONFIG_STATUS <<EOF
5122
Theodore Ts'o44339bd1997-10-15 02:47:20 +00005123CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00005124 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5125 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005126 tests/progs/Makefile $rmakefile doc/Makefile
5127 intl/Makefile po/Makefile.in"}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005128EOF
5129cat >> $CONFIG_STATUS <<\EOF
5130for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005131 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005132 case "$ac_file" in
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005133 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005134 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5135 *) ac_file_in="${ac_file}.in" ;;
5136 esac
5137
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005138 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005139
5140 # Remove last slash and all that follows it. Not all systems have dirname.
5141 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5142 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5143 # The file is in a subdirectory.
5144 test ! -d "$ac_dir" && mkdir "$ac_dir"
5145 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5146 # A "../" for each directory in $ac_dir_suffix.
5147 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5148 else
5149 ac_dir_suffix= ac_dots=
5150 fi
5151
5152 case "$ac_given_srcdir" in
5153 .) srcdir=.
5154 if test -z "$ac_dots"; then top_srcdir=.
5155 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5156 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5157 *) # Relative path.
5158 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5159 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5160 esac
5161
5162 case "$ac_given_INSTALL" in
5163 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5164 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5165 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005166
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005167 echo creating "$ac_file"
5168 rm -f "$ac_file"
5169 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5170 case "$ac_file" in
5171 *Makefile*) ac_comsub="1i\\
5172# $configure_input" ;;
5173 *) ac_comsub= ;;
5174 esac
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005175
5176 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 +00005177 sed -e "$ac_comsub
5178s%@configure_input@%$configure_input%g
5179s%@srcdir@%$srcdir%g
5180s%@top_srcdir@%$top_srcdir%g
5181s%@INSTALL@%$INSTALL%g
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005182" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005183fi; done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005184rm -f conftest.s*
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005185
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005186EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005187
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005188cat >> $CONFIG_STATUS <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005189ac_sources="$nls_cv_header_libgt"
5190ac_dests="$nls_cv_header_intl"
5191EOF
5192
5193cat >> $CONFIG_STATUS <<\EOF
5194srcdir=$ac_given_srcdir
5195while test -n "$ac_sources"; do
5196 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5197 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5198
5199 echo "linking $srcdir/$ac_source to $ac_dest"
5200
5201 if test ! -r $srcdir/$ac_source; then
5202 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5203 fi
5204 rm -f $ac_dest
5205
5206 # Make relative symlinks.
5207 # Remove last slash and all that follows it. Not all systems have dirname.
5208 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5209 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5210 # The dest file is in a subdirectory.
5211 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5212 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5213 # A "../" for each directory in $ac_dest_dir_suffix.
5214 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5215 else
5216 ac_dest_dir_suffix= ac_dots=
5217 fi
5218
5219 case "$srcdir" in
5220 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5221 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5222 esac
5223
5224 # Make a symlink if possible; otherwise try a hard link.
5225 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5226 ln $srcdir/$ac_source $ac_dest; then :
5227 else
5228 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5229 fi
5230done
5231EOF
5232cat >> $CONFIG_STATUS <<EOF
5233
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005234
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005235EOF
5236cat >> $CONFIG_STATUS <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005237case "$CONFIG_FILES" in *po/Makefile.in*)
5238 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5239 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005240
5241exit 0
5242EOF
5243chmod +x $CONFIG_STATUS
5244rm -fr confdefs* $ac_clean_files
5245test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5246