]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
Add to the ss (subsystem) library the ability to dynamically link
[thirdparty/e2fsprogs.git] / configure
CommitLineData
50e1e10f
TT
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
a4bf69d9 4# Generated automatically using autoconf version 2.13
21c84b71 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50e1e10f
TT
6#
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:
74becf3c
TT
14ac_help="$ac_help
15 --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"
fc6d9d51 22ac_help="$ac_help
a4b2d3ce 23 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
1917875f
TT
24ac_help="$ac_help
25 --enable-compression enable EXPERIMENTAL compression support"
8fdc9985
TT
26ac_help="$ac_help
27 --enable-htree enable EXPERIMENTAL htree directory support"
28ac_help="$ac_help
29 --enable-htree-clear clear htree because we don't trust e2fsck"
ff6dbcca 30ac_help="$ac_help
a9d799a0
TT
31 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)"
32ac_help="$ac_help
33 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.1)"
50e1e10f 34ac_help="$ac_help
a4d09610 35 --enable-dll-shlibs select DLL libraries"
50e1e10f 36ac_help="$ac_help
a4d09610 37 --enable-elf-shlibs select ELF shared libraries"
50e1e10f 38ac_help="$ac_help
a4d09610 39 --enable-bsd-shlibs select BSD shared libraries"
80bfaa3e 40ac_help="$ac_help
cdf186e4 41 --enable-profile build profiling libraries"
877eb6d9 42ac_help="$ac_help
cdf186e4 43 --enable-checker build checker libraries"
a64c9c13 44ac_help="$ac_help
782bebfd 45 --enable-jbd-debug enable journal debugging"
f0a22d0f
TT
46ac_help="$ac_help
47 --enable-blkid-debug enable blkid debugging"
a64c9c13 48ac_help="$ac_help
cdf186e4 49 --disable-swapfs disable support of legacy byte-swapped filesystems"
a64c9c13 50ac_help="$ac_help
cdf186e4 51 --disable-debugfs disable support of debugfs program"
50e1e10f 52ac_help="$ac_help
cdf186e4 53 --disable-imager disable support of e2image program"
50e1e10f 54ac_help="$ac_help
cdf186e4 55 --disable-resizer disable support of e2resize program"
a4d09610
TT
56ac_help="$ac_help
57 --enable-dynamic-e2fsck build e2fsck dynamically"
fc6d9d51
TT
58ac_help="$ac_help
59 --enable-fsck build fsck wrapper program"
60ac_help="$ac_help
61 --enable-old-bitops Use old (non-standard but native) bitmask operations"
cdf186e4
TT
62ac_help="$ac_help
63 --enable-nls Turn on Native Language Support"
64ac_help="$ac_help
65 --with-included-gettext use the GNU gettext library included here"
66ac_help="$ac_help
67 --with-catgets use catgets functions if available"
50e1e10f
TT
68
69# Initialize some variables set by options.
70# The variables have the same names as the options, with
71# dashes changed to underlines.
72build=NONE
73cache_file=./config.cache
74exec_prefix=NONE
75host=NONE
76no_create=
77nonopt=NONE
78no_recursion=
79prefix=NONE
80program_prefix=NONE
81program_suffix=NONE
82program_transform_name=s,x,x,
83silent=
84site=
85srcdir=
86target=NONE
87verbose=
88x_includes=NONE
89x_libraries=NONE
21c84b71
TT
90bindir='${exec_prefix}/bin'
91sbindir='${exec_prefix}/sbin'
92libexecdir='${exec_prefix}/libexec'
93datadir='${prefix}/share'
94sysconfdir='${prefix}/etc'
95sharedstatedir='${prefix}/com'
96localstatedir='${prefix}/var'
97libdir='${exec_prefix}/lib'
98includedir='${prefix}/include'
99oldincludedir='/usr/include'
100infodir='${prefix}/info'
101mandir='${prefix}/man'
50e1e10f
TT
102
103# Initialize some other variables.
104subdirs=
21c84b71 105MFLAGS= MAKEFLAGS=
a4bf69d9 106SHELL=${CONFIG_SHELL-/bin/sh}
21c84b71
TT
107# Maximum number of lines to put in a shell here document.
108ac_max_here_lines=12
50e1e10f
TT
109
110ac_prev=
111for ac_option
112do
113
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
119 fi
120
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
125
126 # Accept the important Cygnus configure options, so we can diagnose typos.
127
128 case "$ac_option" in
129
21c84b71
TT
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
134
135 -build | --build | --buil | --bui | --bu)
50e1e10f 136 ac_prev=build ;;
21c84b71 137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
50e1e10f
TT
138 build="$ac_optarg" ;;
139
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
146
21c84b71
TT
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
152
50e1e10f
TT
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 fi
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
161
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 fi
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
174
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
183
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
187
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192Usage: configure [options] [host]
193Options: [defaults in brackets after descriptions]
194Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
21c84b71 203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
50e1e10f 204 [same as prefix]
21c84b71
TT
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
50e1e10f
TT
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
21c84b71
TT
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
224EOF
225 cat << EOF
50e1e10f
TT
226Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
50e1e10f 237EOF
21c84b71
TT
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
240 fi
50e1e10f
TT
241 exit 0 ;;
242
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
247
21c84b71
TT
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
254
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
259
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
264
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
271
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
280
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
285
50e1e10f
TT
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
289
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
293
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
297
21c84b71
TT
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
306
50e1e10f
TT
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
311
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
318
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
325
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
342
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
346
21c84b71
TT
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
352
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
363
50e1e10f
TT
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
368
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
373
21c84b71
TT
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
380
50e1e10f
TT
381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
385
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
388
389 -version | --version | --versio | --versi | --vers)
a4bf69d9 390 echo "configure generated by autoconf version 2.13"
50e1e10f
TT
391 exit 0 ;;
392
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 fi
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
405
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 fi
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
414
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
418
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
425
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
432
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 ;;
435
21c84b71 436 *)
50e1e10f
TT
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
439 fi
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 fi
443 nonopt="$ac_option"
444 ;;
445
446 esac
447done
448
449if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451fi
452
453trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454
455# File descriptor usage:
456# 0 standard input
457# 1 file creation
458# 2 errors and warnings
459# 3 some systems may open it to /dev/tty
460# 4 used on the Kubota Titan
461# 6 checking for... messages and results
462# 5 compiler messages saved in config.log
463if test "$silent" = yes; then
464 exec 6>/dev/null
465else
466 exec 6>&1
467fi
468exec 5>./config.log
469
470echo "\
471This file contains any messages produced by compilers while
472running configure, to aid debugging if configure makes a mistake.
473" 1>&5
474
475# Strip out --no-create and --no-recursion so they do not pile up.
476# Also quote any args containing shell metacharacters.
477ac_configure_args=
478for ac_arg
479do
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489done
490
491# NLS nuisances.
21c84b71
TT
492# Only set these to C if already set. These must not be set unconditionally
493# because not all systems understand e.g. LANG=C (notably SCO).
494# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495# Non-C LC_CTYPE values break the ctype check.
50e1e10f 496if test "${LANG+set}" = set; then LANG=C; export LANG; fi
21c84b71
TT
497if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
50e1e10f
TT
500
501# confdefs.h avoids OS command line length limits that DEFS can exceed.
502rm -rf conftest* confdefs.h
503# AIX cpp loses on an empty file, so make sure it contains at least a newline.
504echo > confdefs.h
505
506# A filename unique to this package, relative to the directory that
507# configure is in, which we can look for to find out if srcdir is correct.
508ac_unique_file=version.h
509
510# Find the source files, if location was not specified.
511if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
520 fi
521else
522 ac_srcdir_defaulted=no
523fi
524if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 fi
530fi
531srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532
533# Prefer explicitly selected file to automatically selected ones.
534if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 fi
540fi
541for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
545 fi
546done
547
548if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551else
552 echo "creating cache $cache_file"
553 > $cache_file
554fi
555
556ac_ext=c
557# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558ac_cpp='$CPP $CPPFLAGS'
21c84b71 559ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a4bf69d9 560ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21c84b71 561cross_compiling=$ac_cv_prog_cc_cross
50e1e10f 562
a4bf69d9
TT
563ac_exeext=
564ac_objext=o
50e1e10f
TT
565if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
572 fi
573else
574 ac_n= ac_c='\c' ac_t=
575fi
576
577
a4b2d3ce 578
50e1e10f
TT
579MCONFIG=./MCONFIG
580
74becf3c
TT
581BINARY_TYPE=bin
582E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
583 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
584DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
585 | tr \" " "`
586MONTH=`echo $DATE | awk -F- '{print $2}'`
587YEAR=`echo $DATE | awk -F- '{print $3}'`
588
14790ed7
TT
589if expr $YEAR ">" 1900 > /dev/null ; then
590 E2FSPROGS_YEAR=$YEAR
591elif expr $YEAR ">" 90 >/dev/null ; then
74becf3c
TT
592 E2FSPROGS_YEAR=19$YEAR
593else
594 E2FSPROGS_YEAR=20$YEAR
595fi
596
597case $MONTH in
598Jan) E2FSPROGS_MONTH="January" ;;
599Feb) E2FSPROGS_MONTH="February" ;;
600Mar) E2FSPROGS_MONTH="March" ;;
601Apr) E2FSPROGS_MONTH="April" ;;
602May) E2FSPROGS_MONTH="May" ;;
603Jun) E2FSPROGS_MONTH="June" ;;
604Jul) E2FSPROGS_MONTH="July" ;;
605Aug) E2FSPROGS_MONTH="August" ;;
606Sep) E2FSPROGS_MONTH="September" ;;
607Oct) E2FSPROGS_MONTH="October" ;;
608Nov) E2FSPROGS_MONTH="November" ;;
609Dec) E2FSPROGS_MONTH="December" ;;
610*) echo "Unknown month $MONTH??" ;;
611esac
612
613unset DATE MONTH YEAR
614echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
615echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
616
617
618
fc6d9d51
TT
619ac_aux_dir=
620for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
621 if test -f $ac_dir/install-sh; then
622 ac_aux_dir=$ac_dir
623 ac_install_sh="$ac_aux_dir/install-sh -c"
624 break
625 elif test -f $ac_dir/install.sh; then
626 ac_aux_dir=$ac_dir
627 ac_install_sh="$ac_aux_dir/install.sh -c"
628 break
629 fi
630done
631if test -z "$ac_aux_dir"; then
632 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
633fi
634ac_config_guess=$ac_aux_dir/config.guess
635ac_config_sub=$ac_aux_dir/config.sub
636ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
637
638
639# Make sure we can run config.sub.
a4bf69d9 640if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
fc6d9d51
TT
641else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
642fi
643
644echo $ac_n "checking host system type""... $ac_c" 1>&6
f0a22d0f 645echo "configure:646: checking host system type" >&5
fc6d9d51
TT
646
647host_alias=$host
648case "$host_alias" in
649NONE)
650 case $nonopt in
651 NONE)
a4bf69d9 652 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
fc6d9d51
TT
653 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
654 fi ;;
655 *) host_alias=$nonopt ;;
656 esac ;;
657esac
658
a4bf69d9 659host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
21c84b71
TT
660host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
fc6d9d51
TT
663echo "$ac_t""$host" 1>&6
664
74becf3c 665# Check whether --with-cc or --without-cc was given.
21c84b71
TT
666if test "${with_cc+set}" = set; then
667 withval="$with_cc"
74becf3c
TT
668 echo "$ac_t""CC=$withval" 1>&6
669CC=$withval
670else
671 if test -z "$CC" ; then CC=cc; fi
672echo "$ac_t""CC defaults to $CC" 1>&6
673fi
674export CC
675
73ae2d4a
TT
676# Extract the first word of "gcc", so it can be a program name with args.
677set dummy gcc; ac_word=$2
678echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f0a22d0f 679echo "configure:680: checking for $ac_word" >&5
73ae2d4a
TT
680if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682else
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
685else
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
687 ac_dummy="$PATH"
688 for ac_dir in $ac_dummy; do
689 test -z "$ac_dir" && ac_dir=.
690 if test -f $ac_dir/$ac_word; then
691 ac_cv_prog_CC="gcc"
692 break
693 fi
694 done
695 IFS="$ac_save_ifs"
696fi
697fi
698CC="$ac_cv_prog_CC"
699if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
701else
702 echo "$ac_t""no" 1>&6
703fi
704
705if test -z "$CC"; then
706 # Extract the first word of "cc", so it can be a program name with args.
707set dummy cc; ac_word=$2
708echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f0a22d0f 709echo "configure:710: checking for $ac_word" >&5
73ae2d4a
TT
710if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
712else
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
715else
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
717 ac_prog_rejected=no
718 ac_dummy="$PATH"
719 for ac_dir in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir=.
721 if test -f $ac_dir/$ac_word; then
722 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
723 ac_prog_rejected=yes
724 continue
725 fi
726 ac_cv_prog_CC="cc"
727 break
728 fi
729 done
730 IFS="$ac_save_ifs"
731if test $ac_prog_rejected = yes; then
732 # We found a bogon in the path, so make sure we never use it.
733 set dummy $ac_cv_prog_CC
734 shift
735 if test $# -gt 0; then
736 # We chose a different compiler from the bogus one.
737 # However, it has the same basename, so the bogon will be chosen
738 # first if we set CC to just the basename; use the full file name.
739 shift
740 set dummy "$ac_dir/$ac_word" "$@"
741 shift
742 ac_cv_prog_CC="$@"
743 fi
744fi
745fi
746fi
747CC="$ac_cv_prog_CC"
748if test -n "$CC"; then
749 echo "$ac_t""$CC" 1>&6
750else
751 echo "$ac_t""no" 1>&6
752fi
753
754 if test -z "$CC"; then
755 case "`uname -s`" in
756 *win32* | *WIN32*)
757 # Extract the first word of "cl", so it can be a program name with args.
758set dummy cl; ac_word=$2
759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f0a22d0f 760echo "configure:761: checking for $ac_word" >&5
73ae2d4a
TT
761if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
763else
764 if test -n "$CC"; then
765 ac_cv_prog_CC="$CC" # Let the user override the test.
766else
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
768 ac_dummy="$PATH"
769 for ac_dir in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir=.
771 if test -f $ac_dir/$ac_word; then
772 ac_cv_prog_CC="cl"
773 break
774 fi
775 done
776 IFS="$ac_save_ifs"
777fi
778fi
779CC="$ac_cv_prog_CC"
780if test -n "$CC"; then
781 echo "$ac_t""$CC" 1>&6
782else
783 echo "$ac_t""no" 1>&6
784fi
785 ;;
786 esac
787 fi
788 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
789fi
790
791echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f0a22d0f 792echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
73ae2d4a
TT
793
794ac_ext=c
795# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
796ac_cpp='$CPP $CPPFLAGS'
797ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
798ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
799cross_compiling=$ac_cv_prog_cc_cross
800
801cat > conftest.$ac_ext << EOF
802
f0a22d0f 803#line 804 "configure"
73ae2d4a
TT
804#include "confdefs.h"
805
806main(){return(0);}
807EOF
f0a22d0f 808if { (eval echo configure:809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
73ae2d4a
TT
809 ac_cv_prog_cc_works=yes
810 # If we can't run a trivial program, we are probably using a cross compiler.
811 if (./conftest; exit) 2>/dev/null; then
812 ac_cv_prog_cc_cross=no
813 else
814 ac_cv_prog_cc_cross=yes
815 fi
816else
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
819 ac_cv_prog_cc_works=no
820fi
821rm -fr conftest*
822ac_ext=c
823# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
824ac_cpp='$CPP $CPPFLAGS'
825ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
826ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
827cross_compiling=$ac_cv_prog_cc_cross
828
829echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
830if test $ac_cv_prog_cc_works = no; then
831 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
832fi
833echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f0a22d0f 834echo "configure:835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
73ae2d4a
TT
835echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
836cross_compiling=$ac_cv_prog_cc_cross
837
838echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
f0a22d0f 839echo "configure:840: checking whether we are using GNU C" >&5
73ae2d4a
TT
840if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842else
843 cat > conftest.c <<EOF
844#ifdef __GNUC__
845 yes;
846#endif
847EOF
f0a22d0f 848if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
73ae2d4a
TT
849 ac_cv_prog_gcc=yes
850else
851 ac_cv_prog_gcc=no
852fi
853fi
854
855echo "$ac_t""$ac_cv_prog_gcc" 1>&6
856
857if test $ac_cv_prog_gcc = yes; then
858 GCC=yes
859else
860 GCC=
861fi
862
863ac_test_CFLAGS="${CFLAGS+set}"
864ac_save_CFLAGS="$CFLAGS"
865CFLAGS=
866echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
f0a22d0f 867echo "configure:868: checking whether ${CC-cc} accepts -g" >&5
73ae2d4a
TT
868if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
870else
871 echo 'void f(){}' > conftest.c
872if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
873 ac_cv_prog_cc_g=yes
874else
875 ac_cv_prog_cc_g=no
876fi
877rm -f conftest*
878
879fi
880
881echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
882if test "$ac_test_CFLAGS" = set; then
883 CFLAGS="$ac_save_CFLAGS"
884elif test $ac_cv_prog_cc_g = yes; then
885 if test "$GCC" = yes; then
886 CFLAGS="-g -O2"
887 else
888 CFLAGS="-g"
889 fi
890else
891 if test "$GCC" = yes; then
892 CFLAGS="-O2"
893 else
894 CFLAGS=
895 fi
896fi
897
74becf3c 898# Check whether --with-linker or --without-linker was given.
21c84b71
TT
899if test "${with_linker+set}" = set; then
900 withval="$with_linker"
74becf3c
TT
901 echo "$ac_t""LD=$withval" 1>&6
902LD=$withval
903else
904 if test -z "$LD" ; then LD=$CC; fi
905echo "$ac_t""LD defaults to $LD" 1>&6
906fi
a64c9c13
TT
907export LD
908
909# Check whether --with-ccopts or --without-ccopts was given.
910if test "${with_ccopts+set}" = set; then
911 withval="$with_ccopts"
912 echo "$ac_t""CCOPTS is $withval" 1>&6
877eb6d9 913CFLAGS=$withval
a64c9c13 914fi
a64c9c13 915echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f0a22d0f 916echo "configure:917: checking how to run the C preprocessor" >&5
a64c9c13
TT
917# On Suns, sometimes $CPP names a directory.
918if test -n "$CPP" && test -d "$CPP"; then
919 CPP=
920fi
921if test -z "$CPP"; then
922if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
924else
925 # This must be in double quotes, not single quotes, because CPP may get
926 # substituted into the Makefile and "${CC-cc}" will confuse make.
927 CPP="${CC-cc} -E"
928 # On the NeXT, cc -E runs the code through the compiler's parser,
929 # not just through cpp.
930 cat > conftest.$ac_ext <<EOF
f0a22d0f 931#line 932 "configure"
a64c9c13
TT
932#include "confdefs.h"
933#include <assert.h>
934Syntax Error
935EOF
936ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f0a22d0f 937{ (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a64c9c13
TT
938ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939if test -z "$ac_err"; then
940 :
941else
942 echo "$ac_err" >&5
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 rm -rf conftest*
946 CPP="${CC-cc} -E -traditional-cpp"
947 cat > conftest.$ac_ext <<EOF
f0a22d0f 948#line 949 "configure"
a64c9c13
TT
949#include "confdefs.h"
950#include <assert.h>
951Syntax Error
952EOF
953ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f0a22d0f 954{ (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a64c9c13
TT
955ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
956if test -z "$ac_err"; then
957 :
958else
959 echo "$ac_err" >&5
960 echo "configure: failed program was:" >&5
961 cat conftest.$ac_ext >&5
962 rm -rf conftest*
963 CPP="${CC-cc} -nologo -E"
964 cat > conftest.$ac_ext <<EOF
f0a22d0f 965#line 966 "configure"
a64c9c13
TT
966#include "confdefs.h"
967#include <assert.h>
968Syntax Error
969EOF
970ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f0a22d0f 971{ (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a64c9c13
TT
972ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
973if test -z "$ac_err"; then
974 :
975else
976 echo "$ac_err" >&5
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
979 rm -rf conftest*
980 CPP=/lib/cpp
981fi
982rm -f conftest*
983fi
984rm -f conftest*
985fi
986rm -f conftest*
987 ac_cv_prog_CPP="$CPP"
988fi
989 CPP="$ac_cv_prog_CPP"
990else
991 ac_cv_prog_CPP="$CPP"
992fi
993echo "$ac_t""$CPP" 1>&6
994
995ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
996echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
f0a22d0f 997echo "configure:998: checking for linux/fs.h" >&5
a64c9c13
TT
998if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1000else
1001 cat > conftest.$ac_ext <<EOF
f0a22d0f 1002#line 1003 "configure"
a64c9c13
TT
1003#include "confdefs.h"
1004#include <linux/fs.h>
1005EOF
1006ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f0a22d0f 1007{ (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a64c9c13
TT
1008ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1009if test -z "$ac_err"; then
1010 rm -rf conftest*
1011 eval "ac_cv_header_$ac_safe=yes"
1012else
1013 echo "$ac_err" >&5
1014 echo "configure: failed program was:" >&5
1015 cat conftest.$ac_ext >&5
1016 rm -rf conftest*
1017 eval "ac_cv_header_$ac_safe=no"
1018fi
1019rm -f conftest*
1020fi
1021if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1022 echo "$ac_t""yes" 1>&6
1023 linux_headers=yes
1024else
1025 echo "$ac_t""no" 1>&6
1026linux_headers=no
1027fi
1028
1029if test "$linux_headers" != yes; then
1030 LINUX_INCLUDE='-I$(top_builddir)/include'
1031fi
1032
1033LIB_EXT=.a
1034STATIC_LIB_EXT=.a
1035PROFILE_LIB_EXT=.a
1036# Check whether --with-ldopts or --without-ldopts was given.
1037if test "${with_ldopts+set}" = set; then
1038 withval="$with_ldopts"
1039 echo "$ac_t""LDFLAGS is $withval" 1>&6
1040LDFLAGS=$withval
1041else
1042 LDFLAGS=
1043fi
1044
1045# Check whether --with-root-prefix or --without-root-prefix was given.
1046if test "${with_root_prefix+set}" = set; then
1047 withval="$with_root_prefix"
1048 root_prefix=$withval
1049else
1050 root_prefix=NONE
1051fi
1917875f
TT
1052# Check whether --enable-compression or --disable-compression was given.
1053if test "${enable_compression+set}" = set; then
1054 enableval="$enable_compression"
1055 if test "$enableval" = "no"
1056then
1057 echo "Disabling compression support"
1058else
1059 cat >> confdefs.h <<\EOF
1060#define ENABLE_COMPRESSION 1
1061EOF
1062
1063 echo "Enabling compression support"
1064 echo "WARNING: Compression support is experimental"
1065fi
1066
1067else
1068 echo "Disabling compression support by default"
1069
1070fi
1071
8fdc9985
TT
1072# Check whether --enable-htree or --disable-htree was given.
1073if test "${enable_htree+set}" = set; then
1074 enableval="$enable_htree"
1075 if test "$enableval" = "no"
1076then
1077 HTREE_CMT=#
1078 echo "Disabling htree directory support"
1079else
1080 HTREE_CMT=
1081 cat >> confdefs.h <<\EOF
1082#define ENABLE_HTREE 1
1083EOF
1084
1085 echo "Enabling htree directory support"
8fdc9985
TT
1086fi
1087
1088else
559ca6cb
TT
1089 HTREE_CMT=
1090cat >> confdefs.h <<\EOF
1091#define ENABLE_HTREE 1
1092EOF
1093
1094echo "Enabling htree directory support by default"
8fdc9985
TT
1095
1096fi
1097
1098
1099# Check whether --enable-htree-clear or --disable-htree-clear was given.
1100if test "${enable_htree_clear+set}" = set; then
1101 enableval="$enable_htree_clear"
1102 if test "$enableval" = "no"
1103then
1104 HTREE_CLR_CMT=#
1105 echo "Disabling htree clearing"
1106else
1107 HTREE_CLR_CMT=
1108 cat >> confdefs.h <<\EOF
1109#define ENABLE_HTREE_CLEAR 1
1110EOF
1111
1112 echo "Enabling htree clearing"
1113fi
1114
1115else
1116 HTREE_CLR_CMT=#
1117echo "Disabling htree clearing by default"
1118
1119fi
1120
1121
a9d799a0
TT
1122EVMS_ABI_CODE=120
1123# Check whether --enable-evms-10 or --disable-evms-10 was given.
1124if test "${enable_evms_10+set}" = set; then
1125 enableval="$enable_evms_10"
1126 if test "$enableval" != "no"
ff6dbcca 1127then
a9d799a0 1128 EVMS_ABI_CODE=100
ff6dbcca
TT
1129 echo "Enabling EVMS 1.0.0 ABI"
1130fi
1131
a9d799a0
TT
1132fi
1133
1134# Check whether --enable-evms-11 or --disable-evms-11 was given.
1135if test "${enable_evms_11+set}" = set; then
1136 enableval="$enable_evms_11"
1137 if test "$enableval" != "no"
1138then
1139 EVMS_ABI_CODE=110
1140 echo "Enabling EVMS 1.1.0 ABI"
1141fi
ff6dbcca
TT
1142
1143fi
1144
a9d799a0
TT
1145if test "$EVMS_ABI_CODE" = "120"
1146then
1147 echo "Using EVMS 1.2.0 ABI by default"
1148fi
1149
a64c9c13
TT
1150# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1151if test "${enable_dll_shlibs+set}" = set; then
1152 enableval="$enable_dll_shlibs"
1153 if test "$enableval" = "no"
1154then
1155 DLL_CMT=#
1156 MAKEFILE_DLL=/dev/null
1157 echo "Disabling DLL shared libraries"
1158else
1159 DLL_CMT=
1160 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1161 BINARY_TYPE=dllbin
1162 LIB_EXT=.sa
1163 echo "Enabling DLL shared libraries"
1164fi
1165
1166else
1167 MAKEFILE_DLL=/dev/null
1168DLL_CMT=#
1169echo "Disabling DLL shared libraries by default"
1170
1171fi
1172
1173
1174
1175# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1176if test "${enable_elf_shlibs+set}" = set; then
1177 enableval="$enable_elf_shlibs"
1178 if test "$enableval" = "no"
1179then
1180 ELF_CMT=#
1181 MAKEFILE_ELF=/dev/null
1182 echo "Disabling ELF shared libraries"
1183else
1184 ELF_CMT=
1185 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
f5955dda
TT
1186 case "$host_os" in
1187 solaris2.*)
1188 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1189 ;;
1190 esac
a64c9c13
TT
1191 BINARY_TYPE=elfbin
1192 LIB_EXT=.so
1193 echo "Enabling ELF shared libraries"
1194fi
1195
1196else
1197 MAKEFILE_ELF=/dev/null
1198ELF_CMT=#
1199echo "Disabling ELF shared libraries by default"
1200
1201fi
1202
1203
1204
1205# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1206if test "${enable_bsd_shlibs+set}" = set; then
1207 enableval="$enable_bsd_shlibs"
1208 if test "$enableval" = "no"
1209then
1210 BSDLIB_CMT=#
1211 MAKEFILE_BSDLIB=/dev/null
1212 echo "Disabling BSD shared libraries"
1213else
1214 BSDLIB_CMT=
1215 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1216 LIB_EXT=.so
e1f07228
TT
1217 case "$host_os" in
1218 darwin.*)
1219 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
1220 LIB_EXT=.dylib
1221 ;;
1222 esac
a64c9c13
TT
1223 echo "Enabling BSD shared libraries"
1224fi
1225
1226else
1227 MAKEFILE_BSDLIB=/dev/null
1228BSDLIB_CMT=#
1229echo "Disabling BSD shared libraries by default"
1230
1231fi
1232
1233
1234
cdf186e4
TT
1235# Check whether --enable-profile or --disable-profile was given.
1236if test "${enable_profile+set}" = set; then
1237 enableval="$enable_profile"
1238 if test "$enableval" = "no"
1239then
1240 PROFILE_CMT=#
1241 MAKEFILE_PROFILE=/dev/null
1242 echo "Disabling profiling libraries"
1243else
1244 PROFILE_CMT=
1245 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1246 PROFILED_LIB_EXT=_p.a
1247 echo "Building profiling libraries"
1248fi
1249
1250else
1251 PROFILE_CMT=#
1252MAKEFILE_PROFILE=/dev/null
1253echo "Disabling profiling libraries by default"
1254
1255fi
1256
1257
1258
1259# Check whether --enable-checker or --disable-checker was given.
1260if test "${enable_checker+set}" = set; then
1261 enableval="$enable_checker"
1262 if test "$enableval" = "no"
1263then
1264 CHECKER_CMT=#
1265 MAKEFILE_CHECKER=/dev/null
1266 echo "Disabling checker libraries"
1267else
1268 CHECKER_CMT=
1269 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1270 echo "Building checker libraries"
1271fi
1272
1273else
1274 CHECKER_CMT=#
1275MAKEFILE_CHECKER=/dev/null
1276echo "Disabling checker libraries by default"
1277
1278fi
1279
1280
1281
1282
1283
1284
782bebfd
TT
1285# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1286if test "${enable_jbd_debug+set}" = set; then
1287 enableval="$enable_jbd_debug"
80bfaa3e
TT
1288 if test "$enableval" = "no"
1289then
1290 echo "Disabling journal debugging"
1291else
1292 cat >> confdefs.h <<\EOF
8cf93332 1293#define CONFIG_JBD_DEBUG 1
80bfaa3e
TT
1294EOF
1295
1296 echo "Enabling journal debugging"
1297fi
1298
1299else
1300 echo "Disabling journal debugging by default"
1301
1302fi
1303
f0a22d0f
TT
1304# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1305if test "${enable_blkid_debug+set}" = set; then
1306 enableval="$enable_blkid_debug"
1307 if test "$enableval" = "no"
1308then
1309 echo "Disabling blkid debugging"
1310else
1311 cat >> confdefs.h <<\EOF
1312#define CONFIG_BLKID_DEBUG 1
1313EOF
1314
1315 echo "Enabling blkid debugging"
1316fi
1317
1318else
1319 echo "Disabling blkid debugging by default"
1320
1321fi
1322
877eb6d9
TT
1323# Check whether --enable-swapfs or --disable-swapfs was given.
1324if test "${enable_swapfs+set}" = set; then
1325 enableval="$enable_swapfs"
1326 if test "$enableval" = "no"
1327then
feb44c69 1328 SWAPFS_CMT=#
877eb6d9 1329 echo "Disabling swapfs support"
877eb6d9 1330else
feb44c69 1331 SWAPFS_CMT=
877eb6d9
TT
1332 cat >> confdefs.h <<\EOF
1333#define ENABLE_SWAPFS 1
1334EOF
1335
877eb6d9
TT
1336 echo "Enabling swapfs support"
1337fi
1338
1339else
feb44c69
TT
1340 SWAPFS_CMT=
1341echo "Enabling swapfs support by default"
877eb6d9
TT
1342cat >> confdefs.h <<\EOF
1343#define ENABLE_SWAPFS 1
1344EOF
1345
877eb6d9
TT
1346
1347fi
1348
feb44c69 1349
cdf186e4
TT
1350# Check whether --enable-debugfs or --disable-debugfs was given.
1351if test "${enable_debugfs+set}" = set; then
1352 enableval="$enable_debugfs"
1353 if test "$enableval" = "no"
1354then
1355 echo "Disabling debugfs support"
1356 DEBUGFS_CMT="#"
1357else
cdf186e4
TT
1358 DEBUGFS_CMT=
1359 echo "Enabling debugfs support"
1360fi
1361
1362else
1363 echo "Enabling debugfs support by default"
cdf186e4
TT
1364DEBUGFS_CMT=
1365
1366fi
1367
1368
1369# Check whether --enable-imager or --disable-imager was given.
1370if test "${enable_imager+set}" = set; then
1371 enableval="$enable_imager"
1372 if test "$enableval" = "no"
1373then
1374 echo "Disabling e2image support"
1375 IMAGER_CMT="#"
1376else
cdf186e4
TT
1377 IMAGER_CMT=
1378 echo "Enabling e2image support"
1379fi
1380
1381else
1382 echo "Enabling e2image support by default"
cdf186e4
TT
1383IMAGER_CMT=
1384
1385fi
1386
1387
1388# Check whether --enable-resizer or --disable-resizer was given.
1389if test "${enable_resizer+set}" = set; then
1390 enableval="$enable_resizer"
1391 if test "$enableval" = "no"
1392then
1393 echo "Disabling e2resize support"
1394 RESIZER_CMT="#"
1395else
cdf186e4
TT
1396 RESIZER_CMT=
1397 echo "Enabling e2resize support"
1398fi
1399
1400else
1401 echo "Enabling e2resize support by default"
cdf186e4
TT
1402RESIZER_CMT=
1403
1404fi
1405
1406
1407# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1408if test "${enable_dynamic_e2fsck+set}" = set; then
1409 enableval="$enable_dynamic_e2fsck"
1410 if test "$enableval" = "no"
1411then
1412 E2FSCK_TYPE=static
1413 echo "Building e2fsck statically"
1414else
1415 E2FSCK_TYPE=shared
1416 echo "Building e2fsck dynamically"
1417fi
1418
1419else
1420 E2FSCK_TYPE=static
1421echo "Building e2fsck statically by default"
1422
1423fi
1424
1425
1426# Check whether --enable-fsck or --disable-fsck was given.
1427if test "${enable_fsck+set}" = set; then
1428 enableval="$enable_fsck"
1429 if test "$enableval" = "no"
1430then
1431 FSCK_PROG='' FSCK_MAN=''
1432 echo "Not building fsck wrapper"
1433else
1434 FSCK_PROG=fsck FSCK_MAN=fsck.8
1435 echo "Building fsck wrapper"
1436fi
1437
1438else
1439 case "$host_os" in
1440 gnu*)
1441 FSCK_PROG='' FSCK_MAN=''
1442 echo "Not building fsck wrapper by default"
1443 ;;
1444 *)
1445 FSCK_PROG=fsck FSCK_MAN=fsck.8
1446 echo "Building fsck wrapper by default"
1447esac
1448
1449fi
1450
1451
1452
1453MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1454
1455# Check whether --enable-old-bitops or --disable-old-bitops was given.
1456if test "${enable_old_bitops+set}" = set; then
1457 enableval="$enable_old_bitops"
1458 if test "$enableval" = "no"
1459then
1460 echo "Using new (standard) bitmask operations"
1461else
1462 cat >> confdefs.h <<\EOF
1463#define EXT2_OLD_BITOPS 1
1464EOF
1465
1466 echo "Using old (native) bitmask operations"
1467
1468fi
1469
1470else
1471 echo "Using standard bitmask operations by default"
1472
1473fi
877eb6d9 1474
a64c9c13
TT
1475PACKAGE=e2fsprogs
1476VERSION="$E2FSPROGS_VERSION"
1477cat >> confdefs.h <<EOF
1478#define PACKAGE "$PACKAGE"
1479EOF
1480
1481cat >> confdefs.h <<EOF
1482#define VERSION "$VERSION"
1483EOF
1484
1485
1486
1487
0c897a90 1488ALL_LINGUAS="it nyc tr de de-utf"
a64c9c13 1489echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
e1f07228 1490echo "configure:1491: checking whether ${MAKE-make} sets \${MAKE}" >&5
a64c9c13
TT
1491set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1492if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494else
1495 cat > conftestmake <<\EOF
1496all:
1497 @echo 'ac_maketemp="${MAKE}"'
1498EOF
1499# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1500eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1501if test -n "$ac_maketemp"; then
1502 eval ac_cv_prog_make_${ac_make}_set=yes
1503else
1504 eval ac_cv_prog_make_${ac_make}_set=no
1505fi
1506rm -f conftestmake
1507fi
1508if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1509 echo "$ac_t""yes" 1>&6
1510 SET_MAKE=
1511else
1512 echo "$ac_t""no" 1>&6
1513 SET_MAKE="MAKE=${MAKE-make}"
1514fi
1515
1516# Extract the first word of "ranlib", so it can be a program name with args.
1517set dummy ranlib; ac_word=$2
1518echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 1519echo "configure:1520: checking for $ac_word" >&5
a64c9c13
TT
1520if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1522else
1523 if test -n "$RANLIB"; then
1524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1525else
1526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1527 ac_dummy="$PATH"
1528 for ac_dir in $ac_dummy; do
1529 test -z "$ac_dir" && ac_dir=.
1530 if test -f $ac_dir/$ac_word; then
1531 ac_cv_prog_RANLIB="ranlib"
1532 break
1533 fi
1534 done
1535 IFS="$ac_save_ifs"
1536 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1537fi
1538fi
1539RANLIB="$ac_cv_prog_RANLIB"
1540if test -n "$RANLIB"; then
1541 echo "$ac_t""$RANLIB" 1>&6
1542else
1543 echo "$ac_t""no" 1>&6
1544fi
1545
1546echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
e1f07228 1547echo "configure:1548: checking for POSIXized ISC" >&5
a64c9c13
TT
1548if test -d /etc/conf/kconfig.d &&
1549 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1550then
1551 echo "$ac_t""yes" 1>&6
1552 ISC=yes # If later tests want to check for ISC.
1553 cat >> confdefs.h <<\EOF
1554#define _POSIX_SOURCE 1
1555EOF
1556
1557 if test "$GCC" = yes; then
1558 CC="$CC -posix"
1559 else
1560 CC="$CC -Xp"
1561 fi
1562else
1563 echo "$ac_t""no" 1>&6
1564 ISC=
1565fi
1566
1567echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
e1f07228 1568echo "configure:1569: checking for ANSI C header files" >&5
a64c9c13
TT
1569if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1571else
1572 cat > conftest.$ac_ext <<EOF
e1f07228 1573#line 1574 "configure"
a64c9c13
TT
1574#include "confdefs.h"
1575#include <stdlib.h>
1576#include <stdarg.h>
1577#include <string.h>
1578#include <float.h>
1579EOF
1580ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e1f07228 1581{ (eval echo configure:1582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a64c9c13
TT
1582ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1583if test -z "$ac_err"; then
1584 rm -rf conftest*
1585 ac_cv_header_stdc=yes
1586else
1587 echo "$ac_err" >&5
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1590 rm -rf conftest*
1591 ac_cv_header_stdc=no
1592fi
1593rm -f conftest*
1594
1595if test $ac_cv_header_stdc = yes; then
1596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1597cat > conftest.$ac_ext <<EOF
e1f07228 1598#line 1599 "configure"
a64c9c13
TT
1599#include "confdefs.h"
1600#include <string.h>
1601EOF
1602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1603 egrep "memchr" >/dev/null 2>&1; then
1604 :
1605else
1606 rm -rf conftest*
1607 ac_cv_header_stdc=no
1608fi
1609rm -f conftest*
1610
1611fi
1612
1613if test $ac_cv_header_stdc = yes; then
1614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1615cat > conftest.$ac_ext <<EOF
e1f07228 1616#line 1617 "configure"
a64c9c13
TT
1617#include "confdefs.h"
1618#include <stdlib.h>
1619EOF
1620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1621 egrep "free" >/dev/null 2>&1; then
1622 :
1623else
1624 rm -rf conftest*
1625 ac_cv_header_stdc=no
1626fi
1627rm -f conftest*
1628
1629fi
1630
1631if test $ac_cv_header_stdc = yes; then
1632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1633if test "$cross_compiling" = yes; then
1634 :
1635else
1636 cat > conftest.$ac_ext <<EOF
e1f07228 1637#line 1638 "configure"
a64c9c13
TT
1638#include "confdefs.h"
1639#include <ctype.h>
1640#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1641#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1642#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1643int main () { int i; for (i = 0; i < 256; i++)
1644if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1645exit (0); }
1646
1647EOF
e1f07228 1648if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a64c9c13
TT
1649then
1650 :
1651else
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1654 rm -fr conftest*
1655 ac_cv_header_stdc=no
1656fi
1657rm -fr conftest*
1658fi
1659
1660fi
1661fi
1662
1663echo "$ac_t""$ac_cv_header_stdc" 1>&6
1664if test $ac_cv_header_stdc = yes; then
1665 cat >> confdefs.h <<\EOF
1666#define STDC_HEADERS 1
1667EOF
1668
1669fi
1670
1671echo $ac_n "checking for working const""... $ac_c" 1>&6
e1f07228 1672echo "configure:1673: checking for working const" >&5
a64c9c13
TT
1673if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1675else
1676 cat > conftest.$ac_ext <<EOF
e1f07228 1677#line 1678 "configure"
a64c9c13
TT
1678#include "confdefs.h"
1679
1680int main() {
1681
1682/* Ultrix mips cc rejects this. */
250f79f0 1683typedef int charset[2]; const charset x;
a64c9c13
TT
1684/* SunOS 4.1.1 cc rejects this. */
1685char const *const *ccp;
1686char **p;
1687/* NEC SVR4.0.2 mips cc rejects this. */
1688struct point {int x, y;};
1689static struct point const zero = {0,0};
1690/* AIX XL C 1.02.0.0 rejects this.
1691 It does not let you subtract one const X* pointer from another in an arm
1692 of an if-expression whose if-part is not a constant expression */
1693const char *g = "string";
1694ccp = &g + (g ? g-g : 0);
1695/* HPUX 7.0 cc rejects these. */
1696++ccp;
1697p = (char**) ccp;
1698ccp = (char const *const *) p;
1699{ /* SCO 3.2v4 cc rejects this. */
1700 char *t;
1701 char const *s = 0 ? (char *) 0 : (char const *) 0;
1702
1703 *t++ = 0;
1704}
1705{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1706 int x[] = {25, 17};
1707 const int *foo = &x[0];
1708 ++foo;
1709}
1710{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1711 typedef const int *iptr;
1712 iptr p = 0;
1713 ++p;
1714}
1715{ /* AIX XL C 1.02.0.0 rejects this saying
1716 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1717 struct s { int j; const int *ap[3]; };
1718 struct s *b; b->j = 5;
1719}
1720{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1721 const int foo = 10;
1722}
1723
1724; return 0; }
1725EOF
e1f07228 1726if { (eval echo configure:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a64c9c13
TT
1727 rm -rf conftest*
1728 ac_cv_c_const=yes
1729else
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1732 rm -rf conftest*
1733 ac_cv_c_const=no
1734fi
1735rm -f conftest*
1736fi
1737
1738echo "$ac_t""$ac_cv_c_const" 1>&6
1739if test $ac_cv_c_const = no; then
1740 cat >> confdefs.h <<\EOF
1741#define const
1742EOF
1743
1744fi
1745
1746echo $ac_n "checking for inline""... $ac_c" 1>&6
e1f07228 1747echo "configure:1748: checking for inline" >&5
a64c9c13
TT
1748if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1750else
1751 ac_cv_c_inline=no
1752for ac_kw in inline __inline__ __inline; do
1753 cat > conftest.$ac_ext <<EOF
e1f07228 1754#line 1755 "configure"
a64c9c13
TT
1755#include "confdefs.h"
1756
1757int main() {
250f79f0 1758} $ac_kw foo() {
a64c9c13
TT
1759; return 0; }
1760EOF
e1f07228 1761if { (eval echo configure:1762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a64c9c13
TT
1762 rm -rf conftest*
1763 ac_cv_c_inline=$ac_kw; break
1764else
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767fi
1768rm -f conftest*
1769done
1770
1771fi
1772
1773echo "$ac_t""$ac_cv_c_inline" 1>&6
1774case "$ac_cv_c_inline" in
1775 inline | yes) ;;
1776 no) cat >> confdefs.h <<\EOF
1777#define inline
1778EOF
1779 ;;
1780 *) cat >> confdefs.h <<EOF
1781#define inline $ac_cv_c_inline
1782EOF
1783 ;;
1784esac
1785
1786echo $ac_n "checking for off_t""... $ac_c" 1>&6
e1f07228 1787echo "configure:1788: checking for off_t" >&5
a64c9c13
TT
1788if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1790else
1791 cat > conftest.$ac_ext <<EOF
e1f07228 1792#line 1793 "configure"
a64c9c13
TT
1793#include "confdefs.h"
1794#include <sys/types.h>
1795#if STDC_HEADERS
1796#include <stdlib.h>
1797#include <stddef.h>
1798#endif
1799EOF
1800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1801 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1802 rm -rf conftest*
1803 ac_cv_type_off_t=yes
1804else
1805 rm -rf conftest*
1806 ac_cv_type_off_t=no
1807fi
1808rm -f conftest*
1809
1810fi
1811echo "$ac_t""$ac_cv_type_off_t" 1>&6
1812if test $ac_cv_type_off_t = no; then
1813 cat >> confdefs.h <<\EOF
1814#define off_t long
1815EOF
1816
1817fi
1818
1819echo $ac_n "checking for size_t""... $ac_c" 1>&6
e1f07228 1820echo "configure:1821: checking for size_t" >&5
a64c9c13
TT
1821if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1823else
1824 cat > conftest.$ac_ext <<EOF
e1f07228 1825#line 1826 "configure"
a64c9c13
TT
1826#include "confdefs.h"
1827#include <sys/types.h>
1828#if STDC_HEADERS
1829#include <stdlib.h>
1830#include <stddef.h>
1831#endif
1832EOF
1833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1834 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1835 rm -rf conftest*
1836 ac_cv_type_size_t=yes
1837else
1838 rm -rf conftest*
1839 ac_cv_type_size_t=no
1840fi
1841rm -f conftest*
1842
1843fi
1844echo "$ac_t""$ac_cv_type_size_t" 1>&6
1845if test $ac_cv_type_size_t = no; then
1846 cat >> confdefs.h <<\EOF
1847#define size_t unsigned
1848EOF
1849
1850fi
1851
1852# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1853# for constant arguments. Useless!
1854echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
e1f07228 1855echo "configure:1856: checking for working alloca.h" >&5
a64c9c13
TT
1856if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1858else
1859 cat > conftest.$ac_ext <<EOF
e1f07228 1860#line 1861 "configure"
a64c9c13
TT
1861#include "confdefs.h"
1862#include <alloca.h>
1863int main() {
250f79f0 1864char *p = alloca(2 * sizeof(int));
a64c9c13
TT
1865; return 0; }
1866EOF
e1f07228 1867if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
1868 rm -rf conftest*
1869 ac_cv_header_alloca_h=yes
1870else
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1873 rm -rf conftest*
1874 ac_cv_header_alloca_h=no
1875fi
1876rm -f conftest*
1877fi
1878
1879echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1880if test $ac_cv_header_alloca_h = yes; then
1881 cat >> confdefs.h <<\EOF
1882#define HAVE_ALLOCA_H 1
1883EOF
1884
1885fi
1886
1887echo $ac_n "checking for alloca""... $ac_c" 1>&6
e1f07228 1888echo "configure:1889: checking for alloca" >&5
a64c9c13
TT
1889if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891else
1892 cat > conftest.$ac_ext <<EOF
e1f07228 1893#line 1894 "configure"
a64c9c13
TT
1894#include "confdefs.h"
1895
1896#ifdef __GNUC__
1897# define alloca __builtin_alloca
1898#else
1899# ifdef _MSC_VER
1900# include <malloc.h>
1901# define alloca _alloca
1902# else
1903# if HAVE_ALLOCA_H
1904# include <alloca.h>
1905# else
1906# ifdef _AIX
1907 #pragma alloca
1908# else
1909# ifndef alloca /* predefined by HP cc +Olibcalls */
1910char *alloca ();
1911# endif
1912# endif
1913# endif
1914# endif
1915#endif
1916
1917int main() {
1918char *p = (char *) alloca(1);
1919; return 0; }
1920EOF
e1f07228 1921if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
1922 rm -rf conftest*
1923 ac_cv_func_alloca_works=yes
1924else
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1927 rm -rf conftest*
1928 ac_cv_func_alloca_works=no
1929fi
1930rm -f conftest*
1931fi
1932
1933echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1934if test $ac_cv_func_alloca_works = yes; then
1935 cat >> confdefs.h <<\EOF
1936#define HAVE_ALLOCA 1
1937EOF
1938
1939fi
1940
1941if test $ac_cv_func_alloca_works = no; then
1942 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1943 # that cause trouble. Some versions do not even contain alloca or
1944 # contain a buggy version. If you still want to use their alloca,
1945 # use ar to extract alloca.o from them instead of compiling alloca.c.
1946 ALLOCA=alloca.${ac_objext}
1947 cat >> confdefs.h <<\EOF
1948#define C_ALLOCA 1
1949EOF
1950
1951
1952echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
e1f07228 1953echo "configure:1954: checking whether alloca needs Cray hooks" >&5
a64c9c13
TT
1954if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1956else
1957 cat > conftest.$ac_ext <<EOF
e1f07228 1958#line 1959 "configure"
a64c9c13
TT
1959#include "confdefs.h"
1960#if defined(CRAY) && ! defined(CRAY2)
1961webecray
1962#else
1963wenotbecray
1964#endif
1965
1966EOF
1967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1968 egrep "webecray" >/dev/null 2>&1; then
1969 rm -rf conftest*
1970 ac_cv_os_cray=yes
1971else
1972 rm -rf conftest*
1973 ac_cv_os_cray=no
1974fi
1975rm -f conftest*
1976
1977fi
1978
1979echo "$ac_t""$ac_cv_os_cray" 1>&6
1980if test $ac_cv_os_cray = yes; then
1981for ac_func in _getb67 GETB67 getb67; do
1982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e1f07228 1983echo "configure:1984: checking for $ac_func" >&5
a64c9c13
TT
1984if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986else
1987 cat > conftest.$ac_ext <<EOF
e1f07228 1988#line 1989 "configure"
a64c9c13
TT
1989#include "confdefs.h"
1990/* System header to define __stub macros and hopefully few prototypes,
1991 which can conflict with char $ac_func(); below. */
1992#include <assert.h>
1993/* Override any gcc2 internal prototype to avoid an error. */
1994/* We use char because int might match the return type of a gcc2
1995 builtin and then its argument prototype would still apply. */
1996char $ac_func();
1997
1998int main() {
1999
2000/* The GNU C library defines this for functions which it implements
2001 to always fail with ENOSYS. Some functions are actually named
2002 something starting with __ and the normal name is an alias. */
2003#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2004choke me
2005#else
2006$ac_func();
2007#endif
2008
2009; return 0; }
2010EOF
e1f07228 2011if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2012 rm -rf conftest*
2013 eval "ac_cv_func_$ac_func=yes"
2014else
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2017 rm -rf conftest*
2018 eval "ac_cv_func_$ac_func=no"
2019fi
2020rm -f conftest*
2021fi
2022
2023if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2024 echo "$ac_t""yes" 1>&6
2025 cat >> confdefs.h <<EOF
2026#define CRAY_STACKSEG_END $ac_func
2027EOF
2028
2029 break
2030else
2031 echo "$ac_t""no" 1>&6
2032fi
2033
2034done
2035fi
2036
2037echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
e1f07228 2038echo "configure:2039: checking stack direction for C alloca" >&5
a64c9c13
TT
2039if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2041else
2042 if test "$cross_compiling" = yes; then
2043 ac_cv_c_stack_direction=0
2044else
2045 cat > conftest.$ac_ext <<EOF
e1f07228 2046#line 2047 "configure"
a64c9c13
TT
2047#include "confdefs.h"
2048find_stack_direction ()
2049{
2050 static char *addr = 0;
2051 auto char dummy;
2052 if (addr == 0)
2053 {
2054 addr = &dummy;
2055 return find_stack_direction ();
2056 }
2057 else
2058 return (&dummy > addr) ? 1 : -1;
2059}
2060main ()
2061{
2062 exit (find_stack_direction() < 0);
2063}
2064EOF
e1f07228 2065if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a64c9c13
TT
2066then
2067 ac_cv_c_stack_direction=1
2068else
2069 echo "configure: failed program was:" >&5
2070 cat conftest.$ac_ext >&5
2071 rm -fr conftest*
2072 ac_cv_c_stack_direction=-1
2073fi
2074rm -fr conftest*
2075fi
2076
2077fi
2078
2079echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2080cat >> confdefs.h <<EOF
2081#define STACK_DIRECTION $ac_cv_c_stack_direction
2082EOF
2083
2084fi
2085
2086for ac_hdr in unistd.h
2087do
2088ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2089echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e1f07228 2090echo "configure:2091: checking for $ac_hdr" >&5
a64c9c13
TT
2091if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093else
2094 cat > conftest.$ac_ext <<EOF
e1f07228 2095#line 2096 "configure"
a64c9c13
TT
2096#include "confdefs.h"
2097#include <$ac_hdr>
2098EOF
2099ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e1f07228 2100{ (eval echo configure:2101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a64c9c13
TT
2101ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2102if test -z "$ac_err"; then
2103 rm -rf conftest*
2104 eval "ac_cv_header_$ac_safe=yes"
2105else
2106 echo "$ac_err" >&5
2107 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 rm -rf conftest*
2110 eval "ac_cv_header_$ac_safe=no"
2111fi
2112rm -f conftest*
2113fi
2114if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2117 cat >> confdefs.h <<EOF
2118#define $ac_tr_hdr 1
2119EOF
2120
2121else
2122 echo "$ac_t""no" 1>&6
2123fi
2124done
2125
2126for ac_func in getpagesize
2127do
2128echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e1f07228 2129echo "configure:2130: checking for $ac_func" >&5
a64c9c13
TT
2130if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132else
2133 cat > conftest.$ac_ext <<EOF
e1f07228 2134#line 2135 "configure"
a64c9c13
TT
2135#include "confdefs.h"
2136/* System header to define __stub macros and hopefully few prototypes,
2137 which can conflict with char $ac_func(); below. */
2138#include <assert.h>
2139/* Override any gcc2 internal prototype to avoid an error. */
2140/* We use char because int might match the return type of a gcc2
2141 builtin and then its argument prototype would still apply. */
2142char $ac_func();
2143
2144int main() {
2145
2146/* The GNU C library defines this for functions which it implements
2147 to always fail with ENOSYS. Some functions are actually named
2148 something starting with __ and the normal name is an alias. */
2149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2150choke me
2151#else
2152$ac_func();
2153#endif
2154
2155; return 0; }
2156EOF
e1f07228 2157if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2158 rm -rf conftest*
2159 eval "ac_cv_func_$ac_func=yes"
2160else
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2163 rm -rf conftest*
2164 eval "ac_cv_func_$ac_func=no"
2165fi
2166rm -f conftest*
2167fi
2168
2169if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2172 cat >> confdefs.h <<EOF
2173#define $ac_tr_func 1
2174EOF
2175
2176else
2177 echo "$ac_t""no" 1>&6
2178fi
2179done
2180
2181echo $ac_n "checking for working mmap""... $ac_c" 1>&6
e1f07228 2182echo "configure:2183: checking for working mmap" >&5
a64c9c13
TT
2183if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2185else
2186 if test "$cross_compiling" = yes; then
2187 ac_cv_func_mmap_fixed_mapped=no
2188else
2189 cat > conftest.$ac_ext <<EOF
e1f07228 2190#line 2191 "configure"
a64c9c13
TT
2191#include "confdefs.h"
2192
2193/* Thanks to Mike Haertel and Jim Avera for this test.
2194 Here is a matrix of mmap possibilities:
2195 mmap private not fixed
2196 mmap private fixed at somewhere currently unmapped
2197 mmap private fixed at somewhere already mapped
2198 mmap shared not fixed
2199 mmap shared fixed at somewhere currently unmapped
2200 mmap shared fixed at somewhere already mapped
2201 For private mappings, we should verify that changes cannot be read()
2202 back from the file, nor mmap's back from the file at a different
2203 address. (There have been systems where private was not correctly
2204 implemented like the infamous i386 svr4.0, and systems where the
2205 VM page cache was not coherent with the filesystem buffer cache
2206 like early versions of FreeBSD and possibly contemporary NetBSD.)
2207 For shared mappings, we should conversely verify that changes get
2208 propogated back to all the places they're supposed to be.
2209
2210 Grep wants private fixed already mapped.
2211 The main things grep needs to know about mmap are:
2212 * does it exist and is it safe to write into the mmap'd area
2213 * how to use it (BSD variants) */
2214#include <sys/types.h>
2215#include <fcntl.h>
2216#include <sys/mman.h>
2217
2218/* This mess was copied from the GNU getpagesize.h. */
2219#ifndef HAVE_GETPAGESIZE
250f79f0
TT
2220# ifdef HAVE_UNISTD_H
2221# include <unistd.h>
2222# endif
a64c9c13
TT
2223
2224/* Assume that all systems that can run configure have sys/param.h. */
2225# ifndef HAVE_SYS_PARAM_H
2226# define HAVE_SYS_PARAM_H 1
2227# endif
2228
2229# ifdef _SC_PAGESIZE
2230# define getpagesize() sysconf(_SC_PAGESIZE)
2231# else /* no _SC_PAGESIZE */
2232# ifdef HAVE_SYS_PARAM_H
2233# include <sys/param.h>
2234# ifdef EXEC_PAGESIZE
2235# define getpagesize() EXEC_PAGESIZE
2236# else /* no EXEC_PAGESIZE */
2237# ifdef NBPG
2238# define getpagesize() NBPG * CLSIZE
2239# ifndef CLSIZE
2240# define CLSIZE 1
2241# endif /* no CLSIZE */
2242# else /* no NBPG */
2243# ifdef NBPC
2244# define getpagesize() NBPC
2245# else /* no NBPC */
2246# ifdef PAGESIZE
2247# define getpagesize() PAGESIZE
2248# endif /* PAGESIZE */
2249# endif /* no NBPC */
2250# endif /* no NBPG */
2251# endif /* no EXEC_PAGESIZE */
2252# else /* no HAVE_SYS_PARAM_H */
2253# define getpagesize() 8192 /* punt totally */
2254# endif /* no HAVE_SYS_PARAM_H */
2255# endif /* no _SC_PAGESIZE */
2256
2257#endif /* no HAVE_GETPAGESIZE */
2258
2259#ifdef __cplusplus
2260extern "C" { void *malloc(unsigned); }
2261#else
2262char *malloc();
2263#endif
2264
2265int
2266main()
2267{
2268 char *data, *data2, *data3;
2269 int i, pagesize;
2270 int fd;
2271
2272 pagesize = getpagesize();
2273
2274 /*
2275 * First, make a file with some known garbage in it.
2276 */
250f79f0 2277 data = malloc(pagesize);
a64c9c13
TT
2278 if (!data)
2279 exit(1);
2280 for (i = 0; i < pagesize; ++i)
2281 *(data + i) = rand();
2282 umask(0);
2283 fd = creat("conftestmmap", 0600);
2284 if (fd < 0)
2285 exit(1);
2286 if (write(fd, data, pagesize) != pagesize)
2287 exit(1);
2288 close(fd);
2289
2290 /*
2291 * Next, try to mmap the file at a fixed address which
2292 * already has something else allocated at it. If we can,
2293 * also make sure that we see the same garbage.
2294 */
2295 fd = open("conftestmmap", O_RDWR);
2296 if (fd < 0)
2297 exit(1);
250f79f0 2298 data2 = malloc(2 * pagesize);
a64c9c13
TT
2299 if (!data2)
2300 exit(1);
2301 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2302 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2303 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2304 exit(1);
2305 for (i = 0; i < pagesize; ++i)
2306 if (*(data + i) != *(data2 + i))
2307 exit(1);
2308
2309 /*
2310 * Finally, make sure that changes to the mapped area
2311 * do not percolate back to the file as seen by read().
2312 * (This is a bug on some variants of i386 svr4.0.)
2313 */
2314 for (i = 0; i < pagesize; ++i)
2315 *(data2 + i) = *(data2 + i) + 1;
250f79f0 2316 data3 = malloc(pagesize);
a64c9c13
TT
2317 if (!data3)
2318 exit(1);
2319 if (read(fd, data3, pagesize) != pagesize)
2320 exit(1);
2321 for (i = 0; i < pagesize; ++i)
2322 if (*(data + i) != *(data3 + i))
2323 exit(1);
2324 close(fd);
2325 unlink("conftestmmap");
2326 exit(0);
2327}
2328
2329EOF
e1f07228 2330if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a64c9c13
TT
2331then
2332 ac_cv_func_mmap_fixed_mapped=yes
2333else
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2336 rm -fr conftest*
2337 ac_cv_func_mmap_fixed_mapped=no
2338fi
2339rm -fr conftest*
2340fi
2341
2342fi
2343
2344echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2345if test $ac_cv_func_mmap_fixed_mapped = yes; then
2346 cat >> confdefs.h <<\EOF
2347#define HAVE_MMAP 1
2348EOF
2349
2350fi
2351
2352
2353 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2354unistd.h sys/param.h
2355do
2356ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2357echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e1f07228 2358echo "configure:2359: checking for $ac_hdr" >&5
a64c9c13
TT
2359if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2361else
2362 cat > conftest.$ac_ext <<EOF
e1f07228 2363#line 2364 "configure"
a64c9c13
TT
2364#include "confdefs.h"
2365#include <$ac_hdr>
2366EOF
2367ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e1f07228 2368{ (eval echo configure:2369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a64c9c13
TT
2369ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2370if test -z "$ac_err"; then
2371 rm -rf conftest*
2372 eval "ac_cv_header_$ac_safe=yes"
2373else
2374 echo "$ac_err" >&5
2375 echo "configure: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2377 rm -rf conftest*
2378 eval "ac_cv_header_$ac_safe=no"
2379fi
2380rm -f conftest*
2381fi
2382if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2385 cat >> confdefs.h <<EOF
2386#define $ac_tr_hdr 1
2387EOF
2388
2389else
2390 echo "$ac_t""no" 1>&6
2391fi
2392done
2393
2394 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2395strdup __argz_count __argz_stringify __argz_next
2396do
2397echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e1f07228 2398echo "configure:2399: checking for $ac_func" >&5
a64c9c13
TT
2399if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2401else
2402 cat > conftest.$ac_ext <<EOF
e1f07228 2403#line 2404 "configure"
a64c9c13
TT
2404#include "confdefs.h"
2405/* System header to define __stub macros and hopefully few prototypes,
2406 which can conflict with char $ac_func(); below. */
2407#include <assert.h>
2408/* Override any gcc2 internal prototype to avoid an error. */
2409/* We use char because int might match the return type of a gcc2
2410 builtin and then its argument prototype would still apply. */
2411char $ac_func();
2412
2413int main() {
2414
2415/* The GNU C library defines this for functions which it implements
2416 to always fail with ENOSYS. Some functions are actually named
2417 something starting with __ and the normal name is an alias. */
2418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2419choke me
2420#else
2421$ac_func();
2422#endif
2423
2424; return 0; }
2425EOF
e1f07228 2426if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2427 rm -rf conftest*
2428 eval "ac_cv_func_$ac_func=yes"
2429else
2430 echo "configure: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2432 rm -rf conftest*
2433 eval "ac_cv_func_$ac_func=no"
2434fi
2435rm -f conftest*
2436fi
2437
2438if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2439 echo "$ac_t""yes" 1>&6
2440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2441 cat >> confdefs.h <<EOF
2442#define $ac_tr_func 1
2443EOF
2444
2445else
2446 echo "$ac_t""no" 1>&6
2447fi
2448done
2449
2450
2451 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2452 for ac_func in stpcpy
2453do
2454echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e1f07228 2455echo "configure:2456: checking for $ac_func" >&5
a64c9c13
TT
2456if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2458else
2459 cat > conftest.$ac_ext <<EOF
e1f07228 2460#line 2461 "configure"
a64c9c13
TT
2461#include "confdefs.h"
2462/* System header to define __stub macros and hopefully few prototypes,
2463 which can conflict with char $ac_func(); below. */
2464#include <assert.h>
2465/* Override any gcc2 internal prototype to avoid an error. */
2466/* We use char because int might match the return type of a gcc2
2467 builtin and then its argument prototype would still apply. */
2468char $ac_func();
2469
2470int main() {
2471
2472/* The GNU C library defines this for functions which it implements
2473 to always fail with ENOSYS. Some functions are actually named
2474 something starting with __ and the normal name is an alias. */
2475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2476choke me
2477#else
2478$ac_func();
2479#endif
2480
2481; return 0; }
2482EOF
e1f07228 2483if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2484 rm -rf conftest*
2485 eval "ac_cv_func_$ac_func=yes"
2486else
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2489 rm -rf conftest*
2490 eval "ac_cv_func_$ac_func=no"
2491fi
2492rm -f conftest*
2493fi
2494
2495if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2498 cat >> confdefs.h <<EOF
2499#define $ac_tr_func 1
2500EOF
2501
2502else
2503 echo "$ac_t""no" 1>&6
2504fi
2505done
2506
2507 fi
2508 if test "${ac_cv_func_stpcpy}" = "yes"; then
2509 cat >> confdefs.h <<\EOF
2510#define HAVE_STPCPY 1
2511EOF
2512
2513 fi
2514
2515 if test $ac_cv_header_locale_h = yes; then
2516 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
e1f07228 2517echo "configure:2518: checking for LC_MESSAGES" >&5
a64c9c13
TT
2518if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2520else
2521 cat > conftest.$ac_ext <<EOF
e1f07228 2522#line 2523 "configure"
a64c9c13
TT
2523#include "confdefs.h"
2524#include <locale.h>
2525int main() {
2526return LC_MESSAGES
2527; return 0; }
2528EOF
e1f07228 2529if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2530 rm -rf conftest*
2531 am_cv_val_LC_MESSAGES=yes
2532else
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2535 rm -rf conftest*
2536 am_cv_val_LC_MESSAGES=no
2537fi
2538rm -f conftest*
2539fi
2540
2541echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2542 if test $am_cv_val_LC_MESSAGES = yes; then
2543 cat >> confdefs.h <<\EOF
2544#define HAVE_LC_MESSAGES 1
2545EOF
2546
2547 fi
2548 fi
2549 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
e1f07228 2550echo "configure:2551: checking whether NLS is requested" >&5
a64c9c13
TT
2551 # Check whether --enable-nls or --disable-nls was given.
2552if test "${enable_nls+set}" = set; then
2553 enableval="$enable_nls"
2554 USE_NLS=$enableval
2555else
2556 USE_NLS=no
2557fi
2558
2559 echo "$ac_t""$USE_NLS" 1>&6
2560
2561
2562 USE_INCLUDED_LIBINTL=no
2563
2564 if test "$USE_NLS" = "yes"; then
2565 cat >> confdefs.h <<\EOF
2566#define ENABLE_NLS 1
2567EOF
2568
2569 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
e1f07228 2570echo "configure:2571: checking whether included gettext is requested" >&5
a64c9c13
TT
2571 # Check whether --with-included-gettext or --without-included-gettext was given.
2572if test "${with_included_gettext+set}" = set; then
2573 withval="$with_included_gettext"
2574 nls_cv_force_use_gnu_gettext=$withval
2575else
2576 nls_cv_force_use_gnu_gettext=no
2577fi
2578
2579 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2580
2581 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2582 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2583 nls_cv_header_intl=
2584 nls_cv_header_libgt=
2585 CATOBJEXT=NONE
2586
2587 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2588echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
e1f07228 2589echo "configure:2590: checking for libintl.h" >&5
a64c9c13
TT
2590if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2592else
2593 cat > conftest.$ac_ext <<EOF
e1f07228 2594#line 2595 "configure"
a64c9c13
TT
2595#include "confdefs.h"
2596#include <libintl.h>
2597EOF
2598ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e1f07228 2599{ (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a64c9c13
TT
2600ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2601if test -z "$ac_err"; then
2602 rm -rf conftest*
2603 eval "ac_cv_header_$ac_safe=yes"
2604else
2605 echo "$ac_err" >&5
2606 echo "configure: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2608 rm -rf conftest*
2609 eval "ac_cv_header_$ac_safe=no"
2610fi
2611rm -f conftest*
2612fi
2613if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
e1f07228 2616echo "configure:2617: checking for gettext in libc" >&5
a64c9c13
TT
2617if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2619else
2620 cat > conftest.$ac_ext <<EOF
e1f07228 2621#line 2622 "configure"
a64c9c13
TT
2622#include "confdefs.h"
2623#include <libintl.h>
2624int main() {
2625return (int) gettext ("")
2626; return 0; }
2627EOF
e1f07228 2628if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2629 rm -rf conftest*
2630 gt_cv_func_gettext_libc=yes
2631else
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 rm -rf conftest*
2635 gt_cv_func_gettext_libc=no
2636fi
2637rm -f conftest*
2638fi
2639
2640echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2641
2642 if test "$gt_cv_func_gettext_libc" != "yes"; then
2643 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
e1f07228 2644echo "configure:2645: checking for bindtextdomain in -lintl" >&5
a64c9c13
TT
2645ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2646if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648else
2649 ac_save_LIBS="$LIBS"
2650LIBS="-lintl $LIBS"
2651cat > conftest.$ac_ext <<EOF
e1f07228 2652#line 2653 "configure"
a64c9c13
TT
2653#include "confdefs.h"
2654/* Override any gcc2 internal prototype to avoid an error. */
2655/* We use char because int might match the return type of a gcc2
2656 builtin and then its argument prototype would still apply. */
2657char bindtextdomain();
2658
2659int main() {
2660bindtextdomain()
2661; return 0; }
2662EOF
e1f07228 2663if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2664 rm -rf conftest*
2665 eval "ac_cv_lib_$ac_lib_var=yes"
2666else
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2669 rm -rf conftest*
2670 eval "ac_cv_lib_$ac_lib_var=no"
2671fi
2672rm -f conftest*
2673LIBS="$ac_save_LIBS"
2674
2675fi
2676if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2677 echo "$ac_t""yes" 1>&6
2678 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
e1f07228 2679echo "configure:2680: checking for gettext in libintl" >&5
a64c9c13
TT
2680if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2682else
2683 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
e1f07228 2684echo "configure:2685: checking for gettext in -lintl" >&5
a64c9c13
TT
2685ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2686if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2688else
2689 ac_save_LIBS="$LIBS"
2690LIBS="-lintl $LIBS"
2691cat > conftest.$ac_ext <<EOF
e1f07228 2692#line 2693 "configure"
a64c9c13
TT
2693#include "confdefs.h"
2694/* Override any gcc2 internal prototype to avoid an error. */
2695/* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2697char gettext();
2698
2699int main() {
2700gettext()
2701; return 0; }
2702EOF
e1f07228 2703if { (eval echo configure:2704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2704 rm -rf conftest*
2705 eval "ac_cv_lib_$ac_lib_var=yes"
2706else
2707 echo "configure: failed program was:" >&5
2708 cat conftest.$ac_ext >&5
2709 rm -rf conftest*
2710 eval "ac_cv_lib_$ac_lib_var=no"
2711fi
2712rm -f conftest*
2713LIBS="$ac_save_LIBS"
2714
2715fi
2716if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2717 echo "$ac_t""yes" 1>&6
2718 gt_cv_func_gettext_libintl=yes
2719else
2720 echo "$ac_t""no" 1>&6
2721gt_cv_func_gettext_libintl=no
2722fi
2723
2724fi
2725
2726echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2727else
2728 echo "$ac_t""no" 1>&6
2729fi
2730
2731 fi
2732
2733 if test "$gt_cv_func_gettext_libc" = "yes" \
2734 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2735 cat >> confdefs.h <<\EOF
2736#define HAVE_GETTEXT 1
2737EOF
2738
2739 # Extract the first word of "msgfmt", so it can be a program name with args.
2740set dummy msgfmt; ac_word=$2
2741echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 2742echo "configure:2743: checking for $ac_word" >&5
a64c9c13
TT
2743if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2745else
2746 case "$MSGFMT" in
2747 /*)
2748 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2749 ;;
2750 *)
2751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2752 for ac_dir in $PATH; do
2753 test -z "$ac_dir" && ac_dir=.
2754 if test -f $ac_dir/$ac_word; then
2755 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2756 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2757 break
2758 fi
2759 fi
2760 done
2761 IFS="$ac_save_ifs"
2762 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2763 ;;
2764esac
2765fi
2766MSGFMT="$ac_cv_path_MSGFMT"
2767if test -n "$MSGFMT"; then
2768 echo "$ac_t""$MSGFMT" 1>&6
2769else
2770 echo "$ac_t""no" 1>&6
2771fi
2772 if test "$MSGFMT" != "no"; then
2773 for ac_func in dcgettext
2774do
2775echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e1f07228 2776echo "configure:2777: checking for $ac_func" >&5
a64c9c13
TT
2777if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2779else
2780 cat > conftest.$ac_ext <<EOF
e1f07228 2781#line 2782 "configure"
a64c9c13
TT
2782#include "confdefs.h"
2783/* System header to define __stub macros and hopefully few prototypes,
2784 which can conflict with char $ac_func(); below. */
2785#include <assert.h>
2786/* Override any gcc2 internal prototype to avoid an error. */
2787/* We use char because int might match the return type of a gcc2
2788 builtin and then its argument prototype would still apply. */
2789char $ac_func();
2790
2791int main() {
2792
2793/* The GNU C library defines this for functions which it implements
2794 to always fail with ENOSYS. Some functions are actually named
2795 something starting with __ and the normal name is an alias. */
2796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2797choke me
2798#else
2799$ac_func();
2800#endif
2801
2802; return 0; }
2803EOF
e1f07228 2804if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2805 rm -rf conftest*
2806 eval "ac_cv_func_$ac_func=yes"
2807else
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2810 rm -rf conftest*
2811 eval "ac_cv_func_$ac_func=no"
2812fi
2813rm -f conftest*
2814fi
2815
2816if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2819 cat >> confdefs.h <<EOF
2820#define $ac_tr_func 1
2821EOF
2822
2823else
2824 echo "$ac_t""no" 1>&6
2825fi
2826done
2827
2828 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2829set dummy gmsgfmt; ac_word=$2
2830echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 2831echo "configure:2832: checking for $ac_word" >&5
a64c9c13
TT
2832if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2834else
2835 case "$GMSGFMT" in
2836 /*)
2837 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2838 ;;
2839 ?:/*)
2840 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2841 ;;
2842 *)
2843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2844 ac_dummy="$PATH"
2845 for ac_dir in $ac_dummy; do
2846 test -z "$ac_dir" && ac_dir=.
2847 if test -f $ac_dir/$ac_word; then
2848 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2849 break
2850 fi
2851 done
2852 IFS="$ac_save_ifs"
2853 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2854 ;;
2855esac
2856fi
2857GMSGFMT="$ac_cv_path_GMSGFMT"
2858if test -n "$GMSGFMT"; then
2859 echo "$ac_t""$GMSGFMT" 1>&6
2860else
2861 echo "$ac_t""no" 1>&6
2862fi
2863
2864 # Extract the first word of "xgettext", so it can be a program name with args.
2865set dummy xgettext; ac_word=$2
2866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 2867echo "configure:2868: checking for $ac_word" >&5
a64c9c13
TT
2868if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870else
2871 case "$XGETTEXT" in
2872 /*)
2873 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2874 ;;
2875 *)
2876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2877 for ac_dir in $PATH; do
2878 test -z "$ac_dir" && ac_dir=.
2879 if test -f $ac_dir/$ac_word; then
2880 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2881 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2882 break
2883 fi
2884 fi
2885 done
2886 IFS="$ac_save_ifs"
2887 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2888 ;;
2889esac
2890fi
2891XGETTEXT="$ac_cv_path_XGETTEXT"
2892if test -n "$XGETTEXT"; then
2893 echo "$ac_t""$XGETTEXT" 1>&6
2894else
2895 echo "$ac_t""no" 1>&6
2896fi
2897
2898 cat > conftest.$ac_ext <<EOF
e1f07228 2899#line 2900 "configure"
a64c9c13
TT
2900#include "confdefs.h"
2901
2902int main() {
2903extern int _nl_msg_cat_cntr;
2904 return _nl_msg_cat_cntr
2905; return 0; }
2906EOF
e1f07228 2907if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2908 rm -rf conftest*
2909 CATOBJEXT=.gmo
2910 DATADIRNAME=share
2911else
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2914 rm -rf conftest*
2915 CATOBJEXT=.mo
2916 DATADIRNAME=lib
2917fi
2918rm -f conftest*
2919 INSTOBJEXT=.mo
2920 fi
2921 fi
2922
2923else
2924 echo "$ac_t""no" 1>&6
2925fi
2926
2927
2928 if test "$CATOBJEXT" = "NONE"; then
2929 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
e1f07228 2930echo "configure:2931: checking whether catgets can be used" >&5
a64c9c13
TT
2931 # Check whether --with-catgets or --without-catgets was given.
2932if test "${with_catgets+set}" = set; then
2933 withval="$with_catgets"
2934 nls_cv_use_catgets=$withval
2935else
2936 nls_cv_use_catgets=no
2937fi
2938
2939 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2940
2941 if test "$nls_cv_use_catgets" = "yes"; then
2942 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
e1f07228 2943echo "configure:2944: checking for main in -li" >&5
a64c9c13
TT
2944ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2945if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2947else
2948 ac_save_LIBS="$LIBS"
2949LIBS="-li $LIBS"
2950cat > conftest.$ac_ext <<EOF
e1f07228 2951#line 2952 "configure"
a64c9c13
TT
2952#include "confdefs.h"
2953
2954int main() {
2955main()
2956; return 0; }
2957EOF
e1f07228 2958if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
2959 rm -rf conftest*
2960 eval "ac_cv_lib_$ac_lib_var=yes"
2961else
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2964 rm -rf conftest*
2965 eval "ac_cv_lib_$ac_lib_var=no"
2966fi
2967rm -f conftest*
2968LIBS="$ac_save_LIBS"
2969
2970fi
2971if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2972 echo "$ac_t""yes" 1>&6
2973 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2974 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2975 cat >> confdefs.h <<EOF
2976#define $ac_tr_lib 1
2977EOF
2978
2979 LIBS="-li $LIBS"
2980
2981else
2982 echo "$ac_t""no" 1>&6
2983fi
2984
2985 echo $ac_n "checking for catgets""... $ac_c" 1>&6
e1f07228 2986echo "configure:2987: checking for catgets" >&5
a64c9c13
TT
2987if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2989else
2990 cat > conftest.$ac_ext <<EOF
e1f07228 2991#line 2992 "configure"
a64c9c13
TT
2992#include "confdefs.h"
2993/* System header to define __stub macros and hopefully few prototypes,
2994 which can conflict with char catgets(); below. */
2995#include <assert.h>
2996/* Override any gcc2 internal prototype to avoid an error. */
2997/* We use char because int might match the return type of a gcc2
2998 builtin and then its argument prototype would still apply. */
2999char catgets();
3000
3001int main() {
3002
3003/* The GNU C library defines this for functions which it implements
3004 to always fail with ENOSYS. Some functions are actually named
3005 something starting with __ and the normal name is an alias. */
3006#if defined (__stub_catgets) || defined (__stub___catgets)
3007choke me
3008#else
3009catgets();
3010#endif
3011
3012; return 0; }
3013EOF
e1f07228 3014if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a64c9c13
TT
3015 rm -rf conftest*
3016 eval "ac_cv_func_catgets=yes"
3017else
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3020 rm -rf conftest*
3021 eval "ac_cv_func_catgets=no"
3022fi
3023rm -f conftest*
3024fi
3025
3026if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3027 echo "$ac_t""yes" 1>&6
3028 cat >> confdefs.h <<\EOF
3029#define HAVE_CATGETS 1
3030EOF
3031
3032 INTLOBJS="\$(CATOBJS)"
3033 # Extract the first word of "gencat", so it can be a program name with args.
3034set dummy gencat; ac_word=$2
3035echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3036echo "configure:3037: checking for $ac_word" >&5
a64c9c13
TT
3037if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3039else
3040 case "$GENCAT" in
3041 /*)
3042 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3043 ;;
3044 ?:/*)
3045 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3046 ;;
3047 *)
3048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3049 ac_dummy="$PATH"
3050 for ac_dir in $ac_dummy; do
3051 test -z "$ac_dir" && ac_dir=.
3052 if test -f $ac_dir/$ac_word; then
3053 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3054 break
3055 fi
3056 done
3057 IFS="$ac_save_ifs"
3058 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3059 ;;
3060esac
3061fi
3062GENCAT="$ac_cv_path_GENCAT"
3063if test -n "$GENCAT"; then
3064 echo "$ac_t""$GENCAT" 1>&6
3065else
3066 echo "$ac_t""no" 1>&6
3067fi
3068 if test "$GENCAT" != "no"; then
3069 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3070set dummy gmsgfmt; ac_word=$2
3071echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3072echo "configure:3073: checking for $ac_word" >&5
a64c9c13
TT
3073if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3075else
3076 case "$GMSGFMT" in
3077 /*)
3078 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3079 ;;
3080 ?:/*)
3081 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3082 ;;
3083 *)
3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3085 ac_dummy="$PATH"
3086 for ac_dir in $ac_dummy; do
3087 test -z "$ac_dir" && ac_dir=.
3088 if test -f $ac_dir/$ac_word; then
3089 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3090 break
3091 fi
3092 done
3093 IFS="$ac_save_ifs"
3094 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3095 ;;
3096esac
3097fi
3098GMSGFMT="$ac_cv_path_GMSGFMT"
3099if test -n "$GMSGFMT"; then
3100 echo "$ac_t""$GMSGFMT" 1>&6
3101else
3102 echo "$ac_t""no" 1>&6
3103fi
3104
3105 if test "$GMSGFMT" = "no"; then
3106 # Extract the first word of "msgfmt", so it can be a program name with args.
3107set dummy msgfmt; ac_word=$2
3108echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3109echo "configure:3110: checking for $ac_word" >&5
a64c9c13
TT
3110if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3112else
3113 case "$GMSGFMT" in
3114 /*)
3115 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3116 ;;
3117 *)
3118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3119 for ac_dir in $PATH; do
3120 test -z "$ac_dir" && ac_dir=.
3121 if test -f $ac_dir/$ac_word; then
3122 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3123 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3124 break
3125 fi
3126 fi
3127 done
3128 IFS="$ac_save_ifs"
3129 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3130 ;;
3131esac
3132fi
3133GMSGFMT="$ac_cv_path_GMSGFMT"
3134if test -n "$GMSGFMT"; then
3135 echo "$ac_t""$GMSGFMT" 1>&6
3136else
3137 echo "$ac_t""no" 1>&6
3138fi
3139
3140 fi
3141 # Extract the first word of "xgettext", so it can be a program name with args.
3142set dummy xgettext; ac_word=$2
3143echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3144echo "configure:3145: checking for $ac_word" >&5
a64c9c13
TT
3145if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3147else
3148 case "$XGETTEXT" in
3149 /*)
3150 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3151 ;;
3152 *)
3153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3154 for ac_dir in $PATH; do
3155 test -z "$ac_dir" && ac_dir=.
3156 if test -f $ac_dir/$ac_word; then
3157 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3158 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3159 break
3160 fi
3161 fi
3162 done
3163 IFS="$ac_save_ifs"
3164 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3165 ;;
3166esac
3167fi
3168XGETTEXT="$ac_cv_path_XGETTEXT"
3169if test -n "$XGETTEXT"; then
3170 echo "$ac_t""$XGETTEXT" 1>&6
3171else
3172 echo "$ac_t""no" 1>&6
3173fi
3174
3175 USE_INCLUDED_LIBINTL=yes
3176 CATOBJEXT=.cat
3177 INSTOBJEXT=.cat
3178 DATADIRNAME=lib
3179 INTLDEPS='$(top_builddir)/intl/libintl.a'
3180 INTLLIBS=$INTLDEPS
3181 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3182 nls_cv_header_intl=intl/libintl.h
3183 nls_cv_header_libgt=intl/libgettext.h
3184 fi
3185else
3186 echo "$ac_t""no" 1>&6
3187fi
3188
3189 fi
3190 fi
3191
3192 if test "$CATOBJEXT" = "NONE"; then
3193 nls_cv_use_gnu_gettext=yes
3194 fi
3195 fi
3196
3197 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3198 INTLOBJS="\$(GETTOBJS)"
3199 # Extract the first word of "msgfmt", so it can be a program name with args.
3200set dummy msgfmt; ac_word=$2
3201echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3202echo "configure:3203: checking for $ac_word" >&5
a64c9c13
TT
3203if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3205else
3206 case "$MSGFMT" in
3207 /*)
3208 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3209 ;;
3210 *)
3211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3212 for ac_dir in $PATH; do
3213 test -z "$ac_dir" && ac_dir=.
3214 if test -f $ac_dir/$ac_word; then
3215 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3216 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3217 break
3218 fi
3219 fi
3220 done
3221 IFS="$ac_save_ifs"
3222 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3223 ;;
3224esac
3225fi
3226MSGFMT="$ac_cv_path_MSGFMT"
3227if test -n "$MSGFMT"; then
3228 echo "$ac_t""$MSGFMT" 1>&6
74becf3c 3229else
a64c9c13 3230 echo "$ac_t""no" 1>&6
74becf3c
TT
3231fi
3232
a64c9c13
TT
3233 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3234set dummy gmsgfmt; ac_word=$2
3235echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3236echo "configure:3237: checking for $ac_word" >&5
a64c9c13 3237if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
f8bd9807
TT
3238 echo $ac_n "(cached) $ac_c" 1>&6
3239else
a64c9c13
TT
3240 case "$GMSGFMT" in
3241 /*)
3242 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3243 ;;
3244 ?:/*)
3245 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3246 ;;
3247 *)
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3249 ac_dummy="$PATH"
3250 for ac_dir in $ac_dummy; do
3251 test -z "$ac_dir" && ac_dir=.
3252 if test -f $ac_dir/$ac_word; then
3253 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3254 break
3255 fi
3256 done
3257 IFS="$ac_save_ifs"
3258 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3259 ;;
3260esac
f8bd9807 3261fi
a64c9c13
TT
3262GMSGFMT="$ac_cv_path_GMSGFMT"
3263if test -n "$GMSGFMT"; then
3264 echo "$ac_t""$GMSGFMT" 1>&6
3265else
3266 echo "$ac_t""no" 1>&6
f8bd9807 3267fi
a64c9c13
TT
3268
3269 # Extract the first word of "xgettext", so it can be a program name with args.
3270set dummy xgettext; ac_word=$2
3271echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3272echo "configure:3273: checking for $ac_word" >&5
a64c9c13
TT
3273if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3275else
3276 case "$XGETTEXT" in
3277 /*)
3278 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3279 ;;
3280 *)
3281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3282 for ac_dir in $PATH; do
3283 test -z "$ac_dir" && ac_dir=.
3284 if test -f $ac_dir/$ac_word; then
3285 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3286 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3287 break
3288 fi
3289 fi
3290 done
3291 IFS="$ac_save_ifs"
3292 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3293 ;;
3294esac
f8bd9807 3295fi
a64c9c13
TT
3296XGETTEXT="$ac_cv_path_XGETTEXT"
3297if test -n "$XGETTEXT"; then
3298 echo "$ac_t""$XGETTEXT" 1>&6
f8bd9807 3299else
a64c9c13 3300 echo "$ac_t""no" 1>&6
f8bd9807 3301fi
f8bd9807 3302
a64c9c13
TT
3303
3304 USE_INCLUDED_LIBINTL=yes
3305 CATOBJEXT=.gmo
3306 INSTOBJEXT=.mo
3307 DATADIRNAME=share
3308 INTLDEPS='$(top_builddir)/intl/libintl.a'
3309 INTLLIBS=$INTLDEPS
3310 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3311 nls_cv_header_intl=intl/libintl.h
3312 nls_cv_header_libgt=intl/libgettext.h
3313 fi
3314
3315 if test "$XGETTEXT" != ":"; then
3316 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3317 : ;
3318 else
3319 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3320 XGETTEXT=":"
3321 fi
3322 fi
3323
3324 # We need to process the po/ directory.
3325 POSUB=po
3326 else
3327 DATADIRNAME=share
3328 nls_cv_header_intl=intl/libintl.h
3329 nls_cv_header_libgt=intl/libgettext.h
3330 fi
3331
3332
3333
3334
3335 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3336 # because some of the sources are only built for this goal.
3337 if test "$PACKAGE" = gettext; then
3338 USE_NLS=yes
3339 USE_INCLUDED_LIBINTL=yes
3340 fi
3341
3342 for lang in $ALL_LINGUAS; do
3343 GMOFILES="$GMOFILES $lang.gmo"
3344 POFILES="$POFILES $lang.po"
3345 done
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360 if test "x$CATOBJEXT" != "x"; then
3361 if test "x$ALL_LINGUAS" = "x"; then
3362 LINGUAS=
3363 else
3364 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
e1f07228 3365echo "configure:3366: checking for catalogs to be installed" >&5
a64c9c13
TT
3366 NEW_LINGUAS=
3367 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3368 case "$ALL_LINGUAS" in
3369 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3370 esac
3371 done
3372 LINGUAS=$NEW_LINGUAS
3373 echo "$ac_t""$LINGUAS" 1>&6
3374 fi
3375
3376 if test -n "$LINGUAS"; then
3377 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3378 fi
3379 fi
3380
3381 if test $ac_cv_header_locale_h = yes; then
3382 INCLUDE_LOCALE_H="#include <locale.h>"
3383 else
3384 INCLUDE_LOCALE_H="\
3385/* The system does not provide the header <locale.h>. Take care yourself. */"
3386 fi
3387
3388
3389 test -d intl || mkdir intl
3390 if test "$CATOBJEXT" = ".cat"; then
3391 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3392echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
e1f07228 3393echo "configure:3394: checking for linux/version.h" >&5
f8bd9807
TT
3394if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3396else
3397 cat > conftest.$ac_ext <<EOF
e1f07228 3398#line 3399 "configure"
f8bd9807 3399#include "confdefs.h"
a64c9c13 3400#include <linux/version.h>
f8bd9807
TT
3401EOF
3402ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e1f07228 3403{ (eval echo configure:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f8bd9807
TT
3404ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3405if test -z "$ac_err"; then
3406 rm -rf conftest*
3407 eval "ac_cv_header_$ac_safe=yes"
3408else
3409 echo "$ac_err" >&5
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 eval "ac_cv_header_$ac_safe=no"
3414fi
3415rm -f conftest*
3416fi
3417if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3418 echo "$ac_t""yes" 1>&6
a64c9c13 3419 msgformat=linux
f8bd9807
TT
3420else
3421 echo "$ac_t""no" 1>&6
a64c9c13
TT
3422msgformat=xopen
3423fi
3424
3425
3426 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3427 fi
3428 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3429 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3430
3431 if test "$PACKAGE" = "gettext"; then
3432 GT_NO="#NO#"
3433 GT_YES=
3434 else
3435 GT_NO=
3436 GT_YES="#YES#"
3437 fi
3438
3439
3440
3441 MKINSTALLDIRS=
3442 if test -n "$ac_aux_dir"; then
3443 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3444 fi
3445 if test -z "$MKINSTALLDIRS"; then
3446 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3447 fi
3448
3449
3450 l=
3451
3452
3453 test -d po || mkdir po
3454 if test "x$srcdir" != "x."; then
3455 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3456 posrcprefix="$srcdir/"
3457 else
3458 posrcprefix="../$srcdir/"
3459 fi
3460 else
3461 posrcprefix="../"
3462 fi
3463 rm -f po/POTFILES
3464 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3465 < $srcdir/po/POTFILES.in > po/POTFILES
3466
74becf3c 3467
50e1e10f 3468echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
e1f07228 3469echo "configure:3470: checking whether ${MAKE-make} sets \${MAKE}" >&5
21c84b71 3470set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
50e1e10f
TT
3471if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3473else
3474 cat > conftestmake <<\EOF
3475all:
3476 @echo 'ac_maketemp="${MAKE}"'
3477EOF
3478# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3479eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3480if test -n "$ac_maketemp"; then
3481 eval ac_cv_prog_make_${ac_make}_set=yes
3482else
3483 eval ac_cv_prog_make_${ac_make}_set=no
3484fi
3485rm -f conftestmake
3486fi
3487if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3489 SET_MAKE=
3490else
3491 echo "$ac_t""no" 1>&6
3492 SET_MAKE="MAKE=${MAKE-make}"
3493fi
3494
3495# Extract the first word of "ln", so it can be a program name with args.
3496set dummy ln; ac_word=$2
3497echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3498echo "configure:3499: checking for $ac_word" >&5
50e1e10f
TT
3499if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3501else
3502 case "$LN" in
3503 /*)
3504 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3505 ;;
a4bf69d9
TT
3506 ?:/*)
3507 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3508 ;;
50e1e10f 3509 *)
a4bf69d9
TT
3510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3511 ac_dummy="$PATH"
3512 for ac_dir in $ac_dummy; do
50e1e10f
TT
3513 test -z "$ac_dir" && ac_dir=.
3514 if test -f $ac_dir/$ac_word; then
3515 ac_cv_path_LN="$ac_dir/$ac_word"
3516 break
3517 fi
3518 done
3519 IFS="$ac_save_ifs"
3520 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3521 ;;
3522esac
3523fi
3524LN="$ac_cv_path_LN"
3525if test -n "$LN"; then
3526 echo "$ac_t""$LN" 1>&6
3527else
3528 echo "$ac_t""no" 1>&6
3529fi
3530
fc6d9d51 3531echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
e1f07228 3532echo "configure:3533: checking whether ln -s works" >&5
fc6d9d51
TT
3533if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3535else
3536 rm -f conftestdata
3537if ln -s X conftestdata 2>/dev/null
3538then
3539 rm -f conftestdata
3540 ac_cv_prog_LN_S="ln -s"
3541else
3542 ac_cv_prog_LN_S=ln
3543fi
3544fi
3545LN_S="$ac_cv_prog_LN_S"
3546if test "$ac_cv_prog_LN_S" = "ln -s"; then
3547 echo "$ac_t""yes" 1>&6
3548else
3549 echo "$ac_t""no" 1>&6
3550fi
3551
50e1e10f
TT
3552# Extract the first word of "mv", so it can be a program name with args.
3553set dummy mv; ac_word=$2
3554echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3555echo "configure:3556: checking for $ac_word" >&5
50e1e10f
TT
3556if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3558else
3559 case "$MV" in
3560 /*)
3561 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3562 ;;
a4bf69d9
TT
3563 ?:/*)
3564 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3565 ;;
50e1e10f 3566 *)
a4bf69d9
TT
3567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3568 ac_dummy="$PATH"
3569 for ac_dir in $ac_dummy; do
50e1e10f
TT
3570 test -z "$ac_dir" && ac_dir=.
3571 if test -f $ac_dir/$ac_word; then
3572 ac_cv_path_MV="$ac_dir/$ac_word"
3573 break
3574 fi
3575 done
3576 IFS="$ac_save_ifs"
3577 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3578 ;;
3579esac
3580fi
3581MV="$ac_cv_path_MV"
3582if test -n "$MV"; then
3583 echo "$ac_t""$MV" 1>&6
3584else
3585 echo "$ac_t""no" 1>&6
3586fi
3587
3588# Extract the first word of "cp", so it can be a program name with args.
3589set dummy cp; ac_word=$2
3590echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3591echo "configure:3592: checking for $ac_word" >&5
50e1e10f
TT
3592if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3594else
3595 case "$CP" in
3596 /*)
3597 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3598 ;;
a4bf69d9
TT
3599 ?:/*)
3600 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3601 ;;
50e1e10f 3602 *)
a4bf69d9
TT
3603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3604 ac_dummy="$PATH"
3605 for ac_dir in $ac_dummy; do
50e1e10f
TT
3606 test -z "$ac_dir" && ac_dir=.
3607 if test -f $ac_dir/$ac_word; then
3608 ac_cv_path_CP="$ac_dir/$ac_word"
3609 break
3610 fi
3611 done
3612 IFS="$ac_save_ifs"
3613 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3614 ;;
3615esac
3616fi
3617CP="$ac_cv_path_CP"
3618if test -n "$CP"; then
3619 echo "$ac_t""$CP" 1>&6
3620else
3621 echo "$ac_t""no" 1>&6
3622fi
3623
3624# Extract the first word of "rm", so it can be a program name with args.
3625set dummy rm; ac_word=$2
3626echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3627echo "configure:3628: checking for $ac_word" >&5
50e1e10f
TT
3628if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3630else
3631 case "$RM" in
3632 /*)
3633 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3634 ;;
a4bf69d9
TT
3635 ?:/*)
3636 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3637 ;;
50e1e10f 3638 *)
a4bf69d9
TT
3639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3640 ac_dummy="$PATH"
3641 for ac_dir in $ac_dummy; do
50e1e10f
TT
3642 test -z "$ac_dir" && ac_dir=.
3643 if test -f $ac_dir/$ac_word; then
3644 ac_cv_path_RM="$ac_dir/$ac_word"
3645 break
3646 fi
3647 done
3648 IFS="$ac_save_ifs"
3649 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3650 ;;
3651esac
3652fi
3653RM="$ac_cv_path_RM"
3654if test -n "$RM"; then
3655 echo "$ac_t""$RM" 1>&6
3656else
3657 echo "$ac_t""no" 1>&6
3658fi
3659
3660# Extract the first word of "chmod", so it can be a program name with args.
3661set dummy chmod; ac_word=$2
3662echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3663echo "configure:3664: checking for $ac_word" >&5
50e1e10f
TT
3664if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3666else
3667 case "$CHMOD" in
3668 /*)
3669 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3670 ;;
a4bf69d9
TT
3671 ?:/*)
3672 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3673 ;;
50e1e10f 3674 *)
a4bf69d9
TT
3675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3676 ac_dummy="$PATH"
3677 for ac_dir in $ac_dummy; do
50e1e10f
TT
3678 test -z "$ac_dir" && ac_dir=.
3679 if test -f $ac_dir/$ac_word; then
3680 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3681 break
3682 fi
3683 done
3684 IFS="$ac_save_ifs"
3685 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3686 ;;
3687esac
3688fi
3689CHMOD="$ac_cv_path_CHMOD"
3690if test -n "$CHMOD"; then
3691 echo "$ac_t""$CHMOD" 1>&6
3692else
3693 echo "$ac_t""no" 1>&6
3694fi
3695
3696# Extract the first word of "awk", so it can be a program name with args.
3697set dummy awk; ac_word=$2
3698echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3699echo "configure:3700: checking for $ac_word" >&5
50e1e10f
TT
3700if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3702else
3703 case "$AWK" in
3704 /*)
3705 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3706 ;;
a4bf69d9
TT
3707 ?:/*)
3708 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3709 ;;
50e1e10f 3710 *)
a4bf69d9
TT
3711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3712 ac_dummy="$PATH"
3713 for ac_dir in $ac_dummy; do
50e1e10f
TT
3714 test -z "$ac_dir" && ac_dir=.
3715 if test -f $ac_dir/$ac_word; then
3716 ac_cv_path_AWK="$ac_dir/$ac_word"
3717 break
3718 fi
3719 done
3720 IFS="$ac_save_ifs"
3721 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3722 ;;
3723esac
3724fi
3725AWK="$ac_cv_path_AWK"
3726if test -n "$AWK"; then
3727 echo "$ac_t""$AWK" 1>&6
3728else
3729 echo "$ac_t""no" 1>&6
3730fi
3731
3732# Extract the first word of "sed", so it can be a program name with args.
3733set dummy sed; ac_word=$2
3734echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3735echo "configure:3736: checking for $ac_word" >&5
50e1e10f
TT
3736if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3738else
3739 case "$SED" in
3740 /*)
3741 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3742 ;;
a4bf69d9
TT
3743 ?:/*)
3744 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3745 ;;
50e1e10f 3746 *)
a4bf69d9
TT
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3748 ac_dummy="$PATH"
3749 for ac_dir in $ac_dummy; do
50e1e10f
TT
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/$ac_word; then
3752 ac_cv_path_SED="$ac_dir/$ac_word"
3753 break
3754 fi
3755 done
3756 IFS="$ac_save_ifs"
3757 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3758 ;;
3759esac
3760fi
3761SED="$ac_cv_path_SED"
3762if test -n "$SED"; then
3763 echo "$ac_t""$SED" 1>&6
3764else
3765 echo "$ac_t""no" 1>&6
3766fi
3767
9d564f73
TT
3768# Extract the first word of "perl", so it can be a program name with args.
3769set dummy perl; ac_word=$2
3770echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3771echo "configure:3772: checking for $ac_word" >&5
9d564f73
TT
3772if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3774else
3775 case "$PERL" in
3776 /*)
3777 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3778 ;;
3779 ?:/*)
3780 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3781 ;;
3782 *)
3783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3784 ac_dummy="$PATH"
3785 for ac_dir in $ac_dummy; do
3786 test -z "$ac_dir" && ac_dir=.
3787 if test -f $ac_dir/$ac_word; then
3788 ac_cv_path_PERL="$ac_dir/$ac_word"
3789 break
3790 fi
3791 done
3792 IFS="$ac_save_ifs"
3793 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3794 ;;
3795esac
3796fi
3797PERL="$ac_cv_path_PERL"
3798if test -n "$PERL"; then
3799 echo "$ac_t""$PERL" 1>&6
3800else
3801 echo "$ac_t""no" 1>&6
3802fi
3803
250f79f0
TT
3804# Extract the first word of "ldconfig", so it can be a program name with args.
3805set dummy ldconfig; ac_word=$2
3806echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3807echo "configure:3808: checking for $ac_word" >&5
250f79f0
TT
3808if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3810else
3811 case "$LDCONFIG" in
3812 /*)
3813 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3814 ;;
3815 ?:/*)
3816 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3817 ;;
3818 *)
3819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3820 ac_dummy="$PATH"
3821 for ac_dir in $ac_dummy; do
3822 test -z "$ac_dir" && ac_dir=.
3823 if test -f $ac_dir/$ac_word; then
3824 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3825 break
3826 fi
3827 done
3828 IFS="$ac_save_ifs"
3829 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3830 ;;
3831esac
3832fi
3833LDCONFIG="$ac_cv_path_LDCONFIG"
3834if test -n "$LDCONFIG"; then
3835 echo "$ac_t""$LDCONFIG" 1>&6
3836else
3837 echo "$ac_t""no" 1>&6
3838fi
3839
50e1e10f 3840echo $ac_n "checking build system type""... $ac_c" 1>&6
e1f07228 3841echo "configure:3842: checking build system type" >&5
50e1e10f
TT
3842
3843build_alias=$build
3844case "$build_alias" in
3845NONE)
3846 case $nonopt in
3847 NONE) build_alias=$host_alias ;;
3848 *) build_alias=$nonopt ;;
3849 esac ;;
3850esac
3851
a4bf69d9 3852build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
21c84b71
TT
3853build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3854build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3855build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
50e1e10f
TT
3856echo "$ac_t""$build" 1>&6
3857
3858if test $host != $build; then
3859 ac_tool_prefix=${host_alias}-
3860else
3861 ac_tool_prefix=
3862fi
3863
3864# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3865set dummy ${ac_tool_prefix}ar; ac_word=$2
3866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3867echo "configure:3868: checking for $ac_word" >&5
50e1e10f
TT
3868if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3870else
3871 if test -n "$AR"; then
3872 ac_cv_prog_AR="$AR" # Let the user override the test.
3873else
a4bf69d9
TT
3874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3875 ac_dummy="$PATH"
3876 for ac_dir in $ac_dummy; do
50e1e10f
TT
3877 test -z "$ac_dir" && ac_dir=.
3878 if test -f $ac_dir/$ac_word; then
3879 ac_cv_prog_AR="${ac_tool_prefix}ar"
3880 break
3881 fi
3882 done
3883 IFS="$ac_save_ifs"
3884fi
3885fi
3886AR="$ac_cv_prog_AR"
3887if test -n "$AR"; then
3888 echo "$ac_t""$AR" 1>&6
3889else
3890 echo "$ac_t""no" 1>&6
3891fi
3892
3893
3894if test -z "$ac_cv_prog_AR"; then
3895if test -n "$ac_tool_prefix"; then
3896 # Extract the first word of "ar", so it can be a program name with args.
3897set dummy ar; ac_word=$2
3898echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3899echo "configure:3900: checking for $ac_word" >&5
50e1e10f
TT
3900if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3902else
3903 if test -n "$AR"; then
3904 ac_cv_prog_AR="$AR" # Let the user override the test.
3905else
a4bf69d9
TT
3906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3907 ac_dummy="$PATH"
3908 for ac_dir in $ac_dummy; do
50e1e10f
TT
3909 test -z "$ac_dir" && ac_dir=.
3910 if test -f $ac_dir/$ac_word; then
3911 ac_cv_prog_AR="ar"
3912 break
3913 fi
3914 done
3915 IFS="$ac_save_ifs"
3916 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3917fi
3918fi
3919AR="$ac_cv_prog_AR"
3920if test -n "$AR"; then
3921 echo "$ac_t""$AR" 1>&6
3922else
3923 echo "$ac_t""no" 1>&6
3924fi
3925
3926else
3927 AR="ar"
3928fi
3929fi
3930
3931# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3932set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3933echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3934echo "configure:3935: checking for $ac_word" >&5
50e1e10f
TT
3935if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3937else
3938 if test -n "$RANLIB"; then
3939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3940else
a4bf69d9
TT
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3942 ac_dummy="$PATH"
3943 for ac_dir in $ac_dummy; do
50e1e10f
TT
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3947 break
3948 fi
3949 done
3950 IFS="$ac_save_ifs"
3951fi
3952fi
3953RANLIB="$ac_cv_prog_RANLIB"
3954if test -n "$RANLIB"; then
3955 echo "$ac_t""$RANLIB" 1>&6
3956else
3957 echo "$ac_t""no" 1>&6
3958fi
3959
3960
3961if test -z "$ac_cv_prog_RANLIB"; then
3962if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "ranlib", so it can be a program name with args.
3964set dummy ranlib; ac_word=$2
3965echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 3966echo "configure:3967: checking for $ac_word" >&5
50e1e10f
TT
3967if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3969else
3970 if test -n "$RANLIB"; then
3971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3972else
a4bf69d9
TT
3973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3974 ac_dummy="$PATH"
3975 for ac_dir in $ac_dummy; do
50e1e10f
TT
3976 test -z "$ac_dir" && ac_dir=.
3977 if test -f $ac_dir/$ac_word; then
3978 ac_cv_prog_RANLIB="ranlib"
3979 break
3980 fi
3981 done
3982 IFS="$ac_save_ifs"
3983 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3984fi
3985fi
3986RANLIB="$ac_cv_prog_RANLIB"
3987if test -n "$RANLIB"; then
3988 echo "$ac_t""$RANLIB" 1>&6
3989else
3990 echo "$ac_t""no" 1>&6
3991fi
3992
3993else
3994 RANLIB=":"
3995fi
3996fi
3997
3998# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3999set dummy ${ac_tool_prefix}strip; ac_word=$2
4000echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 4001echo "configure:4002: checking for $ac_word" >&5
50e1e10f
TT
4002if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4004else
4005 if test -n "$STRIP"; then
4006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4007else
a4bf69d9
TT
4008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4009 ac_dummy="$PATH"
4010 for ac_dir in $ac_dummy; do
50e1e10f
TT
4011 test -z "$ac_dir" && ac_dir=.
4012 if test -f $ac_dir/$ac_word; then
4013 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4014 break
4015 fi
4016 done
4017 IFS="$ac_save_ifs"
4018fi
4019fi
4020STRIP="$ac_cv_prog_STRIP"
4021if test -n "$STRIP"; then
4022 echo "$ac_t""$STRIP" 1>&6
4023else
4024 echo "$ac_t""no" 1>&6
4025fi
4026
4027
4028if test -z "$ac_cv_prog_STRIP"; then
4029if test -n "$ac_tool_prefix"; then
4030 # Extract the first word of "strip", so it can be a program name with args.
4031set dummy strip; ac_word=$2
4032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 4033echo "configure:4034: checking for $ac_word" >&5
50e1e10f
TT
4034if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4036else
4037 if test -n "$STRIP"; then
4038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4039else
a4bf69d9
TT
4040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4041 ac_dummy="$PATH"
4042 for ac_dir in $ac_dummy; do
50e1e10f
TT
4043 test -z "$ac_dir" && ac_dir=.
4044 if test -f $ac_dir/$ac_word; then
4045 ac_cv_prog_STRIP="strip"
4046 break
4047 fi
4048 done
4049 IFS="$ac_save_ifs"
4050 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4051fi
4052fi
4053STRIP="$ac_cv_prog_STRIP"
4054if test -n "$STRIP"; then
4055 echo "$ac_t""$STRIP" 1>&6
4056else
4057 echo "$ac_t""no" 1>&6
4058fi
4059
4060else
4061 STRIP=":"
4062fi
4063fi
4064
50e1e10f
TT
4065# Find a good install program. We prefer a C program (faster),
4066# so one script is as good as another. But avoid the broken or
4067# incompatible versions:
4068# SysV /etc/install, /usr/sbin/install
4069# SunOS /usr/etc/install
4070# IRIX /sbin/install
4071# AIX /bin/install
a4bf69d9 4072# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50e1e10f
TT
4073# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4074# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4075# ./install, which can be erroneously created by make from ./install.sh.
4076echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
e1f07228 4077echo "configure:4078: checking for a BSD compatible install" >&5
50e1e10f
TT
4078if test -z "$INSTALL"; then
4079if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4081else
a4bf69d9 4082 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
50e1e10f
TT
4083 for ac_dir in $PATH; do
4084 # Account for people who put trailing slashes in PATH elements.
4085 case "$ac_dir/" in
4086 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4087 *)
4088 # OSF1 and SCO ODT 3.0 have their own names for install.
a4bf69d9
TT
4089 # Don't use installbsd from OSF since it installs stuff as root
4090 # by default.
4091 for ac_prog in ginstall scoinst install; do
50e1e10f
TT
4092 if test -f $ac_dir/$ac_prog; then
4093 if test $ac_prog = install &&
4094 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4095 # AIX install. It has an incompatible calling convention.
50e1e10f
TT
4096 :
4097 else
4098 ac_cv_path_install="$ac_dir/$ac_prog -c"
4099 break 2
4100 fi
4101 fi
4102 done
4103 ;;
4104 esac
4105 done
21c84b71
TT
4106 IFS="$ac_save_IFS"
4107
50e1e10f 4108fi
21c84b71
TT
4109 if test "${ac_cv_path_install+set}" = set; then
4110 INSTALL="$ac_cv_path_install"
4111 else
4112 # As a last resort, use the slow shell script. We don't cache a
4113 # path for INSTALL within a source directory, because that will
4114 # break other packages using the cache if that directory is
4115 # removed, or if the path is relative.
4116 INSTALL="$ac_install_sh"
4117 fi
50e1e10f
TT
4118fi
4119echo "$ac_t""$INSTALL" 1>&6
4120
4121# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4122# It thinks the first close brace ends the variable substitution.
4123test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4124
a4bf69d9
TT
4125test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4126
50e1e10f
TT
4127test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4128
6c133523
TT
4129# See if we need a separate native compiler.
4130if test $cross_compiling = no; then
4131 BUILD_CC="$CC"
4132
4133else
4134 for ac_prog in gcc cc
4135do
4136# Extract the first word of "$ac_prog", so it can be a program name with args.
4137set dummy $ac_prog; ac_word=$2
4138echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
e1f07228 4139echo "configure:4140: checking for $ac_word" >&5
6c133523
TT
4140if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4142else
4143 if test -n "$BUILD_CC"; then
4144 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4145else
4146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4147 ac_dummy="$PATH"
4148 for ac_dir in $ac_dummy; do
4149 test -z "$ac_dir" && ac_dir=.
4150 if test -f $ac_dir/$ac_word; then
4151 ac_cv_prog_BUILD_CC="$ac_prog"
4152 break
4153 fi
4154 done
4155 IFS="$ac_save_ifs"
4156fi
4157fi
4158BUILD_CC="$ac_cv_prog_BUILD_CC"
4159if test -n "$BUILD_CC"; then
4160 echo "$ac_t""$BUILD_CC" 1>&6
4161else
4162 echo "$ac_t""no" 1>&6
4163fi
4164
4165test -n "$BUILD_CC" && break
4166done
4167
4168fi
4d0f3e17 4169for 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
50e1e10f 4170do
21c84b71 4171ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
50e1e10f 4172echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
e1f07228 4173echo "configure:4174: checking for $ac_hdr" >&5
50e1e10f
TT
4174if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4176else
4177 cat > conftest.$ac_ext <<EOF
e1f07228 4178#line 4179 "configure"
50e1e10f
TT
4179#include "confdefs.h"
4180#include <$ac_hdr>
4181EOF
21c84b71 4182ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
e1f07228 4183{ (eval echo configure:4184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a4bf69d9 4184ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
50e1e10f
TT
4185if test -z "$ac_err"; then
4186 rm -rf conftest*
4187 eval "ac_cv_header_$ac_safe=yes"
4188else
4189 echo "$ac_err" >&5
21c84b71
TT
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
50e1e10f
TT
4192 rm -rf conftest*
4193 eval "ac_cv_header_$ac_safe=no"
4194fi
4195rm -f conftest*
4196fi
4197if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4198 echo "$ac_t""yes" 1>&6
21c84b71 4199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
50e1e10f
TT
4200 cat >> confdefs.h <<EOF
4201#define $ac_tr_hdr 1
4202EOF
4203
4204else
4205 echo "$ac_t""no" 1>&6
4206fi
4207done
4208
4209echo $ac_n "checking for vprintf""... $ac_c" 1>&6
e1f07228 4210echo "configure:4211: checking for vprintf" >&5
50e1e10f
TT
4211if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4213else
4214 cat > conftest.$ac_ext <<EOF
e1f07228 4215#line 4216 "configure"
50e1e10f
TT
4216#include "confdefs.h"
4217/* System header to define __stub macros and hopefully few prototypes,
4218 which can conflict with char vprintf(); below. */
4219#include <assert.h>
4220/* Override any gcc2 internal prototype to avoid an error. */
21c84b71
TT
4221/* We use char because int might match the return type of a gcc2
4222 builtin and then its argument prototype would still apply. */
4223char vprintf();
50e1e10f 4224
21c84b71 4225int main() {
50e1e10f
TT
4226
4227/* The GNU C library defines this for functions which it implements
4228 to always fail with ENOSYS. Some functions are actually named
4229 something starting with __ and the normal name is an alias. */
4230#if defined (__stub_vprintf) || defined (__stub___vprintf)
4231choke me
4232#else
4233vprintf();
4234#endif
4235
4236; return 0; }
4237EOF
e1f07228 4238if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
50e1e10f
TT
4239 rm -rf conftest*
4240 eval "ac_cv_func_vprintf=yes"
4241else
21c84b71
TT
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
50e1e10f
TT
4244 rm -rf conftest*
4245 eval "ac_cv_func_vprintf=no"
4246fi
4247rm -f conftest*
50e1e10f 4248fi
21c84b71 4249
50e1e10f
TT
4250if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4251 echo "$ac_t""yes" 1>&6
4252 cat >> confdefs.h <<\EOF
4253#define HAVE_VPRINTF 1
4254EOF
4255
4256else
4257 echo "$ac_t""no" 1>&6
4258fi
4259
4260if test "$ac_cv_func_vprintf" != yes; then
4261echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
e1f07228 4262echo "configure:4263: checking for _doprnt" >&5
50e1e10f
TT
4263if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4265else
4266 cat > conftest.$ac_ext <<EOF
e1f07228 4267#line 4268 "configure"
50e1e10f
TT
4268#include "confdefs.h"
4269/* System header to define __stub macros and hopefully few prototypes,
4270 which can conflict with char _doprnt(); below. */
4271#include <assert.h>
4272/* Override any gcc2 internal prototype to avoid an error. */
21c84b71
TT
4273/* We use char because int might match the return type of a gcc2
4274 builtin and then its argument prototype would still apply. */
4275char _doprnt();
50e1e10f 4276
21c84b71 4277int main() {
50e1e10f
TT
4278
4279/* The GNU C library defines this for functions which it implements
4280 to always fail with ENOSYS. Some functions are actually named
4281 something starting with __ and the normal name is an alias. */
4282#if defined (__stub__doprnt) || defined (__stub____doprnt)
4283choke me
4284#else
4285_doprnt();
4286#endif
4287
4288; return 0; }
4289EOF
e1f07228 4290if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
50e1e10f
TT
4291 rm -rf conftest*
4292 eval "ac_cv_func__doprnt=yes"
4293else
21c84b71
TT
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
50e1e10f
TT
4296 rm -rf conftest*
4297 eval "ac_cv_func__doprnt=no"
4298fi
4299rm -f conftest*
50e1e10f 4300fi
21c84b71 4301
50e1e10f
TT
4302if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4304 cat >> confdefs.h <<\EOF
4305#define HAVE_DOPRNT 1
4306EOF
4307
4308else
4309 echo "$ac_t""no" 1>&6
4310fi
4311
4312fi
4313
b0b9c4de 4314echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
e1f07228 4315echo "configure:4316: checking whether llseek declared in unistd.h" >&5
b0b9c4de
TT
4316if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4318else
4319 cat > conftest.$ac_ext <<EOF
e1f07228 4320#line 4321 "configure"
b0b9c4de
TT
4321#include "confdefs.h"
4322#include <unistd.h>
4323int main() {
4324extern int llseek(int);
4325; return 0; }
4326EOF
e1f07228 4327if { (eval echo configure:4328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b0b9c4de
TT
4328 rm -rf conftest*
4329 e2fsprogs_cv_have_llseek_prototype=no
4330else
4331 echo "configure: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4333 rm -rf conftest*
4334 e2fsprogs_cv_have_llseek_prototype=yes
4335fi
4336rm -f conftest*
4337fi
4338
4339echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4340if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4341 cat >> confdefs.h <<\EOF
4342#define HAVE_LLSEEK_PROTOTYPE 1
4343EOF
4344
6928adc9
TT
4345fi
4346echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
e1f07228 4347echo "configure:4348: checking whether lseek64 declared in unistd.h" >&5
6928adc9
TT
4348if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4350else
4351 cat > conftest.$ac_ext <<EOF
e1f07228 4352#line 4353 "configure"
6928adc9
TT
4353#include "confdefs.h"
4354#define _LARGEFILE_SOURCE
4355#define _LARGEFILE64_SOURCE
4356#include <unistd.h>
4357int main() {
4358extern int lseek64(int);
4359; return 0; }
4360EOF
e1f07228 4361if { (eval echo configure:4362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6928adc9
TT
4362 rm -rf conftest*
4363 e2fsprogs_cv_have_lseek64_prototype=no
4364else
4365 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4367 rm -rf conftest*
4368 e2fsprogs_cv_have_lseek64_prototype=yes
4369fi
4370rm -f conftest*
4371fi
4372
4373echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4374if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4375 cat >> confdefs.h <<\EOF
4376#define HAVE_LSEEK64_PROTOTYPE 1
4377EOF
4378
50e1e10f
TT
4379fi
4380if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4381 # if cross-compiling, with no cached values, just assume something common.
4382 ac_cv_sizeof_short=2
4383 ac_cv_sizeof_int=4
4384 ac_cv_sizeof_long=4
6c133523
TT
4385 ac_cv_sizeof_long_long=8
4386 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
50e1e10f
TT
4387fi
4388echo $ac_n "checking size of short""... $ac_c" 1>&6
e1f07228 4389echo "configure:4390: checking size of short" >&5
50e1e10f
TT
4390if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4392else
4393 if test "$cross_compiling" = yes; then
4394 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4395else
21c84b71 4396 cat > conftest.$ac_ext <<EOF
e1f07228 4397#line 4398 "configure"
50e1e10f
TT
4398#include "confdefs.h"
4399#include <stdio.h>
250f79f0 4400#include <sys/types.h>
50e1e10f
TT
4401main()
4402{
4403 FILE *f=fopen("conftestval", "w");
4404 if (!f) exit(1);
4405 fprintf(f, "%d\n", sizeof(short));
4406 exit(0);
4407}
4408EOF
e1f07228 4409if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21c84b71 4410then
50e1e10f
TT
4411 ac_cv_sizeof_short=`cat conftestval`
4412else
21c84b71
TT
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4415 rm -fr conftest*
50e1e10f
TT
4416 ac_cv_sizeof_short=0
4417fi
50e1e10f 4418rm -fr conftest*
21c84b71
TT
4419fi
4420
50e1e10f
TT
4421fi
4422echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4423cat >> confdefs.h <<EOF
4424#define SIZEOF_SHORT $ac_cv_sizeof_short
4425EOF
4426
4427
4428echo $ac_n "checking size of int""... $ac_c" 1>&6
e1f07228 4429echo "configure:4430: checking size of int" >&5
50e1e10f
TT
4430if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4432else
4433 if test "$cross_compiling" = yes; then
4434 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4435else
21c84b71 4436 cat > conftest.$ac_ext <<EOF
e1f07228 4437#line 4438 "configure"
50e1e10f
TT
4438#include "confdefs.h"
4439#include <stdio.h>
250f79f0 4440#include <sys/types.h>
50e1e10f
TT
4441main()
4442{
4443 FILE *f=fopen("conftestval", "w");
4444 if (!f) exit(1);
4445 fprintf(f, "%d\n", sizeof(int));
4446 exit(0);
4447}
4448EOF
e1f07228 4449if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21c84b71 4450then
50e1e10f
TT
4451 ac_cv_sizeof_int=`cat conftestval`
4452else
21c84b71
TT
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4455 rm -fr conftest*
50e1e10f
TT
4456 ac_cv_sizeof_int=0
4457fi
50e1e10f 4458rm -fr conftest*
21c84b71
TT
4459fi
4460
50e1e10f
TT
4461fi
4462echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4463cat >> confdefs.h <<EOF
4464#define SIZEOF_INT $ac_cv_sizeof_int
4465EOF
4466
4467
4468echo $ac_n "checking size of long""... $ac_c" 1>&6
e1f07228 4469echo "configure:4470: checking size of long" >&5
50e1e10f
TT
4470if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4472else
4473 if test "$cross_compiling" = yes; then
4474 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4475else
21c84b71 4476 cat > conftest.$ac_ext <<EOF
e1f07228 4477#line 4478 "configure"
50e1e10f
TT
4478#include "confdefs.h"
4479#include <stdio.h>
250f79f0 4480#include <sys/types.h>
50e1e10f
TT
4481main()
4482{
4483 FILE *f=fopen("conftestval", "w");
4484 if (!f) exit(1);
4485 fprintf(f, "%d\n", sizeof(long));
4486 exit(0);
4487}
4488EOF
e1f07228 4489if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21c84b71 4490then
50e1e10f
TT
4491 ac_cv_sizeof_long=`cat conftestval`
4492else
21c84b71
TT
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4495 rm -fr conftest*
50e1e10f
TT
4496 ac_cv_sizeof_long=0
4497fi
50e1e10f 4498rm -fr conftest*
21c84b71
TT
4499fi
4500
50e1e10f
TT
4501fi
4502echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4503cat >> confdefs.h <<EOF
4504#define SIZEOF_LONG $ac_cv_sizeof_long
4505EOF
4506
4507
fc6d9d51 4508echo $ac_n "checking size of long long""... $ac_c" 1>&6
e1f07228 4509echo "configure:4510: checking size of long long" >&5
fc6d9d51
TT
4510if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4512else
4513 if test "$cross_compiling" = yes; then
4514 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4515else
21c84b71 4516 cat > conftest.$ac_ext <<EOF
e1f07228 4517#line 4518 "configure"
fc6d9d51
TT
4518#include "confdefs.h"
4519#include <stdio.h>
250f79f0 4520#include <sys/types.h>
fc6d9d51
TT
4521main()
4522{
4523 FILE *f=fopen("conftestval", "w");
4524 if (!f) exit(1);
4525 fprintf(f, "%d\n", sizeof(long long));
4526 exit(0);
4527}
4528EOF
e1f07228 4529if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21c84b71 4530then
fc6d9d51
TT
4531 ac_cv_sizeof_long_long=`cat conftestval`
4532else
21c84b71
TT
4533 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4535 rm -fr conftest*
fc6d9d51
TT
4536 ac_cv_sizeof_long_long=0
4537fi
fc6d9d51 4538rm -fr conftest*
21c84b71
TT
4539fi
4540
fc6d9d51
TT
4541fi
4542echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4543cat >> confdefs.h <<EOF
4544#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4545EOF
4546
4547
50e1e10f
TT
4548SIZEOF_SHORT=$ac_cv_sizeof_short
4549SIZEOF_INT=$ac_cv_sizeof_int
4550SIZEOF_LONG=$ac_cv_sizeof_long
fc6d9d51
TT
4551SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4552
50e1e10f
TT
4553
4554
4555
877eb6d9 4556echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
e1f07228 4557echo "configure:4558: checking whether byte ordering is bigendian" >&5
877eb6d9
TT
4558if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4560else
4561 ac_cv_c_bigendian=unknown
4562# See if sys/param.h defines the BYTE_ORDER macro.
4563cat > conftest.$ac_ext <<EOF
e1f07228 4564#line 4565 "configure"
877eb6d9
TT
4565#include "confdefs.h"
4566#include <sys/types.h>
4567#include <sys/param.h>
4568int main() {
4569
4570#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4571 bogus endian macros
4572#endif
4573; return 0; }
4574EOF
e1f07228 4575if { (eval echo configure:4576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
877eb6d9
TT
4576 rm -rf conftest*
4577 # It does; now see whether it defined to BIG_ENDIAN or not.
4578cat > conftest.$ac_ext <<EOF
e1f07228 4579#line 4580 "configure"
877eb6d9
TT
4580#include "confdefs.h"
4581#include <sys/types.h>
4582#include <sys/param.h>
4583int main() {
4584
4585#if BYTE_ORDER != BIG_ENDIAN
4586 not big endian
4587#endif
4588; return 0; }
4589EOF
e1f07228 4590if { (eval echo configure:4591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
877eb6d9
TT
4591 rm -rf conftest*
4592 ac_cv_c_bigendian=yes
4593else
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4596 rm -rf conftest*
4597 ac_cv_c_bigendian=no
4598fi
4599rm -f conftest*
4600else
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4603fi
4604rm -f conftest*
4605if test $ac_cv_c_bigendian = unknown; then
4606if test "$cross_compiling" = yes; then
4607 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4608else
4609 cat > conftest.$ac_ext <<EOF
e1f07228 4610#line 4611 "configure"
877eb6d9
TT
4611#include "confdefs.h"
4612main () {
4613 /* Are we little or big endian? From Harbison&Steele. */
4614 union
4615 {
4616 long l;
4617 char c[sizeof (long)];
4618 } u;
4619 u.l = 1;
4620 exit (u.c[sizeof (long) - 1] == 1);
4621}
4622EOF
e1f07228 4623if { (eval echo configure:4624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
877eb6d9
TT
4624then
4625 ac_cv_c_bigendian=no
4626else
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4629 rm -fr conftest*
4630 ac_cv_c_bigendian=yes
4631fi
4632rm -fr conftest*
4633fi
4634
4635fi
4636fi
4637
4638echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4639if test $ac_cv_c_bigendian = yes; then
4640 cat >> confdefs.h <<\EOF
4641#define WORDS_BIGENDIAN 1
4642EOF
4643
4644fi
4645
50e1e10f 4646echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
e1f07228 4647echo "configure:4648: checking whether struct stat has a st_flags field" >&5
50e1e10f
TT
4648if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4650else
4651 cat > conftest.$ac_ext <<EOF
e1f07228 4652#line 4653 "configure"
50e1e10f
TT
4653#include "confdefs.h"
4654#include <sys/stat.h>
21c84b71 4655int main() {
50e1e10f
TT
4656struct stat stat; stat.st_flags = 0;
4657; return 0; }
4658EOF
e1f07228 4659if { (eval echo configure:4660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
50e1e10f
TT
4660 rm -rf conftest*
4661 e2fsprogs_cv_struct_st_flags=yes
4662else
21c84b71
TT
4663 echo "configure: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
50e1e10f
TT
4665 rm -rf conftest*
4666 e2fsprogs_cv_struct_st_flags=no
4667fi
4668rm -f conftest*
50e1e10f
TT
4669fi
4670
4671echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4672if test "$e2fsprogs_cv_struct_st_flags" = yes; then
c03bc4e8 4673 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
e1f07228 4674echo "configure:4675: checking whether st_flags field is useful" >&5
c03bc4e8
TT
4675 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4677else
4678 cat > conftest.$ac_ext <<EOF
e1f07228 4679#line 4680 "configure"
c03bc4e8
TT
4680#include "confdefs.h"
4681#include <sys/stat.h>
4682int main() {
4683struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4684; return 0; }
4685EOF
e1f07228 4686if { (eval echo configure:4687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c03bc4e8
TT
4687 rm -rf conftest*
4688 e2fsprogs_cv_struct_st_flags_immut=yes
4689else
4690 echo "configure: failed program was:" >&5
4691 cat conftest.$ac_ext >&5
4692 rm -rf conftest*
4693 e2fsprogs_cv_struct_st_flags_immut=no
4694fi
4695rm -f conftest*
4696fi
4697
4698 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4699 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4700 cat >> confdefs.h <<\EOF
50e1e10f
TT
4701#define HAVE_STAT_FLAGS 1
4702EOF
4703
c03bc4e8 4704 fi
50e1e10f 4705fi
e12f2ae7 4706for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf pathconf
50e1e10f
TT
4707do
4708echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
e1f07228 4709echo "configure:4710: checking for $ac_func" >&5
50e1e10f
TT
4710if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4712else
4713 cat > conftest.$ac_ext <<EOF
e1f07228 4714#line 4715 "configure"
50e1e10f
TT
4715#include "confdefs.h"
4716/* System header to define __stub macros and hopefully few prototypes,
4717 which can conflict with char $ac_func(); below. */
4718#include <assert.h>
4719/* Override any gcc2 internal prototype to avoid an error. */
21c84b71
TT
4720/* We use char because int might match the return type of a gcc2
4721 builtin and then its argument prototype would still apply. */
4722char $ac_func();
50e1e10f 4723
21c84b71 4724int main() {
50e1e10f
TT
4725
4726/* The GNU C library defines this for functions which it implements
4727 to always fail with ENOSYS. Some functions are actually named
4728 something starting with __ and the normal name is an alias. */
4729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4730choke me
4731#else
4732$ac_func();
4733#endif
4734
4735; return 0; }
4736EOF
e1f07228 4737if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
50e1e10f
TT
4738 rm -rf conftest*
4739 eval "ac_cv_func_$ac_func=yes"
4740else
21c84b71
TT
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
50e1e10f
TT
4743 rm -rf conftest*
4744 eval "ac_cv_func_$ac_func=no"
4745fi
4746rm -f conftest*
50e1e10f 4747fi
21c84b71 4748
50e1e10f
TT
4749if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4750 echo "$ac_t""yes" 1>&6
21c84b71 4751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50e1e10f
TT
4752 cat >> confdefs.h <<EOF
4753#define $ac_tr_func 1
4754EOF
4755
4756else
4757 echo "$ac_t""no" 1>&6
4758fi
4759done
4760
fc6d9d51 4761SOCKET_LIB=''
21c84b71 4762echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
e1f07228 4763echo "configure:4764: checking for socket in -lsocket" >&5
21c84b71
TT
4764ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4765if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
50e1e10f
TT
4766 echo $ac_n "(cached) $ac_c" 1>&6
4767else
fc6d9d51
TT
4768 ac_save_LIBS="$LIBS"
4769LIBS="-lsocket $LIBS"
4770cat > conftest.$ac_ext <<EOF
e1f07228 4771#line 4772 "configure"
50e1e10f 4772#include "confdefs.h"
21c84b71
TT
4773/* Override any gcc2 internal prototype to avoid an error. */
4774/* We use char because int might match the return type of a gcc2
4775 builtin and then its argument prototype would still apply. */
4776char socket();
fc6d9d51 4777
21c84b71 4778int main() {
fc6d9d51
TT
4779socket()
4780; return 0; }
50e1e10f 4781EOF
e1f07228 4782if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
50e1e10f 4783 rm -rf conftest*
21c84b71 4784 eval "ac_cv_lib_$ac_lib_var=yes"
50e1e10f 4785else
21c84b71
TT
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
50e1e10f 4788 rm -rf conftest*
21c84b71 4789 eval "ac_cv_lib_$ac_lib_var=no"
50e1e10f
TT
4790fi
4791rm -f conftest*
fc6d9d51 4792LIBS="$ac_save_LIBS"
50e1e10f
TT
4793
4794fi
21c84b71 4795if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
fc6d9d51
TT
4796 echo "$ac_t""yes" 1>&6
4797 SOCKET_LIB=-lsocket
4798else
4799 echo "$ac_t""no" 1>&6
50e1e10f 4800fi
fc6d9d51
TT
4801
4802
4803echo $ac_n "checking for optreset""... $ac_c" 1>&6
e1f07228 4804echo "configure:4805: checking for optreset" >&5
fc6d9d51 4805if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
50e1e10f
TT
4806 echo $ac_n "(cached) $ac_c" 1>&6
4807else
4808 cat > conftest.$ac_ext <<EOF
e1f07228 4809#line 4810 "configure"
50e1e10f 4810#include "confdefs.h"
fc6d9d51 4811#include <unistd.h>
50e1e10f 4812EOF
fc6d9d51
TT
4813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4814 egrep "optreset" >/dev/null 2>&1; then
50e1e10f 4815 rm -rf conftest*
fc6d9d51 4816 ac_cv_have_optreset=yes
50e1e10f
TT
4817else
4818 rm -rf conftest*
fc6d9d51 4819 ac_cv_have_optreset=no
50e1e10f
TT
4820fi
4821rm -f conftest*
4822
4823fi
fc6d9d51
TT
4824echo "$ac_t""$ac_cv_have_optreset" 1>&6
4825if test $ac_cv_have_optreset = yes; then
50e1e10f 4826 cat >> confdefs.h <<\EOF
fc6d9d51 4827#define HAVE_OPTRESET 1
50e1e10f
TT
4828EOF
4829
4830fi
8f3f29d3
TT
4831case "$host_os" in
4832linux*)
4833 cat >> confdefs.h <<\EOF
50e1e10f
TT
4834#define HAVE_EXT2_IOCTLS 1
4835EOF
4836
8f3f29d3
TT
4837 ;;
4838esac
e6f2bda3
TT
4839LINUX_CMT="#"
4840case "$host_os" in
4841linux*)
4842 LINUX_CMT=
4843 ;;
4844esac
4845
50e1e10f 4846case "$host_os" in
6c133523 4847linux* | gnu*)
a4b2d3ce
TT
4848 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4849 root_prefix="";
4850 echo "On $host_os systems, root_prefix defaults to ''"
fc6d9d51
TT
4851 fi
4852 ;;
4853esac
fc6d9d51
TT
4854case "$host_os" in
4855linux* | gnu*)
4856 if test "$prefix" = NONE ; then
a4b2d3ce
TT
4857 prefix="/usr";
4858 echo "On $host_os systems, prefix defaults to /usr"
bff61a7a
TT
4859 if test "$mandir" = '${prefix}/man' ; then
4860 echo "...and mandir defaults to /usr/share/man"
4861 mandir=/usr/share/man
4862 fi
50e1e10f
TT
4863 fi
4864;;
4865esac
a4b2d3ce 4866if test "$root_prefix" = NONE ; then
ffe1991f 4867 if test "$prefix" = NONE ; then
a4b2d3ce
TT
4868 root_prefix="$ac_default_prefix"
4869 else
4870 root_prefix="$prefix"
4871 fi
b5ffeade
TT
4872 root_bindir=$bindir
4873 root_sbindir=$sbindir
4874 root_libdir=$libdir
4875 root_sysconfdir=$sysconfdir
4876else
4877 root_bindir='${root_prefix}/bin'
4878 root_sbindir='${root_prefix}/sbin'
4879 root_libdir='${root_prefix}/lib'
4880 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce
TT
4881fi
4882
b5ffeade
TT
4883
4884
4885
4886
ae851482 4887echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
e1f07228 4888echo "configure:4889: checking whether linker accepts -static" >&5
ae851482
TT
4889if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4891else
4892 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4893cat > conftest.$ac_ext <<EOF
e1f07228 4894#line 4895 "configure"
ae851482
TT
4895#include "confdefs.h"
4896#include <stdio.h>
4897int main() {
4898fflush(stdout);
4899; return 0; }
4900EOF
e1f07228 4901if { (eval echo configure:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ae851482
TT
4902 rm -rf conftest*
4903 ac_cv_e2fsprogs_use_static=yes
4904else
4905 echo "configure: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 rm -rf conftest*
4908 ac_cv_e2fsprogs_use_static=no
4909fi
4910rm -f conftest*
4911LDFLAGS=$SAVE_LDFLAGS
4912fi
50e1e10f 4913
defde784
TT
4914case "$host_os" in
4915solaris2.*)
4916 ac_cv_e2fsprogs_use_static=no
4917;;
4918esac
ae851482 4919echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
74becf3c 4920LDFLAG_STATIC=
ae851482 4921if test $ac_cv_e2fsprogs_use_static = yes; then
50e1e10f 4922 LDFLAG_STATIC=-static
ae851482 4923fi
50e1e10f 4924
50e1e10f
TT
4925SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4926ET_DIR=`cd ${srcdir}/lib/et; pwd`
4927
4928
4929if test "$cross_compiling" = yes ; then
4930 DO_TEST_SUITE=
4931else
4932 DO_TEST_SUITE=check
4933fi
4934
4935test -d lib || mkdir lib
4936test -d include || mkdir include
4937test -d include/linux || mkdir include/linux
defde784 4938test -d include/asm || mkdir include/asm
94ba8c75
TT
4939for i in MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile \
4940 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
4941 lib/uuid/Makefile lib/uuid/uuid_types.h \
4942 lib/blkid/Makefile lib/blkid/blkid_types.h \
4943 lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
4944 debugfs/Makefile tests/Makefile tests/progs/Makefile \
4945 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
4946 if test -d `dirname ${srcdir}/$i` ; then
4947 outlist="$outlist $i"
4948 fi
4949done
50e1e10f
TT
4950trap '' 1 2 15
4951cat > confcache <<\EOF
4952# This file is a shell script that caches the results of configure
4953# tests run on this system so they can be shared between configure
4954# scripts and configure runs. It is not useful on other systems.
4955# If it contains results you don't want to keep, you may remove or edit it.
4956#
4957# By default, configure uses ./config.cache as the cache file,
4958# creating it if it does not exist already. You can give configure
4959# the --cache-file=FILE option to use a different cache file; that is
4960# what configure does when it calls configure scripts in
4961# subdirectories, so they share the cache.
4962# Giving --cache-file=/dev/null disables caching, for debugging configure.
4963# config.status only pays attention to the cache file if you give it the
4964# --recheck option to rerun configure.
4965#
4966EOF
21c84b71
TT
4967# The following way of writing the cache mishandles newlines in values,
4968# but we know of no workaround that is simple, portable, and efficient.
4969# So, don't put newlines in cache variables' values.
50e1e10f
TT
4970# Ultrix sh set writes to stderr and can't be redirected directly,
4971# and sets the high bit in the cache file unless we assign to the vars.
4972(set) 2>&1 |
a4bf69d9 4973 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21c84b71
TT
4974 *ac_space=\ *)
4975 # `set' does not quote correctly, so add quotes (double-quote substitution
4976 # turns \\\\ into \\, and sed turns \\ into \).
4977 sed -n \
4978 -e "s/'/'\\\\''/g" \
4979 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4980 ;;
4981 *)
4982 # `set' quotes correctly as required by POSIX, so do not add quotes.
4983 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4984 ;;
4985 esac >> confcache
50e1e10f
TT
4986if cmp -s $cache_file confcache; then
4987 :
4988else
4989 if test -w $cache_file; then
4990 echo "updating cache $cache_file"
4991 cat confcache > $cache_file
4992 else
4993 echo "not updating unwritable cache $cache_file"
4994 fi
4995fi
4996rm -f confcache
4997
4998trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4999
5000test "x$prefix" = xNONE && prefix=$ac_default_prefix
5001# Let make expand exec_prefix.
5002test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5003
5004# Any assignment to VPATH causes Sun make to only execute
5005# the first set of double-colon rules, so remove it if not needed.
5006# If there is a colon in the path, we need to keep it.
5007if test "x$srcdir" = x.; then
5008 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5009fi
5010
5011trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5012
5013# Transform confdefs.h into DEFS.
5014# Protect against shell expansion while executing Makefile rules.
5015# Protect against Makefile macro expansion.
5016cat > conftest.defs <<\EOF
21c84b71 5017s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
50e1e10f
TT
5018s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
5019s%\[%\\&%g
5020s%\]%\\&%g
5021s%\$%$$%g
5022EOF
5023DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
5024rm -f conftest.defs
5025
5026
5027# Without the "./", some shells look in PATH for config.status.
5028: ${CONFIG_STATUS=./config.status}
5029
5030echo creating $CONFIG_STATUS
5031rm -f $CONFIG_STATUS
5032cat > $CONFIG_STATUS <<EOF
5033#! /bin/sh
5034# Generated automatically by configure.
5035# Run this file to recreate the current configuration.
5036# This directory was configured as follows,
5037# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5038#
5039# $0 $ac_configure_args
5040#
5041# Compiler output produced by configure, useful for debugging
5042# configure, is in ./config.log if it exists.
5043
5044ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5045for ac_option
5046do
5047 case "\$ac_option" in
5048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5049 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5050 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5051 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
a4bf69d9 5052 echo "$CONFIG_STATUS generated by autoconf version 2.13"
50e1e10f
TT
5053 exit 0 ;;
5054 -help | --help | --hel | --he | --h)
5055 echo "\$ac_cs_usage"; exit 0 ;;
5056 *) echo "\$ac_cs_usage"; exit 1 ;;
5057 esac
5058done
5059
5060ac_given_srcdir=$srcdir
5061ac_given_INSTALL="$INSTALL"
5062
94ba8c75 5063trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21c84b71
TT
5064EOF
5065cat >> $CONFIG_STATUS <<EOF
50e1e10f 5066
21c84b71
TT
5067# Protect against being on the right side of a sed subst in config.status.
5068sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5069 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
50e1e10f
TT
5070$ac_vpsub
5071$extrasub
a4bf69d9 5072s%@SHELL@%$SHELL%g
50e1e10f
TT
5073s%@CFLAGS@%$CFLAGS%g
5074s%@CPPFLAGS@%$CPPFLAGS%g
5075s%@CXXFLAGS@%$CXXFLAGS%g
a4bf69d9 5076s%@FFLAGS@%$FFLAGS%g
50e1e10f
TT
5077s%@DEFS@%$DEFS%g
5078s%@LDFLAGS@%$LDFLAGS%g
5079s%@LIBS@%$LIBS%g
5080s%@exec_prefix@%$exec_prefix%g
5081s%@prefix@%$prefix%g
5082s%@program_transform_name@%$program_transform_name%g
21c84b71
TT
5083s%@bindir@%$bindir%g
5084s%@sbindir@%$sbindir%g
5085s%@libexecdir@%$libexecdir%g
5086s%@datadir@%$datadir%g
5087s%@sysconfdir@%$sysconfdir%g
5088s%@sharedstatedir@%$sharedstatedir%g
5089s%@localstatedir@%$localstatedir%g
5090s%@libdir@%$libdir%g
5091s%@includedir@%$includedir%g
5092s%@oldincludedir@%$oldincludedir%g
5093s%@infodir@%$infodir%g
5094s%@mandir@%$mandir%g
50e1e10f
TT
5095/@MCONFIG@/r $MCONFIG
5096s%@MCONFIG@%%g
74becf3c
TT
5097s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5098s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
5099s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
fc6d9d51
TT
5100s%@host@%$host%g
5101s%@host_alias@%$host_alias%g
5102s%@host_cpu@%$host_cpu%g
5103s%@host_vendor@%$host_vendor%g
5104s%@host_os@%$host_os%g
74becf3c
TT
5105s%@CC@%$CC%g
5106s%@LD@%$LD%g
f8bd9807
TT
5107s%@CPP@%$CPP%g
5108s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
8fdc9985
TT
5109s%@HTREE_CMT@%$HTREE_CMT%g
5110s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
a9d799a0 5111s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
50e1e10f
TT
5112s%@DLL_CMT@%$DLL_CMT%g
5113/@MAKEFILE_DLL@/r $MAKEFILE_DLL
5114s%@MAKEFILE_DLL@%%g
5115s%@ELF_CMT@%$ELF_CMT%g
5116/@MAKEFILE_ELF@/r $MAKEFILE_ELF
5117s%@MAKEFILE_ELF@%%g
5118s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5119/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5120s%@MAKEFILE_BSDLIB@%%g
cdf186e4
TT
5121s%@PROFILE_CMT@%$PROFILE_CMT%g
5122/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5123s%@MAKEFILE_PROFILE@%%g
5124s%@CHECKER_CMT@%$CHECKER_CMT%g
5125/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5126s%@MAKEFILE_CHECKER@%%g
5127s%@LIB_EXT@%$LIB_EXT%g
5128s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5129s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
feb44c69 5130s%@SWAPFS_CMT@%$SWAPFS_CMT%g
cdf186e4
TT
5131s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5132s%@IMAGER_CMT@%$IMAGER_CMT%g
5133s%@RESIZER_CMT@%$RESIZER_CMT%g
5134s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5135s%@FSCK_PROG@%$FSCK_PROG%g
5136s%@FSCK_MAN@%$FSCK_MAN%g
5137/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5138s%@MAKEFILE_LIBRARY@%%g
a64c9c13
TT
5139s%@PACKAGE@%$PACKAGE%g
5140s%@VERSION@%$VERSION%g
5141s%@SET_MAKE@%$SET_MAKE%g
5142s%@RANLIB@%$RANLIB%g
5143s%@ALLOCA@%$ALLOCA%g
5144s%@USE_NLS@%$USE_NLS%g
5145s%@MSGFMT@%$MSGFMT%g
5146s%@GMSGFMT@%$GMSGFMT%g
5147s%@XGETTEXT@%$XGETTEXT%g
5148s%@GENCAT@%$GENCAT%g
5149s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5150s%@CATALOGS@%$CATALOGS%g
5151s%@CATOBJEXT@%$CATOBJEXT%g
5152s%@DATADIRNAME@%$DATADIRNAME%g
5153s%@GMOFILES@%$GMOFILES%g
5154s%@INSTOBJEXT@%$INSTOBJEXT%g
5155s%@INTLDEPS@%$INTLDEPS%g
5156s%@INTLLIBS@%$INTLLIBS%g
5157s%@INTLOBJS@%$INTLOBJS%g
5158s%@POFILES@%$POFILES%g
5159s%@POSUB@%$POSUB%g
5160s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5161s%@GT_NO@%$GT_NO%g
5162s%@GT_YES@%$GT_YES%g
5163s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5164s%@l@%$l%g
74becf3c 5165s%@BINARY_TYPE@%$BINARY_TYPE%g
50e1e10f 5166s%@LN@%$LN%g
fc6d9d51 5167s%@LN_S@%$LN_S%g
50e1e10f
TT
5168s%@MV@%$MV%g
5169s%@CP@%$CP%g
5170s%@RM@%$RM%g
5171s%@CHMOD@%$CHMOD%g
5172s%@AWK@%$AWK%g
5173s%@SED@%$SED%g
9d564f73 5174s%@PERL@%$PERL%g
250f79f0 5175s%@LDCONFIG@%$LDCONFIG%g
50e1e10f
TT
5176s%@build@%$build%g
5177s%@build_alias@%$build_alias%g
5178s%@build_cpu@%$build_cpu%g
5179s%@build_vendor@%$build_vendor%g
5180s%@build_os@%$build_os%g
5181s%@AR@%$AR%g
50e1e10f 5182s%@STRIP@%$STRIP%g
50e1e10f 5183s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
a4bf69d9 5184s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
50e1e10f 5185s%@INSTALL_DATA@%$INSTALL_DATA%g
6c133523 5186s%@BUILD_CC@%$BUILD_CC%g
50e1e10f
TT
5187s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5188s%@SIZEOF_INT@%$SIZEOF_INT%g
5189s%@SIZEOF_LONG@%$SIZEOF_LONG%g
fc6d9d51 5190s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
fc6d9d51 5191s%@SOCKET_LIB@%$SOCKET_LIB%g
e6f2bda3 5192s%@LINUX_CMT@%$LINUX_CMT%g
a4b2d3ce 5193s%@root_prefix@%$root_prefix%g
b5ffeade
TT
5194s%@root_bindir@%$root_bindir%g
5195s%@root_sbindir@%$root_sbindir%g
5196s%@root_libdir@%$root_libdir%g
5197s%@root_sysconfdir@%$root_sysconfdir%g
fc6d9d51 5198s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
50e1e10f
TT
5199s%@SS_DIR@%$SS_DIR%g
5200s%@ET_DIR@%$ET_DIR%g
5201s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5202
5203CEOF
5204EOF
21c84b71
TT
5205
5206cat >> $CONFIG_STATUS <<\EOF
5207
5208# Split the substitutions into bite-sized pieces for seds with
5209# small command number limits, like on Digital OSF/1 and HP-UX.
5210ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5211ac_file=1 # Number of current file.
5212ac_beg=1 # First line for current file.
5213ac_end=$ac_max_sed_cmds # Line after last line for current file.
5214ac_more_lines=:
5215ac_sed_cmds=""
5216while $ac_more_lines; do
5217 if test $ac_beg -gt 1; then
5218 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5219 else
5220 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5221 fi
5222 if test ! -s conftest.s$ac_file; then
5223 ac_more_lines=false
5224 rm -f conftest.s$ac_file
5225 else
5226 if test -z "$ac_sed_cmds"; then
5227 ac_sed_cmds="sed -f conftest.s$ac_file"
5228 else
5229 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5230 fi
5231 ac_file=`expr $ac_file + 1`
5232 ac_beg=$ac_end
5233 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5234 fi
5235done
5236if test -z "$ac_sed_cmds"; then
5237 ac_sed_cmds=cat
5238fi
5239EOF
5240
50e1e10f
TT
5241cat >> $CONFIG_STATUS <<EOF
5242
94ba8c75 5243CONFIG_FILES=\${CONFIG_FILES-"$outlist"}
50e1e10f
TT
5244EOF
5245cat >> $CONFIG_STATUS <<\EOF
5246for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21c84b71 5247 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50e1e10f 5248 case "$ac_file" in
21c84b71 5249 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
50e1e10f
TT
5250 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5251 *) ac_file_in="${ac_file}.in" ;;
5252 esac
5253
21c84b71 5254 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
50e1e10f
TT
5255
5256 # Remove last slash and all that follows it. Not all systems have dirname.
5257 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5258 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5259 # The file is in a subdirectory.
5260 test ! -d "$ac_dir" && mkdir "$ac_dir"
5261 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5262 # A "../" for each directory in $ac_dir_suffix.
5263 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5264 else
5265 ac_dir_suffix= ac_dots=
5266 fi
5267
5268 case "$ac_given_srcdir" in
5269 .) srcdir=.
5270 if test -z "$ac_dots"; then top_srcdir=.
5271 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5272 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5273 *) # Relative path.
5274 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5275 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5276 esac
5277
5278 case "$ac_given_INSTALL" in
5279 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5280 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5281 esac
21c84b71 5282
50e1e10f
TT
5283 echo creating "$ac_file"
5284 rm -f "$ac_file"
5285 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5286 case "$ac_file" in
5287 *Makefile*) ac_comsub="1i\\
5288# $configure_input" ;;
5289 *) ac_comsub= ;;
5290 esac
21c84b71
TT
5291
5292 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
50e1e10f
TT
5293 sed -e "$ac_comsub
5294s%@configure_input@%$configure_input%g
5295s%@srcdir@%$srcdir%g
5296s%@top_srcdir@%$top_srcdir%g
5297s%@INSTALL@%$INSTALL%g
21c84b71 5298" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
50e1e10f 5299fi; done
21c84b71 5300rm -f conftest.s*
50e1e10f 5301
a64c9c13
TT
5302EOF
5303
5304cat >> $CONFIG_STATUS <<EOF
5305ac_sources="$nls_cv_header_libgt"
5306ac_dests="$nls_cv_header_intl"
5307EOF
5308
5309cat >> $CONFIG_STATUS <<\EOF
5310srcdir=$ac_given_srcdir
5311while test -n "$ac_sources"; do
5312 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5313 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5314
5315 echo "linking $srcdir/$ac_source to $ac_dest"
5316
5317 if test ! -r $srcdir/$ac_source; then
5318 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5319 fi
5320 rm -f $ac_dest
5321
5322 # Make relative symlinks.
5323 # Remove last slash and all that follows it. Not all systems have dirname.
5324 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5325 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5326 # The dest file is in a subdirectory.
5327 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5328 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5329 # A "../" for each directory in $ac_dest_dir_suffix.
5330 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5331 else
5332 ac_dest_dir_suffix= ac_dots=
5333 fi
5334
5335 case "$srcdir" in
5336 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5337 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5338 esac
5339
5340 # Make a symlink if possible; otherwise try a hard link.
5341 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5342 ln $srcdir/$ac_source $ac_dest; then :
5343 else
5344 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5345 fi
5346done
21c84b71
TT
5347EOF
5348cat >> $CONFIG_STATUS <<EOF
50e1e10f 5349
a64c9c13 5350
21c84b71
TT
5351EOF
5352cat >> $CONFIG_STATUS <<\EOF
a64c9c13
TT
5353case "$CONFIG_FILES" in *po/Makefile.in*)
5354 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5355 esac
50e1e10f
TT
5356
5357exit 0
5358EOF
5359chmod +x $CONFIG_STATUS
5360rm -fr confdefs* $ac_clean_files
5361test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5362