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