blob: a4b9f3223c182ae1ec1b9e08744957dce0f0e596 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003# Generated by Autoconf 2.52.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010# Avoid depending upon Character Ranges.
11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29fi
30
31# Name of the executable.
32as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36else
37 as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53else
54 as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
58as_executable_p="test -f"
59
60# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63else
64 as_unset=false
65fi
66
67# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS=" $as_nl"
82
83# CDPATH.
84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000096ac_default_prefix=/usr/local
Theodore Ts'o07a0db12003-07-05 14:50:24 -040097cross_compiling=no
98subdirs=
99MFLAGS= MAKEFLAGS=
100SHELL=${CONFIG_SHELL-/bin/sh}
101
102# Maximum number of lines to put in a shell here document.
103# This variable seems obsolete. It should probably be removed, and
104# only ac_max_sed_lines should be used.
105: ${ac_max_here_lines=38}
106
107ac_unique_file="version.h"
108# Factoring default headers for most tests.
109ac_includes_default="\
110#include <stdio.h>
111#if HAVE_SYS_TYPES_H
112# include <sys/types.h>
113#endif
114#if HAVE_SYS_STAT_H
115# include <sys/stat.h>
116#endif
117#if STDC_HEADERS
118# include <stdlib.h>
119# include <stddef.h>
120#else
121# if HAVE_STDLIB_H
122# include <stdlib.h>
123# endif
124#endif
125#if HAVE_STRING_H
126# if !STDC_HEADERS && HAVE_MEMORY_H
127# include <memory.h>
128# endif
129# include <string.h>
130#endif
131#if HAVE_STRINGS_H
132# include <strings.h>
133#endif
134#if HAVE_INTTYPES_H
135# include <inttypes.h>
136#else
137# if HAVE_STDINT_H
138# include <stdint.h>
139# endif
140#endif
141#if HAVE_UNISTD_H
142# include <unistd.h>
143#endif"
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000144
145# Initialize some variables set by options.
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400146ac_init_help=
147ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000148# The variables have the same names as the options, with
149# dashes changed to underlines.
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400150cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000151exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000152no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000153no_recursion=
154prefix=NONE
155program_prefix=NONE
156program_suffix=NONE
157program_transform_name=s,x,x,
158silent=
159site=
160srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000161verbose=
162x_includes=NONE
163x_libraries=NONE
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400164
165# Installation directory options.
166# These are left unexpanded so users can "make install exec_prefix=/foo"
167# and all the variables that are supposed to be based on exec_prefix
168# by default will actually change.
169# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000170bindir='${exec_prefix}/bin'
171sbindir='${exec_prefix}/sbin'
172libexecdir='${exec_prefix}/libexec'
173datadir='${prefix}/share'
174sysconfdir='${prefix}/etc'
175sharedstatedir='${prefix}/com'
176localstatedir='${prefix}/var'
177libdir='${exec_prefix}/lib'
178includedir='${prefix}/include'
179oldincludedir='/usr/include'
180infodir='${prefix}/info'
181mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000182
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400183# Identity of this package.
184PACKAGE_NAME=
185PACKAGE_TARNAME=
186PACKAGE_VERSION=
187PACKAGE_STRING=
188PACKAGE_BUGREPORT=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000189
190ac_prev=
191for ac_option
192do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
198 fi
199
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000201
202 # Accept the important Cygnus configure options, so we can diagnose typos.
203
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400204 case $ac_option in
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000205
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400209 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000210
211 -build | --build | --buil | --bui | --bu)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400212 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400214 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000215
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400221 cache_file=$ac_optarg ;;
222
223 --config-cache | -C)
224 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000225
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400230 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000231
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000232 -disable-* | --disable-*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000234 # Reject names that are not valid shell variable names.
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000240
241 -enable-* | --enable-*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000243 # Reject names that are not valid shell variable names.
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000250 *) ac_optarg=yes ;;
251 esac
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400252 eval "enable_$ac_feature='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000253
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400261 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000262
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
266
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000273
274 -host | --host | --hos | --ho)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400275 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000276 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400277 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000278
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400284 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000285
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400289 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000290
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400294 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000295
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400301 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000302
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400310 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000311
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400315 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000316
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
320
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
324
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
328
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400336 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000337
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400341 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000342
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400348 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000349
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400355 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000356
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400372 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000373
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
377
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400382 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000383
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400393 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000394
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400398 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000399
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400403 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000404
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400410 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000411
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000412 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400413 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400415 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000416
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
419
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000422
423 -with-* | --with-*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000425 # Reject names that are not valid shell variable names.
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000429 ac_package=`echo $ac_package| sed 's/-/_/g'`
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000432 *) ac_optarg=yes ;;
433 esac
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400434 eval "with_$ac_package='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000435
436 -without-* | --without-*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000438 # Reject names that are not valid shell variable names.
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000444
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
448
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400454 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000455
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400461 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000462
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000466 ;;
467
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
477
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000478 *)
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000484 ;;
485
486 esac
487done
488
489if test -n "$ac_prev"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000493fi
494
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400495# Be sure to have absolute paths.
496for ac_var in exec_prefix prefix
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000497do
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000503 esac
504done
505
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400506# Be sure to have absolute paths.
507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
509do
510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516done
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000517
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400518# There might be people who depend on the old broken behavior: `$host'
519# used to hold the argument of --host etc.
520build=$build_alias
521host=$host_alias
522target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000523
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400524# FIXME: should be removed in autoconf 3.0.
525if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
532 fi
533fi
534
535ac_tool_prefix=
536test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538test "$silent" = yes && exec 6>/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000539
540# Find the source files, if location was not specified.
541if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
544 ac_prog=$0
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
550 fi
551else
552 ac_srcdir_defaulted=no
553fi
554if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000558 else
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000561 fi
562fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564ac_env_build_alias_set=${build_alias+set}
565ac_env_build_alias_value=$build_alias
566ac_cv_env_build_alias_set=${build_alias+set}
567ac_cv_env_build_alias_value=$build_alias
568ac_env_host_alias_set=${host_alias+set}
569ac_env_host_alias_value=$host_alias
570ac_cv_env_host_alias_set=${host_alias+set}
571ac_cv_env_host_alias_value=$host_alias
572ac_env_target_alias_set=${target_alias+set}
573ac_env_target_alias_value=$target_alias
574ac_cv_env_target_alias_set=${target_alias+set}
575ac_cv_env_target_alias_value=$target_alias
576ac_env_CC_set=${CC+set}
577ac_env_CC_value=$CC
578ac_cv_env_CC_set=${CC+set}
579ac_cv_env_CC_value=$CC
580ac_env_CFLAGS_set=${CFLAGS+set}
581ac_env_CFLAGS_value=$CFLAGS
582ac_cv_env_CFLAGS_set=${CFLAGS+set}
583ac_cv_env_CFLAGS_value=$CFLAGS
584ac_env_LDFLAGS_set=${LDFLAGS+set}
585ac_env_LDFLAGS_value=$LDFLAGS
586ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587ac_cv_env_LDFLAGS_value=$LDFLAGS
588ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589ac_env_CPPFLAGS_value=$CPPFLAGS
590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592ac_env_CPP_set=${CPP+set}
593ac_env_CPP_value=$CPP
594ac_cv_env_CPP_set=${CPP+set}
595ac_cv_env_CPP_value=$CPP
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000596
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400597#
598# Report the --help message.
599#
600if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF
604\`configure' configures this package to adapt to many kinds of systems.
605
606Usage: $0 [OPTION]... [VAR=VALUE]...
607
608To assign environment variables (e.g., CC, CFLAGS...), specify them as
609VAR=VALUE. See below for descriptions of some of the useful variables.
610
611Defaults for the options are specified in brackets.
612
613Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
623
624EOF
625
626 cat <<EOF
627Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
632
633By default, \`make install' will install all the files in
634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636for instance \`--prefix=\$HOME'.
637
638For better control, use the options below.
639
640Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
653EOF
654
655 cat <<\EOF
656
657System types:
658 --build=BUILD configure for building on BUILD [guessed]
659 --host=HOST build programs to run on HOST [BUILD]
660EOF
661fi
662
663if test -n "$ac_init_help"; then
664
665 cat <<\EOF
666
667Optional Features:
668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
670 --enable-compression enable EXPERIMENTAL compression support
671 --enable-htree enable EXPERIMENTAL htree directory support
672 --enable-htree-clear clear htree because we don't trust e2fsck
673 --disable-evms don't build EVMS plugin
674 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)
675 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.2)
676 --enable-dll-shlibs select DLL libraries
677 --enable-elf-shlibs select ELF shared libraries
678 --enable-bsd-shlibs select BSD shared libraries
679 --enable-profile build profiling libraries
680 --enable-checker build checker libraries
681 --enable-jbd-debug enable journal debugging
682 --enable-blkid-debug enable blkid debugging
683 --enable-testio-debug enable the use of the test I/O manager for debugging
684 --disable-swapfs disable support of legacy byte-swapped filesystems
685 --disable-debugfs disable support of debugfs program
686 --disable-imager disable support of e2image program
687 --disable-resizer disable support of e2resize program
688 --enable-dynamic-e2fsck build e2fsck dynamically
689 --enable-fsck build fsck wrapper program
690 --enable-old-bitops Use old (non-standard but native) bitmask operations
691 --disable-rpath do not hardcode runtime library paths
692 --disable-nls do not use Native Language Support
693
694Optional Packages:
695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
697 --with-diet-libc Use diet libc
698 --with-cc=COMPILER select compiler to use
699 --with-linker=LINKER select linker to use
700 --with-ccopts=CCOPTS select compiler command line options
701 --with-ldopts=LDOPTS select linker command line options
702 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
703 --with-gnu-ld assume the C compiler uses GNU ld default=no
704 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
705 --without-libiconv-prefix don't search for libiconv in includedir and libdir
706 --with-included-gettext use the GNU gettext library included here
707 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
708 --without-libintl-prefix don't search for libintl in includedir and libdir
709
710Some influential environment variables:
711 CC C compiler command
712 CFLAGS C compiler flags
713 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
714 nonstandard directory <lib dir>
715 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
716 headers in a nonstandard directory <include dir>
717 CPP C preprocessor
718
719Use these variables to override the choices made by `configure' or to help
720it to find libraries and programs with nonstandard names/locations.
721
722EOF
723fi
724
725if test "$ac_init_help" = "recursive"; then
726 # If there are subdirs, report their specific --help.
727 ac_popdir=`pwd`
728 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
729 cd $ac_subdir
730 # A "../" for each directory in /$ac_subdir.
731 ac_dots=`echo $ac_subdir |
732 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
733
734 case $srcdir in
735 .) # No --srcdir option. We are building in place.
736 ac_sub_srcdir=$srcdir ;;
737 [\\/]* | ?:[\\/]* ) # Absolute path.
738 ac_sub_srcdir=$srcdir/$ac_subdir ;;
739 *) # Relative path.
740 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
741 esac
742
743 # Check for guested configure; otherwise get Cygnus style configure.
744 if test -f $ac_sub_srcdir/configure.gnu; then
745 echo
746 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
747 elif test -f $ac_sub_srcdir/configure; then
748 echo
749 $SHELL $ac_sub_srcdir/configure --help=recursive
750 elif test -f $ac_sub_srcdir/configure.ac ||
751 test -f $ac_sub_srcdir/configure.in; then
752 echo
753 $ac_configure --help
754 else
755 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
756 fi
757 cd $ac_popdir
758 done
759fi
760
761test -n "$ac_init_help" && exit 0
762if $ac_init_version; then
763 cat <<\EOF
764
765Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
766Free Software Foundation, Inc.
767This configure script is free software; the Free Software Foundation
768gives unlimited permission to copy, distribute and modify it.
769EOF
770 exit 0
771fi
772exec 5>config.log
773cat >&5 <<EOF
774This file contains any messages produced by compilers while
775running configure, to aid debugging if configure makes a mistake.
776
777It was created by $as_me, which was
778generated by GNU Autoconf 2.52. Invocation command line was
779
780 $ $0 $@
781
782EOF
783{
784cat <<_ASUNAME
785## ---------- ##
786## Platform. ##
787## ---------- ##
788
789hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
790uname -m = `(uname -m) 2>/dev/null || echo unknown`
791uname -r = `(uname -r) 2>/dev/null || echo unknown`
792uname -s = `(uname -s) 2>/dev/null || echo unknown`
793uname -v = `(uname -v) 2>/dev/null || echo unknown`
794
795/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
796/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
797
798/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
799/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
800/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
801hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
802/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
803/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
804/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
805
806PATH = $PATH
807
808_ASUNAME
809} >&5
810
811cat >&5 <<EOF
812## ------------ ##
813## Core tests. ##
814## ------------ ##
815
816EOF
817
818# Keep a trace of the command line.
819# Strip out --no-create and --no-recursion so they do not pile up.
820# Also quote any args containing shell meta-characters.
821ac_configure_args=
822ac_sep=
823for ac_arg
824do
825 case $ac_arg in
826 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
827 | --no-cr | --no-c) ;;
828 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
829 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
830 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
831 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
832 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
833 ac_sep=" " ;;
834 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
835 ac_sep=" " ;;
836 esac
837 # Get rid of the leading space.
838done
839
840# When interrupted or exit'd, cleanup temporary files, and complete
841# config.log. We remove comments because anyway the quotes in there
842# would cause problems or look ugly.
843trap 'exit_status=$?
844 # Save into config.log some information that might help in debugging.
845 echo >&5
846 echo "## ----------------- ##" >&5
847 echo "## Cache variables. ##" >&5
848 echo "## ----------------- ##" >&5
849 echo >&5
850 # The following way of writing the cache mishandles newlines in values,
851{
852 (set) 2>&1 |
853 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
854 *ac_space=\ *)
855 sed -n \
856 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
858 ;;
859 *)
860 sed -n \
861 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
862 ;;
863 esac;
864} >&5
865 sed "/^$/d" confdefs.h >conftest.log
866 if test -s conftest.log; then
867 echo >&5
868 echo "## ------------ ##" >&5
869 echo "## confdefs.h. ##" >&5
870 echo "## ------------ ##" >&5
871 echo >&5
872 cat conftest.log >&5
873 fi
874 (echo; echo) >&5
875 test "$ac_signal" != 0 &&
876 echo "$as_me: caught signal $ac_signal" >&5
877 echo "$as_me: exit $exit_status" >&5
878 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
879 exit $exit_status
880 ' 0
881for ac_signal in 1 2 13 15; do
882 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
883done
884ac_signal=0
885
886# confdefs.h avoids OS command line length limits that DEFS can exceed.
887rm -rf conftest* confdefs.h
888# AIX cpp loses on an empty file, so make sure it contains at least a newline.
889echo >confdefs.h
890
891# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000892# Prefer explicitly selected file to automatically selected ones.
893if test -z "$CONFIG_SITE"; then
894 if test "x$prefix" != xNONE; then
895 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
896 else
897 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
898 fi
899fi
900for ac_site_file in $CONFIG_SITE; do
901 if test -r "$ac_site_file"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400902 { echo "$as_me:902: loading site script $ac_site_file" >&5
903echo "$as_me: loading site script $ac_site_file" >&6;}
904 cat "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000905 . "$ac_site_file"
906 fi
907done
908
909if test -r "$cache_file"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400910 # Some versions of bash will fail to source /dev/null (special
911 # files actually), so we avoid doing that.
912 if test -f "$cache_file"; then
913 { echo "$as_me:913: loading cache $cache_file" >&5
914echo "$as_me: loading cache $cache_file" >&6;}
915 case $cache_file in
916 [\\/]* | ?:[\\/]* ) . $cache_file;;
917 *) . ./$cache_file;;
918 esac
919 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920else
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400921 { echo "$as_me:921: creating cache $cache_file" >&5
922echo "$as_me: creating cache $cache_file" >&6;}
923 >$cache_file
924fi
925
926# Check that the precious variables saved in the cache have kept the same
927# value.
928ac_cache_corrupted=false
929for ac_var in `(set) 2>&1 |
930 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
932 eval ac_new_set=\$ac_env_${ac_var}_set
933 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
934 eval ac_new_val="\$ac_env_${ac_var}_value"
935 case $ac_old_set,$ac_new_set in
936 set,)
937 { echo "$as_me:937: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
938echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
939 ac_cache_corrupted=: ;;
940 ,set)
941 { echo "$as_me:941: error: \`$ac_var' was not set in the previous run" >&5
942echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
943 ac_cache_corrupted=: ;;
944 ,);;
945 *)
946 if test "x$ac_old_val" != "x$ac_new_val"; then
947 { echo "$as_me:947: error: \`$ac_var' has changed since the previous run:" >&5
948echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
949 { echo "$as_me:949: former value: $ac_old_val" >&5
950echo "$as_me: former value: $ac_old_val" >&2;}
951 { echo "$as_me:951: current value: $ac_new_val" >&5
952echo "$as_me: current value: $ac_new_val" >&2;}
953 ac_cache_corrupted=:
954 fi;;
955 esac
956 # Pass precious variables to config.status. It doesn't matter if
957 # we pass some twice (in addition to the command line arguments).
958 if test "$ac_new_set" = set; then
959 case $ac_new_val in
960 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
961 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
962 ac_configure_args="$ac_configure_args '$ac_arg'"
963 ;;
964 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
965 ;;
966 esac
967 fi
968done
969if $ac_cache_corrupted; then
970 { echo "$as_me:970: error: changes in the environment can compromise the build" >&5
971echo "$as_me: error: changes in the environment can compromise the build" >&2;}
972 { { echo "$as_me:972: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
973echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
974 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000975fi
976
977ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000978ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
981ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000982
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400983case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
984 *c*,-n*) ECHO_N= ECHO_C='
985' ECHO_T=' ' ;;
986 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
987 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
988esac
989echo "#! $SHELL" >conftest.sh
990echo "exit 0" >>conftest.sh
991chmod +x conftest.sh
992if { (echo "$as_me:992: PATH=\".;.\"; conftest.sh") >&5
993 (PATH=".;."; conftest.sh) 2>&5
994 ac_status=$?
995 echo "$as_me:995: \$? = $ac_status" >&5
996 (exit $ac_status); }; then
997 ac_path_separator=';'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000998else
Theodore Ts'o07a0db12003-07-05 14:50:24 -0400999 ac_path_separator=:
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001000fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001001PATH_SEPARATOR="$ac_path_separator"
1002rm -f conftest.sh
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001003
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001004MCONFIG=./MCONFIG
1005
Theodore Ts'o74becf31997-04-26 14:37:06 +00001006BINARY_TYPE=bin
1007E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1008 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1009DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1010 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001011E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001012MONTH=`echo $DATE | awk -F- '{print $2}'`
1013YEAR=`echo $DATE | awk -F- '{print $3}'`
1014
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001015if expr $YEAR ">" 1900 > /dev/null ; then
1016 E2FSPROGS_YEAR=$YEAR
1017elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001018 E2FSPROGS_YEAR=19$YEAR
1019else
1020 E2FSPROGS_YEAR=20$YEAR
1021fi
1022
1023case $MONTH in
1024Jan) E2FSPROGS_MONTH="January" ;;
1025Feb) E2FSPROGS_MONTH="February" ;;
1026Mar) E2FSPROGS_MONTH="March" ;;
1027Apr) E2FSPROGS_MONTH="April" ;;
1028May) E2FSPROGS_MONTH="May" ;;
1029Jun) E2FSPROGS_MONTH="June" ;;
1030Jul) E2FSPROGS_MONTH="July" ;;
1031Aug) E2FSPROGS_MONTH="August" ;;
1032Sep) E2FSPROGS_MONTH="September" ;;
1033Oct) E2FSPROGS_MONTH="October" ;;
1034Nov) E2FSPROGS_MONTH="November" ;;
1035Dec) E2FSPROGS_MONTH="December" ;;
1036*) echo "Unknown month $MONTH??" ;;
1037esac
1038
1039unset DATE MONTH YEAR
1040echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1041echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1042
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001043ac_aux_dir=
1044for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1045 if test -f $ac_dir/install-sh; then
1046 ac_aux_dir=$ac_dir
1047 ac_install_sh="$ac_aux_dir/install-sh -c"
1048 break
1049 elif test -f $ac_dir/install.sh; then
1050 ac_aux_dir=$ac_dir
1051 ac_install_sh="$ac_aux_dir/install.sh -c"
1052 break
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001053 elif test -f $ac_dir/shtool; then
1054 ac_aux_dir=$ac_dir
1055 ac_install_sh="$ac_aux_dir/shtool install -c"
1056 break
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001057 fi
1058done
1059if test -z "$ac_aux_dir"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001060 { { echo "$as_me:1060: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1061echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1062 { (exit 1); exit 1; }; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001063fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001064ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1065ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1066ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001067
1068# Make sure we can run config.sub.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001069$ac_config_sub sun4 >/dev/null 2>&1 ||
1070 { { echo "$as_me:1070: error: cannot run $ac_config_sub" >&5
1071echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1072 { (exit 1); exit 1; }; }
1073
1074echo "$as_me:1074: checking build system type" >&5
1075echo $ECHO_N "checking build system type... $ECHO_C" >&6
1076if test "${ac_cv_build+set}" = set; then
1077 echo $ECHO_N "(cached) $ECHO_C" >&6
1078else
1079 ac_cv_build_alias=$build_alias
1080test -z "$ac_cv_build_alias" &&
1081 ac_cv_build_alias=`$ac_config_guess`
1082test -z "$ac_cv_build_alias" &&
1083 { { echo "$as_me:1083: error: cannot guess build type; you must specify one" >&5
1084echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1085 { (exit 1); exit 1; }; }
1086ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1087 { { echo "$as_me:1087: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1088echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1089 { (exit 1); exit 1; }; }
1090
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001091fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001092echo "$as_me:1092: result: $ac_cv_build" >&5
1093echo "${ECHO_T}$ac_cv_build" >&6
1094build=$ac_cv_build
1095build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1096build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1097build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001098
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001099echo "$as_me:1099: checking host system type" >&5
1100echo $ECHO_N "checking host system type... $ECHO_C" >&6
1101if test "${ac_cv_host+set}" = set; then
1102 echo $ECHO_N "(cached) $ECHO_C" >&6
1103else
1104 ac_cv_host_alias=$host_alias
1105test -z "$ac_cv_host_alias" &&
1106 ac_cv_host_alias=$ac_cv_build_alias
1107ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1108 { { echo "$as_me:1108: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1109echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1110 { (exit 1); exit 1; }; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001111
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001112fi
1113echo "$as_me:1113: result: $ac_cv_host" >&5
1114echo "${ECHO_T}$ac_cv_host" >&6
1115host=$ac_cv_host
1116host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1117host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1118host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001119
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001120EVMS_CMT=
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001121
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001122# Check whether --with-diet-libc or --without-diet-libc was given.
1123if test "${with_diet_libc+set}" = set; then
1124 withval="$with_diet_libc"
1125 CC="diet cc -nostdinc"
1126EVMS_CMT="#"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001127echo "$as_me:1127: result: CC=$CC" >&5
1128echo "${ECHO_T}CC=$CC" >&6
1129fi;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001130# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001131if test "${with_cc+set}" = set; then
1132 withval="$with_cc"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001133 echo "$as_me:1133: result: CC=$withval" >&5
1134echo "${ECHO_T}CC=$withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001135CC=$withval
1136else
1137 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001138echo "$as_me:1138: result: CC defaults to $CC" >&5
1139echo "${ECHO_T}CC defaults to $CC" >&6
1140fi; export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00001141
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001142ac_ext=c
1143ac_cpp='$CPP $CPPFLAGS'
1144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1146ac_compiler_gnu=$ac_cv_c_compiler_gnu
1147if test -n "$ac_tool_prefix"; then
1148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1149set dummy ${ac_tool_prefix}gcc; ac_word=$2
1150echo "$as_me:1150: checking for $ac_word" >&5
1151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1152if test "${ac_cv_prog_CC+set}" = set; then
1153 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001154else
1155 if test -n "$CC"; then
1156 ac_cv_prog_CC="$CC" # Let the user override the test.
1157else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001158 ac_save_IFS=$IFS; IFS=$ac_path_separator
1159ac_dummy="$PATH"
1160for ac_dir in $ac_dummy; do
1161 IFS=$ac_save_IFS
1162 test -z "$ac_dir" && ac_dir=.
1163 $as_executable_p "$ac_dir/$ac_word" || continue
1164ac_cv_prog_CC="${ac_tool_prefix}gcc"
1165echo "$as_me:1165: found $ac_dir/$ac_word" >&5
1166break
1167done
1168
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001169fi
1170fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001171CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001172if test -n "$CC"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001173 echo "$as_me:1173: result: $CC" >&5
1174echo "${ECHO_T}$CC" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001175else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001176 echo "$as_me:1176: result: no" >&5
1177echo "${ECHO_T}no" >&6
1178fi
1179
1180fi
1181if test -z "$ac_cv_prog_CC"; then
1182 ac_ct_CC=$CC
1183 # Extract the first word of "gcc", so it can be a program name with args.
1184set dummy gcc; ac_word=$2
1185echo "$as_me:1185: checking for $ac_word" >&5
1186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1188 echo $ECHO_N "(cached) $ECHO_C" >&6
1189else
1190 if test -n "$ac_ct_CC"; then
1191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1192else
1193 ac_save_IFS=$IFS; IFS=$ac_path_separator
1194ac_dummy="$PATH"
1195for ac_dir in $ac_dummy; do
1196 IFS=$ac_save_IFS
1197 test -z "$ac_dir" && ac_dir=.
1198 $as_executable_p "$ac_dir/$ac_word" || continue
1199ac_cv_prog_ac_ct_CC="gcc"
1200echo "$as_me:1200: found $ac_dir/$ac_word" >&5
1201break
1202done
1203
1204fi
1205fi
1206ac_ct_CC=$ac_cv_prog_ac_ct_CC
1207if test -n "$ac_ct_CC"; then
1208 echo "$as_me:1208: result: $ac_ct_CC" >&5
1209echo "${ECHO_T}$ac_ct_CC" >&6
1210else
1211 echo "$as_me:1211: result: no" >&5
1212echo "${ECHO_T}no" >&6
1213fi
1214
1215 CC=$ac_ct_CC
1216else
1217 CC="$ac_cv_prog_CC"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001218fi
1219
1220if test -z "$CC"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001221 if test -n "$ac_tool_prefix"; then
1222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1223set dummy ${ac_tool_prefix}cc; ac_word=$2
1224echo "$as_me:1224: checking for $ac_word" >&5
1225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1226if test "${ac_cv_prog_CC+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001228else
1229 if test -n "$CC"; then
1230 ac_cv_prog_CC="$CC" # Let the user override the test.
1231else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001232 ac_save_IFS=$IFS; IFS=$ac_path_separator
1233ac_dummy="$PATH"
1234for ac_dir in $ac_dummy; do
1235 IFS=$ac_save_IFS
1236 test -z "$ac_dir" && ac_dir=.
1237 $as_executable_p "$ac_dir/$ac_word" || continue
1238ac_cv_prog_CC="${ac_tool_prefix}cc"
1239echo "$as_me:1239: found $ac_dir/$ac_word" >&5
1240break
1241done
1242
1243fi
1244fi
1245CC=$ac_cv_prog_CC
1246if test -n "$CC"; then
1247 echo "$as_me:1247: result: $CC" >&5
1248echo "${ECHO_T}$CC" >&6
1249else
1250 echo "$as_me:1250: result: no" >&5
1251echo "${ECHO_T}no" >&6
1252fi
1253
1254fi
1255if test -z "$ac_cv_prog_CC"; then
1256 ac_ct_CC=$CC
1257 # Extract the first word of "cc", so it can be a program name with args.
1258set dummy cc; ac_word=$2
1259echo "$as_me:1259: checking for $ac_word" >&5
1260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1263else
1264 if test -n "$ac_ct_CC"; then
1265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1266else
1267 ac_save_IFS=$IFS; IFS=$ac_path_separator
1268ac_dummy="$PATH"
1269for ac_dir in $ac_dummy; do
1270 IFS=$ac_save_IFS
1271 test -z "$ac_dir" && ac_dir=.
1272 $as_executable_p "$ac_dir/$ac_word" || continue
1273ac_cv_prog_ac_ct_CC="cc"
1274echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1275break
1276done
1277
1278fi
1279fi
1280ac_ct_CC=$ac_cv_prog_ac_ct_CC
1281if test -n "$ac_ct_CC"; then
1282 echo "$as_me:1282: result: $ac_ct_CC" >&5
1283echo "${ECHO_T}$ac_ct_CC" >&6
1284else
1285 echo "$as_me:1285: result: no" >&5
1286echo "${ECHO_T}no" >&6
1287fi
1288
1289 CC=$ac_ct_CC
1290else
1291 CC="$ac_cv_prog_CC"
1292fi
1293
1294fi
1295if test -z "$CC"; then
1296 # Extract the first word of "cc", so it can be a program name with args.
1297set dummy cc; ac_word=$2
1298echo "$as_me:1298: checking for $ac_word" >&5
1299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1300if test "${ac_cv_prog_CC+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1302else
1303 if test -n "$CC"; then
1304 ac_cv_prog_CC="$CC" # Let the user override the test.
1305else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001306 ac_prog_rejected=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001307 ac_save_IFS=$IFS; IFS=$ac_path_separator
1308ac_dummy="$PATH"
1309for ac_dir in $ac_dummy; do
1310 IFS=$ac_save_IFS
1311 test -z "$ac_dir" && ac_dir=.
1312 $as_executable_p "$ac_dir/$ac_word" || continue
1313if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1314 ac_prog_rejected=yes
1315 continue
1316fi
1317ac_cv_prog_CC="cc"
1318echo "$as_me:1318: found $ac_dir/$ac_word" >&5
1319break
1320done
1321
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001322if test $ac_prog_rejected = yes; then
1323 # We found a bogon in the path, so make sure we never use it.
1324 set dummy $ac_cv_prog_CC
1325 shift
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001326 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001327 # We chose a different compiler from the bogus one.
1328 # However, it has the same basename, so the bogon will be chosen
1329 # first if we set CC to just the basename; use the full file name.
1330 shift
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001331 set dummy "$ac_dir/$ac_word" ${1+"$@"}
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001332 shift
1333 ac_cv_prog_CC="$@"
1334 fi
1335fi
1336fi
1337fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001338CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001339if test -n "$CC"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001340 echo "$as_me:1340: result: $CC" >&5
1341echo "${ECHO_T}$CC" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001342else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001343 echo "$as_me:1343: result: no" >&5
1344echo "${ECHO_T}no" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001345fi
1346
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001347fi
1348if test -z "$CC"; then
1349 if test -n "$ac_tool_prefix"; then
1350 for ac_prog in cl
1351 do
1352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1353set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1354echo "$as_me:1354: checking for $ac_word" >&5
1355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1356if test "${ac_cv_prog_CC+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001358else
1359 if test -n "$CC"; then
1360 ac_cv_prog_CC="$CC" # Let the user override the test.
1361else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001362 ac_save_IFS=$IFS; IFS=$ac_path_separator
1363ac_dummy="$PATH"
1364for ac_dir in $ac_dummy; do
1365 IFS=$ac_save_IFS
1366 test -z "$ac_dir" && ac_dir=.
1367 $as_executable_p "$ac_dir/$ac_word" || continue
1368ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1369echo "$as_me:1369: found $ac_dir/$ac_word" >&5
1370break
1371done
1372
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001373fi
1374fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001375CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001376if test -n "$CC"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001377 echo "$as_me:1377: result: $CC" >&5
1378echo "${ECHO_T}$CC" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001379else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001380 echo "$as_me:1380: result: no" >&5
1381echo "${ECHO_T}no" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001382fi
1383
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001384 test -n "$CC" && break
1385 done
1386fi
1387if test -z "$CC"; then
1388 ac_ct_CC=$CC
1389 for ac_prog in cl
1390do
1391 # Extract the first word of "$ac_prog", so it can be a program name with args.
1392set dummy $ac_prog; ac_word=$2
1393echo "$as_me:1393: checking for $ac_word" >&5
1394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1397else
1398 if test -n "$ac_ct_CC"; then
1399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1400else
1401 ac_save_IFS=$IFS; IFS=$ac_path_separator
1402ac_dummy="$PATH"
1403for ac_dir in $ac_dummy; do
1404 IFS=$ac_save_IFS
1405 test -z "$ac_dir" && ac_dir=.
1406 $as_executable_p "$ac_dir/$ac_word" || continue
1407ac_cv_prog_ac_ct_CC="$ac_prog"
1408echo "$as_me:1408: found $ac_dir/$ac_word" >&5
1409break
1410done
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001411
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001412fi
1413fi
1414ac_ct_CC=$ac_cv_prog_ac_ct_CC
1415if test -n "$ac_ct_CC"; then
1416 echo "$as_me:1416: result: $ac_ct_CC" >&5
1417echo "${ECHO_T}$ac_ct_CC" >&6
1418else
1419 echo "$as_me:1419: result: no" >&5
1420echo "${ECHO_T}no" >&6
1421fi
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001422
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001423 test -n "$ac_ct_CC" && break
1424done
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001425
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001426 CC=$ac_ct_CC
1427fi
1428
1429fi
1430
1431test -z "$CC" && { { echo "$as_me:1431: error: no acceptable cc found in \$PATH" >&5
1432echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1433 { (exit 1); exit 1; }; }
1434
1435# Provide some information about the compiler.
1436echo "$as_me:1436:" \
1437 "checking for C compiler version" >&5
1438ac_compiler=`set X $ac_compile; echo $2`
1439{ (eval echo "$as_me:1439: \"$ac_compiler --version </dev/null >&5\"") >&5
1440 (eval $ac_compiler --version </dev/null >&5) 2>&5
1441 ac_status=$?
1442 echo "$as_me:1442: \$? = $ac_status" >&5
1443 (exit $ac_status); }
1444{ (eval echo "$as_me:1444: \"$ac_compiler -v </dev/null >&5\"") >&5
1445 (eval $ac_compiler -v </dev/null >&5) 2>&5
1446 ac_status=$?
1447 echo "$as_me:1447: \$? = $ac_status" >&5
1448 (exit $ac_status); }
1449{ (eval echo "$as_me:1449: \"$ac_compiler -V </dev/null >&5\"") >&5
1450 (eval $ac_compiler -V </dev/null >&5) 2>&5
1451 ac_status=$?
1452 echo "$as_me:1452: \$? = $ac_status" >&5
1453 (exit $ac_status); }
1454
1455cat >conftest.$ac_ext <<_ACEOF
1456#line 1456 "configure"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001457#include "confdefs.h"
1458
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001459int
1460main ()
1461{
1462
1463 ;
1464 return 0;
1465}
1466_ACEOF
1467ac_clean_files_save=$ac_clean_files
1468ac_clean_files="$ac_clean_files a.out a.exe"
1469# Try to create an executable without -o first, disregard a.out.
1470# It will help us diagnose broken compilers, and finding out an intuition
1471# of exeext.
1472echo "$as_me:1472: checking for C compiler default output" >&5
1473echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1474ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1475if { (eval echo "$as_me:1475: \"$ac_link_default\"") >&5
1476 (eval $ac_link_default) 2>&5
1477 ac_status=$?
1478 echo "$as_me:1478: \$? = $ac_status" >&5
1479 (exit $ac_status); }; then
1480 # Find the output, starting from the most likely. This scheme is
1481# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1482# resort.
1483for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1484 ls a.out conftest 2>/dev/null;
1485 ls a.* conftest.* 2>/dev/null`; do
1486 case $ac_file in
1487 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1488 a.out ) # We found the default executable, but exeext='' is most
1489 # certainly right.
1490 break;;
1491 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1492 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1493 export ac_cv_exeext
1494 break;;
1495 * ) break;;
1496 esac
1497done
1498else
1499 echo "$as_me: failed program was:" >&5
1500cat conftest.$ac_ext >&5
1501{ { echo "$as_me:1501: error: C compiler cannot create executables" >&5
1502echo "$as_me: error: C compiler cannot create executables" >&2;}
1503 { (exit 77); exit 77; }; }
1504fi
1505
1506ac_exeext=$ac_cv_exeext
1507echo "$as_me:1507: result: $ac_file" >&5
1508echo "${ECHO_T}$ac_file" >&6
1509
1510# Check the compiler produces executables we can run. If not, either
1511# the compiler is broken, or we cross compile.
1512echo "$as_me:1512: checking whether the C compiler works" >&5
1513echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1514# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1515# If not cross compiling, check that we can run a simple program.
1516if test "$cross_compiling" != yes; then
1517 if { ac_try='./$ac_file'
1518 { (eval echo "$as_me:1518: \"$ac_try\"") >&5
1519 (eval $ac_try) 2>&5
1520 ac_status=$?
1521 echo "$as_me:1521: \$? = $ac_status" >&5
1522 (exit $ac_status); }; }; then
1523 cross_compiling=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001524 else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001525 if test "$cross_compiling" = maybe; then
1526 cross_compiling=yes
1527 else
1528 { { echo "$as_me:1528: error: cannot run C compiled programs.
1529If you meant to cross compile, use \`--host'." >&5
1530echo "$as_me: error: cannot run C compiled programs.
1531If you meant to cross compile, use \`--host'." >&2;}
1532 { (exit 1); exit 1; }; }
1533 fi
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001534 fi
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001535fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001536echo "$as_me:1536: result: yes" >&5
1537echo "${ECHO_T}yes" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001538
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001539rm -f a.out a.exe conftest$ac_cv_exeext
1540ac_clean_files=$ac_clean_files_save
1541# Check the compiler produces executables we can run. If not, either
1542# the compiler is broken, or we cross compile.
1543echo "$as_me:1543: checking whether we are cross compiling" >&5
1544echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1545echo "$as_me:1545: result: $cross_compiling" >&5
1546echo "${ECHO_T}$cross_compiling" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001547
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001548echo "$as_me:1548: checking for executable suffix" >&5
1549echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1550if { (eval echo "$as_me:1550: \"$ac_link\"") >&5
1551 (eval $ac_link) 2>&5
1552 ac_status=$?
1553 echo "$as_me:1553: \$? = $ac_status" >&5
1554 (exit $ac_status); }; then
1555 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1556# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1557# work properly (i.e., refer to `conftest.exe'), while it won't with
1558# `rm'.
1559for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1560 case $ac_file in
1561 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1562 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1563 export ac_cv_exeext
1564 break;;
1565 * ) break;;
1566 esac
1567done
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001568else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001569 { { echo "$as_me:1569: error: cannot compute EXEEXT: cannot compile and link" >&5
1570echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1571 { (exit 1); exit 1; }; }
1572fi
1573
1574rm -f conftest$ac_cv_exeext
1575echo "$as_me:1575: result: $ac_cv_exeext" >&5
1576echo "${ECHO_T}$ac_cv_exeext" >&6
1577
1578rm -f conftest.$ac_ext
1579EXEEXT=$ac_cv_exeext
1580ac_exeext=$EXEEXT
1581echo "$as_me:1581: checking for object suffix" >&5
1582echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1583if test "${ac_cv_objext+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 cat >conftest.$ac_ext <<_ACEOF
1587#line 1587 "configure"
1588#include "confdefs.h"
1589
1590int
1591main ()
1592{
1593
1594 ;
1595 return 0;
1596}
1597_ACEOF
1598rm -f conftest.o conftest.obj
1599if { (eval echo "$as_me:1599: \"$ac_compile\"") >&5
1600 (eval $ac_compile) 2>&5
1601 ac_status=$?
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); }; then
1604 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1605 case $ac_file in
1606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1608 break;;
1609 esac
1610done
1611else
1612 echo "$as_me: failed program was:" >&5
1613cat conftest.$ac_ext >&5
1614{ { echo "$as_me:1614: error: cannot compute OBJEXT: cannot compile" >&5
1615echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1616 { (exit 1); exit 1; }; }
1617fi
1618
1619rm -f conftest.$ac_cv_objext conftest.$ac_ext
1620fi
1621echo "$as_me:1621: result: $ac_cv_objext" >&5
1622echo "${ECHO_T}$ac_cv_objext" >&6
1623OBJEXT=$ac_cv_objext
1624ac_objext=$OBJEXT
1625echo "$as_me:1625: checking whether we are using the GNU C compiler" >&5
1626echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1627if test "${ac_cv_c_compiler_gnu+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 cat >conftest.$ac_ext <<_ACEOF
1631#line 1631 "configure"
1632#include "confdefs.h"
1633
1634int
1635main ()
1636{
1637#ifndef __GNUC__
1638 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001639#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001640
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001641 ;
1642 return 0;
1643}
1644_ACEOF
1645rm -f conftest.$ac_objext
1646if { (eval echo "$as_me:1646: \"$ac_compile\"") >&5
1647 (eval $ac_compile) 2>&5
1648 ac_status=$?
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); } &&
1651 { ac_try='test -s conftest.$ac_objext'
1652 { (eval echo "$as_me:1652: \"$ac_try\"") >&5
1653 (eval $ac_try) 2>&5
1654 ac_status=$?
1655 echo "$as_me:1655: \$? = $ac_status" >&5
1656 (exit $ac_status); }; }; then
1657 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001658else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001659 echo "$as_me: failed program was:" >&5
1660cat conftest.$ac_ext >&5
1661ac_compiler_gnu=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001662fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001663rm -f conftest.$ac_objext conftest.$ac_ext
1664ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001665
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001666fi
1667echo "$as_me:1667: result: $ac_cv_c_compiler_gnu" >&5
1668echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1669GCC=`test $ac_compiler_gnu = yes && echo yes`
1670ac_test_CFLAGS=${CFLAGS+set}
1671ac_save_CFLAGS=$CFLAGS
1672CFLAGS="-g"
1673echo "$as_me:1673: checking whether $CC accepts -g" >&5
1674echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1675if test "${ac_cv_prog_cc_g+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001677else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001678 cat >conftest.$ac_ext <<_ACEOF
1679#line 1679 "configure"
1680#include "confdefs.h"
1681
1682int
1683main ()
1684{
1685
1686 ;
1687 return 0;
1688}
1689_ACEOF
1690rm -f conftest.$ac_objext
1691if { (eval echo "$as_me:1691: \"$ac_compile\"") >&5
1692 (eval $ac_compile) 2>&5
1693 ac_status=$?
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); } &&
1696 { ac_try='test -s conftest.$ac_objext'
1697 { (eval echo "$as_me:1697: \"$ac_try\"") >&5
1698 (eval $ac_try) 2>&5
1699 ac_status=$?
1700 echo "$as_me:1700: \$? = $ac_status" >&5
1701 (exit $ac_status); }; }; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001702 ac_cv_prog_cc_g=yes
1703else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001704 echo "$as_me: failed program was:" >&5
1705cat conftest.$ac_ext >&5
1706ac_cv_prog_cc_g=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001707fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001708rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001709fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001710echo "$as_me:1710: result: $ac_cv_prog_cc_g" >&5
1711echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001712if test "$ac_test_CFLAGS" = set; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001713 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001714elif test $ac_cv_prog_cc_g = yes; then
1715 if test "$GCC" = yes; then
1716 CFLAGS="-g -O2"
1717 else
1718 CFLAGS="-g"
1719 fi
1720else
1721 if test "$GCC" = yes; then
1722 CFLAGS="-O2"
1723 else
1724 CFLAGS=
1725 fi
1726fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001727# Some people use a C++ compiler to compile C. Since we use `exit',
1728# in C++ we need to declare it. In case someone uses the same compiler
1729# for both compiling C and C++ we need to have the C++ compiler decide
1730# the declaration of exit, since it's the most demanding environment.
1731cat >conftest.$ac_ext <<_ACEOF
1732#ifndef __cplusplus
1733 choke me
1734#endif
1735_ACEOF
1736rm -f conftest.$ac_objext
1737if { (eval echo "$as_me:1737: \"$ac_compile\"") >&5
1738 (eval $ac_compile) 2>&5
1739 ac_status=$?
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); } &&
1742 { ac_try='test -s conftest.$ac_objext'
1743 { (eval echo "$as_me:1743: \"$ac_try\"") >&5
1744 (eval $ac_try) 2>&5
1745 ac_status=$?
1746 echo "$as_me:1746: \$? = $ac_status" >&5
1747 (exit $ac_status); }; }; then
1748 for ac_declaration in \
1749 ''\
1750 '#include <stdlib.h>' \
1751 'extern "C" void std::exit (int) throw (); using std::exit;' \
1752 'extern "C" void std::exit (int); using std::exit;' \
1753 'extern "C" void exit (int) throw ();' \
1754 'extern "C" void exit (int);' \
1755 'void exit (int);'
1756do
1757 cat >conftest.$ac_ext <<_ACEOF
1758#line 1758 "configure"
1759#include "confdefs.h"
1760#include <stdlib.h>
1761$ac_declaration
1762int
1763main ()
1764{
1765exit (42);
1766 ;
1767 return 0;
1768}
1769_ACEOF
1770rm -f conftest.$ac_objext
1771if { (eval echo "$as_me:1771: \"$ac_compile\"") >&5
1772 (eval $ac_compile) 2>&5
1773 ac_status=$?
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); } &&
1776 { ac_try='test -s conftest.$ac_objext'
1777 { (eval echo "$as_me:1777: \"$ac_try\"") >&5
1778 (eval $ac_try) 2>&5
1779 ac_status=$?
1780 echo "$as_me:1780: \$? = $ac_status" >&5
1781 (exit $ac_status); }; }; then
1782 :
1783else
1784 echo "$as_me: failed program was:" >&5
1785cat conftest.$ac_ext >&5
1786continue
1787fi
1788rm -f conftest.$ac_objext conftest.$ac_ext
1789 cat >conftest.$ac_ext <<_ACEOF
1790#line 1790 "configure"
1791#include "confdefs.h"
1792$ac_declaration
1793int
1794main ()
1795{
1796exit (42);
1797 ;
1798 return 0;
1799}
1800_ACEOF
1801rm -f conftest.$ac_objext
1802if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5
1803 (eval $ac_compile) 2>&5
1804 ac_status=$?
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); } &&
1807 { ac_try='test -s conftest.$ac_objext'
1808 { (eval echo "$as_me:1808: \"$ac_try\"") >&5
1809 (eval $ac_try) 2>&5
1810 ac_status=$?
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); }; }; then
1813 break
1814else
1815 echo "$as_me: failed program was:" >&5
1816cat conftest.$ac_ext >&5
1817fi
1818rm -f conftest.$ac_objext conftest.$ac_ext
1819done
1820rm -f conftest*
1821if test -n "$ac_declaration"; then
1822 echo '#ifdef __cplusplus' >>confdefs.h
1823 echo $ac_declaration >>confdefs.h
1824 echo '#endif' >>confdefs.h
1825fi
1826
1827else
1828 echo "$as_me: failed program was:" >&5
1829cat conftest.$ac_ext >&5
1830fi
1831rm -f conftest.$ac_objext conftest.$ac_ext
1832ac_ext=c
1833ac_cpp='$CPP $CPPFLAGS'
1834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1836ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001837
Theodore Ts'o74becf31997-04-26 14:37:06 +00001838# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001839if test "${with_linker+set}" = set; then
1840 withval="$with_linker"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001841 echo "$as_me:1841: result: LD=$withval" >&5
1842echo "${ECHO_T}LD=$withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001843LD=$withval
1844else
1845 if test -z "$LD" ; then LD=$CC; fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001846echo "$as_me:1846: result: LD defaults to $LD" >&5
1847echo "${ECHO_T}LD defaults to $LD" >&6
1848fi; export LD
Theodore Ts'o74becf31997-04-26 14:37:06 +00001849
1850# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001851if test "${with_ccopts+set}" = set; then
1852 withval="$with_ccopts"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001853 echo "$as_me:1853: result: CCOPTS is $withval" >&5
1854echo "${ECHO_T}CCOPTS is $withval" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00001855CFLAGS=$withval
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001856fi;
1857ac_ext=c
1858ac_cpp='$CPP $CPPFLAGS'
1859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862echo "$as_me:1862: checking how to run the C preprocessor" >&5
1863echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001864# On Suns, sometimes $CPP names a directory.
1865if test -n "$CPP" && test -d "$CPP"; then
1866 CPP=
1867fi
1868if test -z "$CPP"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001869 if test "${ac_cv_prog_CPP+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001871else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001872 # Double quotes because CPP needs to be expanded
1873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1874 do
1875 ac_preproc_ok=false
1876for ac_c_preproc_warn_flag in '' yes
1877do
1878 # Use a header file that comes with gcc, so configuring glibc
1879 # with a fresh cross-compiler works.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001880 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001881 # not just through cpp. "Syntax error" is here to catch this case.
1882 cat >conftest.$ac_ext <<_ACEOF
1883#line 1883 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001884#include "confdefs.h"
1885#include <assert.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001886 Syntax error
1887_ACEOF
1888if { (eval echo "$as_me:1888: \"$ac_cpp conftest.$ac_ext\"") >&5
1889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1890 ac_status=$?
1891 egrep -v '^ *\+' conftest.er1 >conftest.err
1892 rm -f conftest.er1
1893 cat conftest.err >&5
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); } >/dev/null; then
1896 if test -s conftest.err; then
1897 ac_cpp_err=$ac_c_preproc_warn_flag
1898 else
1899 ac_cpp_err=
1900 fi
1901else
1902 ac_cpp_err=yes
1903fi
1904if test -z "$ac_cpp_err"; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001905 :
1906else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001907 echo "$as_me: failed program was:" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001908 cat conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001909 # Broken: fails on valid input.
1910continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001911fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001912rm -f conftest.err conftest.$ac_ext
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001913
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001914 # OK, works on sane cases. Now check whether non-existent headers
1915 # can be detected and how.
1916 cat >conftest.$ac_ext <<_ACEOF
1917#line 1917 "configure"
1918#include "confdefs.h"
1919#include <ac_nonexistent.h>
1920_ACEOF
1921if { (eval echo "$as_me:1921: \"$ac_cpp conftest.$ac_ext\"") >&5
1922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1923 ac_status=$?
1924 egrep -v '^ *\+' conftest.er1 >conftest.err
1925 rm -f conftest.er1
1926 cat conftest.err >&5
1927 echo "$as_me:1927: \$? = $ac_status" >&5
1928 (exit $ac_status); } >/dev/null; then
1929 if test -s conftest.err; then
1930 ac_cpp_err=$ac_c_preproc_warn_flag
1931 else
1932 ac_cpp_err=
1933 fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +00001934else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001935 ac_cpp_err=yes
1936fi
1937if test -z "$ac_cpp_err"; then
1938 # Broken: success on invalid input.
1939continue
1940else
1941 echo "$as_me: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1943 # Passes both tests.
1944ac_preproc_ok=:
1945break
1946fi
1947rm -f conftest.err conftest.$ac_ext
1948
1949done
1950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1951rm -f conftest.err conftest.$ac_ext
1952if $ac_preproc_ok; then
1953 break
1954fi
1955
1956 done
1957 ac_cv_prog_CPP=$CPP
1958
1959fi
1960 CPP=$ac_cv_prog_CPP
1961else
1962 ac_cv_prog_CPP=$CPP
1963fi
1964echo "$as_me:1964: result: $CPP" >&5
1965echo "${ECHO_T}$CPP" >&6
1966ac_preproc_ok=false
1967for ac_c_preproc_warn_flag in '' yes
1968do
1969 # Use a header file that comes with gcc, so configuring glibc
1970 # with a fresh cross-compiler works.
1971 # On the NeXT, cc -E runs the code through the compiler's parser,
1972 # not just through cpp. "Syntax error" is here to catch this case.
1973 cat >conftest.$ac_ext <<_ACEOF
1974#line 1974 "configure"
1975#include "confdefs.h"
1976#include <assert.h>
1977 Syntax error
1978_ACEOF
1979if { (eval echo "$as_me:1979: \"$ac_cpp conftest.$ac_ext\"") >&5
1980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1981 ac_status=$?
1982 egrep -v '^ *\+' conftest.er1 >conftest.err
1983 rm -f conftest.er1
1984 cat conftest.err >&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); } >/dev/null; then
1987 if test -s conftest.err; then
1988 ac_cpp_err=$ac_c_preproc_warn_flag
1989 else
1990 ac_cpp_err=
1991 fi
1992else
1993 ac_cpp_err=yes
1994fi
1995if test -z "$ac_cpp_err"; then
1996 :
1997else
1998 echo "$as_me: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2000 # Broken: fails on valid input.
2001continue
2002fi
2003rm -f conftest.err conftest.$ac_ext
2004
2005 # OK, works on sane cases. Now check whether non-existent headers
2006 # can be detected and how.
2007 cat >conftest.$ac_ext <<_ACEOF
2008#line 2008 "configure"
2009#include "confdefs.h"
2010#include <ac_nonexistent.h>
2011_ACEOF
2012if { (eval echo "$as_me:2012: \"$ac_cpp conftest.$ac_ext\"") >&5
2013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2014 ac_status=$?
2015 egrep -v '^ *\+' conftest.er1 >conftest.err
2016 rm -f conftest.er1
2017 cat conftest.err >&5
2018 echo "$as_me:2018: \$? = $ac_status" >&5
2019 (exit $ac_status); } >/dev/null; then
2020 if test -s conftest.err; then
2021 ac_cpp_err=$ac_c_preproc_warn_flag
2022 else
2023 ac_cpp_err=
2024 fi
2025else
2026 ac_cpp_err=yes
2027fi
2028if test -z "$ac_cpp_err"; then
2029 # Broken: success on invalid input.
2030continue
2031else
2032 echo "$as_me: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 # Passes both tests.
2035ac_preproc_ok=:
2036break
2037fi
2038rm -f conftest.err conftest.$ac_ext
2039
2040done
2041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2042rm -f conftest.err conftest.$ac_ext
2043if $ac_preproc_ok; then
2044 :
2045else
2046 { { echo "$as_me:2046: error: C preprocessor \"$CPP\" fails sanity check" >&5
2047echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2048 { (exit 1); exit 1; }; }
2049fi
2050
2051ac_ext=c
2052ac_cpp='$CPP $CPPFLAGS'
2053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055ac_compiler_gnu=$ac_cv_c_compiler_gnu
2056
2057echo "$as_me:2057: checking for linux/fs.h" >&5
2058echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2059if test "${ac_cv_header_linux_fs_h+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062 cat >conftest.$ac_ext <<_ACEOF
2063#line 2063 "configure"
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002064#include "confdefs.h"
2065#include <linux/fs.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002066_ACEOF
2067if { (eval echo "$as_me:2067: \"$ac_cpp conftest.$ac_ext\"") >&5
2068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2069 ac_status=$?
2070 egrep -v '^ *\+' conftest.er1 >conftest.err
2071 rm -f conftest.er1
2072 cat conftest.err >&5
2073 echo "$as_me:2073: \$? = $ac_status" >&5
2074 (exit $ac_status); } >/dev/null; then
2075 if test -s conftest.err; then
2076 ac_cpp_err=$ac_c_preproc_warn_flag
2077 else
2078 ac_cpp_err=
2079 fi
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002080else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002081 ac_cpp_err=yes
2082fi
2083if test -z "$ac_cpp_err"; then
2084 ac_cv_header_linux_fs_h=yes
2085else
2086 echo "$as_me: failed program was:" >&5
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002087 cat conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002088 ac_cv_header_linux_fs_h=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002089fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002090rm -f conftest.err conftest.$ac_ext
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002091fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002092echo "$as_me:2092: result: $ac_cv_header_linux_fs_h" >&5
2093echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2094if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002095 linux_headers=yes
2096else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002097 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002098fi
2099
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002100if test "$linux_headers" != yes; then
2101 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002102fi
2103
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002104LIB_EXT=.a
2105STATIC_LIB_EXT=.a
2106PROFILE_LIB_EXT=.a
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002107
Theodore Ts'o74becf31997-04-26 14:37:06 +00002108# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002109if test "${with_ldopts+set}" = set; then
2110 withval="$with_ldopts"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002111 echo "$as_me:2111: result: LDFLAGS is $withval" >&5
2112echo "${ECHO_T}LDFLAGS is $withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00002113LDFLAGS=$withval
2114else
2115 LDFLAGS=
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002116fi;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002117
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002118# Check whether --with-root-prefix or --without-root-prefix was given.
2119if test "${with_root_prefix+set}" = set; then
2120 withval="$with_root_prefix"
2121 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002122else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002123 root_prefix=NONE
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002124fi; # Check whether --enable-compression or --disable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00002125if test "${enable_compression+set}" = set; then
2126 enableval="$enable_compression"
2127 if test "$enableval" = "no"
2128then
2129 echo "Disabling compression support"
2130else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002131 cat >>confdefs.h <<\EOF
Theodore Ts'o19178752000-02-11 15:55:07 +00002132#define ENABLE_COMPRESSION 1
2133EOF
2134
2135 echo "Enabling compression support"
2136 echo "WARNING: Compression support is experimental"
2137fi
2138
2139else
2140 echo "Disabling compression support by default"
2141
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002142fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002143# Check whether --enable-htree or --disable-htree was given.
2144if test "${enable_htree+set}" = set; then
2145 enableval="$enable_htree"
2146 if test "$enableval" = "no"
2147then
2148 HTREE_CMT=#
2149 echo "Disabling htree directory support"
2150else
2151 HTREE_CMT=
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002152 cat >>confdefs.h <<\EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002153#define ENABLE_HTREE 1
2154EOF
2155
2156 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002157fi
2158
2159else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04002160 HTREE_CMT=
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002161cat >>confdefs.h <<\EOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04002162#define ENABLE_HTREE 1
2163EOF
2164
2165echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002166
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002167fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002168
2169# Check whether --enable-htree-clear or --disable-htree-clear was given.
2170if test "${enable_htree_clear+set}" = set; then
2171 enableval="$enable_htree_clear"
2172 if test "$enableval" = "no"
2173then
2174 HTREE_CLR_CMT=#
2175 echo "Disabling htree clearing"
2176else
2177 HTREE_CLR_CMT=
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002178 cat >>confdefs.h <<\EOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002179#define ENABLE_HTREE_CLEAR 1
2180EOF
2181
2182 echo "Enabling htree clearing"
2183fi
2184
2185else
2186 HTREE_CLR_CMT=#
2187echo "Disabling htree clearing by default"
2188
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002189fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04002190
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002191# Check whether --enable-evms or --disable-evms was given.
2192if test "${enable_evms+set}" = set; then
2193 enableval="$enable_evms"
Theodore Ts'o5c70a502003-05-20 10:29:29 -04002194 if test "$enableval" == "no"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002195then
2196 EVMS_CMT="#"
2197 echo "Disabling EVMS plugin"
2198fi
2199
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002200fi;
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002201EVMS_ABI_CODE=120
2202# Check whether --enable-evms-10 or --disable-evms-10 was given.
2203if test "${enable_evms_10+set}" = set; then
2204 enableval="$enable_evms_10"
2205 if test "$enableval" != "no"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002206then
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002207 EVMS_ABI_CODE=100
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002208 echo "Enabling EVMS 1.0.0 ABI"
2209fi
2210
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002211fi;
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002212# Check whether --enable-evms-11 or --disable-evms-11 was given.
2213if test "${enable_evms_11+set}" = set; then
2214 enableval="$enable_evms_11"
2215 if test "$enableval" != "no"
2216then
2217 EVMS_ABI_CODE=110
2218 echo "Enabling EVMS 1.1.0 ABI"
2219fi
2220
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002221fi;
Theodore Ts'oa9d799a2002-11-08 13:50:51 -05002222if test "$EVMS_ABI_CODE" = "120"
2223then
2224 echo "Using EVMS 1.2.0 ABI by default"
Theodore Ts'off6dbcc2002-05-24 22:44:42 -04002225fi
2226
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002227# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002228if test "${enable_dll_shlibs+set}" = set; then
2229 enableval="$enable_dll_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002230 if test "$enableval" = "no"
2231then
2232 DLL_CMT=#
2233 MAKEFILE_DLL=/dev/null
2234 echo "Disabling DLL shared libraries"
2235else
2236 DLL_CMT=
2237 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
Theodore Ts'o74becf31997-04-26 14:37:06 +00002238 BINARY_TYPE=dllbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002239 LIB_EXT=.sa
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002240 echo "Enabling DLL shared libraries"
2241fi
2242
2243else
2244 MAKEFILE_DLL=/dev/null
2245DLL_CMT=#
2246echo "Disabling DLL shared libraries by default"
2247
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002248fi;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002249
2250# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002251if test "${enable_elf_shlibs+set}" = set; then
2252 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002253 if test "$enableval" = "no"
2254then
2255 ELF_CMT=#
2256 MAKEFILE_ELF=/dev/null
2257 echo "Disabling ELF shared libraries"
2258else
2259 ELF_CMT=
2260 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00002261 case "$host_os" in
2262 solaris2.*)
2263 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
2264 ;;
2265 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00002266 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002267 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002268 echo "Enabling ELF shared libraries"
2269fi
2270
2271else
2272 MAKEFILE_ELF=/dev/null
2273ELF_CMT=#
2274echo "Disabling ELF shared libraries by default"
2275
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002276fi;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002277
2278# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002279if test "${enable_bsd_shlibs+set}" = set; then
2280 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002281 if test "$enableval" = "no"
2282then
2283 BSDLIB_CMT=#
2284 MAKEFILE_BSDLIB=/dev/null
2285 echo "Disabling BSD shared libraries"
2286else
2287 BSDLIB_CMT=
2288 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00002289 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05002290 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05002291 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05002292 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
2293 LIB_EXT=.dylib
2294 ;;
2295 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002296 echo "Enabling BSD shared libraries"
2297fi
2298
2299else
2300 MAKEFILE_BSDLIB=/dev/null
2301BSDLIB_CMT=#
2302echo "Disabling BSD shared libraries by default"
2303
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002304fi;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002305
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002306# Check whether --enable-profile or --disable-profile was given.
2307if test "${enable_profile+set}" = set; then
2308 enableval="$enable_profile"
2309 if test "$enableval" = "no"
2310then
2311 PROFILE_CMT=#
2312 MAKEFILE_PROFILE=/dev/null
2313 echo "Disabling profiling libraries"
2314else
2315 PROFILE_CMT=
2316 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
2317 PROFILED_LIB_EXT=_p.a
2318 echo "Building profiling libraries"
2319fi
2320
2321else
2322 PROFILE_CMT=#
2323MAKEFILE_PROFILE=/dev/null
2324echo "Disabling profiling libraries by default"
2325
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002326fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002327
2328# Check whether --enable-checker or --disable-checker was given.
2329if test "${enable_checker+set}" = set; then
2330 enableval="$enable_checker"
2331 if test "$enableval" = "no"
2332then
2333 CHECKER_CMT=#
2334 MAKEFILE_CHECKER=/dev/null
2335 echo "Disabling checker libraries"
2336else
2337 CHECKER_CMT=
2338 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
2339 echo "Building checker libraries"
2340fi
2341
2342else
2343 CHECKER_CMT=#
2344MAKEFILE_CHECKER=/dev/null
2345echo "Disabling checker libraries by default"
2346
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002347fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002348
Theodore Ts'o782bebf2002-11-08 18:46:45 -05002349# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
2350if test "${enable_jbd_debug+set}" = set; then
2351 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002352 if test "$enableval" = "no"
2353then
2354 echo "Disabling journal debugging"
2355else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002356 cat >>confdefs.h <<\EOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05002357#define CONFIG_JBD_DEBUG 1
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00002358EOF
2359
2360 echo "Enabling journal debugging"
2361fi
2362
2363else
2364 echo "Disabling journal debugging by default"
2365
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002366fi;
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002367# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
2368if test "${enable_blkid_debug+set}" = set; then
2369 enableval="$enable_blkid_debug"
2370 if test "$enableval" = "no"
2371then
2372 echo "Disabling blkid debugging"
2373else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002374 cat >>confdefs.h <<\EOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05002375#define CONFIG_BLKID_DEBUG 1
2376EOF
2377
2378 echo "Enabling blkid debugging"
2379fi
2380
2381else
2382 echo "Disabling blkid debugging by default"
2383
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002384fi;
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002385# Check whether --enable-testio-debug or --disable-testio-debug was given.
2386if test "${enable_testio_debug+set}" = set; then
2387 enableval="$enable_testio_debug"
2388 if test "$enableval" = "no"
2389then
2390 echo "Disabling testio debugging"
2391else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002392 cat >>confdefs.h <<\EOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04002393#define CONFIG_TESTIO_DEBUG 1
2394EOF
2395
2396 echo "Enabling testio debugging"
2397fi
2398
2399else
2400 echo "Disabling testio debugging by default"
2401
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002402fi;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002403# Check whether --enable-swapfs or --disable-swapfs was given.
2404if test "${enable_swapfs+set}" = set; then
2405 enableval="$enable_swapfs"
2406 if test "$enableval" = "no"
2407then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002408 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002409 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002410else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002411 SWAPFS_CMT=
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002412 cat >>confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002413#define ENABLE_SWAPFS 1
2414EOF
2415
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002416 echo "Enabling swapfs support"
2417fi
2418
2419else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002420 SWAPFS_CMT=
2421echo "Enabling swapfs support by default"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002422cat >>confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002423#define ENABLE_SWAPFS 1
2424EOF
2425
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002426fi;
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05002427
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002428# Check whether --enable-debugfs or --disable-debugfs was given.
2429if test "${enable_debugfs+set}" = set; then
2430 enableval="$enable_debugfs"
2431 if test "$enableval" = "no"
2432then
2433 echo "Disabling debugfs support"
2434 DEBUGFS_CMT="#"
2435else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002436 DEBUGFS_CMT=
2437 echo "Enabling debugfs support"
2438fi
2439
2440else
2441 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002442DEBUGFS_CMT=
2443
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002444fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002445
2446# Check whether --enable-imager or --disable-imager was given.
2447if test "${enable_imager+set}" = set; then
2448 enableval="$enable_imager"
2449 if test "$enableval" = "no"
2450then
2451 echo "Disabling e2image support"
2452 IMAGER_CMT="#"
2453else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002454 IMAGER_CMT=
2455 echo "Enabling e2image support"
2456fi
2457
2458else
2459 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002460IMAGER_CMT=
2461
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002462fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002463
2464# Check whether --enable-resizer or --disable-resizer was given.
2465if test "${enable_resizer+set}" = set; then
2466 enableval="$enable_resizer"
2467 if test "$enableval" = "no"
2468then
2469 echo "Disabling e2resize support"
2470 RESIZER_CMT="#"
2471else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002472 RESIZER_CMT=
2473 echo "Enabling e2resize support"
2474fi
2475
2476else
2477 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002478RESIZER_CMT=
2479
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002480fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002481
2482# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
2483if test "${enable_dynamic_e2fsck+set}" = set; then
2484 enableval="$enable_dynamic_e2fsck"
2485 if test "$enableval" = "no"
2486then
2487 E2FSCK_TYPE=static
2488 echo "Building e2fsck statically"
2489else
2490 E2FSCK_TYPE=shared
2491 echo "Building e2fsck dynamically"
2492fi
2493
2494else
2495 E2FSCK_TYPE=static
2496echo "Building e2fsck statically by default"
2497
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002498fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002499
2500# Check whether --enable-fsck or --disable-fsck was given.
2501if test "${enable_fsck+set}" = set; then
2502 enableval="$enable_fsck"
2503 if test "$enableval" = "no"
2504then
2505 FSCK_PROG='' FSCK_MAN=''
2506 echo "Not building fsck wrapper"
2507else
2508 FSCK_PROG=fsck FSCK_MAN=fsck.8
2509 echo "Building fsck wrapper"
2510fi
2511
2512else
2513 case "$host_os" in
Theodore Ts'od3c9fb82003-06-08 20:26:15 -04002514 gnu* | freebsd*-gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002515 FSCK_PROG='' FSCK_MAN=''
2516 echo "Not building fsck wrapper by default"
2517 ;;
2518 *)
2519 FSCK_PROG=fsck FSCK_MAN=fsck.8
2520 echo "Building fsck wrapper by default"
2521esac
2522
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002523fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002524
2525MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
2526
2527# Check whether --enable-old-bitops or --disable-old-bitops was given.
2528if test "${enable_old_bitops+set}" = set; then
2529 enableval="$enable_old_bitops"
2530 if test "$enableval" = "no"
2531then
2532 echo "Using new (standard) bitmask operations"
2533else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002534 cat >>confdefs.h <<\EOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00002535#define EXT2_OLD_BITOPS 1
2536EOF
2537
2538 echo "Using old (native) bitmask operations"
2539
2540fi
2541
2542else
2543 echo "Using standard bitmask operations by default"
2544
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002545fi;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002546PACKAGE=e2fsprogs
2547VERSION="$E2FSPROGS_VERSION"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002548cat >>confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002549#define PACKAGE "$PACKAGE"
2550EOF
2551
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002552cat >>confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002553#define VERSION "$VERSION"
2554EOF
2555
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002556echo "$as_me:2556: checking whether ${MAKE-make} sets \${MAKE}" >&5
2557echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2558set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2559if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002561else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002562 cat >conftest.make <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002563all:
2564 @echo 'ac_maketemp="${MAKE}"'
2565EOF
2566# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002567eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002568if test -n "$ac_maketemp"; then
2569 eval ac_cv_prog_make_${ac_make}_set=yes
2570else
2571 eval ac_cv_prog_make_${ac_make}_set=no
2572fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002573rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002574fi
2575if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002576 echo "$as_me:2576: result: yes" >&5
2577echo "${ECHO_T}yes" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002578 SET_MAKE=
2579else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002580 echo "$as_me:2580: result: no" >&5
2581echo "${ECHO_T}no" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002582 SET_MAKE="MAKE=${MAKE-make}"
2583fi
2584
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002585# Find a good install program. We prefer a C program (faster),
2586# so one script is as good as another. But avoid the broken or
2587# incompatible versions:
2588# SysV /etc/install, /usr/sbin/install
2589# SunOS /usr/etc/install
2590# IRIX /sbin/install
2591# AIX /bin/install
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002592# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2594# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2596# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002597echo "$as_me:2597: checking for a BSD compatible install" >&5
2598echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002599if test -z "$INSTALL"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002600if test "${ac_cv_path_install+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002602else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002603 ac_save_IFS=$IFS; IFS=$ac_path_separator
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002604 for ac_dir in $PATH; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002605 IFS=$ac_save_IFS
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002606 # Account for people who put trailing slashes in PATH elements.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002607 case $ac_dir/ in
2608 / | ./ | .// | /cC/* \
2609 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2610 | /usr/ucb/* ) ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002611 *)
2612 # OSF1 and SCO ODT 3.0 have their own names for install.
2613 # Don't use installbsd from OSF since it installs stuff as root
2614 # by default.
2615 for ac_prog in ginstall scoinst install; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002616 if $as_executable_p "$ac_dir/$ac_prog"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002617 if test $ac_prog = install &&
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002618 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002619 # AIX install. It has an incompatible calling convention.
2620 :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002621 elif test $ac_prog = install &&
2622 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2623 # program-specific install script used by HP pwplus--don't use.
2624 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002625 else
2626 ac_cv_path_install="$ac_dir/$ac_prog -c"
2627 break 2
2628 fi
2629 fi
2630 done
2631 ;;
2632 esac
2633 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002634
2635fi
2636 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002637 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002638 else
2639 # As a last resort, use the slow shell script. We don't cache a
2640 # path for INSTALL within a source directory, because that will
2641 # break other packages using the cache if that directory is
2642 # removed, or if the path is relative.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002643 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002644 fi
2645fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002646echo "$as_me:2646: result: $INSTALL" >&5
2647echo "${ECHO_T}$INSTALL" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002648
2649# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2650# It thinks the first close brace ends the variable substitution.
2651test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2652
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002653test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002654
2655test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2656
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002657 MKINSTALLDIRS=
2658 if test -n "$ac_aux_dir"; then
2659 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2660 fi
2661 if test -z "$MKINSTALLDIRS"; then
2662 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2663 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002664
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002665 # Extract the first word of "msgfmt", so it can be a program name with args.
2666set dummy msgfmt; ac_word=$2
2667echo "$as_me:2667: checking for $ac_word" >&5
2668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2669if test "${ac_cv_path_MSGFMT+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671else
2672 case "$MSGFMT" in
2673 /*)
2674 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2675 ;;
2676 *)
2677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2678 for ac_dir in $PATH; do
2679 test -z "$ac_dir" && ac_dir=.
2680 if test -f $ac_dir/$ac_word; then
2681 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2682 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2683 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2684 break
2685 fi
2686 fi
2687 done
2688 IFS="$ac_save_ifs"
2689 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2690 ;;
2691esac
2692fi
2693MSGFMT="$ac_cv_path_MSGFMT"
2694if test "$MSGFMT" != ":"; then
2695 echo "$as_me:2695: result: $MSGFMT" >&5
2696echo "${ECHO_T}$MSGFMT" >&6
2697else
2698 echo "$as_me:2698: result: no" >&5
2699echo "${ECHO_T}no" >&6
2700fi
2701
2702 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2703set dummy gmsgfmt; ac_word=$2
2704echo "$as_me:2704: checking for $ac_word" >&5
2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706if test "${ac_cv_path_GMSGFMT+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
2709 case $GMSGFMT in
2710 [\\/]* | ?:[\\/]*)
2711 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2712 ;;
2713 *)
2714 ac_save_IFS=$IFS; IFS=$ac_path_separator
2715ac_dummy="$PATH"
2716for ac_dir in $ac_dummy; do
2717 IFS=$ac_save_IFS
2718 test -z "$ac_dir" && ac_dir=.
2719 if $as_executable_p "$ac_dir/$ac_word"; then
2720 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2721 echo "$as_me:2721: found $ac_dir/$ac_word" >&5
2722 break
2723fi
2724done
2725
2726 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2727 ;;
2728esac
2729fi
2730GMSGFMT=$ac_cv_path_GMSGFMT
2731
2732if test -n "$GMSGFMT"; then
2733 echo "$as_me:2733: result: $GMSGFMT" >&5
2734echo "${ECHO_T}$GMSGFMT" >&6
2735else
2736 echo "$as_me:2736: result: no" >&5
2737echo "${ECHO_T}no" >&6
2738fi
2739
2740 # Extract the first word of "xgettext", so it can be a program name with args.
2741set dummy xgettext; ac_word=$2
2742echo "$as_me:2742: checking for $ac_word" >&5
2743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744if test "${ac_cv_path_XGETTEXT+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747 case "$XGETTEXT" in
2748 /*)
2749 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2750 ;;
2751 *)
2752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2753 for ac_dir in $PATH; do
2754 test -z "$ac_dir" && ac_dir=.
2755 if test -f $ac_dir/$ac_word; then
2756 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2757 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2758 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2759 break
2760 fi
2761 fi
2762 done
2763 IFS="$ac_save_ifs"
2764 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2765 ;;
2766esac
2767fi
2768XGETTEXT="$ac_cv_path_XGETTEXT"
2769if test "$XGETTEXT" != ":"; then
2770 echo "$as_me:2770: result: $XGETTEXT" >&5
2771echo "${ECHO_T}$XGETTEXT" >&6
2772else
2773 echo "$as_me:2773: result: no" >&5
2774echo "${ECHO_T}no" >&6
2775fi
2776
2777 rm -f messages.po
2778
2779 # Extract the first word of "msgmerge", so it can be a program name with args.
2780set dummy msgmerge; ac_word=$2
2781echo "$as_me:2781: checking for $ac_word" >&5
2782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783if test "${ac_cv_path_MSGMERGE+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785else
2786 case "$MSGMERGE" in
2787 /*)
2788 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2789 ;;
2790 *)
2791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2792 for ac_dir in $PATH; do
2793 test -z "$ac_dir" && ac_dir=.
2794 if test -f $ac_dir/$ac_word; then
2795 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2796 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
2797 break
2798 fi
2799 fi
2800 done
2801 IFS="$ac_save_ifs"
2802 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2803 ;;
2804esac
2805fi
2806MSGMERGE="$ac_cv_path_MSGMERGE"
2807if test "$MSGMERGE" != ":"; then
2808 echo "$as_me:2808: result: $MSGMERGE" >&5
2809echo "${ECHO_T}$MSGMERGE" >&6
2810else
2811 echo "$as_me:2811: result: no" >&5
2812echo "${ECHO_T}no" >&6
2813fi
2814
2815 if test "$GMSGFMT" != ":"; then
2816 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2817 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2818 : ;
2819 else
2820 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2821 echo "$as_me:2821: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2822echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2823 GMSGFMT=":"
2824 fi
2825 fi
2826
2827 if test "$XGETTEXT" != ":"; then
2828 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2829 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2830 : ;
2831 else
2832 echo "$as_me:2832: result: found xgettext program is not GNU xgettext; ignore it" >&5
2833echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2834 XGETTEXT=":"
2835 fi
2836 rm -f messages.po
2837 fi
2838
2839 ac_config_commands="$ac_config_commands default-1"
2840
2841if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2843set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2844echo "$as_me:2844: checking for $ac_word" >&5
2845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846if test "${ac_cv_prog_RANLIB+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002848else
2849 if test -n "$RANLIB"; then
2850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2851else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002852 ac_save_IFS=$IFS; IFS=$ac_path_separator
2853ac_dummy="$PATH"
2854for ac_dir in $ac_dummy; do
2855 IFS=$ac_save_IFS
2856 test -z "$ac_dir" && ac_dir=.
2857 $as_executable_p "$ac_dir/$ac_word" || continue
2858ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2859echo "$as_me:2859: found $ac_dir/$ac_word" >&5
2860break
2861done
2862
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002863fi
2864fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002865RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002866if test -n "$RANLIB"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002867 echo "$as_me:2867: result: $RANLIB" >&5
2868echo "${ECHO_T}$RANLIB" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002869else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002870 echo "$as_me:2870: result: no" >&5
2871echo "${ECHO_T}no" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002872fi
2873
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002874fi
2875if test -z "$ac_cv_prog_RANLIB"; then
2876 ac_ct_RANLIB=$RANLIB
2877 # Extract the first word of "ranlib", so it can be a program name with args.
2878set dummy ranlib; ac_word=$2
2879echo "$as_me:2879: checking for $ac_word" >&5
2880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002883else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002884 if test -n "$ac_ct_RANLIB"; then
2885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2886else
2887 ac_save_IFS=$IFS; IFS=$ac_path_separator
2888ac_dummy="$PATH"
2889for ac_dir in $ac_dummy; do
2890 IFS=$ac_save_IFS
2891 test -z "$ac_dir" && ac_dir=.
2892 $as_executable_p "$ac_dir/$ac_word" || continue
2893ac_cv_prog_ac_ct_RANLIB="ranlib"
2894echo "$as_me:2894: found $ac_dir/$ac_word" >&5
2895break
2896done
2897
2898 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2899fi
2900fi
2901ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2902if test -n "$ac_ct_RANLIB"; then
2903 echo "$as_me:2903: result: $ac_ct_RANLIB" >&5
2904echo "${ECHO_T}$ac_ct_RANLIB" >&6
2905else
2906 echo "$as_me:2906: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908fi
2909
2910 RANLIB=$ac_ct_RANLIB
2911else
2912 RANLIB="$ac_cv_prog_RANLIB"
2913fi
2914
2915 echo "$as_me:2915: checking for strerror in -lcposix" >&5
2916echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2917if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002921LIBS="-lcposix $LIBS"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002922cat >conftest.$ac_ext <<_ACEOF
2923#line 2923 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002924#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002925
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002926/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002927#ifdef __cplusplus
2928extern "C"
2929#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002930/* We use char because int might match the return type of a gcc2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002931 builtin and then its argument prototype would still apply. */
2932char strerror ();
2933int
2934main ()
2935{
2936strerror ();
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext conftest$ac_exeext
2942if { (eval echo "$as_me:2942: \"$ac_link\"") >&5
2943 (eval $ac_link) 2>&5
2944 ac_status=$?
2945 echo "$as_me:2945: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
2947 { ac_try='test -s conftest$ac_exeext'
2948 { (eval echo "$as_me:2948: \"$ac_try\"") >&5
2949 (eval $ac_try) 2>&5
2950 ac_status=$?
2951 echo "$as_me:2951: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 ac_cv_lib_cposix_strerror=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002954else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002955 echo "$as_me: failed program was:" >&5
2956cat conftest.$ac_ext >&5
2957ac_cv_lib_cposix_strerror=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002958fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2960LIBS=$ac_check_lib_save_LIBS
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002961fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002962echo "$as_me:2962: result: $ac_cv_lib_cposix_strerror" >&5
2963echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2964if test $ac_cv_lib_cposix_strerror = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04002965 LIBS="$LIBS -lcposix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002966fi
2967
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002968echo "$as_me:2968: checking for ANSI C header files" >&5
2969echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2970if test "${ac_cv_header_stdc+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002972else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002973 cat >conftest.$ac_ext <<_ACEOF
2974#line 2974 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002975#include "confdefs.h"
2976#include <stdlib.h>
2977#include <stdarg.h>
2978#include <string.h>
2979#include <float.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002980
2981_ACEOF
2982if { (eval echo "$as_me:2982: \"$ac_cpp conftest.$ac_ext\"") >&5
2983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2984 ac_status=$?
2985 egrep -v '^ *\+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
2988 echo "$as_me:2988: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev/null; then
2990 if test -s conftest.err; then
2991 ac_cpp_err=$ac_c_preproc_warn_flag
2992 else
2993 ac_cpp_err=
2994 fi
2995else
2996 ac_cpp_err=yes
2997fi
2998if test -z "$ac_cpp_err"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00002999 ac_cv_header_stdc=yes
3000else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003001 echo "$as_me: failed program was:" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003002 cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003003 ac_cv_header_stdc=no
3004fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003005rm -f conftest.err conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003006
3007if test $ac_cv_header_stdc = yes; then
3008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003009 cat >conftest.$ac_ext <<_ACEOF
3010#line 3010 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003011#include "confdefs.h"
3012#include <string.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003013
3014_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016 egrep "memchr" >/dev/null 2>&1; then
3017 :
3018else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003019 ac_cv_header_stdc=no
3020fi
3021rm -f conftest*
3022
3023fi
3024
3025if test $ac_cv_header_stdc = yes; then
3026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003027 cat >conftest.$ac_ext <<_ACEOF
3028#line 3028 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003029#include "confdefs.h"
3030#include <stdlib.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003031
3032_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 egrep "free" >/dev/null 2>&1; then
3035 :
3036else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003037 ac_cv_header_stdc=no
3038fi
3039rm -f conftest*
3040
3041fi
3042
3043if test $ac_cv_header_stdc = yes; then
3044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003045 if test "$cross_compiling" = yes; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003046 :
3047else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003048 cat >conftest.$ac_ext <<_ACEOF
3049#line 3049 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003050#include "confdefs.h"
3051#include <ctype.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003052#if ((' ' & 0x0FF) == 0x020)
3053# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3054# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3055#else
3056# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3057 || ('j' <= (c) && (c) <= 'r') \
3058 || ('s' <= (c) && (c) <= 'z'))
3059# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3060#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003061
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003062#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3063int
3064main ()
3065{
3066 int i;
3067 for (i = 0; i < 256; i++)
3068 if (XOR (islower (i), ISLOWER (i))
3069 || toupper (i) != TOUPPER (i))
3070 exit(2);
3071 exit (0);
3072}
3073_ACEOF
3074rm -f conftest$ac_exeext
3075if { (eval echo "$as_me:3075: \"$ac_link\"") >&5
3076 (eval $ac_link) 2>&5
3077 ac_status=$?
3078 echo "$as_me:3078: \$? = $ac_status" >&5
3079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3080 { (eval echo "$as_me:3080: \"$ac_try\"") >&5
3081 (eval $ac_try) 2>&5
3082 ac_status=$?
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003085 :
3086else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003087 echo "$as_me: program exited with status $ac_status" >&5
3088echo "$as_me: failed program was:" >&5
3089cat conftest.$ac_ext >&5
3090ac_cv_header_stdc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003091fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003092rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003093fi
3094fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003095fi
3096echo "$as_me:3096: result: $ac_cv_header_stdc" >&5
3097echo "${ECHO_T}$ac_cv_header_stdc" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003098if test $ac_cv_header_stdc = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003099
3100cat >>confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003101#define STDC_HEADERS 1
3102EOF
3103
3104fi
3105
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003106echo "$as_me:3106: checking for $CC option to accept ANSI C" >&5
3107echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3108if test "${ac_cv_prog_cc_stdc+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003110else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003111 ac_cv_prog_cc_stdc=no
3112ac_save_CC=$CC
3113cat >conftest.$ac_ext <<_ACEOF
3114#line 3114 "configure"
3115#include "confdefs.h"
3116#include <stdarg.h>
3117#include <stdio.h>
3118#include <sys/types.h>
3119#include <sys/stat.h>
3120/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3121struct buf { int x; };
3122FILE * (*rcsopen) (struct buf *, struct stat *, int);
3123static char *e (p, i)
3124 char **p;
3125 int i;
3126{
3127 return p[i];
3128}
3129static char *f (char * (*g) (char **, int), char **p, ...)
3130{
3131 char *s;
3132 va_list v;
3133 va_start (v,p);
3134 s = g (p, va_arg (v,int));
3135 va_end (v);
3136 return s;
3137}
3138int test (int i, double x);
3139struct s1 {int (*f) (int a);};
3140struct s2 {int (*f) (double a);};
3141int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3142int argc;
3143char **argv;
3144int
3145main ()
3146{
3147return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3148 ;
3149 return 0;
3150}
3151_ACEOF
3152# Don't try gcc -ansi; that turns off useful extensions and
3153# breaks some systems' header files.
3154# AIX -qlanglvl=ansi
3155# Ultrix and OSF/1 -std1
3156# HP-UX 10.20 and later -Ae
3157# HP-UX older versions -Aa -D_HPUX_SOURCE
3158# SVR4 -Xc -D__EXTENSIONS__
3159for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3160do
3161 CC="$ac_save_CC $ac_arg"
3162 rm -f conftest.$ac_objext
3163if { (eval echo "$as_me:3163: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>&5
3165 ac_status=$?
3166 echo "$as_me:3166: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (eval echo "$as_me:3169: \"$ac_try\"") >&5
3170 (eval $ac_try) 2>&5
3171 ac_status=$?
3172 echo "$as_me:3172: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
3174 ac_cv_prog_cc_stdc=$ac_arg
3175break
3176else
3177 echo "$as_me: failed program was:" >&5
3178cat conftest.$ac_ext >&5
3179fi
3180rm -f conftest.$ac_objext
3181done
3182rm -f conftest.$ac_ext conftest.$ac_objext
3183CC=$ac_save_CC
3184
3185fi
3186
3187case "x$ac_cv_prog_cc_stdc" in
3188 x|xno)
3189 echo "$as_me:3189: result: none needed" >&5
3190echo "${ECHO_T}none needed" >&6 ;;
3191 *)
3192 echo "$as_me:3192: result: $ac_cv_prog_cc_stdc" >&5
3193echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3194 CC="$CC $ac_cv_prog_cc_stdc" ;;
3195esac
3196
3197echo "$as_me:3197: checking for an ANSI C-conforming const" >&5
3198echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3199if test "${ac_cv_c_const+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
3202 cat >conftest.$ac_ext <<_ACEOF
3203#line 3203 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003204#include "confdefs.h"
3205
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003206int
3207main ()
3208{
3209/* FIXME: Include the comments suggested by Paul. */
3210#ifndef __cplusplus
3211 /* Ultrix mips cc rejects this. */
3212 typedef int charset[2];
3213 const charset x;
3214 /* SunOS 4.1.1 cc rejects this. */
3215 char const *const *ccp;
3216 char **p;
3217 /* NEC SVR4.0.2 mips cc rejects this. */
3218 struct point {int x, y;};
3219 static struct point const zero = {0,0};
3220 /* AIX XL C 1.02.0.0 rejects this.
3221 It does not let you subtract one const X* pointer from another in
3222 an arm of an if-expression whose if-part is not a constant
3223 expression */
3224 const char *g = "string";
3225 ccp = &g + (g ? g-g : 0);
3226 /* HPUX 7.0 cc rejects these. */
3227 ++ccp;
3228 p = (char**) ccp;
3229 ccp = (char const *const *) p;
3230 { /* SCO 3.2v4 cc rejects this. */
3231 char *t;
3232 char const *s = 0 ? (char *) 0 : (char const *) 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003233
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003234 *t++ = 0;
3235 }
3236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3237 int x[] = {25, 17};
3238 const int *foo = &x[0];
3239 ++foo;
3240 }
3241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3242 typedef const int *iptr;
3243 iptr p = 0;
3244 ++p;
3245 }
3246 { /* AIX XL C 1.02.0.0 rejects this saying
3247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3248 struct s { int j; const int *ap[3]; };
3249 struct s *b; b->j = 5;
3250 }
3251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3252 const int foo = 10;
3253 }
3254#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003255
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003256 ;
3257 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003258}
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003259_ACEOF
3260rm -f conftest.$ac_objext
3261if { (eval echo "$as_me:3261: \"$ac_compile\"") >&5
3262 (eval $ac_compile) 2>&5
3263 ac_status=$?
3264 echo "$as_me:3264: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -s conftest.$ac_objext'
3267 { (eval echo "$as_me:3267: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:3270: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003272 ac_cv_c_const=yes
3273else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003274 echo "$as_me: failed program was:" >&5
3275cat conftest.$ac_ext >&5
3276ac_cv_c_const=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003277fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003278rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003279fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003280echo "$as_me:3280: result: $ac_cv_c_const" >&5
3281echo "${ECHO_T}$ac_cv_c_const" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003282if test $ac_cv_c_const = no; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003283
3284cat >>confdefs.h <<\EOF
3285#define const
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003286EOF
3287
3288fi
3289
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003290echo "$as_me:3290: checking for inline" >&5
3291echo $ECHO_N "checking for inline... $ECHO_C" >&6
3292if test "${ac_cv_c_inline+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003294else
3295 ac_cv_c_inline=no
3296for ac_kw in inline __inline__ __inline; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003297 cat >conftest.$ac_ext <<_ACEOF
3298#line 3298 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003299#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003300#ifndef __cplusplus
3301static $ac_kw int static_foo () {return 0; }
3302$ac_kw int foo () {return 0; }
3303#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003304
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003305_ACEOF
3306rm -f conftest.$ac_objext
3307if { (eval echo "$as_me:3307: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>&5
3309 ac_status=$?
3310 echo "$as_me:3310: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -s conftest.$ac_objext'
3313 { (eval echo "$as_me:3313: \"$ac_try\"") >&5
3314 (eval $ac_try) 2>&5
3315 ac_status=$?
3316 echo "$as_me:3316: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003318 ac_cv_c_inline=$ac_kw; break
3319else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003320 echo "$as_me: failed program was:" >&5
3321cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003322fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003323rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003324done
3325
3326fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003327echo "$as_me:3327: result: $ac_cv_c_inline" >&5
3328echo "${ECHO_T}$ac_cv_c_inline" >&6
3329case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003330 inline | yes) ;;
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003331 no)
3332cat >>confdefs.h <<\EOF
3333#define inline
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003334EOF
3335 ;;
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003336 *) cat >>confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003337#define inline $ac_cv_c_inline
3338EOF
3339 ;;
3340esac
3341
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003342# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3343
3344for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3345 inttypes.h stdint.h unistd.h
3346do
3347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3348echo "$as_me:3348: checking for $ac_header" >&5
3349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3350if eval "test \"\${$as_ac_Header+set}\" = set"; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003352else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003353 cat >conftest.$ac_ext <<_ACEOF
3354#line 3354 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003355#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003356$ac_includes_default
3357#include <$ac_header>
3358_ACEOF
3359rm -f conftest.$ac_objext
3360if { (eval echo "$as_me:3360: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>&5
3362 ac_status=$?
3363 echo "$as_me:3363: \$? = $ac_status" >&5
3364 (exit $ac_status); } &&
3365 { ac_try='test -s conftest.$ac_objext'
3366 { (eval echo "$as_me:3366: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:3369: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 eval "$as_ac_Header=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003372else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003373 echo "$as_me: failed program was:" >&5
3374cat conftest.$ac_ext >&5
3375eval "$as_ac_Header=no"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003376fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003377rm -f conftest.$ac_objext conftest.$ac_ext
3378fi
3379echo "$as_me:3379: result: `eval echo '${'$as_ac_Header'}'`" >&5
3380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3381if test `eval echo '${'$as_ac_Header'}'` = yes; then
3382 cat >>confdefs.h <<EOF
3383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3384EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003385
3386fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003387done
3388
3389echo "$as_me:3389: checking for off_t" >&5
3390echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3391if test "${ac_cv_type_off_t+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394 cat >conftest.$ac_ext <<_ACEOF
3395#line 3395 "configure"
3396#include "confdefs.h"
3397$ac_includes_default
3398int
3399main ()
3400{
3401if ((off_t *) 0)
3402 return 0;
3403if (sizeof (off_t))
3404 return 0;
3405 ;
3406 return 0;
3407}
3408_ACEOF
3409rm -f conftest.$ac_objext
3410if { (eval echo "$as_me:3410: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>&5
3412 ac_status=$?
3413 echo "$as_me:3413: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:3416: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:3419: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_cv_type_off_t=yes
3422else
3423 echo "$as_me: failed program was:" >&5
3424cat conftest.$ac_ext >&5
3425ac_cv_type_off_t=no
3426fi
3427rm -f conftest.$ac_objext conftest.$ac_ext
3428fi
3429echo "$as_me:3429: result: $ac_cv_type_off_t" >&5
3430echo "${ECHO_T}$ac_cv_type_off_t" >&6
3431if test $ac_cv_type_off_t = yes; then
3432 :
3433else
3434
3435cat >>confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003436#define off_t long
3437EOF
3438
3439fi
3440
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003441echo "$as_me:3441: checking for size_t" >&5
3442echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3443if test "${ac_cv_type_size_t+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003445else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003446 cat >conftest.$ac_ext <<_ACEOF
3447#line 3447 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003448#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003449$ac_includes_default
3450int
3451main ()
3452{
3453if ((size_t *) 0)
3454 return 0;
3455if (sizeof (size_t))
3456 return 0;
3457 ;
3458 return 0;
3459}
3460_ACEOF
3461rm -f conftest.$ac_objext
3462if { (eval echo "$as_me:3462: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>&5
3464 ac_status=$?
3465 echo "$as_me:3465: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:3468: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:3471: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003473 ac_cv_type_size_t=yes
3474else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003475 echo "$as_me: failed program was:" >&5
3476cat conftest.$ac_ext >&5
3477ac_cv_type_size_t=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003478fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003479rm -f conftest.$ac_objext conftest.$ac_ext
3480fi
3481echo "$as_me:3481: result: $ac_cv_type_size_t" >&5
3482echo "${ECHO_T}$ac_cv_type_size_t" >&6
3483if test $ac_cv_type_size_t = yes; then
3484 :
3485else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003486
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003487cat >>confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003488#define size_t unsigned
3489EOF
3490
3491fi
3492
3493# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3494# for constant arguments. Useless!
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003495echo "$as_me:3495: checking for working alloca.h" >&5
3496echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3497if test "${ac_cv_working_alloca_h+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003499else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003500 cat >conftest.$ac_ext <<_ACEOF
3501#line 3501 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003502#include "confdefs.h"
3503#include <alloca.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003504int
3505main ()
3506{
3507char *p = (char *) alloca (2 * sizeof (int));
3508 ;
3509 return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext conftest$ac_exeext
3513if { (eval echo "$as_me:3513: \"$ac_link\"") >&5
3514 (eval $ac_link) 2>&5
3515 ac_status=$?
3516 echo "$as_me:3516: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -s conftest$ac_exeext'
3519 { (eval echo "$as_me:3519: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:3522: \$? = $ac_status" >&5
3523 (exit $ac_status); }; }; then
3524 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003525else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003526 echo "$as_me: failed program was:" >&5
3527cat conftest.$ac_ext >&5
3528ac_cv_working_alloca_h=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003529fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003531fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003532echo "$as_me:3532: result: $ac_cv_working_alloca_h" >&5
3533echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3534if test $ac_cv_working_alloca_h = yes; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003535
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003536cat >>confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003537#define HAVE_ALLOCA_H 1
3538EOF
3539
3540fi
3541
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003542echo "$as_me:3542: checking for alloca" >&5
3543echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3544if test "${ac_cv_func_alloca_works+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003546else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003547 cat >conftest.$ac_ext <<_ACEOF
3548#line 3548 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003549#include "confdefs.h"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003550#ifdef __GNUC__
3551# define alloca __builtin_alloca
3552#else
3553# ifdef _MSC_VER
3554# include <malloc.h>
3555# define alloca _alloca
3556# else
3557# if HAVE_ALLOCA_H
3558# include <alloca.h>
3559# else
3560# ifdef _AIX
3561 #pragma alloca
3562# else
3563# ifndef alloca /* predefined by HP cc +Olibcalls */
3564char *alloca ();
3565# endif
3566# endif
3567# endif
3568# endif
3569#endif
3570
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003571int
3572main ()
3573{
3574char *p = (char *) alloca (1);
3575 ;
3576 return 0;
3577}
3578_ACEOF
3579rm -f conftest.$ac_objext conftest$ac_exeext
3580if { (eval echo "$as_me:3580: \"$ac_link\"") >&5
3581 (eval $ac_link) 2>&5
3582 ac_status=$?
3583 echo "$as_me:3583: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -s conftest$ac_exeext'
3586 { (eval echo "$as_me:3586: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:3589: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003591 ac_cv_func_alloca_works=yes
3592else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003593 echo "$as_me: failed program was:" >&5
3594cat conftest.$ac_ext >&5
3595ac_cv_func_alloca_works=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003596fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003598fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003599echo "$as_me:3599: result: $ac_cv_func_alloca_works" >&5
3600echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003601
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003602if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003603
3604cat >>confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003605#define HAVE_ALLOCA 1
3606EOF
3607
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003608else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003609 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003610# that cause trouble. Some versions do not even contain alloca or
3611# contain a buggy version. If you still want to use their alloca,
3612# use ar to extract alloca.o from them instead of compiling alloca.c.
3613
3614ALLOCA=alloca.$ac_objext
3615
3616cat >>confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003617#define C_ALLOCA 1
3618EOF
3619
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003620echo "$as_me:3620: checking whether \`alloca.c' needs Cray hooks" >&5
3621echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3622if test "${ac_cv_os_cray+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003624else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003625 cat >conftest.$ac_ext <<_ACEOF
3626#line 3626 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003627#include "confdefs.h"
3628#if defined(CRAY) && ! defined(CRAY2)
3629webecray
3630#else
3631wenotbecray
3632#endif
3633
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003634_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 egrep "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003637 ac_cv_os_cray=yes
3638else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003639 ac_cv_os_cray=no
3640fi
3641rm -f conftest*
3642
3643fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003644echo "$as_me:3644: result: $ac_cv_os_cray" >&5
3645echo "${ECHO_T}$ac_cv_os_cray" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003646if test $ac_cv_os_cray = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003647 for ac_func in _getb67 GETB67 getb67; do
3648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3649echo "$as_me:3649: checking for $ac_func" >&5
3650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3651if eval "test \"\${$as_ac_var+set}\" = set"; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003653else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003654 cat >conftest.$ac_ext <<_ACEOF
3655#line 3655 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003656#include "confdefs.h"
3657/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003658 which can conflict with char $ac_func (); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003659#include <assert.h>
3660/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003661#ifdef __cplusplus
3662extern "C"
3663#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003664/* We use char because int might match the return type of a gcc2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003665 builtin and then its argument prototype would still apply. */
3666char $ac_func ();
3667char (*f) ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003668
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003669int
3670main ()
3671{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003672/* The GNU C library defines this for functions which it implements
3673 to always fail with ENOSYS. Some functions are actually named
3674 something starting with __ and the normal name is an alias. */
3675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3676choke me
3677#else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003678f = $ac_func;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003679#endif
3680
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003681 ;
3682 return 0;
3683}
3684_ACEOF
3685rm -f conftest.$ac_objext conftest$ac_exeext
3686if { (eval echo "$as_me:3686: \"$ac_link\"") >&5
3687 (eval $ac_link) 2>&5
3688 ac_status=$?
3689 echo "$as_me:3689: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -s conftest$ac_exeext'
3692 { (eval echo "$as_me:3692: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:3695: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003698else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003699 echo "$as_me: failed program was:" >&5
3700cat conftest.$ac_ext >&5
3701eval "$as_ac_var=no"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003702fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003703rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003704fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003705echo "$as_me:3705: result: `eval echo '${'$as_ac_var'}'`" >&5
3706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3707if test `eval echo '${'$as_ac_var'}'` = yes; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003708
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003709cat >>confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003710#define CRAY_STACKSEG_END $ac_func
3711EOF
3712
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003713 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003714fi
3715
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003716 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003717fi
3718
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003719echo "$as_me:3719: checking stack direction for C alloca" >&5
3720echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3721if test "${ac_cv_c_stack_direction+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003723else
3724 if test "$cross_compiling" = yes; then
3725 ac_cv_c_stack_direction=0
3726else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003727 cat >conftest.$ac_ext <<_ACEOF
3728#line 3728 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003729#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003730int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003731find_stack_direction ()
3732{
3733 static char *addr = 0;
3734 auto char dummy;
3735 if (addr == 0)
3736 {
3737 addr = &dummy;
3738 return find_stack_direction ();
3739 }
3740 else
3741 return (&dummy > addr) ? 1 : -1;
3742}
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003743
3744int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003745main ()
3746{
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003747 exit (find_stack_direction () < 0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003748}
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003749_ACEOF
3750rm -f conftest$ac_exeext
3751if { (eval echo "$as_me:3751: \"$ac_link\"") >&5
3752 (eval $ac_link) 2>&5
3753 ac_status=$?
3754 echo "$as_me:3754: \$? = $ac_status" >&5
3755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3756 { (eval echo "$as_me:3756: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:3759: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003761 ac_cv_c_stack_direction=1
3762else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003763 echo "$as_me: program exited with status $ac_status" >&5
3764echo "$as_me: failed program was:" >&5
3765cat conftest.$ac_ext >&5
3766ac_cv_c_stack_direction=-1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003767fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003768rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003769fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003770fi
3771echo "$as_me:3771: result: $ac_cv_c_stack_direction" >&5
3772echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003773
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003774cat >>confdefs.h <<EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003775#define STACK_DIRECTION $ac_cv_c_stack_direction
3776EOF
3777
3778fi
3779
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003780for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003781do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3783echo "$as_me:3783: checking for $ac_header" >&5
3784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3785if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003787else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003788 cat >conftest.$ac_ext <<_ACEOF
3789#line 3789 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003790#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003791#include <$ac_header>
3792_ACEOF
3793if { (eval echo "$as_me:3793: \"$ac_cpp conftest.$ac_ext\"") >&5
3794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3795 ac_status=$?
3796 egrep -v '^ *\+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 echo "$as_me:3799: \$? = $ac_status" >&5
3800 (exit $ac_status); } >/dev/null; then
3801 if test -s conftest.err; then
3802 ac_cpp_err=$ac_c_preproc_warn_flag
3803 else
3804 ac_cpp_err=
3805 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003806else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003807 ac_cpp_err=yes
3808fi
3809if test -z "$ac_cpp_err"; then
3810 eval "$as_ac_Header=yes"
3811else
3812 echo "$as_me: failed program was:" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003813 cat conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003814 eval "$as_ac_Header=no"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003815fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003816rm -f conftest.err conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003817fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003818echo "$as_me:3818: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821 cat >>confdefs.h <<EOF
3822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003823EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003824
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003825fi
3826done
3827
3828for ac_func in getpagesize
3829do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3831echo "$as_me:3831: checking for $ac_func" >&5
3832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3833if eval "test \"\${$as_ac_var+set}\" = set"; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003835else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003836 cat >conftest.$ac_ext <<_ACEOF
3837#line 3837 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003838#include "confdefs.h"
3839/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003840 which can conflict with char $ac_func (); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003841#include <assert.h>
3842/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003843#ifdef __cplusplus
3844extern "C"
3845#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003846/* We use char because int might match the return type of a gcc2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003847 builtin and then its argument prototype would still apply. */
3848char $ac_func ();
3849char (*f) ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003850
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003851int
3852main ()
3853{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003854/* The GNU C library defines this for functions which it implements
3855 to always fail with ENOSYS. Some functions are actually named
3856 something starting with __ and the normal name is an alias. */
3857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3858choke me
3859#else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003860f = $ac_func;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003861#endif
3862
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003863 ;
3864 return 0;
3865}
3866_ACEOF
3867rm -f conftest.$ac_objext conftest$ac_exeext
3868if { (eval echo "$as_me:3868: \"$ac_link\"") >&5
3869 (eval $ac_link) 2>&5
3870 ac_status=$?
3871 echo "$as_me:3871: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest$ac_exeext'
3874 { (eval echo "$as_me:3874: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:3877: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003880else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003881 echo "$as_me: failed program was:" >&5
3882cat conftest.$ac_ext >&5
3883eval "$as_ac_var=no"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003884fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003885rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003886fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003887echo "$as_me:3887: result: `eval echo '${'$as_ac_var'}'`" >&5
3888echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3889if test `eval echo '${'$as_ac_var'}'` = yes; then
3890 cat >>confdefs.h <<EOF
3891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3892EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003893
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003894fi
3895done
3896
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003897echo "$as_me:3897: checking for working mmap" >&5
3898echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3899if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003901else
3902 if test "$cross_compiling" = yes; then
3903 ac_cv_func_mmap_fixed_mapped=no
3904else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003905 cat >conftest.$ac_ext <<_ACEOF
3906#line 3906 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003907#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003908$ac_includes_default
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003909/* Thanks to Mike Haertel and Jim Avera for this test.
3910 Here is a matrix of mmap possibilities:
3911 mmap private not fixed
3912 mmap private fixed at somewhere currently unmapped
3913 mmap private fixed at somewhere already mapped
3914 mmap shared not fixed
3915 mmap shared fixed at somewhere currently unmapped
3916 mmap shared fixed at somewhere already mapped
3917 For private mappings, we should verify that changes cannot be read()
3918 back from the file, nor mmap's back from the file at a different
3919 address. (There have been systems where private was not correctly
3920 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003921 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003922 like early versions of FreeBSD and possibly contemporary NetBSD.)
3923 For shared mappings, we should conversely verify that changes get
3924 propogated back to all the places they're supposed to be.
3925
3926 Grep wants private fixed already mapped.
3927 The main things grep needs to know about mmap are:
3928 * does it exist and is it safe to write into the mmap'd area
3929 * how to use it (BSD variants) */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003930
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003931#include <fcntl.h>
3932#include <sys/mman.h>
3933
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003934#if !STDC_HEADERS && !HAVE_STDLIB_H
3935char *malloc ();
3936#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003937
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003938/* This mess was copied from the GNU getpagesize.h. */
3939#if !HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003940/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003941# if !HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003942# define HAVE_SYS_PARAM_H 1
3943# endif
3944
3945# ifdef _SC_PAGESIZE
3946# define getpagesize() sysconf(_SC_PAGESIZE)
3947# else /* no _SC_PAGESIZE */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003948# if HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003949# include <sys/param.h>
3950# ifdef EXEC_PAGESIZE
3951# define getpagesize() EXEC_PAGESIZE
3952# else /* no EXEC_PAGESIZE */
3953# ifdef NBPG
3954# define getpagesize() NBPG * CLSIZE
3955# ifndef CLSIZE
3956# define CLSIZE 1
3957# endif /* no CLSIZE */
3958# else /* no NBPG */
3959# ifdef NBPC
3960# define getpagesize() NBPC
3961# else /* no NBPC */
3962# ifdef PAGESIZE
3963# define getpagesize() PAGESIZE
3964# endif /* PAGESIZE */
3965# endif /* no NBPC */
3966# endif /* no NBPG */
3967# endif /* no EXEC_PAGESIZE */
3968# else /* no HAVE_SYS_PARAM_H */
3969# define getpagesize() 8192 /* punt totally */
3970# endif /* no HAVE_SYS_PARAM_H */
3971# endif /* no _SC_PAGESIZE */
3972
3973#endif /* no HAVE_GETPAGESIZE */
3974
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003975int
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003976main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003977{
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003978 char *data, *data2, *data3;
3979 int i, pagesize;
3980 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003981
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003982 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003983
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003984 /* First, make a file with some known garbage in it. */
3985 data = (char *) malloc (pagesize);
3986 if (!data)
3987 exit (1);
3988 for (i = 0; i < pagesize; ++i)
3989 *(data + i) = rand ();
3990 umask (0);
3991 fd = creat ("conftest.mmap", 0600);
3992 if (fd < 0)
3993 exit (1);
3994 if (write (fd, data, pagesize) != pagesize)
3995 exit (1);
3996 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003997
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003998 /* Next, try to mmap the file at a fixed address which already has
3999 something else allocated at it. If we can, also make sure that
4000 we see the same garbage. */
4001 fd = open ("conftest.mmap", O_RDWR);
4002 if (fd < 0)
4003 exit (1);
4004 data2 = (char *) malloc (2 * pagesize);
4005 if (!data2)
4006 exit (1);
4007 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4008 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4009 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4010 exit (1);
4011 for (i = 0; i < pagesize; ++i)
4012 if (*(data + i) != *(data2 + i))
4013 exit (1);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004014
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004015 /* Finally, make sure that changes to the mapped area do not
4016 percolate back to the file as seen by read(). (This is a bug on
4017 some variants of i386 svr4.0.) */
4018 for (i = 0; i < pagesize; ++i)
4019 *(data2 + i) = *(data2 + i) + 1;
4020 data3 = (char *) malloc (pagesize);
4021 if (!data3)
4022 exit (1);
4023 if (read (fd, data3, pagesize) != pagesize)
4024 exit (1);
4025 for (i = 0; i < pagesize; ++i)
4026 if (*(data + i) != *(data3 + i))
4027 exit (1);
4028 close (fd);
4029 exit (0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004030}
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004031_ACEOF
4032rm -f conftest$ac_exeext
4033if { (eval echo "$as_me:4033: \"$ac_link\"") >&5
4034 (eval $ac_link) 2>&5
4035 ac_status=$?
4036 echo "$as_me:4036: \$? = $ac_status" >&5
4037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4038 { (eval echo "$as_me:4038: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:4041: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004043 ac_cv_func_mmap_fixed_mapped=yes
4044else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004045 echo "$as_me: program exited with status $ac_status" >&5
4046echo "$as_me: failed program was:" >&5
4047cat conftest.$ac_ext >&5
4048ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004049fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004050rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004051fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004052fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004053echo "$as_me:4053: result: $ac_cv_func_mmap_fixed_mapped" >&5
4054echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004055if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004056
4057cat >>confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004058#define HAVE_MMAP 1
4059EOF
4060
4061fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004062rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004063
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004064 echo "$as_me:4064: checking whether we are using the GNU C Library 2.1 or newer" >&5
4065echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4066if test "${ac_cv_gnu_library_2_1+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004068else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004069 cat >conftest.$ac_ext <<_ACEOF
4070#line 4070 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004071#include "confdefs.h"
4072
4073#include <features.h>
4074#ifdef __GNU_LIBRARY__
4075 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4076 Lucky GNU user
4077 #endif
4078#endif
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004079
4080_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4082 egrep "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004083 ac_cv_gnu_library_2_1=yes
4084else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004085 ac_cv_gnu_library_2_1=no
4086fi
4087rm -f conftest*
4088
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004089fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004090echo "$as_me:4090: result: $ac_cv_gnu_library_2_1" >&5
4091echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004092
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004093 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004094
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004095 echo "$as_me:4095: checking whether integer division by zero raises SIGFPE" >&5
4096echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
4097if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004099else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004100
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004101 if test "$cross_compiling" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004102
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004103 # Guess based on the CPU.
4104 case "$host_cpu" in
4105 alpha* | i3456786 | m68k | s390*)
4106 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4107 *)
4108 gt_cv_int_divbyzero_sigfpe="guessing no";;
4109 esac
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004110
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004111else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004112 cat >conftest.$ac_ext <<_ACEOF
4113#line 4113 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004114#include "confdefs.h"
4115
4116#include <stdlib.h>
4117#include <signal.h>
4118
4119static void
4120#ifdef __cplusplus
4121sigfpe_handler (int sig)
4122#else
4123sigfpe_handler (sig) int sig;
4124#endif
4125{
4126 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4127 exit (sig != SIGFPE);
4128}
4129
4130int x = 1;
4131int y = 0;
4132int z;
4133int nan;
4134
4135int main ()
4136{
4137 signal (SIGFPE, sigfpe_handler);
4138/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4139#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4140 signal (SIGTRAP, sigfpe_handler);
4141#endif
4142/* Linux/SPARC yields signal SIGILL. */
4143#if defined (__sparc__) && defined (__linux__)
4144 signal (SIGILL, sigfpe_handler);
4145#endif
4146
4147 z = x / y;
4148 nan = y / y;
4149 exit (1);
4150}
4151
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004152_ACEOF
4153rm -f conftest$ac_exeext
4154if { (eval echo "$as_me:4154: \"$ac_link\"") >&5
4155 (eval $ac_link) 2>&5
4156 ac_status=$?
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4159 { (eval echo "$as_me:4159: \"$ac_try\"") >&5
4160 (eval $ac_try) 2>&5
4161 ac_status=$?
4162 echo "$as_me:4162: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004164 gt_cv_int_divbyzero_sigfpe=yes
4165else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004166 echo "$as_me: program exited with status $ac_status" >&5
4167echo "$as_me: failed program was:" >&5
4168cat conftest.$ac_ext >&5
4169gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004170fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004171rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004172fi
4173
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004174fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004175echo "$as_me:4175: result: $gt_cv_int_divbyzero_sigfpe" >&5
4176echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004177 case "$gt_cv_int_divbyzero_sigfpe" in
4178 *yes) value=1;;
4179 *) value=0;;
4180 esac
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004181
4182cat >>confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004183#define INTDIV0_RAISES_SIGFPE $value
4184EOF
4185
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004186 echo "$as_me:4186: checking for inttypes.h" >&5
4187echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4188if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191 cat >conftest.$ac_ext <<_ACEOF
4192#line 4192 "configure"
4193#include "confdefs.h"
4194#include <sys/types.h>
4195#include <inttypes.h>
4196int
4197main ()
4198{
4199uintmax_t i = (uintmax_t) -1;
4200 ;
4201 return 0;
4202}
4203_ACEOF
4204rm -f conftest.$ac_objext
4205if { (eval echo "$as_me:4205: \"$ac_compile\"") >&5
4206 (eval $ac_compile) 2>&5
4207 ac_status=$?
4208 echo "$as_me:4208: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:4211: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:4214: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 jm_ac_cv_header_inttypes_h=yes
4217else
4218 echo "$as_me: failed program was:" >&5
4219cat conftest.$ac_ext >&5
4220jm_ac_cv_header_inttypes_h=no
4221fi
4222rm -f conftest.$ac_objext conftest.$ac_ext
4223fi
4224echo "$as_me:4224: result: $jm_ac_cv_header_inttypes_h" >&5
4225echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4226 if test $jm_ac_cv_header_inttypes_h = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004227
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004228cat >>confdefs.h <<EOF
4229#define HAVE_INTTYPES_H_WITH_UINTMAX 1
4230EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004231
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004232 fi
4233
4234 echo "$as_me:4234: checking for stdint.h" >&5
4235echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4236if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
4239 cat >conftest.$ac_ext <<_ACEOF
4240#line 4240 "configure"
4241#include "confdefs.h"
4242#include <sys/types.h>
4243#include <stdint.h>
4244int
4245main ()
4246{
4247uintmax_t i = (uintmax_t) -1;
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252rm -f conftest.$ac_objext
4253if { (eval echo "$as_me:4253: \"$ac_compile\"") >&5
4254 (eval $ac_compile) 2>&5
4255 ac_status=$?
4256 echo "$as_me:4256: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:4259: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:4262: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 jm_ac_cv_header_stdint_h=yes
4265else
4266 echo "$as_me: failed program was:" >&5
4267cat conftest.$ac_ext >&5
4268jm_ac_cv_header_stdint_h=no
4269fi
4270rm -f conftest.$ac_objext conftest.$ac_ext
4271fi
4272echo "$as_me:4272: result: $jm_ac_cv_header_stdint_h" >&5
4273echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4274 if test $jm_ac_cv_header_stdint_h = yes; then
4275
4276cat >>confdefs.h <<EOF
4277#define HAVE_STDINT_H_WITH_UINTMAX 1
4278EOF
4279
4280 fi
4281
4282 echo "$as_me:4282: checking for unsigned long long" >&5
4283echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4284if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286else
4287 cat >conftest.$ac_ext <<_ACEOF
4288#line 4288 "configure"
4289#include "confdefs.h"
4290unsigned long long ull = 1; int i = 63;
4291int
4292main ()
4293{
4294unsigned long long ullmax = (unsigned long long) -1;
4295 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300rm -f conftest.$ac_objext conftest$ac_exeext
4301if { (eval echo "$as_me:4301: \"$ac_link\"") >&5
4302 (eval $ac_link) 2>&5
4303 ac_status=$?
4304 echo "$as_me:4304: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -s conftest$ac_exeext'
4307 { (eval echo "$as_me:4307: \"$ac_try\"") >&5
4308 (eval $ac_try) 2>&5
4309 ac_status=$?
4310 echo "$as_me:4310: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_type_unsigned_long_long=yes
4313else
4314 echo "$as_me: failed program was:" >&5
4315cat conftest.$ac_ext >&5
4316ac_cv_type_unsigned_long_long=no
4317fi
4318rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4319fi
4320echo "$as_me:4320: result: $ac_cv_type_unsigned_long_long" >&5
4321echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4322 if test $ac_cv_type_unsigned_long_long = yes; then
4323
4324cat >>confdefs.h <<\EOF
4325#define HAVE_UNSIGNED_LONG_LONG 1
4326EOF
4327
4328 fi
4329
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004330 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004331
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004332 test $ac_cv_type_unsigned_long_long = yes \
4333 && ac_type='unsigned long long' \
4334 || ac_type='unsigned long'
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004335
4336cat >>confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004337#define uintmax_t $ac_type
4338EOF
4339
4340 fi
4341
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004342 echo "$as_me:4342: checking for inttypes.h" >&5
4343echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4344if test "${gt_cv_header_inttypes_h+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004346else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004347
4348 cat >conftest.$ac_ext <<_ACEOF
4349#line 4349 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004350#include "confdefs.h"
4351#include <sys/types.h>
4352#include <inttypes.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004353int
4354main ()
4355{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004356
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004357 ;
4358 return 0;
4359}
4360_ACEOF
4361rm -f conftest.$ac_objext
4362if { (eval echo "$as_me:4362: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>&5
4364 ac_status=$?
4365 echo "$as_me:4365: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (eval echo "$as_me:4368: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:4371: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004373 gt_cv_header_inttypes_h=yes
4374else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004375 echo "$as_me: failed program was:" >&5
4376cat conftest.$ac_ext >&5
4377gt_cv_header_inttypes_h=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004378fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004379rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004380
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004381fi
4382echo "$as_me:4382: result: $gt_cv_header_inttypes_h" >&5
4383echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004384 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004385
4386cat >>confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004387#define HAVE_INTTYPES_H 1
4388EOF
4389
4390 fi
4391
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004392 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004393 echo "$as_me:4393: checking whether the inttypes.h PRIxNN macros are broken" >&5
4394echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
4395if test "${gt_cv_inttypes_pri_broken+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004397else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004398
4399 cat >conftest.$ac_ext <<_ACEOF
4400#line 4400 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004401#include "confdefs.h"
4402#include <inttypes.h>
4403#ifdef PRId32
4404char *p = PRId32;
4405#endif
4406
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004407int
4408main ()
4409{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004410
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004411 ;
4412 return 0;
4413}
4414_ACEOF
4415rm -f conftest.$ac_objext
4416if { (eval echo "$as_me:4416: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>&5
4418 ac_status=$?
4419 echo "$as_me:4419: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (eval echo "$as_me:4422: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:4425: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004427 gt_cv_inttypes_pri_broken=no
4428else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004429 echo "$as_me: failed program was:" >&5
4430cat conftest.$ac_ext >&5
4431gt_cv_inttypes_pri_broken=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004432fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004433rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004434
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004435fi
4436echo "$as_me:4436: result: $gt_cv_inttypes_pri_broken" >&5
4437echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004438 fi
4439 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004440
4441cat >>confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004442#define PRI_MACROS_BROKEN 1
4443EOF
4444
4445 fi
4446
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004447 if test "X$prefix" = "XNONE"; then
4448 acl_final_prefix="$ac_default_prefix"
4449 else
4450 acl_final_prefix="$prefix"
4451 fi
4452 if test "X$exec_prefix" = "XNONE"; then
4453 acl_final_exec_prefix='${prefix}'
4454 else
4455 acl_final_exec_prefix="$exec_prefix"
4456 fi
4457 acl_save_prefix="$prefix"
4458 prefix="$acl_final_prefix"
4459 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4460 prefix="$acl_save_prefix"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004461
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004462# Check whether --with-gnu-ld or --without-gnu-ld was given.
4463if test "${with_gnu_ld+set}" = set; then
4464 withval="$with_gnu_ld"
4465 test "$withval" = no || with_gnu_ld=yes
4466else
4467 with_gnu_ld=no
4468fi;
4469ac_prog=ld
4470if test "$GCC" = yes; then
4471 # Check if gcc -print-prog-name=ld gives a path.
4472 echo "$as_me:4472: checking for ld used by GCC" >&5
4473echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4474 case $host in
4475 *-*-mingw*)
4476 # gcc leaves a trailing carriage return which upsets mingw
4477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4478 *)
4479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4480 esac
4481 case $ac_prog in
4482 # Accept absolute paths.
4483 [\\/]* | [A-Za-z]:[\\/]*)
4484 re_direlt='/[^/][^/]*/\.\./'
4485 # Canonicalize the path of ld
4486 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4488 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4489 done
4490 test -z "$LD" && LD="$ac_prog"
4491 ;;
4492 "")
4493 # If it fails, then pretend we aren't using GCC.
4494 ac_prog=ld
4495 ;;
4496 *)
4497 # If it is relative, then search for the first ld in PATH.
4498 with_gnu_ld=unknown
4499 ;;
4500 esac
4501elif test "$with_gnu_ld" = yes; then
4502 echo "$as_me:4502: checking for GNU ld" >&5
4503echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4504else
4505 echo "$as_me:4505: checking for non-GNU ld" >&5
4506echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4507fi
4508if test "${acl_cv_path_LD+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510else
4511 if test -z "$LD"; then
4512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4513 for ac_dir in $PATH; do
4514 test -z "$ac_dir" && ac_dir=.
4515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4516 acl_cv_path_LD="$ac_dir/$ac_prog"
4517 # Check to see if the program is GNU ld. I'd rather use --version,
4518 # but apparently some GNU ld's only accept -v.
4519 # Break only if it was the GNU/non-GNU ld that we prefer.
4520 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4521 test "$with_gnu_ld" != no && break
4522 else
4523 test "$with_gnu_ld" != yes && break
4524 fi
4525 fi
4526 done
4527 IFS="$ac_save_ifs"
4528else
4529 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4530fi
4531fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004532
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004533LD="$acl_cv_path_LD"
4534if test -n "$LD"; then
4535 echo "$as_me:4535: result: $LD" >&5
4536echo "${ECHO_T}$LD" >&6
4537else
4538 echo "$as_me:4538: result: no" >&5
4539echo "${ECHO_T}no" >&6
4540fi
4541test -z "$LD" && { { echo "$as_me:4541: error: no acceptable ld found in \$PATH" >&5
4542echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4543 { (exit 1); exit 1; }; }
4544echo "$as_me:4544: checking if the linker ($LD) is GNU ld" >&5
4545echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4546if test "${acl_cv_prog_gnu_ld+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4550if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4551 acl_cv_prog_gnu_ld=yes
4552else
4553 acl_cv_prog_gnu_ld=no
4554fi
4555fi
4556echo "$as_me:4556: result: $acl_cv_prog_gnu_ld" >&5
4557echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4558with_gnu_ld=$acl_cv_prog_gnu_ld
4559
4560 echo "$as_me:4560: checking for shared library run path origin" >&5
4561echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4562if test "${acl_cv_rpath+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565
4566 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4567 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4568 . ./conftest.sh
4569 rm -f ./conftest.sh
4570 acl_cv_rpath=done
4571
4572fi
4573echo "$as_me:4573: result: $acl_cv_rpath" >&5
4574echo "${ECHO_T}$acl_cv_rpath" >&6
4575 wl="$acl_cv_wl"
4576 libext="$acl_cv_libext"
4577 shlibext="$acl_cv_shlibext"
4578 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4579 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4580 hardcode_direct="$acl_cv_hardcode_direct"
4581 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4582 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
4583 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
4584 # Check whether --enable-rpath or --disable-rpath was given.
4585if test "${enable_rpath+set}" = set; then
4586 enableval="$enable_rpath"
4587 :
4588else
4589 enable_rpath=yes
4590fi;
4591
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004592 use_additional=yes
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004594 acl_save_prefix="$prefix"
4595 prefix="$acl_final_prefix"
4596 acl_save_exec_prefix="$exec_prefix"
4597 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004598
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004599 eval additional_includedir=\"$includedir\"
4600 eval additional_libdir=\"$libdir\"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004601
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004602 exec_prefix="$acl_save_exec_prefix"
4603 prefix="$acl_save_prefix"
4604
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004605# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004606if test "${with_libiconv_prefix+set}" = set; then
4607 withval="$with_libiconv_prefix"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004608
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004609 if test "X$withval" = "Xno"; then
4610 use_additional=no
4611 else
4612 if test "X$withval" = "X"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004613
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004614 acl_save_prefix="$prefix"
4615 prefix="$acl_final_prefix"
4616 acl_save_exec_prefix="$exec_prefix"
4617 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004618
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004619 eval additional_includedir=\"$includedir\"
4620 eval additional_libdir=\"$libdir\"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004621
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004622 exec_prefix="$acl_save_exec_prefix"
4623 prefix="$acl_save_prefix"
4624
4625 else
4626 additional_includedir="$withval/include"
4627 additional_libdir="$withval/lib"
4628 fi
4629 fi
4630
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004631fi;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004632 LIBICONV=
4633 LTLIBICONV=
4634 INCICONV=
4635 rpathdirs=
4636 ltrpathdirs=
4637 names_already_handled=
4638 names_next_round='iconv '
4639 while test -n "$names_next_round"; do
4640 names_this_round="$names_next_round"
4641 names_next_round=
4642 for name in $names_this_round; do
4643 already_handled=
4644 for n in $names_already_handled; do
4645 if test "$n" = "$name"; then
4646 already_handled=yes
4647 break
4648 fi
4649 done
4650 if test -z "$already_handled"; then
4651 names_already_handled="$names_already_handled $name"
4652 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4653 eval value=\"\$HAVE_LIB$uppername\"
4654 if test -n "$value"; then
4655 if test "$value" = yes; then
4656 eval value=\"\$LIB$uppername\"
4657 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4658 eval value=\"\$LTLIB$uppername\"
4659 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4660 else
4661 :
4662 fi
4663 else
4664 found_dir=
4665 found_la=
4666 found_so=
4667 found_a=
4668 if test $use_additional = yes; then
4669 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4670 found_dir="$additional_libdir"
4671 found_so="$additional_libdir/lib$name.$shlibext"
4672 if test -f "$additional_libdir/lib$name.la"; then
4673 found_la="$additional_libdir/lib$name.la"
4674 fi
4675 else
4676 if test -f "$additional_libdir/lib$name.$libext"; then
4677 found_dir="$additional_libdir"
4678 found_a="$additional_libdir/lib$name.$libext"
4679 if test -f "$additional_libdir/lib$name.la"; then
4680 found_la="$additional_libdir/lib$name.la"
4681 fi
4682 fi
4683 fi
4684 fi
4685 if test "X$found_dir" = "X"; then
4686 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004687
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004688 acl_save_prefix="$prefix"
4689 prefix="$acl_final_prefix"
4690 acl_save_exec_prefix="$exec_prefix"
4691 exec_prefix="$acl_final_exec_prefix"
4692 eval x=\"$x\"
4693 exec_prefix="$acl_save_exec_prefix"
4694 prefix="$acl_save_prefix"
4695
4696 case "$x" in
4697 -L*)
4698 dir=`echo "X$x" | sed -e 's/^X-L//'`
4699 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4700 found_dir="$dir"
4701 found_so="$dir/lib$name.$shlibext"
4702 if test -f "$dir/lib$name.la"; then
4703 found_la="$dir/lib$name.la"
4704 fi
4705 else
4706 if test -f "$dir/lib$name.$libext"; then
4707 found_dir="$dir"
4708 found_a="$dir/lib$name.$libext"
4709 if test -f "$dir/lib$name.la"; then
4710 found_la="$dir/lib$name.la"
4711 fi
4712 fi
4713 fi
4714 ;;
4715 esac
4716 if test "X$found_dir" != "X"; then
4717 break
4718 fi
4719 done
4720 fi
4721 if test "X$found_dir" != "X"; then
4722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4723 if test "X$found_so" != "X"; then
4724 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4726 else
4727 haveit=
4728 for x in $ltrpathdirs; do
4729 if test "X$x" = "X$found_dir"; then
4730 haveit=yes
4731 break
4732 fi
4733 done
4734 if test -z "$haveit"; then
4735 ltrpathdirs="$ltrpathdirs $found_dir"
4736 fi
4737 if test "$hardcode_direct" = yes; then
4738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4739 else
4740 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4742 haveit=
4743 for x in $rpathdirs; do
4744 if test "X$x" = "X$found_dir"; then
4745 haveit=yes
4746 break
4747 fi
4748 done
4749 if test -z "$haveit"; then
4750 rpathdirs="$rpathdirs $found_dir"
4751 fi
4752 else
4753 haveit=
4754 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004755
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004756 acl_save_prefix="$prefix"
4757 prefix="$acl_final_prefix"
4758 acl_save_exec_prefix="$exec_prefix"
4759 exec_prefix="$acl_final_exec_prefix"
4760 eval x=\"$x\"
4761 exec_prefix="$acl_save_exec_prefix"
4762 prefix="$acl_save_prefix"
4763
4764 if test "X$x" = "X-L$found_dir"; then
4765 haveit=yes
4766 break
4767 fi
4768 done
4769 if test -z "$haveit"; then
4770 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4771 fi
4772 if test "$hardcode_minus_L" != no; then
4773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4774 else
4775 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4776 fi
4777 fi
4778 fi
4779 fi
4780 else
4781 if test "X$found_a" != "X"; then
4782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4783 else
4784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4785 fi
4786 fi
4787 additional_includedir=
4788 case "$found_dir" in
4789 */lib | */lib/)
4790 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4791 additional_includedir="$basedir/include"
4792 ;;
4793 esac
4794 if test "X$additional_includedir" != "X"; then
4795 if test "X$additional_includedir" != "X/usr/include"; then
4796 haveit=
4797 if test "X$additional_includedir" = "X/usr/local/include"; then
4798 if test -n "$GCC"; then
4799 case $host_os in
4800 linux*) haveit=yes;;
4801 esac
4802 fi
4803 fi
4804 if test -z "$haveit"; then
4805 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004806
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004807 acl_save_prefix="$prefix"
4808 prefix="$acl_final_prefix"
4809 acl_save_exec_prefix="$exec_prefix"
4810 exec_prefix="$acl_final_exec_prefix"
4811 eval x=\"$x\"
4812 exec_prefix="$acl_save_exec_prefix"
4813 prefix="$acl_save_prefix"
4814
4815 if test "X$x" = "X-I$additional_includedir"; then
4816 haveit=yes
4817 break
4818 fi
4819 done
4820 if test -z "$haveit"; then
4821 if test -d "$additional_includedir"; then
4822 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4823 fi
4824 fi
4825 fi
4826 fi
4827 fi
4828 if test -n "$found_la"; then
4829 save_libdir="$libdir"
4830 case "$found_la" in
4831 */* | *\\*) . "$found_la" ;;
4832 *) . "./$found_la" ;;
4833 esac
4834 libdir="$save_libdir"
4835 for dep in $dependency_libs; do
4836 case "$dep" in
4837 -L*)
4838 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4839 if test "X$additional_libdir" != "X/usr/lib"; then
4840 haveit=
4841 if test "X$additional_libdir" = "X/usr/local/lib"; then
4842 if test -n "$GCC"; then
4843 case $host_os in
4844 linux*) haveit=yes;;
4845 esac
4846 fi
4847 fi
4848 if test -z "$haveit"; then
4849 haveit=
4850 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004851
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004852 acl_save_prefix="$prefix"
4853 prefix="$acl_final_prefix"
4854 acl_save_exec_prefix="$exec_prefix"
4855 exec_prefix="$acl_final_exec_prefix"
4856 eval x=\"$x\"
4857 exec_prefix="$acl_save_exec_prefix"
4858 prefix="$acl_save_prefix"
4859
4860 if test "X$x" = "X-L$additional_libdir"; then
4861 haveit=yes
4862 break
4863 fi
4864 done
4865 if test -z "$haveit"; then
4866 if test -d "$additional_libdir"; then
4867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4868 fi
4869 fi
4870 haveit=
4871 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004872
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004873 acl_save_prefix="$prefix"
4874 prefix="$acl_final_prefix"
4875 acl_save_exec_prefix="$exec_prefix"
4876 exec_prefix="$acl_final_exec_prefix"
4877 eval x=\"$x\"
4878 exec_prefix="$acl_save_exec_prefix"
4879 prefix="$acl_save_prefix"
4880
4881 if test "X$x" = "X-L$additional_libdir"; then
4882 haveit=yes
4883 break
4884 fi
4885 done
4886 if test -z "$haveit"; then
4887 if test -d "$additional_libdir"; then
4888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4889 fi
4890 fi
4891 fi
4892 fi
4893 ;;
4894 -R*)
4895 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4896 if test "$enable_rpath" != no; then
4897 haveit=
4898 for x in $rpathdirs; do
4899 if test "X$x" = "X$dir"; then
4900 haveit=yes
4901 break
4902 fi
4903 done
4904 if test -z "$haveit"; then
4905 rpathdirs="$rpathdirs $dir"
4906 fi
4907 haveit=
4908 for x in $ltrpathdirs; do
4909 if test "X$x" = "X$dir"; then
4910 haveit=yes
4911 break
4912 fi
4913 done
4914 if test -z "$haveit"; then
4915 ltrpathdirs="$ltrpathdirs $dir"
4916 fi
4917 fi
4918 ;;
4919 -l*)
4920 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4921 ;;
4922 *.la)
4923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4924 ;;
4925 *)
4926 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4928 ;;
4929 esac
4930 done
4931 fi
4932 else
4933 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4935 fi
4936 fi
4937 fi
4938 done
4939 done
4940 if test "X$rpathdirs" != "X"; then
4941 if test -n "$hardcode_libdir_separator"; then
4942 alldirs=
4943 for found_dir in $rpathdirs; do
4944 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4945 done
4946 acl_save_libdir="$libdir"
4947 libdir="$alldirs"
4948 eval flag=\"$hardcode_libdir_flag_spec\"
4949 libdir="$acl_save_libdir"
4950 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4951 else
4952 for found_dir in $rpathdirs; do
4953 acl_save_libdir="$libdir"
4954 libdir="$found_dir"
4955 eval flag=\"$hardcode_libdir_flag_spec\"
4956 libdir="$acl_save_libdir"
4957 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4958 done
4959 fi
4960 fi
4961 if test "X$ltrpathdirs" != "X"; then
4962 for found_dir in $ltrpathdirs; do
4963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4964 done
4965 fi
4966
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004967for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004968stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004969do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4971echo "$as_me:4971: checking for $ac_header" >&5
4972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4973if eval "test \"\${$as_ac_Header+set}\" = set"; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004975else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004976 cat >conftest.$ac_ext <<_ACEOF
4977#line 4977 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004978#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004979#include <$ac_header>
4980_ACEOF
4981if { (eval echo "$as_me:4981: \"$ac_cpp conftest.$ac_ext\"") >&5
4982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4983 ac_status=$?
4984 egrep -v '^ *\+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:4987: \$? = $ac_status" >&5
4988 (exit $ac_status); } >/dev/null; then
4989 if test -s conftest.err; then
4990 ac_cpp_err=$ac_c_preproc_warn_flag
4991 else
4992 ac_cpp_err=
4993 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004994else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004995 ac_cpp_err=yes
4996fi
4997if test -z "$ac_cpp_err"; then
4998 eval "$as_ac_Header=yes"
4999else
5000 echo "$as_me: failed program was:" >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005001 cat conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005002 eval "$as_ac_Header=no"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005003fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005004rm -f conftest.err conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005005fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005006echo "$as_me:5006: result: `eval echo '${'$as_ac_Header'}'`" >&5
5007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5008if test `eval echo '${'$as_ac_Header'}'` = yes; then
5009 cat >>confdefs.h <<EOF
5010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005011EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005012
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005013fi
5014done
5015
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005016for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005017geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5018strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005019do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5021echo "$as_me:5021: checking for $ac_func" >&5
5022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5023if eval "test \"\${$as_ac_var+set}\" = set"; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005025else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005026 cat >conftest.$ac_ext <<_ACEOF
5027#line 5027 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005028#include "confdefs.h"
5029/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005030 which can conflict with char $ac_func (); below. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005031#include <assert.h>
5032/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005033#ifdef __cplusplus
5034extern "C"
5035#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005036/* We use char because int might match the return type of a gcc2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005037 builtin and then its argument prototype would still apply. */
5038char $ac_func ();
5039char (*f) ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005040
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005041int
5042main ()
5043{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005044/* The GNU C library defines this for functions which it implements
5045 to always fail with ENOSYS. Some functions are actually named
5046 something starting with __ and the normal name is an alias. */
5047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5048choke me
5049#else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005050f = $ac_func;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005051#endif
5052
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005053 ;
5054 return 0;
5055}
5056_ACEOF
5057rm -f conftest.$ac_objext conftest$ac_exeext
5058if { (eval echo "$as_me:5058: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>&5
5060 ac_status=$?
5061 echo "$as_me:5061: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -s conftest$ac_exeext'
5064 { (eval echo "$as_me:5064: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:5067: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005070else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005071 echo "$as_me: failed program was:" >&5
5072cat conftest.$ac_ext >&5
5073eval "$as_ac_var=no"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005074fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005076fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005077echo "$as_me:5077: result: `eval echo '${'$as_ac_var'}'`" >&5
5078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5079if test `eval echo '${'$as_ac_var'}'` = yes; then
5080 cat >>confdefs.h <<EOF
5081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5082EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005083
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005084fi
5085done
5086
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005087 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005088
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005089 for element in $INCICONV; do
5090 haveit=
5091 for x in $CPPFLAGS; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005092
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005093 acl_save_prefix="$prefix"
5094 prefix="$acl_final_prefix"
5095 acl_save_exec_prefix="$exec_prefix"
5096 exec_prefix="$acl_final_exec_prefix"
5097 eval x=\"$x\"
5098 exec_prefix="$acl_save_exec_prefix"
5099 prefix="$acl_save_prefix"
5100
5101 if test "X$x" = "X$element"; then
5102 haveit=yes
5103 break
5104 fi
5105 done
5106 if test -z "$haveit"; then
5107 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5108 fi
5109 done
5110
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005111 echo "$as_me:5111: checking for iconv" >&5
5112echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5113if test "${am_cv_func_iconv+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005115else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005116
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005117 am_cv_func_iconv="no, consider installing GNU libiconv"
5118 am_cv_lib_iconv=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005119 cat >conftest.$ac_ext <<_ACEOF
5120#line 5120 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005121#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005122#include <stdlib.h>
5123#include <iconv.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005124int
5125main ()
5126{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005127iconv_t cd = iconv_open("","");
5128 iconv(cd,NULL,NULL,NULL,NULL);
5129 iconv_close(cd);
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005130 ;
5131 return 0;
5132}
5133_ACEOF
5134rm -f conftest.$ac_objext conftest$ac_exeext
5135if { (eval echo "$as_me:5135: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>&5
5137 ac_status=$?
5138 echo "$as_me:5138: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -s conftest$ac_exeext'
5141 { (eval echo "$as_me:5141: \"$ac_try\"") >&5
5142 (eval $ac_try) 2>&5
5143 ac_status=$?
5144 echo "$as_me:5144: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005146 am_cv_func_iconv=yes
5147else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005148 echo "$as_me: failed program was:" >&5
5149cat conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005150fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005152 if test "$am_cv_func_iconv" != yes; then
5153 am_save_LIBS="$LIBS"
5154 LIBS="$LIBS $LIBICONV"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005155 cat >conftest.$ac_ext <<_ACEOF
5156#line 5156 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005157#include "confdefs.h"
5158#include <stdlib.h>
5159#include <iconv.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005160int
5161main ()
5162{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005163iconv_t cd = iconv_open("","");
5164 iconv(cd,NULL,NULL,NULL,NULL);
5165 iconv_close(cd);
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005166 ;
5167 return 0;
5168}
5169_ACEOF
5170rm -f conftest.$ac_objext conftest$ac_exeext
5171if { (eval echo "$as_me:5171: \"$ac_link\"") >&5
5172 (eval $ac_link) 2>&5
5173 ac_status=$?
5174 echo "$as_me:5174: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try='test -s conftest$ac_exeext'
5177 { (eval echo "$as_me:5177: \"$ac_try\"") >&5
5178 (eval $ac_try) 2>&5
5179 ac_status=$?
5180 echo "$as_me:5180: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005182 am_cv_lib_iconv=yes
5183 am_cv_func_iconv=yes
5184else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005185 echo "$as_me: failed program was:" >&5
5186cat conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005187fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005189 LIBS="$am_save_LIBS"
5190 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005191
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005192fi
5193echo "$as_me:5193: result: $am_cv_func_iconv" >&5
5194echo "${ECHO_T}$am_cv_func_iconv" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005195 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005196
5197cat >>confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005198#define HAVE_ICONV 1
5199EOF
5200
5201 fi
5202 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005203 echo "$as_me:5203: checking how to link with libiconv" >&5
5204echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5205 echo "$as_me:5205: result: $LIBICONV" >&5
5206echo "${ECHO_T}$LIBICONV" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005207 else
5208 CPPFLAGS="$am_save_CPPFLAGS"
5209 LIBICONV=
5210 LTLIBICONV=
5211 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005212
5213 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005214 echo "$as_me:5214: checking for iconv declaration" >&5
5215echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
5216 if test "${am_cv_proto_iconv+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005218else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005219
5220 cat >conftest.$ac_ext <<_ACEOF
5221#line 5221 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005222#include "confdefs.h"
5223
5224#include <stdlib.h>
5225#include <iconv.h>
5226extern
5227#ifdef __cplusplus
5228"C"
5229#endif
5230#if defined(__STDC__) || defined(__cplusplus)
5231size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5232#else
5233size_t iconv();
5234#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005235
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005236int
5237main ()
5238{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005239
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005240 ;
5241 return 0;
5242}
5243_ACEOF
5244rm -f conftest.$ac_objext
5245if { (eval echo "$as_me:5245: \"$ac_compile\"") >&5
5246 (eval $ac_compile) 2>&5
5247 ac_status=$?
5248 echo "$as_me:5248: \$? = $ac_status" >&5
5249 (exit $ac_status); } &&
5250 { ac_try='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:5251: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:5254: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005256 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005257else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005258 echo "$as_me: failed program was:" >&5
5259cat conftest.$ac_ext >&5
5260am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005261fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005262rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005263 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005264fi
5265
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005266 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005267 echo "$as_me:5267: result: ${ac_t:-
5268 }$am_cv_proto_iconv" >&5
5269echo "${ECHO_T}${ac_t:-
5270 }$am_cv_proto_iconv" >&6
5271
5272cat >>confdefs.h <<EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005273#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005274EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005275
5276 fi
5277
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005278 echo "$as_me:5278: checking for nl_langinfo and CODESET" >&5
5279echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5280if test "${am_cv_langinfo_codeset+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005282else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005283 cat >conftest.$ac_ext <<_ACEOF
5284#line 5284 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005285#include "confdefs.h"
5286#include <langinfo.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005287int
5288main ()
5289{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005290char* cs = nl_langinfo(CODESET);
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005291 ;
5292 return 0;
5293}
5294_ACEOF
5295rm -f conftest.$ac_objext conftest$ac_exeext
5296if { (eval echo "$as_me:5296: \"$ac_link\"") >&5
5297 (eval $ac_link) 2>&5
5298 ac_status=$?
5299 echo "$as_me:5299: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -s conftest$ac_exeext'
5302 { (eval echo "$as_me:5302: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:5305: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005307 am_cv_langinfo_codeset=yes
5308else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005309 echo "$as_me: failed program was:" >&5
5310cat conftest.$ac_ext >&5
5311am_cv_langinfo_codeset=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005312fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005314
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005315fi
5316echo "$as_me:5316: result: $am_cv_langinfo_codeset" >&5
5317echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005318 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005319
5320cat >>confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005321#define HAVE_LANGINFO_CODESET 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005322EOF
5323
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005324 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005325
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005326 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005327
5328 echo "$as_me:5328: checking for LC_MESSAGES" >&5
5329echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
5330if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005332else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005333 cat >conftest.$ac_ext <<_ACEOF
5334#line 5334 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005335#include "confdefs.h"
5336#include <locale.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005337int
5338main ()
5339{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005340return LC_MESSAGES
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005341 ;
5342 return 0;
5343}
5344_ACEOF
5345rm -f conftest.$ac_objext conftest$ac_exeext
5346if { (eval echo "$as_me:5346: \"$ac_link\"") >&5
5347 (eval $ac_link) 2>&5
5348 ac_status=$?
5349 echo "$as_me:5349: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try='test -s conftest$ac_exeext'
5352 { (eval echo "$as_me:5352: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:5355: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005357 am_cv_val_LC_MESSAGES=yes
5358else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005359 echo "$as_me: failed program was:" >&5
5360cat conftest.$ac_ext >&5
5361am_cv_val_LC_MESSAGES=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005362fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005364fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005365echo "$as_me:5365: result: $am_cv_val_LC_MESSAGES" >&5
5366echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005367 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005368
5369cat >>confdefs.h <<\EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005370#define HAVE_LC_MESSAGES 1
5371EOF
5372
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005373 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005374
5375 fi
5376
5377 for ac_prog in bison
5378do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005379 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005380set dummy $ac_prog; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005381echo "$as_me:5381: checking for $ac_word" >&5
5382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383if test "${ac_cv_prog_INTLBISON+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005385else
5386 if test -n "$INTLBISON"; then
5387 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5388else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005389 ac_save_IFS=$IFS; IFS=$ac_path_separator
5390ac_dummy="$PATH"
5391for ac_dir in $ac_dummy; do
5392 IFS=$ac_save_IFS
5393 test -z "$ac_dir" && ac_dir=.
5394 $as_executable_p "$ac_dir/$ac_word" || continue
5395ac_cv_prog_INTLBISON="$ac_prog"
5396echo "$as_me:5396: found $ac_dir/$ac_word" >&5
5397break
5398done
5399
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005400fi
5401fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005402INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005403if test -n "$INTLBISON"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005404 echo "$as_me:5404: result: $INTLBISON" >&5
5405echo "${ECHO_T}$INTLBISON" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005406else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005407 echo "$as_me:5407: result: no" >&5
5408echo "${ECHO_T}no" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005409fi
5410
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005411 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005412done
5413
5414 if test -z "$INTLBISON"; then
5415 ac_verc_fail=yes
5416 else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005417 echo "$as_me:5417: checking version of bison" >&5
5418echo $ECHO_N "checking version of bison... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005419 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5420 case $ac_prog_version in
5421 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5422 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5423 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5424 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5425 esac
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005426 echo "$as_me:5426: result: $ac_prog_version" >&5
5427echo "${ECHO_T}$ac_prog_version" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005428 fi
5429 if test $ac_verc_fail = yes; then
5430 INTLBISON=:
5431 fi
5432
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005433 echo "$as_me:5433: checking whether NLS is requested" >&5
5434echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005435 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005436if test "${enable_nls+set}" = set; then
5437 enableval="$enable_nls"
5438 USE_NLS=$enableval
5439else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005440 USE_NLS=yes
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005441fi;
5442 echo "$as_me:5442: result: $USE_NLS" >&5
5443echo "${ECHO_T}$USE_NLS" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005444
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005445 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005446 USE_INCLUDED_LIBINTL=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005447
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005448 LIBINTL=
5449 LTLIBINTL=
5450 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005451
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005452 if test "$USE_NLS" = "yes"; then
5453 gt_use_preinstalled_gnugettext=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005454
5455 echo "$as_me:5455: checking whether included gettext is requested" >&5
5456echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
5457
5458# Check whether --with-included-gettext or --without-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005459if test "${with_included_gettext+set}" = set; then
5460 withval="$with_included_gettext"
5461 nls_cv_force_use_gnu_gettext=$withval
5462else
5463 nls_cv_force_use_gnu_gettext=no
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005464fi;
5465 echo "$as_me:5465: result: $nls_cv_force_use_gnu_gettext" >&5
5466echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005467
5468 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5469 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005470
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005471 echo "$as_me:5471: checking for GNU gettext in libc" >&5
5472echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5473if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005475else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005476 cat >conftest.$ac_ext <<_ACEOF
5477#line 5477 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005478#include "confdefs.h"
5479#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005480extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005481extern int *_nl_domain_bindings;
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005482int
5483main ()
5484{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005485bindtextdomain ("", "");
5486return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005487 ;
5488 return 0;
5489}
5490_ACEOF
5491rm -f conftest.$ac_objext conftest$ac_exeext
5492if { (eval echo "$as_me:5492: \"$ac_link\"") >&5
5493 (eval $ac_link) 2>&5
5494 ac_status=$?
5495 echo "$as_me:5495: \$? = $ac_status" >&5
5496 (exit $ac_status); } &&
5497 { ac_try='test -s conftest$ac_exeext'
5498 { (eval echo "$as_me:5498: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:5501: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005503 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005504else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005505 echo "$as_me: failed program was:" >&5
5506cat conftest.$ac_ext >&5
5507gt_cv_func_gnugettext1_libc=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005508fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005510fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005511echo "$as_me:5511: result: $gt_cv_func_gnugettext1_libc" >&5
5512echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005513
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005514 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005515
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005516 use_additional=yes
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005517
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005518 acl_save_prefix="$prefix"
5519 prefix="$acl_final_prefix"
5520 acl_save_exec_prefix="$exec_prefix"
5521 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005522
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005523 eval additional_includedir=\"$includedir\"
5524 eval additional_libdir=\"$libdir\"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005525
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005526 exec_prefix="$acl_save_exec_prefix"
5527 prefix="$acl_save_prefix"
5528
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005529# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005530if test "${with_libintl_prefix+set}" = set; then
5531 withval="$with_libintl_prefix"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005532
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005533 if test "X$withval" = "Xno"; then
5534 use_additional=no
5535 else
5536 if test "X$withval" = "X"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005537
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005538 acl_save_prefix="$prefix"
5539 prefix="$acl_final_prefix"
5540 acl_save_exec_prefix="$exec_prefix"
5541 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005542
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005543 eval additional_includedir=\"$includedir\"
5544 eval additional_libdir=\"$libdir\"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005545
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005546 exec_prefix="$acl_save_exec_prefix"
5547 prefix="$acl_save_prefix"
5548
5549 else
5550 additional_includedir="$withval/include"
5551 additional_libdir="$withval/lib"
5552 fi
5553 fi
5554
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005555fi;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005556 LIBINTL=
5557 LTLIBINTL=
5558 INCINTL=
5559 rpathdirs=
5560 ltrpathdirs=
5561 names_already_handled=
5562 names_next_round='intl '
5563 while test -n "$names_next_round"; do
5564 names_this_round="$names_next_round"
5565 names_next_round=
5566 for name in $names_this_round; do
5567 already_handled=
5568 for n in $names_already_handled; do
5569 if test "$n" = "$name"; then
5570 already_handled=yes
5571 break
5572 fi
5573 done
5574 if test -z "$already_handled"; then
5575 names_already_handled="$names_already_handled $name"
5576 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5577 eval value=\"\$HAVE_LIB$uppername\"
5578 if test -n "$value"; then
5579 if test "$value" = yes; then
5580 eval value=\"\$LIB$uppername\"
5581 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5582 eval value=\"\$LTLIB$uppername\"
5583 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5584 else
5585 :
5586 fi
5587 else
5588 found_dir=
5589 found_la=
5590 found_so=
5591 found_a=
5592 if test $use_additional = yes; then
5593 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5594 found_dir="$additional_libdir"
5595 found_so="$additional_libdir/lib$name.$shlibext"
5596 if test -f "$additional_libdir/lib$name.la"; then
5597 found_la="$additional_libdir/lib$name.la"
5598 fi
5599 else
5600 if test -f "$additional_libdir/lib$name.$libext"; then
5601 found_dir="$additional_libdir"
5602 found_a="$additional_libdir/lib$name.$libext"
5603 if test -f "$additional_libdir/lib$name.la"; then
5604 found_la="$additional_libdir/lib$name.la"
5605 fi
5606 fi
5607 fi
5608 fi
5609 if test "X$found_dir" = "X"; then
5610 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005611
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005612 acl_save_prefix="$prefix"
5613 prefix="$acl_final_prefix"
5614 acl_save_exec_prefix="$exec_prefix"
5615 exec_prefix="$acl_final_exec_prefix"
5616 eval x=\"$x\"
5617 exec_prefix="$acl_save_exec_prefix"
5618 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005619
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005620 case "$x" in
5621 -L*)
5622 dir=`echo "X$x" | sed -e 's/^X-L//'`
5623 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5624 found_dir="$dir"
5625 found_so="$dir/lib$name.$shlibext"
5626 if test -f "$dir/lib$name.la"; then
5627 found_la="$dir/lib$name.la"
5628 fi
5629 else
5630 if test -f "$dir/lib$name.$libext"; then
5631 found_dir="$dir"
5632 found_a="$dir/lib$name.$libext"
5633 if test -f "$dir/lib$name.la"; then
5634 found_la="$dir/lib$name.la"
5635 fi
5636 fi
5637 fi
5638 ;;
5639 esac
5640 if test "X$found_dir" != "X"; then
5641 break
5642 fi
5643 done
5644 fi
5645 if test "X$found_dir" != "X"; then
5646 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5647 if test "X$found_so" != "X"; then
5648 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5649 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5650 else
5651 haveit=
5652 for x in $ltrpathdirs; do
5653 if test "X$x" = "X$found_dir"; then
5654 haveit=yes
5655 break
5656 fi
5657 done
5658 if test -z "$haveit"; then
5659 ltrpathdirs="$ltrpathdirs $found_dir"
5660 fi
5661 if test "$hardcode_direct" = yes; then
5662 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5663 else
5664 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5665 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5666 haveit=
5667 for x in $rpathdirs; do
5668 if test "X$x" = "X$found_dir"; then
5669 haveit=yes
5670 break
5671 fi
5672 done
5673 if test -z "$haveit"; then
5674 rpathdirs="$rpathdirs $found_dir"
5675 fi
5676 else
5677 haveit=
5678 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005679
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005680 acl_save_prefix="$prefix"
5681 prefix="$acl_final_prefix"
5682 acl_save_exec_prefix="$exec_prefix"
5683 exec_prefix="$acl_final_exec_prefix"
5684 eval x=\"$x\"
5685 exec_prefix="$acl_save_exec_prefix"
5686 prefix="$acl_save_prefix"
5687
5688 if test "X$x" = "X-L$found_dir"; then
5689 haveit=yes
5690 break
5691 fi
5692 done
5693 if test -z "$haveit"; then
5694 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5695 fi
5696 if test "$hardcode_minus_L" != no; then
5697 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5698 else
5699 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5700 fi
5701 fi
5702 fi
5703 fi
5704 else
5705 if test "X$found_a" != "X"; then
5706 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5707 else
5708 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5709 fi
5710 fi
5711 additional_includedir=
5712 case "$found_dir" in
5713 */lib | */lib/)
5714 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5715 additional_includedir="$basedir/include"
5716 ;;
5717 esac
5718 if test "X$additional_includedir" != "X"; then
5719 if test "X$additional_includedir" != "X/usr/include"; then
5720 haveit=
5721 if test "X$additional_includedir" = "X/usr/local/include"; then
5722 if test -n "$GCC"; then
5723 case $host_os in
5724 linux*) haveit=yes;;
5725 esac
5726 fi
5727 fi
5728 if test -z "$haveit"; then
5729 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005730
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005731 acl_save_prefix="$prefix"
5732 prefix="$acl_final_prefix"
5733 acl_save_exec_prefix="$exec_prefix"
5734 exec_prefix="$acl_final_exec_prefix"
5735 eval x=\"$x\"
5736 exec_prefix="$acl_save_exec_prefix"
5737 prefix="$acl_save_prefix"
5738
5739 if test "X$x" = "X-I$additional_includedir"; then
5740 haveit=yes
5741 break
5742 fi
5743 done
5744 if test -z "$haveit"; then
5745 if test -d "$additional_includedir"; then
5746 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5747 fi
5748 fi
5749 fi
5750 fi
5751 fi
5752 if test -n "$found_la"; then
5753 save_libdir="$libdir"
5754 case "$found_la" in
5755 */* | *\\*) . "$found_la" ;;
5756 *) . "./$found_la" ;;
5757 esac
5758 libdir="$save_libdir"
5759 for dep in $dependency_libs; do
5760 case "$dep" in
5761 -L*)
5762 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5763 if test "X$additional_libdir" != "X/usr/lib"; then
5764 haveit=
5765 if test "X$additional_libdir" = "X/usr/local/lib"; then
5766 if test -n "$GCC"; then
5767 case $host_os in
5768 linux*) haveit=yes;;
5769 esac
5770 fi
5771 fi
5772 if test -z "$haveit"; then
5773 haveit=
5774 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005775
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005776 acl_save_prefix="$prefix"
5777 prefix="$acl_final_prefix"
5778 acl_save_exec_prefix="$exec_prefix"
5779 exec_prefix="$acl_final_exec_prefix"
5780 eval x=\"$x\"
5781 exec_prefix="$acl_save_exec_prefix"
5782 prefix="$acl_save_prefix"
5783
5784 if test "X$x" = "X-L$additional_libdir"; then
5785 haveit=yes
5786 break
5787 fi
5788 done
5789 if test -z "$haveit"; then
5790 if test -d "$additional_libdir"; then
5791 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5792 fi
5793 fi
5794 haveit=
5795 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005796
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005797 acl_save_prefix="$prefix"
5798 prefix="$acl_final_prefix"
5799 acl_save_exec_prefix="$exec_prefix"
5800 exec_prefix="$acl_final_exec_prefix"
5801 eval x=\"$x\"
5802 exec_prefix="$acl_save_exec_prefix"
5803 prefix="$acl_save_prefix"
5804
5805 if test "X$x" = "X-L$additional_libdir"; then
5806 haveit=yes
5807 break
5808 fi
5809 done
5810 if test -z "$haveit"; then
5811 if test -d "$additional_libdir"; then
5812 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5813 fi
5814 fi
5815 fi
5816 fi
5817 ;;
5818 -R*)
5819 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5820 if test "$enable_rpath" != no; then
5821 haveit=
5822 for x in $rpathdirs; do
5823 if test "X$x" = "X$dir"; then
5824 haveit=yes
5825 break
5826 fi
5827 done
5828 if test -z "$haveit"; then
5829 rpathdirs="$rpathdirs $dir"
5830 fi
5831 haveit=
5832 for x in $ltrpathdirs; do
5833 if test "X$x" = "X$dir"; then
5834 haveit=yes
5835 break
5836 fi
5837 done
5838 if test -z "$haveit"; then
5839 ltrpathdirs="$ltrpathdirs $dir"
5840 fi
5841 fi
5842 ;;
5843 -l*)
5844 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5845 ;;
5846 *.la)
5847 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5848 ;;
5849 *)
5850 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5851 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5852 ;;
5853 esac
5854 done
5855 fi
5856 else
5857 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5858 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5859 fi
5860 fi
5861 fi
5862 done
5863 done
5864 if test "X$rpathdirs" != "X"; then
5865 if test -n "$hardcode_libdir_separator"; then
5866 alldirs=
5867 for found_dir in $rpathdirs; do
5868 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5869 done
5870 acl_save_libdir="$libdir"
5871 libdir="$alldirs"
5872 eval flag=\"$hardcode_libdir_flag_spec\"
5873 libdir="$acl_save_libdir"
5874 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5875 else
5876 for found_dir in $rpathdirs; do
5877 acl_save_libdir="$libdir"
5878 libdir="$found_dir"
5879 eval flag=\"$hardcode_libdir_flag_spec\"
5880 libdir="$acl_save_libdir"
5881 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5882 done
5883 fi
5884 fi
5885 if test "X$ltrpathdirs" != "X"; then
5886 for found_dir in $ltrpathdirs; do
5887 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5888 done
5889 fi
5890
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005891 echo "$as_me:5891: checking for GNU gettext in libintl" >&5
5892echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
5893if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005895else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005896 gt_save_CPPFLAGS="$CPPFLAGS"
5897 CPPFLAGS="$CPPFLAGS $INCINTL"
5898 gt_save_LIBS="$LIBS"
5899 LIBS="$LIBS $LIBINTL"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005900 cat >conftest.$ac_ext <<_ACEOF
5901#line 5901 "configure"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005902#include "confdefs.h"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005903#include <libintl.h>
5904extern int _nl_msg_cat_cntr;
5905extern
5906#ifdef __cplusplus
5907"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005908#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005909const char *_nl_expand_alias ();
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005910int
5911main ()
5912{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005913bindtextdomain ("", "");
5914return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005915 ;
5916 return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext conftest$ac_exeext
5920if { (eval echo "$as_me:5920: \"$ac_link\"") >&5
5921 (eval $ac_link) 2>&5
5922 ac_status=$?
5923 echo "$as_me:5923: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -s conftest$ac_exeext'
5926 { (eval echo "$as_me:5926: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:5929: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005931 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005932else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005933 echo "$as_me: failed program was:" >&5
5934cat conftest.$ac_ext >&5
5935gt_cv_func_gnugettext1_libintl=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005936fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005937rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005938 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5939 LIBS="$LIBS $LIBICONV"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005940 cat >conftest.$ac_ext <<_ACEOF
5941#line 5941 "configure"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005942#include "confdefs.h"
5943#include <libintl.h>
5944extern int _nl_msg_cat_cntr;
5945extern
5946#ifdef __cplusplus
5947"C"
5948#endif
5949const char *_nl_expand_alias ();
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005950int
5951main ()
5952{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005953bindtextdomain ("", "");
5954return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005955 ;
5956 return 0;
5957}
5958_ACEOF
5959rm -f conftest.$ac_objext conftest$ac_exeext
5960if { (eval echo "$as_me:5960: \"$ac_link\"") >&5
5961 (eval $ac_link) 2>&5
5962 ac_status=$?
5963 echo "$as_me:5963: \$? = $ac_status" >&5
5964 (exit $ac_status); } &&
5965 { ac_try='test -s conftest$ac_exeext'
5966 { (eval echo "$as_me:5966: \"$ac_try\"") >&5
5967 (eval $ac_try) 2>&5
5968 ac_status=$?
5969 echo "$as_me:5969: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005971 LIBINTL="$LIBINTL $LIBICONV"
5972 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5973 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005974
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005975else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005976 echo "$as_me: failed program was:" >&5
5977cat conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005978fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005980 fi
5981 CPPFLAGS="$gt_save_CPPFLAGS"
5982 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005983fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005984echo "$as_me:5984: result: $gt_cv_func_gnugettext1_libintl" >&5
5985echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005986 fi
5987
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005988 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5989 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5990 && test "$PACKAGE" != gettext; }; then
5991 gt_use_preinstalled_gnugettext=yes
5992 else
5993 LIBINTL=
5994 LTLIBINTL=
5995 INCINTL=
5996 fi
5997
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005998 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
5999 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006000 fi
6001 fi
6002
6003 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6004 INTLOBJS="\$(GETTOBJS)"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006005 BUILD_INCLUDED_LIBINTL=yes
6006 USE_INCLUDED_LIBINTL=yes
6007 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6008 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6009 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006010 fi
6011
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006012 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6013 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6014 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006015 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006016
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006017 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6018 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006019
6020cat >>confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006021#define ENABLE_NLS 1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006022EOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006023
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006024 else
6025 USE_NLS=no
6026 fi
6027 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006028
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006029 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006030
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006031 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6032 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006033 echo "$as_me:6033: checking how to link with libintl" >&5
6034echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6035 echo "$as_me:6035: result: $LIBINTL" >&5
6036echo "${ECHO_T}$LIBINTL" >&6
6037
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006038 for element in $INCINTL; do
6039 haveit=
6040 for x in $CPPFLAGS; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006041
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006042 acl_save_prefix="$prefix"
6043 prefix="$acl_final_prefix"
6044 acl_save_exec_prefix="$exec_prefix"
6045 exec_prefix="$acl_final_exec_prefix"
6046 eval x=\"$x\"
6047 exec_prefix="$acl_save_exec_prefix"
6048 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006049
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006050 if test "X$x" = "X$element"; then
6051 haveit=yes
6052 break
6053 fi
6054 done
6055 if test -z "$haveit"; then
6056 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6057 fi
6058 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006059
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006060 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006061
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006062cat >>confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006063#define HAVE_GETTEXT 1
6064EOF
6065
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006066cat >>confdefs.h <<\EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006067#define HAVE_DCGETTEXT 1
6068EOF
6069
6070 fi
6071
6072 POSUB=po
6073 fi
6074
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006075 if test "$PACKAGE" = gettext; then
6076 BUILD_INCLUDED_LIBINTL=yes
6077 fi
6078
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006079 nls_cv_header_intl=
6080 nls_cv_header_libgt=
6081
6082 DATADIRNAME=share
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006083
6084 INSTOBJEXT=.mo
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006085
6086 GENCAT=gencat
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006087
6088 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006089
6090 INTLLIBS="$LIBINTL"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006091
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006092echo "$as_me:6092: checking whether ${MAKE-make} sets \${MAKE}" >&5
6093echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
6094set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6095if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006097else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006098 cat >conftest.make <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006099all:
6100 @echo 'ac_maketemp="${MAKE}"'
6101EOF
6102# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006103eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006104if test -n "$ac_maketemp"; then
6105 eval ac_cv_prog_make_${ac_make}_set=yes
6106else
6107 eval ac_cv_prog_make_${ac_make}_set=no
6108fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006109rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006110fi
6111if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006112 echo "$as_me:6112: result: yes" >&5
6113echo "${ECHO_T}yes" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006114 SET_MAKE=
6115else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006116 echo "$as_me:6116: result: no" >&5
6117echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006118 SET_MAKE="MAKE=${MAKE-make}"
6119fi
6120
6121# Extract the first word of "ln", so it can be a program name with args.
6122set dummy ln; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006123echo "$as_me:6123: checking for $ac_word" >&5
6124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6125if test "${ac_cv_path_LN+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006127else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006128 case $LN in
6129 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006130 ac_cv_path_LN="$LN" # Let the user override the test with a path.
6131 ;;
6132 *)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006133 ac_save_IFS=$IFS; IFS=$ac_path_separator
6134ac_dummy="$PATH"
6135for ac_dir in $ac_dummy; do
6136 IFS=$ac_save_IFS
6137 test -z "$ac_dir" && ac_dir=.
6138 if $as_executable_p "$ac_dir/$ac_word"; then
6139 ac_cv_path_LN="$ac_dir/$ac_word"
6140 echo "$as_me:6140: found $ac_dir/$ac_word" >&5
6141 break
6142fi
6143done
6144
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006145 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
6146 ;;
6147esac
6148fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006149LN=$ac_cv_path_LN
6150
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006151if test -n "$LN"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006152 echo "$as_me:6152: result: $LN" >&5
6153echo "${ECHO_T}$LN" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006154else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006155 echo "$as_me:6155: result: no" >&5
6156echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006157fi
6158
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006159echo "$as_me:6159: checking whether ln -s works" >&5
6160echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6161LN_S=$as_ln_s
6162if test "$LN_S" = "ln -s"; then
6163 echo "$as_me:6163: result: yes" >&5
6164echo "${ECHO_T}yes" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006165else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006166 echo "$as_me:6166: result: no, using $LN_S" >&5
6167echo "${ECHO_T}no, using $LN_S" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006168fi
6169
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006170# Extract the first word of "mv", so it can be a program name with args.
6171set dummy mv; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006172echo "$as_me:6172: checking for $ac_word" >&5
6173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174if test "${ac_cv_path_MV+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006176else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006177 case $MV in
6178 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006179 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6180 ;;
6181 *)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006182 ac_save_IFS=$IFS; IFS=$ac_path_separator
6183ac_dummy="$PATH"
6184for ac_dir in $ac_dummy; do
6185 IFS=$ac_save_IFS
6186 test -z "$ac_dir" && ac_dir=.
6187 if $as_executable_p "$ac_dir/$ac_word"; then
6188 ac_cv_path_MV="$ac_dir/$ac_word"
6189 echo "$as_me:6189: found $ac_dir/$ac_word" >&5
6190 break
6191fi
6192done
6193
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006194 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6195 ;;
6196esac
6197fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006198MV=$ac_cv_path_MV
6199
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006200if test -n "$MV"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006201 echo "$as_me:6201: result: $MV" >&5
6202echo "${ECHO_T}$MV" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006203else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006204 echo "$as_me:6204: result: no" >&5
6205echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006206fi
6207
6208# Extract the first word of "cp", so it can be a program name with args.
6209set dummy cp; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006210echo "$as_me:6210: checking for $ac_word" >&5
6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212if test "${ac_cv_path_CP+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006214else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006215 case $CP in
6216 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006217 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6218 ;;
6219 *)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006220 ac_save_IFS=$IFS; IFS=$ac_path_separator
6221ac_dummy="$PATH"
6222for ac_dir in $ac_dummy; do
6223 IFS=$ac_save_IFS
6224 test -z "$ac_dir" && ac_dir=.
6225 if $as_executable_p "$ac_dir/$ac_word"; then
6226 ac_cv_path_CP="$ac_dir/$ac_word"
6227 echo "$as_me:6227: found $ac_dir/$ac_word" >&5
6228 break
6229fi
6230done
6231
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006232 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6233 ;;
6234esac
6235fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006236CP=$ac_cv_path_CP
6237
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006238if test -n "$CP"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006239 echo "$as_me:6239: result: $CP" >&5
6240echo "${ECHO_T}$CP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006241else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006242 echo "$as_me:6242: result: no" >&5
6243echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006244fi
6245
6246# Extract the first word of "rm", so it can be a program name with args.
6247set dummy rm; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006248echo "$as_me:6248: checking for $ac_word" >&5
6249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250if test "${ac_cv_path_RM+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006252else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006253 case $RM in
6254 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006255 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6256 ;;
6257 *)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006258 ac_save_IFS=$IFS; IFS=$ac_path_separator
6259ac_dummy="$PATH"
6260for ac_dir in $ac_dummy; do
6261 IFS=$ac_save_IFS
6262 test -z "$ac_dir" && ac_dir=.
6263 if $as_executable_p "$ac_dir/$ac_word"; then
6264 ac_cv_path_RM="$ac_dir/$ac_word"
6265 echo "$as_me:6265: found $ac_dir/$ac_word" >&5
6266 break
6267fi
6268done
6269
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006270 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6271 ;;
6272esac
6273fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006274RM=$ac_cv_path_RM
6275
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006276if test -n "$RM"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006277 echo "$as_me:6277: result: $RM" >&5
6278echo "${ECHO_T}$RM" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006279else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006280 echo "$as_me:6280: result: no" >&5
6281echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006282fi
6283
6284# Extract the first word of "chmod", so it can be a program name with args.
6285set dummy chmod; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006286echo "$as_me:6286: checking for $ac_word" >&5
6287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6288if test "${ac_cv_path_CHMOD+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006290else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006291 case $CHMOD in
6292 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006293 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6294 ;;
6295 *)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006296 ac_save_IFS=$IFS; IFS=$ac_path_separator
6297ac_dummy="$PATH"
6298for ac_dir in $ac_dummy; do
6299 IFS=$ac_save_IFS
6300 test -z "$ac_dir" && ac_dir=.
6301 if $as_executable_p "$ac_dir/$ac_word"; then
6302 ac_cv_path_CHMOD="$ac_dir/$ac_word"
6303 echo "$as_me:6303: found $ac_dir/$ac_word" >&5
6304 break
6305fi
6306done
6307
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006308 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
6309 ;;
6310esac
6311fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006312CHMOD=$ac_cv_path_CHMOD
6313
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006314if test -n "$CHMOD"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006315 echo "$as_me:6315: result: $CHMOD" >&5
6316echo "${ECHO_T}$CHMOD" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006317else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006318 echo "$as_me:6318: result: no" >&5
6319echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006320fi
6321
6322# Extract the first word of "awk", so it can be a program name with args.
6323set dummy awk; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006324echo "$as_me:6324: checking for $ac_word" >&5
6325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6326if test "${ac_cv_path_AWK+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006328else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006329 case $AWK in
6330 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006331 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6332 ;;
6333 *)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006334 ac_save_IFS=$IFS; IFS=$ac_path_separator
6335ac_dummy="$PATH"
6336for ac_dir in $ac_dummy; do
6337 IFS=$ac_save_IFS
6338 test -z "$ac_dir" && ac_dir=.
6339 if $as_executable_p "$ac_dir/$ac_word"; then
6340 ac_cv_path_AWK="$ac_dir/$ac_word"
6341 echo "$as_me:6341: found $ac_dir/$ac_word" >&5
6342 break
6343fi
6344done
6345
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006346 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
6347 ;;
6348esac
6349fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006350AWK=$ac_cv_path_AWK
6351
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006352if test -n "$AWK"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006353 echo "$as_me:6353: result: $AWK" >&5
6354echo "${ECHO_T}$AWK" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006355else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006356 echo "$as_me:6356: result: no" >&5
6357echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006358fi
6359
6360# Extract the first word of "sed", so it can be a program name with args.
6361set dummy sed; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006362echo "$as_me:6362: checking for $ac_word" >&5
6363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6364if test "${ac_cv_path_SED+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006366else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006367 case $SED in
6368 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006369 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6370 ;;
6371 *)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006372 ac_save_IFS=$IFS; IFS=$ac_path_separator
6373ac_dummy="$PATH"
6374for ac_dir in $ac_dummy; do
6375 IFS=$ac_save_IFS
6376 test -z "$ac_dir" && ac_dir=.
6377 if $as_executable_p "$ac_dir/$ac_word"; then
6378 ac_cv_path_SED="$ac_dir/$ac_word"
6379 echo "$as_me:6379: found $ac_dir/$ac_word" >&5
6380 break
6381fi
6382done
6383
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006384 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6385 ;;
6386esac
6387fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006388SED=$ac_cv_path_SED
6389
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006390if test -n "$SED"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006391 echo "$as_me:6391: result: $SED" >&5
6392echo "${ECHO_T}$SED" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006393else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006394 echo "$as_me:6394: result: no" >&5
6395echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006396fi
6397
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006398# Extract the first word of "perl", so it can be a program name with args.
6399set dummy perl; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006400echo "$as_me:6400: checking for $ac_word" >&5
6401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6402if test "${ac_cv_path_PERL+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006404else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006405 case $PERL in
6406 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006407 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6408 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006409 *)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006410 ac_save_IFS=$IFS; IFS=$ac_path_separator
6411ac_dummy="$PATH"
6412for ac_dir in $ac_dummy; do
6413 IFS=$ac_save_IFS
6414 test -z "$ac_dir" && ac_dir=.
6415 if $as_executable_p "$ac_dir/$ac_word"; then
6416 ac_cv_path_PERL="$ac_dir/$ac_word"
6417 echo "$as_me:6417: found $ac_dir/$ac_word" >&5
6418 break
6419fi
6420done
6421
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006422 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
6423 ;;
6424esac
6425fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006426PERL=$ac_cv_path_PERL
6427
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006428if test -n "$PERL"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006429 echo "$as_me:6429: result: $PERL" >&5
6430echo "${ECHO_T}$PERL" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006431else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006432 echo "$as_me:6432: result: no" >&5
6433echo "${ECHO_T}no" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00006434fi
6435
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006436# Extract the first word of "ldconfig", so it can be a program name with args.
6437set dummy ldconfig; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006438echo "$as_me:6438: checking for $ac_word" >&5
6439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6440if test "${ac_cv_path_LDCONFIG+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006442else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006443 case $LDCONFIG in
6444 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006445 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6446 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006447 *)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006448 ac_save_IFS=$IFS; IFS=$ac_path_separator
6449ac_dummy="$PATH"
6450for ac_dir in $ac_dummy; do
6451 IFS=$ac_save_IFS
6452 test -z "$ac_dir" && ac_dir=.
6453 if $as_executable_p "$ac_dir/$ac_word"; then
6454 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
6455 echo "$as_me:6455: found $ac_dir/$ac_word" >&5
6456 break
6457fi
6458done
6459
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006460 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
6461 ;;
6462esac
6463fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006464LDCONFIG=$ac_cv_path_LDCONFIG
6465
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006466if test -n "$LDCONFIG"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006467 echo "$as_me:6467: result: $LDCONFIG" >&5
6468echo "${ECHO_T}$LDCONFIG" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006469else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006470 echo "$as_me:6470: result: no" >&5
6471echo "${ECHO_T}no" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00006472fi
6473
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006474if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006476set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006477echo "$as_me:6477: checking for $ac_word" >&5
6478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6479if test "${ac_cv_prog_AR+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006481else
6482 if test -n "$AR"; then
6483 ac_cv_prog_AR="$AR" # Let the user override the test.
6484else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006485 ac_save_IFS=$IFS; IFS=$ac_path_separator
6486ac_dummy="$PATH"
6487for ac_dir in $ac_dummy; do
6488 IFS=$ac_save_IFS
6489 test -z "$ac_dir" && ac_dir=.
6490 $as_executable_p "$ac_dir/$ac_word" || continue
6491ac_cv_prog_AR="${ac_tool_prefix}ar"
6492echo "$as_me:6492: found $ac_dir/$ac_word" >&5
6493break
6494done
6495
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006496fi
6497fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006498AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006499if test -n "$AR"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006500 echo "$as_me:6500: result: $AR" >&5
6501echo "${ECHO_T}$AR" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006502else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006503 echo "$as_me:6503: result: no" >&5
6504echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006505fi
6506
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006507fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006508if test -z "$ac_cv_prog_AR"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006509 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006510 # Extract the first word of "ar", so it can be a program name with args.
6511set dummy ar; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006512echo "$as_me:6512: checking for $ac_word" >&5
6513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6514if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006516else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006517 if test -n "$ac_ct_AR"; then
6518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006519else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006520 ac_save_IFS=$IFS; IFS=$ac_path_separator
6521ac_dummy="$PATH"
6522for ac_dir in $ac_dummy; do
6523 IFS=$ac_save_IFS
6524 test -z "$ac_dir" && ac_dir=.
6525 $as_executable_p "$ac_dir/$ac_word" || continue
6526ac_cv_prog_ac_ct_AR="ar"
6527echo "$as_me:6527: found $ac_dir/$ac_word" >&5
6528break
6529done
6530
6531 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006532fi
6533fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006534ac_ct_AR=$ac_cv_prog_ac_ct_AR
6535if test -n "$ac_ct_AR"; then
6536 echo "$as_me:6536: result: $ac_ct_AR" >&5
6537echo "${ECHO_T}$ac_ct_AR" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006538else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006539 echo "$as_me:6539: result: no" >&5
6540echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006541fi
6542
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006543 AR=$ac_ct_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006544else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006545 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006546fi
6547
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006548if test -n "$ac_tool_prefix"; then
6549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006550set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006551echo "$as_me:6551: checking for $ac_word" >&5
6552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6553if test "${ac_cv_prog_RANLIB+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006555else
6556 if test -n "$RANLIB"; then
6557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6558else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006559 ac_save_IFS=$IFS; IFS=$ac_path_separator
6560ac_dummy="$PATH"
6561for ac_dir in $ac_dummy; do
6562 IFS=$ac_save_IFS
6563 test -z "$ac_dir" && ac_dir=.
6564 $as_executable_p "$ac_dir/$ac_word" || continue
6565ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6566echo "$as_me:6566: found $ac_dir/$ac_word" >&5
6567break
6568done
6569
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006570fi
6571fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006572RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006573if test -n "$RANLIB"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006574 echo "$as_me:6574: result: $RANLIB" >&5
6575echo "${ECHO_T}$RANLIB" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006576else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006577 echo "$as_me:6577: result: no" >&5
6578echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006579fi
6580
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006581fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006582if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006583 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006584 # Extract the first word of "ranlib", so it can be a program name with args.
6585set dummy ranlib; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006586echo "$as_me:6586: checking for $ac_word" >&5
6587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6588if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006590else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006591 if test -n "$ac_ct_RANLIB"; then
6592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006593else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006594 ac_save_IFS=$IFS; IFS=$ac_path_separator
6595ac_dummy="$PATH"
6596for ac_dir in $ac_dummy; do
6597 IFS=$ac_save_IFS
6598 test -z "$ac_dir" && ac_dir=.
6599 $as_executable_p "$ac_dir/$ac_word" || continue
6600ac_cv_prog_ac_ct_RANLIB="ranlib"
6601echo "$as_me:6601: found $ac_dir/$ac_word" >&5
6602break
6603done
6604
6605 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006606fi
6607fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006608ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6609if test -n "$ac_ct_RANLIB"; then
6610 echo "$as_me:6610: result: $ac_ct_RANLIB" >&5
6611echo "${ECHO_T}$ac_ct_RANLIB" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006612else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006613 echo "$as_me:6613: result: no" >&5
6614echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006615fi
6616
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006617 RANLIB=$ac_ct_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006618else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006619 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006620fi
6621
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006622if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006624set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006625echo "$as_me:6625: checking for $ac_word" >&5
6626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6627if test "${ac_cv_prog_STRIP+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006629else
6630 if test -n "$STRIP"; then
6631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6632else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006633 ac_save_IFS=$IFS; IFS=$ac_path_separator
6634ac_dummy="$PATH"
6635for ac_dir in $ac_dummy; do
6636 IFS=$ac_save_IFS
6637 test -z "$ac_dir" && ac_dir=.
6638 $as_executable_p "$ac_dir/$ac_word" || continue
6639ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6640echo "$as_me:6640: found $ac_dir/$ac_word" >&5
6641break
6642done
6643
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006644fi
6645fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006646STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006647if test -n "$STRIP"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006648 echo "$as_me:6648: result: $STRIP" >&5
6649echo "${ECHO_T}$STRIP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006650else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006651 echo "$as_me:6651: result: no" >&5
6652echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006653fi
6654
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006655fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006656if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006657 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006658 # Extract the first word of "strip", so it can be a program name with args.
6659set dummy strip; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006660echo "$as_me:6660: checking for $ac_word" >&5
6661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6662if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006664else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006665 if test -n "$ac_ct_STRIP"; then
6666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006667else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006668 ac_save_IFS=$IFS; IFS=$ac_path_separator
6669ac_dummy="$PATH"
6670for ac_dir in $ac_dummy; do
6671 IFS=$ac_save_IFS
6672 test -z "$ac_dir" && ac_dir=.
6673 $as_executable_p "$ac_dir/$ac_word" || continue
6674ac_cv_prog_ac_ct_STRIP="strip"
6675echo "$as_me:6675: found $ac_dir/$ac_word" >&5
6676break
6677done
6678
6679 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006680fi
6681fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006682ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6683if test -n "$ac_ct_STRIP"; then
6684 echo "$as_me:6684: result: $ac_ct_STRIP" >&5
6685echo "${ECHO_T}$ac_ct_STRIP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006686else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006687 echo "$as_me:6687: result: no" >&5
6688echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006689fi
6690
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006691 STRIP=$ac_ct_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006692else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006693 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006694fi
6695
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006696# Find a good install program. We prefer a C program (faster),
6697# so one script is as good as another. But avoid the broken or
6698# incompatible versions:
6699# SysV /etc/install, /usr/sbin/install
6700# SunOS /usr/etc/install
6701# IRIX /sbin/install
6702# AIX /bin/install
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006703# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006704# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006705# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6706# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6707# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006708echo "$as_me:6708: checking for a BSD compatible install" >&5
6709echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006710if test -z "$INSTALL"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006711if test "${ac_cv_path_install+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006713else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006714 ac_save_IFS=$IFS; IFS=$ac_path_separator
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006715 for ac_dir in $PATH; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006716 IFS=$ac_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006717 # Account for people who put trailing slashes in PATH elements.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006718 case $ac_dir/ in
6719 / | ./ | .// | /cC/* \
6720 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
6721 | /usr/ucb/* ) ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006722 *)
6723 # OSF1 and SCO ODT 3.0 have their own names for install.
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006724 # Don't use installbsd from OSF since it installs stuff as root
6725 # by default.
6726 for ac_prog in ginstall scoinst install; do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006727 if $as_executable_p "$ac_dir/$ac_prog"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006728 if test $ac_prog = install &&
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006729 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006730 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006731 :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006732 elif test $ac_prog = install &&
6733 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
6734 # program-specific install script used by HP pwplus--don't use.
6735 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006736 else
6737 ac_cv_path_install="$ac_dir/$ac_prog -c"
6738 break 2
6739 fi
6740 fi
6741 done
6742 ;;
6743 esac
6744 done
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006745
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006746fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006747 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006748 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006749 else
6750 # As a last resort, use the slow shell script. We don't cache a
6751 # path for INSTALL within a source directory, because that will
6752 # break other packages using the cache if that directory is
6753 # removed, or if the path is relative.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006754 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006755 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006756fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006757echo "$as_me:6757: result: $INSTALL" >&5
6758echo "${ECHO_T}$INSTALL" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006759
6760# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6761# It thinks the first close brace ends the variable substitution.
6762test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6763
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006764test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +00006765
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006766test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6767
Theodore Ts'o6c133521999-07-03 20:37:03 +00006768# See if we need a separate native compiler.
6769if test $cross_compiling = no; then
6770 BUILD_CC="$CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006771
Theodore Ts'o6c133521999-07-03 20:37:03 +00006772else
6773 for ac_prog in gcc cc
6774do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006775 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +00006776set dummy $ac_prog; ac_word=$2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006777echo "$as_me:6777: checking for $ac_word" >&5
6778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779if test "${ac_cv_prog_BUILD_CC+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00006781else
6782 if test -n "$BUILD_CC"; then
6783 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
6784else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006785 ac_save_IFS=$IFS; IFS=$ac_path_separator
6786ac_dummy="$PATH"
6787for ac_dir in $ac_dummy; do
6788 IFS=$ac_save_IFS
6789 test -z "$ac_dir" && ac_dir=.
6790 $as_executable_p "$ac_dir/$ac_word" || continue
6791ac_cv_prog_BUILD_CC="$ac_prog"
6792echo "$as_me:6792: found $ac_dir/$ac_word" >&5
6793break
6794done
6795
Theodore Ts'o6c133521999-07-03 20:37:03 +00006796fi
6797fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006798BUILD_CC=$ac_cv_prog_BUILD_CC
Theodore Ts'o6c133521999-07-03 20:37:03 +00006799if test -n "$BUILD_CC"; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006800 echo "$as_me:6800: result: $BUILD_CC" >&5
6801echo "${ECHO_T}$BUILD_CC" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00006802else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006803 echo "$as_me:6803: result: no" >&5
6804echo "${ECHO_T}no" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +00006805fi
6806
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006807 test -n "$BUILD_CC" && break
Theodore Ts'o6c133521999-07-03 20:37:03 +00006808done
6809
6810fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006811
6812for ac_header 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/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h netinet/in.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006813do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6815echo "$as_me:6815: checking for $ac_header" >&5
6816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6817if eval "test \"\${$as_ac_Header+set}\" = set"; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006819else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006820 cat >conftest.$ac_ext <<_ACEOF
6821#line 6821 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006822#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006823#include <$ac_header>
6824_ACEOF
6825if { (eval echo "$as_me:6825: \"$ac_cpp conftest.$ac_ext\"") >&5
6826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827 ac_status=$?
6828 egrep -v '^ *\+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 echo "$as_me:6831: \$? = $ac_status" >&5
6832 (exit $ac_status); } >/dev/null; then
6833 if test -s conftest.err; then
6834 ac_cpp_err=$ac_c_preproc_warn_flag
6835 else
6836 ac_cpp_err=
6837 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006838else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006839 ac_cpp_err=yes
6840fi
6841if test -z "$ac_cpp_err"; then
6842 eval "$as_ac_Header=yes"
6843else
6844 echo "$as_me: failed program was:" >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006845 cat conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006846 eval "$as_ac_Header=no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006847fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006848rm -f conftest.err conftest.$ac_ext
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006849fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006850echo "$as_me:6850: result: `eval echo '${'$as_ac_Header'}'`" >&5
6851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6852if test `eval echo '${'$as_ac_Header'}'` = yes; then
6853 cat >>confdefs.h <<EOF
6854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006855EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006856
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006857fi
6858done
6859
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006860for ac_func in vprintf
6861do
6862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6863echo "$as_me:6863: checking for $ac_func" >&5
6864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6865if eval "test \"\${$as_ac_var+set}\" = set"; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006867else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006868 cat >conftest.$ac_ext <<_ACEOF
6869#line 6869 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006870#include "confdefs.h"
6871/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006872 which can conflict with char $ac_func (); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006873#include <assert.h>
6874/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006875#ifdef __cplusplus
6876extern "C"
6877#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006878/* We use char because int might match the return type of a gcc2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006879 builtin and then its argument prototype would still apply. */
6880char $ac_func ();
6881char (*f) ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006882
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006883int
6884main ()
6885{
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006886/* The GNU C library defines this for functions which it implements
6887 to always fail with ENOSYS. Some functions are actually named
6888 something starting with __ and the normal name is an alias. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006890choke me
6891#else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006892f = $ac_func;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006893#endif
6894
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006895 ;
6896 return 0;
6897}
6898_ACEOF
6899rm -f conftest.$ac_objext conftest$ac_exeext
6900if { (eval echo "$as_me:6900: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>&5
6902 ac_status=$?
6903 echo "$as_me:6903: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -s conftest$ac_exeext'
6906 { (eval echo "$as_me:6906: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:6909: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006912else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006913 echo "$as_me: failed program was:" >&5
6914cat conftest.$ac_ext >&5
6915eval "$as_ac_var=no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006916fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006917rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006918fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006919echo "$as_me:6919: result: `eval echo '${'$as_ac_var'}'`" >&5
6920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6921if test `eval echo '${'$as_ac_var'}'` = yes; then
6922 cat >>confdefs.h <<EOF
6923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006924EOF
6925
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006926echo "$as_me:6926: checking for _doprnt" >&5
6927echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6928if test "${ac_cv_func__doprnt+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006930else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006931 cat >conftest.$ac_ext <<_ACEOF
6932#line 6932 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006933#include "confdefs.h"
6934/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006935 which can conflict with char _doprnt (); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006936#include <assert.h>
6937/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006938#ifdef __cplusplus
6939extern "C"
6940#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006941/* We use char because int might match the return type of a gcc2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006942 builtin and then its argument prototype would still apply. */
6943char _doprnt ();
6944char (*f) ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006945
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006946int
6947main ()
6948{
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006949/* The GNU C library defines this for functions which it implements
6950 to always fail with ENOSYS. Some functions are actually named
6951 something starting with __ and the normal name is an alias. */
6952#if defined (__stub__doprnt) || defined (__stub____doprnt)
6953choke me
6954#else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006955f = _doprnt;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006956#endif
6957
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006958 ;
6959 return 0;
6960}
6961_ACEOF
6962rm -f conftest.$ac_objext conftest$ac_exeext
6963if { (eval echo "$as_me:6963: \"$ac_link\"") >&5
6964 (eval $ac_link) 2>&5
6965 ac_status=$?
6966 echo "$as_me:6966: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -s conftest$ac_exeext'
6969 { (eval echo "$as_me:6969: \"$ac_try\"") >&5
6970 (eval $ac_try) 2>&5
6971 ac_status=$?
6972 echo "$as_me:6972: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6974 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006975else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006976 echo "$as_me: failed program was:" >&5
6977cat conftest.$ac_ext >&5
6978ac_cv_func__doprnt=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006979fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006981fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006982echo "$as_me:6982: result: $ac_cv_func__doprnt" >&5
6983echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6984if test $ac_cv_func__doprnt = yes; then
Theodore Ts'o21c84b71997-04-29 16:15:03 +00006985
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006986cat >>confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006987#define HAVE_DOPRNT 1
6988EOF
6989
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006990fi
6991
6992fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006993done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006994
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006995echo "$as_me:6995: checking whether d_reclen declared in dirent" >&5
6996echo $ECHO_N "checking whether d_reclen declared in dirent... $ECHO_C" >&6
6997if test "${e2fsprogs_cv_have_d_reclen_dirent+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00006999else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007000 cat >conftest.$ac_ext <<_ACEOF
7001#line 7001 "configure"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00007002#include "confdefs.h"
Theodore Ts'offf45482003-04-13 00:44:19 -04007003#include <dirent.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007004int
7005main ()
7006{
7007struct dirent de; de.d_reclen = 0;
7008 ;
7009 return 0;
7010}
7011_ACEOF
7012rm -f conftest.$ac_objext
7013if { (eval echo "$as_me:7013: \"$ac_compile\"") >&5
7014 (eval $ac_compile) 2>&5
7015 ac_status=$?
7016 echo "$as_me:7016: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -s conftest.$ac_objext'
7019 { (eval echo "$as_me:7019: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:7022: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
Theodore Ts'offf45482003-04-13 00:44:19 -04007024 e2fsprogs_cv_have_d_reclen_dirent=yes
7025else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007026 echo "$as_me: failed program was:" >&5
7027cat conftest.$ac_ext >&5
7028e2fsprogs_cv_have_d_reclen_dirent=no
Theodore Ts'offf45482003-04-13 00:44:19 -04007029fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007030rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -04007031fi
7032
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007033echo "$as_me:7033: result: $e2fsprogs_cv_have_d_reclen_dirent" >&5
7034echo "${ECHO_T}$e2fsprogs_cv_have_d_reclen_dirent" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -04007035if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007036 cat >>confdefs.h <<\EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04007037#define HAVE_RECLEN_DIRENT 1
7038EOF
7039
7040fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007041echo "$as_me:7041: checking whether ssize_t declared" >&5
7042echo $ECHO_N "checking whether ssize_t declared... $ECHO_C" >&6
7043if test "${e2fsprogs_cv_have_ssize_t+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -04007045else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007046 cat >conftest.$ac_ext <<_ACEOF
7047#line 7047 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04007048#include "confdefs.h"
7049#include <sys/types.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007050int
7051main ()
7052{
7053ssize_t a = 0;
7054 ;
7055 return 0;
7056}
7057_ACEOF
7058rm -f conftest.$ac_objext
7059if { (eval echo "$as_me:7059: \"$ac_compile\"") >&5
7060 (eval $ac_compile) 2>&5
7061 ac_status=$?
7062 echo "$as_me:7062: \$? = $ac_status" >&5
7063 (exit $ac_status); } &&
7064 { ac_try='test -s conftest.$ac_objext'
7065 { (eval echo "$as_me:7065: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:7068: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
Theodore Ts'offf45482003-04-13 00:44:19 -04007070 e2fsprogs_cv_have_ssize_t=yes
7071else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007072 echo "$as_me: failed program was:" >&5
7073cat conftest.$ac_ext >&5
7074e2fsprogs_cv_have_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -04007075fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007076rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -04007077fi
7078
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007079echo "$as_me:7079: result: $e2fsprogs_cv_have_ssize_t" >&5
7080echo "${ECHO_T}$e2fsprogs_cv_have_ssize_t" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -04007081if test "$e2fsprogs_cv_have_ssize_t" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007082 cat >>confdefs.h <<\EOF
Theodore Ts'offf45482003-04-13 00:44:19 -04007083#define HAVE_TYPE_SSIZE_T 1
7084EOF
7085
7086fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007087echo "$as_me:7087: checking whether llseek declared in unistd.h" >&5
7088echo $ECHO_N "checking whether llseek declared in unistd.h... $ECHO_C" >&6
7089if test "${e2fsprogs_cv_have_llseek_prototype+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -04007091else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007092 cat >conftest.$ac_ext <<_ACEOF
7093#line 7093 "configure"
Theodore Ts'offf45482003-04-13 00:44:19 -04007094#include "confdefs.h"
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00007095#include <unistd.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007096int
7097main ()
7098{
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00007099extern int llseek(int);
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007100 ;
7101 return 0;
7102}
7103_ACEOF
7104rm -f conftest.$ac_objext
7105if { (eval echo "$as_me:7105: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>&5
7107 ac_status=$?
7108 echo "$as_me:7108: \$? = $ac_status" >&5
7109 (exit $ac_status); } &&
7110 { ac_try='test -s conftest.$ac_objext'
7111 { (eval echo "$as_me:7111: \"$ac_try\"") >&5
7112 (eval $ac_try) 2>&5
7113 ac_status=$?
7114 echo "$as_me:7114: \$? = $ac_status" >&5
7115 (exit $ac_status); }; }; then
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00007116 e2fsprogs_cv_have_llseek_prototype=no
7117else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007118 echo "$as_me: failed program was:" >&5
7119cat conftest.$ac_ext >&5
7120e2fsprogs_cv_have_llseek_prototype=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00007121fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007122rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00007123fi
7124
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007125echo "$as_me:7125: result: $e2fsprogs_cv_have_llseek_prototype" >&5
7126echo "${ECHO_T}$e2fsprogs_cv_have_llseek_prototype" >&6
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00007127if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007128 cat >>confdefs.h <<\EOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +00007129#define HAVE_LLSEEK_PROTOTYPE 1
7130EOF
7131
7132fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007133echo "$as_me:7133: checking whether lseek64 declared in unistd.h" >&5
7134echo $ECHO_N "checking whether lseek64 declared in unistd.h... $ECHO_C" >&6
7135if test "${e2fsprogs_cv_have_lseek64_prototype+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00007137else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007138 cat >conftest.$ac_ext <<_ACEOF
7139#line 7139 "configure"
Theodore Ts'o6928adc2000-05-25 23:28:50 +00007140#include "confdefs.h"
7141#define _LARGEFILE_SOURCE
7142#define _LARGEFILE64_SOURCE
7143#include <unistd.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007144int
7145main ()
7146{
Theodore Ts'o6928adc2000-05-25 23:28:50 +00007147extern int lseek64(int);
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007148 ;
7149 return 0;
7150}
7151_ACEOF
7152rm -f conftest.$ac_objext
7153if { (eval echo "$as_me:7153: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>&5
7155 ac_status=$?
7156 echo "$as_me:7156: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:7159: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:7162: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
Theodore Ts'o6928adc2000-05-25 23:28:50 +00007164 e2fsprogs_cv_have_lseek64_prototype=no
7165else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007166 echo "$as_me: failed program was:" >&5
7167cat conftest.$ac_ext >&5
7168e2fsprogs_cv_have_lseek64_prototype=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +00007169fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007170rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +00007171fi
7172
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007173echo "$as_me:7173: result: $e2fsprogs_cv_have_lseek64_prototype" >&5
7174echo "${ECHO_T}$e2fsprogs_cv_have_lseek64_prototype" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +00007175if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007176 cat >>confdefs.h <<\EOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +00007177#define HAVE_LSEEK64_PROTOTYPE 1
7178EOF
7179
7180fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007181if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007182 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007183 ac_cv_sizeof_short=2
7184 ac_cv_sizeof_int=4
7185 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +00007186 ac_cv_sizeof_long_long=8
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007187 { echo "$as_me:7187: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
7188echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007189fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007190echo "$as_me:7190: checking for short" >&5
7191echo $ECHO_N "checking for short... $ECHO_C" >&6
7192if test "${ac_cv_type_short+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195 cat >conftest.$ac_ext <<_ACEOF
7196#line 7196 "configure"
7197#include "confdefs.h"
7198$ac_includes_default
7199int
7200main ()
7201{
7202if ((short *) 0)
7203 return 0;
7204if (sizeof (short))
7205 return 0;
7206 ;
7207 return 0;
7208}
7209_ACEOF
7210rm -f conftest.$ac_objext
7211if { (eval echo "$as_me:7211: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>&5
7213 ac_status=$?
7214 echo "$as_me:7214: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try='test -s conftest.$ac_objext'
7217 { (eval echo "$as_me:7217: \"$ac_try\"") >&5
7218 (eval $ac_try) 2>&5
7219 ac_status=$?
7220 echo "$as_me:7220: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 ac_cv_type_short=yes
7223else
7224 echo "$as_me: failed program was:" >&5
7225cat conftest.$ac_ext >&5
7226ac_cv_type_short=no
7227fi
7228rm -f conftest.$ac_objext conftest.$ac_ext
7229fi
7230echo "$as_me:7230: result: $ac_cv_type_short" >&5
7231echo "${ECHO_T}$ac_cv_type_short" >&6
7232
7233echo "$as_me:7233: checking size of short" >&5
7234echo $ECHO_N "checking size of short... $ECHO_C" >&6
7235if test "${ac_cv_sizeof_short+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238 if test "$ac_cv_type_short" = yes; then
7239 if test "$cross_compiling" = yes; then
7240 # Depending upon the size, compute the lo and hi bounds.
7241cat >conftest.$ac_ext <<_ACEOF
7242#line 7242 "configure"
7243#include "confdefs.h"
7244$ac_includes_default
7245int
7246main ()
7247{
7248int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
7249 ;
7250 return 0;
7251}
7252_ACEOF
7253rm -f conftest.$ac_objext
7254if { (eval echo "$as_me:7254: \"$ac_compile\"") >&5
7255 (eval $ac_compile) 2>&5
7256 ac_status=$?
7257 echo "$as_me:7257: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -s conftest.$ac_objext'
7260 { (eval echo "$as_me:7260: \"$ac_try\"") >&5
7261 (eval $ac_try) 2>&5
7262 ac_status=$?
7263 echo "$as_me:7263: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 ac_lo=0 ac_mid=0
7266 while :; do
7267 cat >conftest.$ac_ext <<_ACEOF
7268#line 7268 "configure"
7269#include "confdefs.h"
7270$ac_includes_default
7271int
7272main ()
7273{
7274int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7275 ;
7276 return 0;
7277}
7278_ACEOF
7279rm -f conftest.$ac_objext
7280if { (eval echo "$as_me:7280: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>&5
7282 ac_status=$?
7283 echo "$as_me:7283: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:7286: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:7289: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_hi=$ac_mid; break
7292else
7293 echo "$as_me: failed program was:" >&5
7294cat conftest.$ac_ext >&5
7295ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7296fi
7297rm -f conftest.$ac_objext conftest.$ac_ext
7298 done
7299else
7300 echo "$as_me: failed program was:" >&5
7301cat conftest.$ac_ext >&5
7302ac_hi=-1 ac_mid=-1
7303 while :; do
7304 cat >conftest.$ac_ext <<_ACEOF
7305#line 7305 "configure"
7306#include "confdefs.h"
7307$ac_includes_default
7308int
7309main ()
7310{
7311int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
7312 ;
7313 return 0;
7314}
7315_ACEOF
7316rm -f conftest.$ac_objext
7317if { (eval echo "$as_me:7317: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>&5
7319 ac_status=$?
7320 echo "$as_me:7320: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -s conftest.$ac_objext'
7323 { (eval echo "$as_me:7323: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:7326: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_lo=$ac_mid; break
7329else
7330 echo "$as_me: failed program was:" >&5
7331cat conftest.$ac_ext >&5
7332ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7333fi
7334rm -f conftest.$ac_objext conftest.$ac_ext
7335 done
7336fi
7337rm -f conftest.$ac_objext conftest.$ac_ext
7338# Binary search between lo and hi bounds.
7339while test "x$ac_lo" != "x$ac_hi"; do
7340 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7341 cat >conftest.$ac_ext <<_ACEOF
7342#line 7342 "configure"
7343#include "confdefs.h"
7344$ac_includes_default
7345int
7346main ()
7347{
7348int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7349 ;
7350 return 0;
7351}
7352_ACEOF
7353rm -f conftest.$ac_objext
7354if { (eval echo "$as_me:7354: \"$ac_compile\"") >&5
7355 (eval $ac_compile) 2>&5
7356 ac_status=$?
7357 echo "$as_me:7357: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:7360: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:7363: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_hi=$ac_mid
7366else
7367 echo "$as_me: failed program was:" >&5
7368cat conftest.$ac_ext >&5
7369ac_lo=`expr $ac_mid + 1`
7370fi
7371rm -f conftest.$ac_objext conftest.$ac_ext
7372done
7373ac_cv_sizeof_short=$ac_lo
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007374else
7375 if test "$cross_compiling" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007376 { { echo "$as_me:7376: error: cannot run test program while cross compiling" >&5
7377echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7378 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007379else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007380 cat >conftest.$ac_ext <<_ACEOF
7381#line 7381 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007382#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007383$ac_includes_default
7384int
7385main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007386{
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007387FILE *f = fopen ("conftest.val", "w");
7388if (!f)
7389 exit (1);
7390fprintf (f, "%d", (sizeof (short)));
7391fclose (f);
7392 ;
7393 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007394}
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007395_ACEOF
7396rm -f conftest$ac_exeext
7397if { (eval echo "$as_me:7397: \"$ac_link\"") >&5
7398 (eval $ac_link) 2>&5
7399 ac_status=$?
7400 echo "$as_me:7400: \$? = $ac_status" >&5
7401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7402 { (eval echo "$as_me:7402: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:7405: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7407 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007408else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007409 echo "$as_me: program exited with status $ac_status" >&5
7410echo "$as_me: failed program was:" >&5
7411cat conftest.$ac_ext >&5
7412fi
7413rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7414fi
7415fi
7416rm -f conftest.val
7417else
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007418 ac_cv_sizeof_short=0
7419fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007420fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007421echo "$as_me:7421: result: $ac_cv_sizeof_short" >&5
7422echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7423cat >>confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007424#define SIZEOF_SHORT $ac_cv_sizeof_short
7425EOF
7426
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007427echo "$as_me:7427: checking for int" >&5
7428echo $ECHO_N "checking for int... $ECHO_C" >&6
7429if test "${ac_cv_type_int+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432 cat >conftest.$ac_ext <<_ACEOF
7433#line 7433 "configure"
7434#include "confdefs.h"
7435$ac_includes_default
7436int
7437main ()
7438{
7439if ((int *) 0)
7440 return 0;
7441if (sizeof (int))
7442 return 0;
7443 ;
7444 return 0;
7445}
7446_ACEOF
7447rm -f conftest.$ac_objext
7448if { (eval echo "$as_me:7448: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>&5
7450 ac_status=$?
7451 echo "$as_me:7451: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -s conftest.$ac_objext'
7454 { (eval echo "$as_me:7454: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:7457: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_type_int=yes
7460else
7461 echo "$as_me: failed program was:" >&5
7462cat conftest.$ac_ext >&5
7463ac_cv_type_int=no
7464fi
7465rm -f conftest.$ac_objext conftest.$ac_ext
7466fi
7467echo "$as_me:7467: result: $ac_cv_type_int" >&5
7468echo "${ECHO_T}$ac_cv_type_int" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007469
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007470echo "$as_me:7470: checking size of int" >&5
7471echo $ECHO_N "checking size of int... $ECHO_C" >&6
7472if test "${ac_cv_sizeof_int+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 if test "$ac_cv_type_int" = yes; then
7476 if test "$cross_compiling" = yes; then
7477 # Depending upon the size, compute the lo and hi bounds.
7478cat >conftest.$ac_ext <<_ACEOF
7479#line 7479 "configure"
7480#include "confdefs.h"
7481$ac_includes_default
7482int
7483main ()
7484{
7485int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
7486 ;
7487 return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext
7491if { (eval echo "$as_me:7491: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>&5
7493 ac_status=$?
7494 echo "$as_me:7494: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -s conftest.$ac_objext'
7497 { (eval echo "$as_me:7497: \"$ac_try\"") >&5
7498 (eval $ac_try) 2>&5
7499 ac_status=$?
7500 echo "$as_me:7500: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 ac_lo=0 ac_mid=0
7503 while :; do
7504 cat >conftest.$ac_ext <<_ACEOF
7505#line 7505 "configure"
7506#include "confdefs.h"
7507$ac_includes_default
7508int
7509main ()
7510{
7511int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7512 ;
7513 return 0;
7514}
7515_ACEOF
7516rm -f conftest.$ac_objext
7517if { (eval echo "$as_me:7517: \"$ac_compile\"") >&5
7518 (eval $ac_compile) 2>&5
7519 ac_status=$?
7520 echo "$as_me:7520: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -s conftest.$ac_objext'
7523 { (eval echo "$as_me:7523: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:7526: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_hi=$ac_mid; break
7529else
7530 echo "$as_me: failed program was:" >&5
7531cat conftest.$ac_ext >&5
7532ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7533fi
7534rm -f conftest.$ac_objext conftest.$ac_ext
7535 done
7536else
7537 echo "$as_me: failed program was:" >&5
7538cat conftest.$ac_ext >&5
7539ac_hi=-1 ac_mid=-1
7540 while :; do
7541 cat >conftest.$ac_ext <<_ACEOF
7542#line 7542 "configure"
7543#include "confdefs.h"
7544$ac_includes_default
7545int
7546main ()
7547{
7548int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
7549 ;
7550 return 0;
7551}
7552_ACEOF
7553rm -f conftest.$ac_objext
7554if { (eval echo "$as_me:7554: \"$ac_compile\"") >&5
7555 (eval $ac_compile) 2>&5
7556 ac_status=$?
7557 echo "$as_me:7557: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -s conftest.$ac_objext'
7560 { (eval echo "$as_me:7560: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:7563: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_lo=$ac_mid; break
7566else
7567 echo "$as_me: failed program was:" >&5
7568cat conftest.$ac_ext >&5
7569ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7570fi
7571rm -f conftest.$ac_objext conftest.$ac_ext
7572 done
7573fi
7574rm -f conftest.$ac_objext conftest.$ac_ext
7575# Binary search between lo and hi bounds.
7576while test "x$ac_lo" != "x$ac_hi"; do
7577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7578 cat >conftest.$ac_ext <<_ACEOF
7579#line 7579 "configure"
7580#include "confdefs.h"
7581$ac_includes_default
7582int
7583main ()
7584{
7585int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7586 ;
7587 return 0;
7588}
7589_ACEOF
7590rm -f conftest.$ac_objext
7591if { (eval echo "$as_me:7591: \"$ac_compile\"") >&5
7592 (eval $ac_compile) 2>&5
7593 ac_status=$?
7594 echo "$as_me:7594: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:7597: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:7600: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_hi=$ac_mid
7603else
7604 echo "$as_me: failed program was:" >&5
7605cat conftest.$ac_ext >&5
7606ac_lo=`expr $ac_mid + 1`
7607fi
7608rm -f conftest.$ac_objext conftest.$ac_ext
7609done
7610ac_cv_sizeof_int=$ac_lo
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007611else
7612 if test "$cross_compiling" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007613 { { echo "$as_me:7613: error: cannot run test program while cross compiling" >&5
7614echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7615 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007616else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007617 cat >conftest.$ac_ext <<_ACEOF
7618#line 7618 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007619#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007620$ac_includes_default
7621int
7622main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007623{
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007624FILE *f = fopen ("conftest.val", "w");
7625if (!f)
7626 exit (1);
7627fprintf (f, "%d", (sizeof (int)));
7628fclose (f);
7629 ;
7630 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007631}
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007632_ACEOF
7633rm -f conftest$ac_exeext
7634if { (eval echo "$as_me:7634: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7636 ac_status=$?
7637 echo "$as_me:7637: \$? = $ac_status" >&5
7638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7639 { (eval echo "$as_me:7639: \"$ac_try\"") >&5
7640 (eval $ac_try) 2>&5
7641 ac_status=$?
7642 echo "$as_me:7642: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007645else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007646 echo "$as_me: program exited with status $ac_status" >&5
7647echo "$as_me: failed program was:" >&5
7648cat conftest.$ac_ext >&5
7649fi
7650rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7651fi
7652fi
7653rm -f conftest.val
7654else
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007655 ac_cv_sizeof_int=0
7656fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007657fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007658echo "$as_me:7658: result: $ac_cv_sizeof_int" >&5
7659echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7660cat >>confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007661#define SIZEOF_INT $ac_cv_sizeof_int
7662EOF
7663
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007664echo "$as_me:7664: checking for long" >&5
7665echo $ECHO_N "checking for long... $ECHO_C" >&6
7666if test "${ac_cv_type_long+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668else
7669 cat >conftest.$ac_ext <<_ACEOF
7670#line 7670 "configure"
7671#include "confdefs.h"
7672$ac_includes_default
7673int
7674main ()
7675{
7676if ((long *) 0)
7677 return 0;
7678if (sizeof (long))
7679 return 0;
7680 ;
7681 return 0;
7682}
7683_ACEOF
7684rm -f conftest.$ac_objext
7685if { (eval echo "$as_me:7685: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>&5
7687 ac_status=$?
7688 echo "$as_me:7688: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:7691: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:7694: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_type_long=yes
7697else
7698 echo "$as_me: failed program was:" >&5
7699cat conftest.$ac_ext >&5
7700ac_cv_type_long=no
7701fi
7702rm -f conftest.$ac_objext conftest.$ac_ext
7703fi
7704echo "$as_me:7704: result: $ac_cv_type_long" >&5
7705echo "${ECHO_T}$ac_cv_type_long" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007706
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007707echo "$as_me:7707: checking size of long" >&5
7708echo $ECHO_N "checking size of long... $ECHO_C" >&6
7709if test "${ac_cv_sizeof_long+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711else
7712 if test "$ac_cv_type_long" = yes; then
7713 if test "$cross_compiling" = yes; then
7714 # Depending upon the size, compute the lo and hi bounds.
7715cat >conftest.$ac_ext <<_ACEOF
7716#line 7716 "configure"
7717#include "confdefs.h"
7718$ac_includes_default
7719int
7720main ()
7721{
7722int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
7723 ;
7724 return 0;
7725}
7726_ACEOF
7727rm -f conftest.$ac_objext
7728if { (eval echo "$as_me:7728: \"$ac_compile\"") >&5
7729 (eval $ac_compile) 2>&5
7730 ac_status=$?
7731 echo "$as_me:7731: \$? = $ac_status" >&5
7732 (exit $ac_status); } &&
7733 { ac_try='test -s conftest.$ac_objext'
7734 { (eval echo "$as_me:7734: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:7737: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 ac_lo=0 ac_mid=0
7740 while :; do
7741 cat >conftest.$ac_ext <<_ACEOF
7742#line 7742 "configure"
7743#include "confdefs.h"
7744$ac_includes_default
7745int
7746main ()
7747{
7748int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7749 ;
7750 return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext
7754if { (eval echo "$as_me:7754: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>&5
7756 ac_status=$?
7757 echo "$as_me:7757: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try='test -s conftest.$ac_objext'
7760 { (eval echo "$as_me:7760: \"$ac_try\"") >&5
7761 (eval $ac_try) 2>&5
7762 ac_status=$?
7763 echo "$as_me:7763: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 ac_hi=$ac_mid; break
7766else
7767 echo "$as_me: failed program was:" >&5
7768cat conftest.$ac_ext >&5
7769ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7770fi
7771rm -f conftest.$ac_objext conftest.$ac_ext
7772 done
7773else
7774 echo "$as_me: failed program was:" >&5
7775cat conftest.$ac_ext >&5
7776ac_hi=-1 ac_mid=-1
7777 while :; do
7778 cat >conftest.$ac_ext <<_ACEOF
7779#line 7779 "configure"
7780#include "confdefs.h"
7781$ac_includes_default
7782int
7783main ()
7784{
7785int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
7786 ;
7787 return 0;
7788}
7789_ACEOF
7790rm -f conftest.$ac_objext
7791if { (eval echo "$as_me:7791: \"$ac_compile\"") >&5
7792 (eval $ac_compile) 2>&5
7793 ac_status=$?
7794 echo "$as_me:7794: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:7797: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:7800: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_lo=$ac_mid; break
7803else
7804 echo "$as_me: failed program was:" >&5
7805cat conftest.$ac_ext >&5
7806ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7807fi
7808rm -f conftest.$ac_objext conftest.$ac_ext
7809 done
7810fi
7811rm -f conftest.$ac_objext conftest.$ac_ext
7812# Binary search between lo and hi bounds.
7813while test "x$ac_lo" != "x$ac_hi"; do
7814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7815 cat >conftest.$ac_ext <<_ACEOF
7816#line 7816 "configure"
7817#include "confdefs.h"
7818$ac_includes_default
7819int
7820main ()
7821{
7822int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7823 ;
7824 return 0;
7825}
7826_ACEOF
7827rm -f conftest.$ac_objext
7828if { (eval echo "$as_me:7828: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>&5
7830 ac_status=$?
7831 echo "$as_me:7831: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -s conftest.$ac_objext'
7834 { (eval echo "$as_me:7834: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:7837: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_hi=$ac_mid
7840else
7841 echo "$as_me: failed program was:" >&5
7842cat conftest.$ac_ext >&5
7843ac_lo=`expr $ac_mid + 1`
7844fi
7845rm -f conftest.$ac_objext conftest.$ac_ext
7846done
7847ac_cv_sizeof_long=$ac_lo
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007848else
7849 if test "$cross_compiling" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007850 { { echo "$as_me:7850: error: cannot run test program while cross compiling" >&5
7851echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7852 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007853else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007854 cat >conftest.$ac_ext <<_ACEOF
7855#line 7855 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007856#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007857$ac_includes_default
7858int
7859main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007860{
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007861FILE *f = fopen ("conftest.val", "w");
7862if (!f)
7863 exit (1);
7864fprintf (f, "%d", (sizeof (long)));
7865fclose (f);
7866 ;
7867 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007868}
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007869_ACEOF
7870rm -f conftest$ac_exeext
7871if { (eval echo "$as_me:7871: \"$ac_link\"") >&5
7872 (eval $ac_link) 2>&5
7873 ac_status=$?
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7876 { (eval echo "$as_me:7876: \"$ac_try\"") >&5
7877 (eval $ac_try) 2>&5
7878 ac_status=$?
7879 echo "$as_me:7879: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007882else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007883 echo "$as_me: program exited with status $ac_status" >&5
7884echo "$as_me: failed program was:" >&5
7885cat conftest.$ac_ext >&5
7886fi
7887rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7888fi
7889fi
7890rm -f conftest.val
7891else
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007892 ac_cv_sizeof_long=0
7893fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007894fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007895echo "$as_me:7895: result: $ac_cv_sizeof_long" >&5
7896echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7897cat >>confdefs.h <<EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007898#define SIZEOF_LONG $ac_cv_sizeof_long
7899EOF
7900
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007901echo "$as_me:7901: checking for long long" >&5
7902echo $ECHO_N "checking for long long... $ECHO_C" >&6
7903if test "${ac_cv_type_long_long+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906 cat >conftest.$ac_ext <<_ACEOF
7907#line 7907 "configure"
7908#include "confdefs.h"
7909$ac_includes_default
7910int
7911main ()
7912{
7913if ((long long *) 0)
7914 return 0;
7915if (sizeof (long long))
7916 return 0;
7917 ;
7918 return 0;
7919}
7920_ACEOF
7921rm -f conftest.$ac_objext
7922if { (eval echo "$as_me:7922: \"$ac_compile\"") >&5
7923 (eval $ac_compile) 2>&5
7924 ac_status=$?
7925 echo "$as_me:7925: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -s conftest.$ac_objext'
7928 { (eval echo "$as_me:7928: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:7931: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_cv_type_long_long=yes
7934else
7935 echo "$as_me: failed program was:" >&5
7936cat conftest.$ac_ext >&5
7937ac_cv_type_long_long=no
7938fi
7939rm -f conftest.$ac_objext conftest.$ac_ext
7940fi
7941echo "$as_me:7941: result: $ac_cv_type_long_long" >&5
7942echo "${ECHO_T}$ac_cv_type_long_long" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007943
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007944echo "$as_me:7944: checking size of long long" >&5
7945echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7946if test "${ac_cv_sizeof_long_long+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949 if test "$ac_cv_type_long_long" = yes; then
7950 if test "$cross_compiling" = yes; then
7951 # Depending upon the size, compute the lo and hi bounds.
7952cat >conftest.$ac_ext <<_ACEOF
7953#line 7953 "configure"
7954#include "confdefs.h"
7955$ac_includes_default
7956int
7957main ()
7958{
7959int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
7960 ;
7961 return 0;
7962}
7963_ACEOF
7964rm -f conftest.$ac_objext
7965if { (eval echo "$as_me:7965: \"$ac_compile\"") >&5
7966 (eval $ac_compile) 2>&5
7967 ac_status=$?
7968 echo "$as_me:7968: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -s conftest.$ac_objext'
7971 { (eval echo "$as_me:7971: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:7974: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7976 ac_lo=0 ac_mid=0
7977 while :; do
7978 cat >conftest.$ac_ext <<_ACEOF
7979#line 7979 "configure"
7980#include "confdefs.h"
7981$ac_includes_default
7982int
7983main ()
7984{
7985int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
7986 ;
7987 return 0;
7988}
7989_ACEOF
7990rm -f conftest.$ac_objext
7991if { (eval echo "$as_me:7991: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>&5
7993 ac_status=$?
7994 echo "$as_me:7994: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -s conftest.$ac_objext'
7997 { (eval echo "$as_me:7997: \"$ac_try\"") >&5
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
8000 echo "$as_me:8000: \$? = $ac_status" >&5
8001 (exit $ac_status); }; }; then
8002 ac_hi=$ac_mid; break
8003else
8004 echo "$as_me: failed program was:" >&5
8005cat conftest.$ac_ext >&5
8006ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8007fi
8008rm -f conftest.$ac_objext conftest.$ac_ext
8009 done
8010else
8011 echo "$as_me: failed program was:" >&5
8012cat conftest.$ac_ext >&5
8013ac_hi=-1 ac_mid=-1
8014 while :; do
8015 cat >conftest.$ac_ext <<_ACEOF
8016#line 8016 "configure"
8017#include "confdefs.h"
8018$ac_includes_default
8019int
8020main ()
8021{
8022int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
8023 ;
8024 return 0;
8025}
8026_ACEOF
8027rm -f conftest.$ac_objext
8028if { (eval echo "$as_me:8028: \"$ac_compile\"") >&5
8029 (eval $ac_compile) 2>&5
8030 ac_status=$?
8031 echo "$as_me:8031: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -s conftest.$ac_objext'
8034 { (eval echo "$as_me:8034: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:8037: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 ac_lo=$ac_mid; break
8040else
8041 echo "$as_me: failed program was:" >&5
8042cat conftest.$ac_ext >&5
8043ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8044fi
8045rm -f conftest.$ac_objext conftest.$ac_ext
8046 done
8047fi
8048rm -f conftest.$ac_objext conftest.$ac_ext
8049# Binary search between lo and hi bounds.
8050while test "x$ac_lo" != "x$ac_hi"; do
8051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8052 cat >conftest.$ac_ext <<_ACEOF
8053#line 8053 "configure"
8054#include "confdefs.h"
8055$ac_includes_default
8056int
8057main ()
8058{
8059int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
8060 ;
8061 return 0;
8062}
8063_ACEOF
8064rm -f conftest.$ac_objext
8065if { (eval echo "$as_me:8065: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>&5
8067 ac_status=$?
8068 echo "$as_me:8068: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:8071: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:8074: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_hi=$ac_mid
8077else
8078 echo "$as_me: failed program was:" >&5
8079cat conftest.$ac_ext >&5
8080ac_lo=`expr $ac_mid + 1`
8081fi
8082rm -f conftest.$ac_objext conftest.$ac_ext
8083done
8084ac_cv_sizeof_long_long=$ac_lo
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008085else
8086 if test "$cross_compiling" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008087 { { echo "$as_me:8087: error: cannot run test program while cross compiling" >&5
8088echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8089 { (exit 1); exit 1; }; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008090else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008091 cat >conftest.$ac_ext <<_ACEOF
8092#line 8092 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008093#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008094$ac_includes_default
8095int
8096main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008097{
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008098FILE *f = fopen ("conftest.val", "w");
8099if (!f)
8100 exit (1);
8101fprintf (f, "%d", (sizeof (long long)));
8102fclose (f);
8103 ;
8104 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008105}
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008106_ACEOF
8107rm -f conftest$ac_exeext
8108if { (eval echo "$as_me:8108: \"$ac_link\"") >&5
8109 (eval $ac_link) 2>&5
8110 ac_status=$?
8111 echo "$as_me:8111: \$? = $ac_status" >&5
8112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8113 { (eval echo "$as_me:8113: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:8116: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008119else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008120 echo "$as_me: program exited with status $ac_status" >&5
8121echo "$as_me: failed program was:" >&5
8122cat conftest.$ac_ext >&5
8123fi
8124rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8125fi
8126fi
8127rm -f conftest.val
8128else
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008129 ac_cv_sizeof_long_long=0
8130fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008131fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008132echo "$as_me:8132: result: $ac_cv_sizeof_long_long" >&5
8133echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8134cat >>confdefs.h <<EOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008135#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8136EOF
8137
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008138SIZEOF_SHORT=$ac_cv_sizeof_short
8139SIZEOF_INT=$ac_cv_sizeof_int
8140SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008141SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
8142
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008143echo "$as_me:8143: checking whether byte ordering is bigendian" >&5
8144echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8145if test "${ac_cv_c_bigendian+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008147else
8148 ac_cv_c_bigendian=unknown
8149# See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008150cat >conftest.$ac_ext <<_ACEOF
8151#line 8151 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008152#include "confdefs.h"
8153#include <sys/types.h>
8154#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008155
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008156int
8157main ()
8158{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008159#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8160 bogus endian macros
8161#endif
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008162
8163 ;
8164 return 0;
8165}
8166_ACEOF
8167rm -f conftest.$ac_objext
8168if { (eval echo "$as_me:8168: \"$ac_compile\"") >&5
8169 (eval $ac_compile) 2>&5
8170 ac_status=$?
8171 echo "$as_me:8171: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -s conftest.$ac_objext'
8174 { (eval echo "$as_me:8174: \"$ac_try\"") >&5
8175 (eval $ac_try) 2>&5
8176 ac_status=$?
8177 echo "$as_me:8177: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008179 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008180cat >conftest.$ac_ext <<_ACEOF
8181#line 8181 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008182#include "confdefs.h"
8183#include <sys/types.h>
8184#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008185
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008186int
8187main ()
8188{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008189#if BYTE_ORDER != BIG_ENDIAN
8190 not big endian
8191#endif
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008192
8193 ;
8194 return 0;
8195}
8196_ACEOF
8197rm -f conftest.$ac_objext
8198if { (eval echo "$as_me:8198: \"$ac_compile\"") >&5
8199 (eval $ac_compile) 2>&5
8200 ac_status=$?
8201 echo "$as_me:8201: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -s conftest.$ac_objext'
8204 { (eval echo "$as_me:8204: \"$ac_try\"") >&5
8205 (eval $ac_try) 2>&5
8206 ac_status=$?
8207 echo "$as_me:8207: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008209 ac_cv_c_bigendian=yes
8210else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008211 echo "$as_me: failed program was:" >&5
8212cat conftest.$ac_ext >&5
8213ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008214fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008215rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008216else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008217 echo "$as_me: failed program was:" >&5
8218cat conftest.$ac_ext >&5
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008219fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008220rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008221if test $ac_cv_c_bigendian = unknown; then
8222if test "$cross_compiling" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008223 { { echo "$as_me:8223: error: cannot run test program while cross compiling" >&5
8224echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8225 { (exit 1); exit 1; }; }
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008226else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008227 cat >conftest.$ac_ext <<_ACEOF
8228#line 8228 "configure"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008229#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008230int
8231main ()
8232{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008233 /* Are we little or big endian? From Harbison&Steele. */
8234 union
8235 {
8236 long l;
8237 char c[sizeof (long)];
8238 } u;
8239 u.l = 1;
8240 exit (u.c[sizeof (long) - 1] == 1);
8241}
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008242_ACEOF
8243rm -f conftest$ac_exeext
8244if { (eval echo "$as_me:8244: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>&5
8246 ac_status=$?
8247 echo "$as_me:8247: \$? = $ac_status" >&5
8248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8249 { (eval echo "$as_me:8249: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:8252: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008254 ac_cv_c_bigendian=no
8255else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008256 echo "$as_me: program exited with status $ac_status" >&5
8257echo "$as_me: failed program was:" >&5
8258cat conftest.$ac_ext >&5
8259ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008260fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008261rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008262fi
8263fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008264fi
8265echo "$as_me:8265: result: $ac_cv_c_bigendian" >&5
8266echo "${ECHO_T}$ac_cv_c_bigendian" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008267if test $ac_cv_c_bigendian = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008268
8269cat >>confdefs.h <<\EOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00008270#define WORDS_BIGENDIAN 1
8271EOF
8272
8273fi
8274
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008275echo "$as_me:8275: checking whether struct stat has a st_flags field" >&5
8276echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
8277if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008279else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008280 cat >conftest.$ac_ext <<_ACEOF
8281#line 8281 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008282#include "confdefs.h"
8283#include <sys/stat.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008284int
8285main ()
8286{
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008287struct stat stat; stat.st_flags = 0;
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008288 ;
8289 return 0;
8290}
8291_ACEOF
8292rm -f conftest.$ac_objext
8293if { (eval echo "$as_me:8293: \"$ac_compile\"") >&5
8294 (eval $ac_compile) 2>&5
8295 ac_status=$?
8296 echo "$as_me:8296: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (eval echo "$as_me:8299: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:8302: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008304 e2fsprogs_cv_struct_st_flags=yes
8305else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008306 echo "$as_me: failed program was:" >&5
8307cat conftest.$ac_ext >&5
8308e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008309fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008310rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008311fi
8312
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008313echo "$as_me:8313: result: $e2fsprogs_cv_struct_st_flags" >&5
8314echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008315if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008316 echo "$as_me:8316: checking whether st_flags field is useful" >&5
8317echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
8318 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00008320else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008321 cat >conftest.$ac_ext <<_ACEOF
8322#line 8322 "configure"
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00008323#include "confdefs.h"
8324#include <sys/stat.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008325int
8326main ()
8327{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00008328struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008329 ;
8330 return 0;
8331}
8332_ACEOF
8333rm -f conftest.$ac_objext
8334if { (eval echo "$as_me:8334: \"$ac_compile\"") >&5
8335 (eval $ac_compile) 2>&5
8336 ac_status=$?
8337 echo "$as_me:8337: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try='test -s conftest.$ac_objext'
8340 { (eval echo "$as_me:8340: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:8343: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00008345 e2fsprogs_cv_struct_st_flags_immut=yes
8346else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008347 echo "$as_me: failed program was:" >&5
8348cat conftest.$ac_ext >&5
8349e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00008350fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008351rm -f conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00008352fi
8353
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008354 echo "$as_me:8354: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
8355echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00008356 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008357 cat >>confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008358#define HAVE_STAT_FLAGS 1
8359EOF
8360
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +00008361 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008362fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008363
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008364for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008365do
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8367echo "$as_me:8367: checking for $ac_func" >&5
8368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8369if eval "test \"\${$as_ac_var+set}\" = set"; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008371else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008372 cat >conftest.$ac_ext <<_ACEOF
8373#line 8373 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008374#include "confdefs.h"
8375/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008376 which can conflict with char $ac_func (); below. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008377#include <assert.h>
8378/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008379#ifdef __cplusplus
8380extern "C"
8381#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +00008382/* We use char because int might match the return type of a gcc2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008383 builtin and then its argument prototype would still apply. */
8384char $ac_func ();
8385char (*f) ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008386
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008387int
8388main ()
8389{
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008390/* The GNU C library defines this for functions which it implements
8391 to always fail with ENOSYS. Some functions are actually named
8392 something starting with __ and the normal name is an alias. */
8393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8394choke me
8395#else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008396f = $ac_func;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008397#endif
8398
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008399 ;
8400 return 0;
8401}
8402_ACEOF
8403rm -f conftest.$ac_objext conftest$ac_exeext
8404if { (eval echo "$as_me:8404: \"$ac_link\"") >&5
8405 (eval $ac_link) 2>&5
8406 ac_status=$?
8407 echo "$as_me:8407: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (eval echo "$as_me:8410: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:8413: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008416else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008417 echo "$as_me: failed program was:" >&5
8418cat conftest.$ac_ext >&5
8419eval "$as_ac_var=no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008420fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008422fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008423echo "$as_me:8423: result: `eval echo '${'$as_ac_var'}'`" >&5
8424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8425if test `eval echo '${'$as_ac_var'}'` = yes; then
8426 cat >>confdefs.h <<EOF
8427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8428EOF
Theodore Ts'o21c84b71997-04-29 16:15:03 +00008429
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008430fi
8431done
8432
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008433SOCKET_LIB=''
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008434echo "$as_me:8434: checking for socket in -lsocket" >&5
8435echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8436if test "${ac_cv_lib_socket_socket+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008438else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008439 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008440LIBS="-lsocket $LIBS"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008441cat >conftest.$ac_ext <<_ACEOF
8442#line 8442 "configure"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008443#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008444
Theodore Ts'o21c84b71997-04-29 16:15:03 +00008445/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008446#ifdef __cplusplus
8447extern "C"
8448#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +00008449/* We use char because int might match the return type of a gcc2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008450 builtin and then its argument prototype would still apply. */
8451char socket ();
8452int
8453main ()
8454{
8455socket ();
8456 ;
8457 return 0;
8458}
8459_ACEOF
8460rm -f conftest.$ac_objext conftest$ac_exeext
8461if { (eval echo "$as_me:8461: \"$ac_link\"") >&5
8462 (eval $ac_link) 2>&5
8463 ac_status=$?
8464 echo "$as_me:8464: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try='test -s conftest$ac_exeext'
8467 { (eval echo "$as_me:8467: \"$ac_try\"") >&5
8468 (eval $ac_try) 2>&5
8469 ac_status=$?
8470 echo "$as_me:8470: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008473else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008474 echo "$as_me: failed program was:" >&5
8475cat conftest.$ac_ext >&5
8476ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008477fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8479LIBS=$ac_check_lib_save_LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008480fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008481echo "$as_me:8481: result: $ac_cv_lib_socket_socket" >&5
8482echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8483if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008484 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008485fi
8486
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008487DLOPEN_LIB=''
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008488echo "$as_me:8488: checking for dlopen in -ldl" >&5
8489echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8490if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008492else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008493 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008494LIBS="-ldl $LIBS"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008495cat >conftest.$ac_ext <<_ACEOF
8496#line 8496 "configure"
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008497#include "confdefs.h"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008498
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008499/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008500#ifdef __cplusplus
8501extern "C"
8502#endif
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008503/* We use char because int might match the return type of a gcc2
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008504 builtin and then its argument prototype would still apply. */
8505char dlopen ();
8506int
8507main ()
8508{
8509dlopen ();
8510 ;
8511 return 0;
8512}
8513_ACEOF
8514rm -f conftest.$ac_objext conftest$ac_exeext
8515if { (eval echo "$as_me:8515: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>&5
8517 ac_status=$?
8518 echo "$as_me:8518: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:8521: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:8524: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008527else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008528 echo "$as_me: failed program was:" >&5
8529cat conftest.$ac_ext >&5
8530ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008531fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8533LIBS=$ac_check_lib_save_LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008534fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008535echo "$as_me:8535: result: $ac_cv_lib_dl_dlopen" >&5
8536echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8537if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008538 DLOPEN_LIB=-ldl
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008539cat >>confdefs.h <<\EOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008540#define HAVE_DLOPEN 1
8541EOF
8542
Theodore Ts'obbac86b2003-03-16 06:27:22 -05008543fi
8544
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008545echo "$as_me:8545: checking for optreset" >&5
8546echo $ECHO_N "checking for optreset... $ECHO_C" >&6
8547if test "${ac_cv_have_optreset+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008549else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008550 cat >conftest.$ac_ext <<_ACEOF
8551#line 8551 "configure"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008552#include "confdefs.h"
8553#include <unistd.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008554
8555_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8557 egrep "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008558 ac_cv_have_optreset=yes
8559else
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008560 ac_cv_have_optreset=no
8561fi
8562rm -f conftest*
8563
8564fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008565echo "$as_me:8565: result: $ac_cv_have_optreset" >&5
8566echo "${ECHO_T}$ac_cv_have_optreset" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008567if test $ac_cv_have_optreset = yes; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008568 cat >>confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008569#define HAVE_OPTRESET 1
8570EOF
8571
8572fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00008573case "$host_os" in
8574linux*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008575 cat >>confdefs.h <<\EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008576#define HAVE_EXT2_IOCTLS 1
8577EOF
8578
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +00008579 ;;
8580esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04008581LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04008582CYGWIN_CMT="#"
8583UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04008584case "$host_os" in
8585linux*)
8586 LINUX_CMT=
8587 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -04008588cygwin)
8589 CYGWIN_CMT=
8590 UNIX_CMT="#"
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04008591 EVMS_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -04008592 ;;
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04008593*)
8594 EVMS_CMT="#"
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -04008595esac
8596
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008597case "$host_os" in
Theodore Ts'od3c9fb82003-06-08 20:26:15 -04008598linux* | gnu* | freebsd*-gnu*)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00008599 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
8600 root_prefix="";
8601 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008602 fi
8603 ;;
8604esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008605case "$host_os" in
Theodore Ts'od3c9fb82003-06-08 20:26:15 -04008606linux* | gnu* | freebsd*-gnu*)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00008607 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00008608 prefix="/usr";
8609 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -04008610 if test "$mandir" = '${prefix}/man' ; then
8611 echo "...and mandir defaults to /usr/share/man"
8612 mandir=/usr/share/man
8613 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008614 fi
8615;;
8616esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00008617if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +00008618 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00008619 root_prefix="$ac_default_prefix"
8620 else
8621 root_prefix="$prefix"
8622 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -04008623 root_bindir=$bindir
8624 root_sbindir=$sbindir
8625 root_libdir=$libdir
8626 root_sysconfdir=$sysconfdir
8627else
8628 root_bindir='${root_prefix}/bin'
8629 root_sbindir='${root_prefix}/sbin'
8630 root_libdir='${root_prefix}/lib'
8631 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00008632fi
8633
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008634echo "$as_me:8634: checking whether linker accepts -static" >&5
8635echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
8636if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +00008638else
8639 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008640cat >conftest.$ac_ext <<_ACEOF
8641#line 8641 "configure"
Theodore Ts'oae851481997-04-29 18:13:24 +00008642#include "confdefs.h"
8643#include <stdio.h>
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008644int
8645main ()
8646{
Theodore Ts'oae851481997-04-29 18:13:24 +00008647fflush(stdout);
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008648 ;
8649 return 0;
8650}
8651_ACEOF
8652rm -f conftest.$ac_objext conftest$ac_exeext
8653if { (eval echo "$as_me:8653: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>&5
8655 ac_status=$?
8656 echo "$as_me:8656: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -s conftest$ac_exeext'
8659 { (eval echo "$as_me:8659: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:8662: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
Theodore Ts'oae851481997-04-29 18:13:24 +00008664 ac_cv_e2fsprogs_use_static=yes
8665else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008666 echo "$as_me: failed program was:" >&5
8667cat conftest.$ac_ext >&5
8668ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +00008669fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +00008671LDFLAGS=$SAVE_LDFLAGS
8672fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008673
Theodore Ts'odefde781999-01-04 07:39:19 +00008674case "$host_os" in
8675solaris2.*)
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008676 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +00008677;;
8678esac
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008679echo "$as_me:8679: result: $ac_cv_e2fsprogs_use_static" >&5
8680echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00008681LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +00008682if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008683 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +00008684fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008685
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008686case "$host_os" in
8687darwin*)
8688 echo "Using Apple Darwin / GNU libintl workaround"
8689 cat >>confdefs.h <<\EOF
8690#define _INTL_REDIRECT_MACROS 1
8691EOF
8692
8693 ;;
8694esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008695SS_DIR=`cd ${srcdir}/lib/ss; pwd`
8696ET_DIR=`cd ${srcdir}/lib/et; pwd`
8697
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008698if test "$cross_compiling" = yes ; then
8699 DO_TEST_SUITE=
8700else
8701 DO_TEST_SUITE=check
8702fi
8703
Theodore Ts'oc6f35b82003-05-17 16:29:27 -04008704INTL_FLAGS=
8705if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
8706 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
8707fi
8708
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008709test -d lib || mkdir lib
8710test -d include || mkdir include
8711test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +00008712test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -05008713for i in MCONFIG Makefile e2fsprogs.spec \
8714 util/Makefile util/subst.conf util/gen-tarball \
8715 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -05008716 lib/uuid/Makefile lib/uuid/uuid_types.h \
8717 lib/blkid/Makefile lib/blkid/blkid_types.h \
8718 lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
8719 debugfs/Makefile tests/Makefile tests/progs/Makefile \
8720 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
8721 if test -d `dirname ${srcdir}/$i` ; then
8722 outlist="$outlist $i"
8723 fi
8724done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008725ac_config_files="$ac_config_files $outlist"
8726cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008727# This file is a shell script that caches the results of configure
8728# tests run on this system so they can be shared between configure
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008729# scripts and configure runs, see configure's option --config-cache.
8730# It is not useful on other systems. If it contains results you don't
8731# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008732#
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008733# config.status only pays attention to the cache file if you give it
8734# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008735#
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008736# `ac_cv_env_foo' variables (set or unset) will be overriden when
8737# loading this file, other *unset* `ac_cv_foo' will be assigned the
8738# following values.
8739
8740_ACEOF
8741
Theodore Ts'o21c84b71997-04-29 16:15:03 +00008742# The following way of writing the cache mishandles newlines in values,
8743# but we know of no workaround that is simple, portable, and efficient.
8744# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008745# Ultrix sh set writes to stderr and can't be redirected directly,
8746# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008747{
8748 (set) 2>&1 |
8749 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8750 *ac_space=\ *)
8751 # `set' does not quote correctly, so add quotes (double-quote
8752 # substitution turns \\\\ into \\, and sed turns \\ into \).
8753 sed -n \
8754 "s/'/'\\\\''/g;
8755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8756 ;;
8757 *)
8758 # `set' quotes correctly as required by POSIX, so do not add quotes.
8759 sed -n \
8760 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8761 ;;
8762 esac;
8763} |
8764 sed '
8765 t clear
8766 : clear
8767 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8768 t end
8769 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8770 : end' >>confcache
8771if cmp -s $cache_file confcache; then :; else
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008772 if test -w $cache_file; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008773 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8774 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008775 else
8776 echo "not updating unwritable cache $cache_file"
8777 fi
8778fi
8779rm -f confcache
8780
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008781test "x$prefix" = xNONE && prefix=$ac_default_prefix
8782# Let make expand exec_prefix.
8783test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8784
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008785# VPATH may cause trouble with some makes, so we remove $(srcdir),
8786# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8787# trailing colons and then remove the whole line if VPATH becomes empty
8788# (actually we leave an empty line to preserve line numbers).
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008789if test "x$srcdir" = x.; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008790 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8791s/:*\$(srcdir):*/:/;
8792s/:*\${srcdir}:*/:/;
8793s/:*@srcdir@:*/:/;
8794s/^\([^=]*=[ ]*\):*/\1/;
8795s/:*$//;
8796s/^[^=]*=[ ]*$//;
8797}'
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008798fi
8799
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008800# Transform confdefs.h into DEFS.
8801# Protect against shell expansion while executing Makefile rules.
8802# Protect against Makefile macro expansion.
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008803#
8804# If the first sed substitution is executed (which looks for macros that
8805# take arguments), then we branch to the quote section. Otherwise,
8806# look for a macro that doesn't take arguments.
8807cat >confdef2opt.sed <<\EOF
8808t clear
8809: clear
8810s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
8811t quote
8812s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
8813t quote
8814d
8815: quote
8816s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
8817s,\[,\\&,g
8818s,\],\\&,g
8819s,\$,$$,g
8820p
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008821EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008822# We use echo to avoid assuming a particular line-breaking character.
8823# The extra dot is to prevent the shell from consuming trailing
8824# line-breaks from the sub-command output. A line-break within
8825# single-quotes doesn't work because, if this script is created in a
8826# platform that uses two characters for line-breaks (e.g., DOS), tr
8827# would break.
8828ac_LF_and_DOT=`echo; echo .`
8829DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
8830rm -f confdef2opt.sed
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008831
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008832: ${CONFIG_STATUS=./config.status}
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008833ac_clean_files_save=$ac_clean_files
8834ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8835{ echo "$as_me:8835: creating $CONFIG_STATUS" >&5
8836echo "$as_me: creating $CONFIG_STATUS" >&6;}
8837cat >$CONFIG_STATUS <<_ACEOF
8838#! $SHELL
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008839# Generated automatically by configure.
8840# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008841# Compiler output produced by configure, useful for debugging
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008842# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008843
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008844debug=false
8845SHELL=\${CONFIG_SHELL-$SHELL}
8846ac_cs_invocation="\$0 \$@"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008847
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008848_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008849
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008850cat >>$CONFIG_STATUS <<\_ACEOF
8851# Be Bourne compatible
8852if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8853 emulate sh
8854 NULLCMD=:
8855elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8856 set -o posix
Theodore Ts'o21c84b71997-04-29 16:15:03 +00008857fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00008858
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008859# Name of the executable.
8860as_me=`echo "$0" |sed 's,.*[\\/],,'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008861
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008862if expr a : '\(a\)' >/dev/null 2>&1; then
8863 as_expr=expr
8864else
8865 as_expr=false
8866fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008867
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008868rm -f conf$$ conf$$.exe conf$$.file
8869echo >conf$$.file
8870if ln -s conf$$.file conf$$ 2>/dev/null; then
8871 # We could just check for DJGPP; but this test a) works b) is more generic
8872 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8873 if test -f conf$$.exe; then
8874 # Don't use ln at all; we don't have any links
8875 as_ln_s='cp -p'
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008876 else
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008877 as_ln_s='ln -s'
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008878 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008879elif ln conf$$.file conf$$ 2>/dev/null; then
8880 as_ln_s=ln
8881else
8882 as_ln_s='cp -p'
8883fi
8884rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008885
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008886as_executable_p="test -f"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008887
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008888# Support unset when possible.
8889if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8890 as_unset=unset
8891else
8892 as_unset=false
8893fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +00008894
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008895# NLS nuisances.
8896$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8897$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8898$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8899$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8900$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8901$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8902$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8903$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
Theodore Ts'o21c84b71997-04-29 16:15:03 +00008904
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008905# IFS
8906# We need space, tab and new line, in precisely that order.
8907as_nl='
8908'
8909IFS=" $as_nl"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008910
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008911# CDPATH.
8912$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8913
8914exec 6>&1
8915
8916_ACEOF
8917
8918# Files that config.status was made for.
8919if test -n "$ac_config_files"; then
8920 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8921fi
8922
8923if test -n "$ac_config_headers"; then
8924 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8925fi
8926
8927if test -n "$ac_config_links"; then
8928 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8929fi
8930
8931if test -n "$ac_config_commands"; then
8932 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8933fi
8934
8935cat >>$CONFIG_STATUS <<\EOF
8936
8937ac_cs_usage="\
8938\`$as_me' instantiates files from templates according to the
8939current configuration.
8940
8941Usage: $0 [OPTIONS] [FILE]...
8942
8943 -h, --help print this help, then exit
8944 -V, --version print version number, then exit
8945 -d, --debug don't remove temporary files
8946 --recheck update $as_me by reconfiguring in the same conditions
8947 --file=FILE[:TEMPLATE]
8948 instantiate the configuration file FILE
8949
8950Configuration files:
8951$config_files
8952
8953Configuration commands:
8954$config_commands
8955
8956Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'o21c84b71997-04-29 16:15:03 +00008957EOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008958
8959cat >>$CONFIG_STATUS <<EOF
8960ac_cs_version="\\
8961config.status
8962configured by $0, generated by GNU Autoconf 2.52,
8963 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8964
8965Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8966Free Software Foundation, Inc.
8967This config.status script is free software; the Free Software Foundation
8968gives unlimited permission to copy, distribute and modify it."
8969srcdir=$srcdir
8970INSTALL="$INSTALL"
8971EOF
8972
8973cat >>$CONFIG_STATUS <<\EOF
8974# If no file are specified by the user, then we need to provide default
8975# value. By we need to know if files were specified by the user.
8976ac_need_defaults=:
8977while test $# != 0
8978do
8979 case $1 in
8980 --*=*)
8981 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8982 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8983 shift
8984 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8985 shift
8986 ;;
8987 -*);;
8988 *) # This is not an option, so the user has probably given explicit
8989 # arguments.
8990 ac_need_defaults=false;;
8991 esac
8992
8993 case $1 in
8994 # Handling of the options.
8995EOF
8996cat >>$CONFIG_STATUS <<EOF
8997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8998 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8999 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9000EOF
9001cat >>$CONFIG_STATUS <<\EOF
9002 --version | --vers* | -V )
9003 echo "$ac_cs_version"; exit 0 ;;
9004 --he | --h)
9005 # Conflict between --help and --header
9006 { { echo "$as_me:9006: error: ambiguous option: $1
9007Try \`$0 --help' for more information." >&5
9008echo "$as_me: error: ambiguous option: $1
9009Try \`$0 --help' for more information." >&2;}
9010 { (exit 1); exit 1; }; };;
9011 --help | --hel | -h )
9012 echo "$ac_cs_usage"; exit 0 ;;
9013 --debug | --d* | -d )
9014 debug=: ;;
9015 --file | --fil | --fi | --f )
9016 shift
9017 CONFIG_FILES="$CONFIG_FILES $1"
9018 ac_need_defaults=false;;
9019 --header | --heade | --head | --hea )
9020 shift
9021 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9022 ac_need_defaults=false;;
9023
9024 # This is an error.
9025 -*) { { echo "$as_me:9025: error: unrecognized option: $1
9026Try \`$0 --help' for more information." >&5
9027echo "$as_me: error: unrecognized option: $1
9028Try \`$0 --help' for more information." >&2;}
9029 { (exit 1); exit 1; }; } ;;
9030
9031 *) ac_config_targets="$ac_config_targets $1" ;;
9032
9033 esac
9034 shift
9035done
9036
9037exec 5>>config.log
9038cat >&5 << _ACEOF
9039
9040## ----------------------- ##
9041## Running config.status. ##
9042## ----------------------- ##
9043
9044This file was extended by $as_me 2.52, executed with
9045 CONFIG_FILES = $CONFIG_FILES
9046 CONFIG_HEADERS = $CONFIG_HEADERS
9047 CONFIG_LINKS = $CONFIG_LINKS
9048 CONFIG_COMMANDS = $CONFIG_COMMANDS
9049 > $ac_cs_invocation
9050on `(hostname || uname -n) 2>/dev/null | sed 1q`
9051
9052_ACEOF
9053EOF
9054
9055cat >>$CONFIG_STATUS <<EOF
9056#
9057# INIT-COMMANDS section.
9058#
9059
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009060# Capture the value of obsolete ALL_LINGUAS because we need it to compute
9061 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9062 # from automake.
9063 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9064 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9065 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009066
Theodore Ts'o21c84b71997-04-29 16:15:03 +00009067EOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009068
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009069cat >>$CONFIG_STATUS <<\EOF
9070for ac_config_target in $ac_config_targets
9071do
9072 case "$ac_config_target" in
9073 # Handling of arguments.
9074 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
9075 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9076 *) { { echo "$as_me:9076: error: invalid argument: $ac_config_target" >&5
9077echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9078 { (exit 1); exit 1; }; };;
9079 esac
9080done
9081
9082# If the user did not use the arguments to specify the items to instantiate,
9083# then the envvar interface is used. Set only those that are not.
9084# We use the long form for the default assignment because of an extremely
9085# bizarre bug on SunOS 4.1.3.
9086if $ac_need_defaults; then
9087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9088 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9089fi
9090
9091# Create a temporary directory, and hook for its removal unless debugging.
9092$debug ||
9093{
9094 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9095 trap '{ (exit 1); exit 1; }' 1 2 13 15
9096}
9097
9098# Create a (secure) tmp directory for tmp files.
9099: ${TMPDIR=/tmp}
9100{
9101 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9102 test -n "$tmp" && test -d "$tmp"
9103} ||
9104{
9105 tmp=$TMPDIR/cs$$-$RANDOM
9106 (umask 077 && mkdir $tmp)
9107} ||
9108{
9109 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9110 { (exit 1); exit 1; }
9111}
9112
9113EOF
9114
9115cat >>$CONFIG_STATUS <<EOF
9116
9117#
9118# CONFIG_FILES section.
9119#
9120
9121# No need to generate the scripts if there are no CONFIG_FILES.
9122# This happens for instance when ./config.status config.h
9123if test -n "\$CONFIG_FILES"; then
9124 # Protect against being on the right side of a sed subst in config.status.
9125 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9126 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9127s,@SHELL@,$SHELL,;t t
9128s,@exec_prefix@,$exec_prefix,;t t
9129s,@prefix@,$prefix,;t t
9130s,@program_transform_name@,$program_transform_name,;t t
9131s,@bindir@,$bindir,;t t
9132s,@sbindir@,$sbindir,;t t
9133s,@libexecdir@,$libexecdir,;t t
9134s,@datadir@,$datadir,;t t
9135s,@sysconfdir@,$sysconfdir,;t t
9136s,@sharedstatedir@,$sharedstatedir,;t t
9137s,@localstatedir@,$localstatedir,;t t
9138s,@libdir@,$libdir,;t t
9139s,@includedir@,$includedir,;t t
9140s,@oldincludedir@,$oldincludedir,;t t
9141s,@infodir@,$infodir,;t t
9142s,@mandir@,$mandir,;t t
9143s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9144s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9145s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9146s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9147s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9148s,@build_alias@,$build_alias,;t t
9149s,@host_alias@,$host_alias,;t t
9150s,@target_alias@,$target_alias,;t t
9151s,@ECHO_C@,$ECHO_C,;t t
9152s,@ECHO_N@,$ECHO_N,;t t
9153s,@ECHO_T@,$ECHO_T,;t t
9154s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9155s,@DEFS@,$DEFS,;t t
9156s,@LIBS@,$LIBS,;t t
9157/@MCONFIG@/r $MCONFIG
9158s,@MCONFIG@,,;t t
9159s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
9160s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
9161s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
9162s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
9163s,@build@,$build,;t t
9164s,@build_cpu@,$build_cpu,;t t
9165s,@build_vendor@,$build_vendor,;t t
9166s,@build_os@,$build_os,;t t
9167s,@host@,$host,;t t
9168s,@host_cpu@,$host_cpu,;t t
9169s,@host_vendor@,$host_vendor,;t t
9170s,@host_os@,$host_os,;t t
9171s,@CC@,$CC,;t t
9172s,@CFLAGS@,$CFLAGS,;t t
9173s,@LDFLAGS@,$LDFLAGS,;t t
9174s,@CPPFLAGS@,$CPPFLAGS,;t t
9175s,@ac_ct_CC@,$ac_ct_CC,;t t
9176s,@EXEEXT@,$EXEEXT,;t t
9177s,@OBJEXT@,$OBJEXT,;t t
9178s,@LD@,$LD,;t t
9179s,@CPP@,$CPP,;t t
9180s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
9181s,@HTREE_CMT@,$HTREE_CMT,;t t
9182s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t
9183s,@EVMS_ABI_CODE@,$EVMS_ABI_CODE,;t t
9184s,@DLL_CMT@,$DLL_CMT,;t t
9185/@MAKEFILE_DLL@/r $MAKEFILE_DLL
9186s,@MAKEFILE_DLL@,,;t t
9187s,@ELF_CMT@,$ELF_CMT,;t t
9188/@MAKEFILE_ELF@/r $MAKEFILE_ELF
9189s,@MAKEFILE_ELF@,,;t t
9190s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
9191/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
9192s,@MAKEFILE_BSDLIB@,,;t t
9193s,@PROFILE_CMT@,$PROFILE_CMT,;t t
9194/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
9195s,@MAKEFILE_PROFILE@,,;t t
9196s,@CHECKER_CMT@,$CHECKER_CMT,;t t
9197/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
9198s,@MAKEFILE_CHECKER@,,;t t
9199s,@LIB_EXT@,$LIB_EXT,;t t
9200s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
9201s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
9202s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
9203s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
9204s,@IMAGER_CMT@,$IMAGER_CMT,;t t
9205s,@RESIZER_CMT@,$RESIZER_CMT,;t t
9206s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
9207s,@FSCK_PROG@,$FSCK_PROG,;t t
9208s,@FSCK_MAN@,$FSCK_MAN,;t t
9209/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
9210s,@MAKEFILE_LIBRARY@,,;t t
9211s,@PACKAGE@,$PACKAGE,;t t
9212s,@VERSION@,$VERSION,;t t
9213s,@SET_MAKE@,$SET_MAKE,;t t
9214s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9215s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9216s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9217s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9218s,@MSGFMT@,$MSGFMT,;t t
9219s,@GMSGFMT@,$GMSGFMT,;t t
9220s,@XGETTEXT@,$XGETTEXT,;t t
9221s,@MSGMERGE@,$MSGMERGE,;t t
9222s,@RANLIB@,$RANLIB,;t t
9223s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9224s,@ALLOCA@,$ALLOCA,;t t
9225s,@GLIBC21@,$GLIBC21,;t t
9226s,@LIBICONV@,$LIBICONV,;t t
9227s,@LTLIBICONV@,$LTLIBICONV,;t t
9228s,@INTLBISON@,$INTLBISON,;t t
9229s,@USE_NLS@,$USE_NLS,;t t
9230s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9231s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9232s,@CATOBJEXT@,$CATOBJEXT,;t t
9233s,@INTLOBJS@,$INTLOBJS,;t t
9234s,@DATADIRNAME@,$DATADIRNAME,;t t
9235s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9236s,@GENCAT@,$GENCAT,;t t
9237s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9238s,@INTLLIBS@,$INTLLIBS,;t t
9239s,@LIBINTL@,$LIBINTL,;t t
9240s,@LTLIBINTL@,$LTLIBINTL,;t t
9241s,@POSUB@,$POSUB,;t t
9242s,@BINARY_TYPE@,$BINARY_TYPE,;t t
9243s,@LN@,$LN,;t t
9244s,@LN_S@,$LN_S,;t t
9245s,@MV@,$MV,;t t
9246s,@CP@,$CP,;t t
9247s,@RM@,$RM,;t t
9248s,@CHMOD@,$CHMOD,;t t
9249s,@AWK@,$AWK,;t t
9250s,@SED@,$SED,;t t
9251s,@PERL@,$PERL,;t t
9252s,@LDCONFIG@,$LDCONFIG,;t t
9253s,@AR@,$AR,;t t
9254s,@ac_ct_AR@,$ac_ct_AR,;t t
9255s,@STRIP@,$STRIP,;t t
9256s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9257s,@BUILD_CC@,$BUILD_CC,;t t
9258s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
9259s,@SIZEOF_INT@,$SIZEOF_INT,;t t
9260s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
9261s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
9262s,@SOCKET_LIB@,$SOCKET_LIB,;t t
9263s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
9264s,@LINUX_CMT@,$LINUX_CMT,;t t
9265s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
9266s,@UNIX_CMT@,$UNIX_CMT,;t t
9267s,@EVMS_CMT@,$EVMS_CMT,;t t
9268s,@root_prefix@,$root_prefix,;t t
9269s,@root_bindir@,$root_bindir,;t t
9270s,@root_sbindir@,$root_sbindir,;t t
9271s,@root_libdir@,$root_libdir,;t t
9272s,@root_sysconfdir@,$root_sysconfdir,;t t
9273s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
9274s,@SS_DIR@,$SS_DIR,;t t
9275s,@ET_DIR@,$ET_DIR,;t t
9276s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
9277s,@INTL_FLAGS@,$INTL_FLAGS,;t t
9278CEOF
9279
9280EOF
9281
9282 cat >>$CONFIG_STATUS <<\EOF
9283 # Split the substitutions into bite-sized pieces for seds with
9284 # small command number limits, like on Digital OSF/1 and HP-UX.
9285 ac_max_sed_lines=48
9286 ac_sed_frag=1 # Number of current file.
9287 ac_beg=1 # First line for current file.
9288 ac_end=$ac_max_sed_lines # Line after last line for current file.
9289 ac_more_lines=:
9290 ac_sed_cmds=
9291 while $ac_more_lines; do
9292 if test $ac_beg -gt 1; then
9293 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9294 else
9295 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9296 fi
9297 if test ! -s $tmp/subs.frag; then
9298 ac_more_lines=false
9299 else
9300 # The purpose of the label and of the branching condition is to
9301 # speed up the sed processing (if there are no `@' at all, there
9302 # is no need to browse any of the substitutions).
9303 # These are the two extra sed commands mentioned above.
9304 (echo ':t
9305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9306 if test -z "$ac_sed_cmds"; then
9307 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9308 else
9309 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9310 fi
9311 ac_sed_frag=`expr $ac_sed_frag + 1`
9312 ac_beg=$ac_end
9313 ac_end=`expr $ac_end + $ac_max_sed_lines`
9314 fi
9315 done
9316 if test -z "$ac_sed_cmds"; then
9317 ac_sed_cmds=cat
9318 fi
9319fi # test -n "$CONFIG_FILES"
9320
9321EOF
9322cat >>$CONFIG_STATUS <<\EOF
9323for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9324 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9325 case $ac_file in
9326 - | *:- | *:-:* ) # input from stdin
9327 cat >$tmp/stdin
9328 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9329 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9330 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9331 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9332 * ) ac_file_in=$ac_file.in ;;
9333 esac
9334
9335 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9336 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9337 X"$ac_file" : 'X\(//\)[^/]' \| \
9338 X"$ac_file" : 'X\(//\)$' \| \
9339 X"$ac_file" : 'X\(/\)' \| \
9340 . : '\(.\)' 2>/dev/null ||
9341echo X"$ac_file" |
9342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9344 /^X\(\/\/\)$/{ s//\1/; q; }
9345 /^X\(\/\).*/{ s//\1/; q; }
9346 s/.*/./; q'`
9347 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9348 { case "$ac_dir" in
9349 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9350 *) as_incr_dir=.;;
9351esac
9352as_dummy="$ac_dir"
9353for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9354 case $as_mkdir_dir in
9355 # Skip DOS drivespec
9356 ?:) as_incr_dir=$as_mkdir_dir ;;
9357 *)
9358 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9359 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9360 ;;
9361 esac
9362done; }
9363
9364 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
9365 # A "../" for each directory in $ac_dir_suffix.
9366 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9367 else
9368 ac_dir_suffix= ac_dots=
9369 fi
9370
9371 case $srcdir in
9372 .) ac_srcdir=.
9373 if test -z "$ac_dots"; then
9374 ac_top_srcdir=.
9375 else
9376 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
9377 fi ;;
9378 [\\/]* | ?:[\\/]* )
9379 ac_srcdir=$srcdir$ac_dir_suffix;
9380 ac_top_srcdir=$srcdir ;;
9381 *) # Relative path.
9382 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9383 ac_top_srcdir=$ac_dots$srcdir ;;
9384 esac
9385
9386 case $INSTALL in
9387 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9388 *) ac_INSTALL=$ac_dots$INSTALL ;;
9389 esac
9390
9391 if test x"$ac_file" != x-; then
9392 { echo "$as_me:9392: creating $ac_file" >&5
9393echo "$as_me: creating $ac_file" >&6;}
9394 rm -f "$ac_file"
9395 fi
9396 # Let's still pretend it is `configure' which instantiates (i.e., don't
9397 # use $as_me), people would be surprised to read:
9398 # /* config.h. Generated automatically by config.status. */
9399 configure_input="Generated automatically from `echo $ac_file_in |
9400 sed 's,.*/,,'` by configure."
9401
9402 # First look for the input files in the build tree, otherwise in the
9403 # src tree.
9404 ac_file_inputs=`IFS=:
9405 for f in $ac_file_in; do
9406 case $f in
9407 -) echo $tmp/stdin ;;
9408 [\\/$]*)
9409 # Absolute (can't be DOS-style, as IFS=:)
9410 test -f "$f" || { { echo "$as_me:9410: error: cannot find input file: $f" >&5
9411echo "$as_me: error: cannot find input file: $f" >&2;}
9412 { (exit 1); exit 1; }; }
9413 echo $f;;
9414 *) # Relative
9415 if test -f "$f"; then
9416 # Build tree
9417 echo $f
9418 elif test -f "$srcdir/$f"; then
9419 # Source tree
9420 echo $srcdir/$f
9421 else
9422 # /dev/null tree
9423 { { echo "$as_me:9423: error: cannot find input file: $f" >&5
9424echo "$as_me: error: cannot find input file: $f" >&2;}
9425 { (exit 1); exit 1; }; }
9426 fi;;
9427 esac
9428 done` || { (exit 1); exit 1; }
9429EOF
9430cat >>$CONFIG_STATUS <<EOF
9431 sed "$ac_vpsub
9432$extrasub
9433EOF
9434cat >>$CONFIG_STATUS <<\EOF
9435:t
9436/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9437s,@configure_input@,$configure_input,;t t
9438s,@srcdir@,$ac_srcdir,;t t
9439s,@top_srcdir@,$ac_top_srcdir,;t t
9440s,@INSTALL@,$ac_INSTALL,;t t
9441" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9442 rm -f $tmp/stdin
9443 if test x"$ac_file" != x-; then
9444 mv $tmp/out $ac_file
9445 else
9446 cat $tmp/out
9447 rm -f $tmp/out
9448 fi
9449
9450done
9451EOF
9452cat >>$CONFIG_STATUS <<\EOF
9453
9454#
9455# CONFIG_COMMANDS section.
9456#
9457for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9458 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9459 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9460
9461 case $ac_dest in
9462 default-1 )
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009463 for ac_file in $CONFIG_FILES; do
9464 # Support "outfile[:infile[:infile...]]"
9465 case "$ac_file" in
9466 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009467 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009468 # PO directories have a Makefile.in generated from Makefile.in.in.
9469 case "$ac_file" in */Makefile.in)
9470 # Adjust a relative srcdir.
9471 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9472 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9473 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9474 # In autoconf-2.13 it is called $ac_given_srcdir.
9475 # In autoconf-2.50 it is called $srcdir.
9476 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9477 case "$ac_given_srcdir" in
9478 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9479 /*) top_srcdir="$ac_given_srcdir" ;;
9480 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9481 esac
9482 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9483 rm -f "$ac_dir/POTFILES"
9484 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9485 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9486 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9487 # on $ac_dir but don't depend on user-specified configuration
9488 # parameters.
9489 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9490 # The LINGUAS file contains the set of available languages.
9491 if test -n "$ALL_LINGUAS"; then
9492 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9493 fi
9494 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9495 # Hide the ALL_LINGUAS assigment from automake.
9496 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9497 fi
9498 case "$ac_given_srcdir" in
9499 .) srcdirpre= ;;
9500 *) srcdirpre='$(srcdir)/' ;;
9501 esac
9502 POFILES=
9503 GMOFILES=
9504 UPDATEPOFILES=
9505 DUMMYPOFILES=
9506 for lang in $ALL_LINGUAS; do
9507 POFILES="$POFILES $srcdirpre$lang.po"
9508 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9509 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9510 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9511 done
9512 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9513 # environment variable.
9514 INST_LINGUAS=
9515 if test -n "$ALL_LINGUAS"; then
9516 for presentlang in $ALL_LINGUAS; do
9517 useit=no
9518 if test "%UNSET%" != "$LINGUAS"; then
9519 desiredlanguages="$LINGUAS"
9520 else
9521 desiredlanguages="$ALL_LINGUAS"
9522 fi
9523 for desiredlang in $desiredlanguages; do
9524 # Use the presentlang catalog if desiredlang is
9525 # a. equal to presentlang, or
9526 # b. a variant of presentlang (because in this case,
9527 # presentlang can be used as a fallback for messages
9528 # which are not translated in the desiredlang catalog).
9529 case "$desiredlang" in
9530 "$presentlang"*) useit=yes;;
9531 esac
9532 done
9533 if test $useit = yes; then
9534 INST_LINGUAS="$INST_LINGUAS $presentlang"
9535 fi
9536 done
9537 fi
9538 CATALOGS=
9539 if test -n "$INST_LINGUAS"; then
9540 for lang in $INST_LINGUAS; do
9541 CATALOGS="$CATALOGS $lang.gmo"
9542 done
9543 fi
9544 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9545 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9546 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9547 if test -f "$f"; then
9548 case "$f" in
9549 *.orig | *.bak | *~) ;;
9550 *) cat "$f" >> "$ac_dir/Makefile" ;;
9551 esac
9552 fi
9553 done
9554 fi
9555 ;;
9556 esac
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009557 done ;;
9558 esac
9559done
9560EOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009561
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009562cat >>$CONFIG_STATUS <<\EOF
9563
9564{ (exit 0); exit 0; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009565EOF
9566chmod +x $CONFIG_STATUS
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009567ac_clean_files=$ac_clean_files_save
9568
9569# configure is writing to config.log, and then calls config.status.
9570# config.status does its own redirection, appending to config.log.
9571# Unfortunately, on DOS this fails, as config.log is still kept open
9572# by configure, so config.status won't be able to write to it; its
9573# output is simply discarded. So we exec the FD to /dev/null,
9574# effectively closing config.log, so it can be properly (re)opened and
9575# appended to by config.status. When coming back to configure, we
9576# need to make the FD available again.
9577if test "$no_create" != yes; then
9578 ac_cs_success=:
9579 exec 5>/dev/null
9580 $SHELL $CONFIG_STATUS || ac_cs_success=false
9581 exec 5>>config.log
9582 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9583 # would make configure fail if this is the last instruction.
9584 $ac_cs_success || { (exit 1); exit 1; }
9585fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009586