blob: 1e786e64e082c644dcbf8e34e359a28f6574ba8a [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'ob0cacab2004-11-30 19:00:19 -05003# Generated by GNU Autoconf 2.59.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005# Copyright (C) 2003 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000254ac_default_prefix=/usr/local
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="version.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS E2FSPROGS_YEAR E2FSPROGS_MONTH E2FSPROGS_DAY E2FSPROGS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD CPP EGREP LINUX_INCLUDE HTREE_CMT HTREE_CLR_CMT ELF_CMT BSDLIB_CMT PROFILE_CMT CHECKER_CMT LIB_EXT STATIC_LIB_EXT PROFILED_LIB_EXT SWAPFS_CMT DEBUGFS_CMT IMAGER_CMT RESIZER_CMT E2FSCK_TYPE FSCK_PROG FSCK_MAN E2INITRD_PROG E2INITRD_MAN GETTEXT_PACKAGE PACKAGE VERSION SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB BINARY_TYPE LN LN_S MV CP RM CHMOD AWK SED PERL LDCONFIG AR ac_ct_AR STRIP ac_ct_STRIP BUILD_CC SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG SOCKET_LIB DLOPEN_LIB LINUX_CMT CYGWIN_CMT UNIX_CMT root_prefix root_bindir root_sbindir root_libdir root_sysconfdir LDFLAG_STATIC SS_DIR ET_DIR DO_TEST_SUITE INTL_FLAGS LIBOBJS LTLIBOBJS'
313ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000314
315# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500316ac_init_help=
317ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000318# The variables have the same names as the options, with
319# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500320cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000321exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000322no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000331verbose=
332x_includes=NONE
333x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000352
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000353ac_prev=
354for ac_option
355do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500367 case $ac_option in
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000368
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500372 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000373
374 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500375 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500377 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000388
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500393 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000394
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000395 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000397 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000403
404 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000406 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000413 *) ac_optarg=yes ;;
414 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500415 eval "enable_$ac_feature='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500424 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000436
437 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500438 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000439 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500440 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000441
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500457 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500464 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500473 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500478 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000479
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500499 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000500
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500504 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500518 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500535 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500545 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500556 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000557
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500561 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000567
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500573 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000574
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000575 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500578 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000585
586 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000588 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000592 ac_package=`echo $ac_package| sed 's/-/_/g'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000595 *) ac_optarg=yes ;;
596 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500597 eval "with_$ac_package='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000598
599 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000601 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500624 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000625
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000629 ;;
630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000641 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000656fi
657
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000660do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000666 esac
667done
668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000680
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000732 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000735 fi
736fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000773
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-compression enable EXPERIMENTAL compression support
848 --enable-htree enable EXPERIMENTAL htree directory support
849 --enable-htree-clear clear htree because we don't trust e2fsck
850 --enable-elf-shlibs select ELF shared libraries
851 --enable-bsd-shlibs select BSD shared libraries
852 --enable-profile build profiling libraries
853 --enable-checker build checker libraries
854 --enable-jbd-debug enable journal debugging
855 --enable-blkid-debug enable blkid debugging
856 --enable-testio-debug enable the use of the test I/O manager for debugging
857 --disable-swapfs disable support of legacy byte-swapped filesystems
858 --disable-debugfs disable support of debugfs program
859 --disable-imager disable support of e2image program
860 --disable-resizer disable support of e2resize program
861 --enable-dynamic-e2fsck build e2fsck dynamically
862 --enable-fsck build fsck wrapper program
863 --enable-e2initrd-helper build e2initrd-helper program
864 --enable-old-bitops Use old (non-standard but native) bitmask operations
865 --disable-nls do not use Native Language Support
866 --disable-rpath do not hardcode runtime library paths
867
868Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-diet-libc Use diet libc
872 --with-cc=COMPILER select compiler to use
873 --with-linker=LINKER select linker to use
874 --with-ccopts=CCOPTS select compiler command line options
875 --with-ldopts=LDOPTS select linker command line options
876 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
877 --with-gnu-ld assume the C compiler uses GNU ld default=no
878 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
879 --without-libiconv-prefix don't search for libiconv in includedir and libdir
880 --with-included-gettext use the GNU gettext library included here
881 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
882 --without-libintl-prefix don't search for libintl in includedir and libdir
883
884Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
892
893Use these variables to override the choices made by `configure' or to help
894it to find libraries and programs with nonstandard names/locations.
895
896_ACEOF
897fi
898
899if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
905
906if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910else
911 ac_dir_suffix= ac_top_builddir=
912fi
913
914case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928esac
929
930# Do not use `cd foo && pwd` to compute absolute paths, because
931# the directories may not exist.
932case `pwd` in
933.) ac_abs_builddir="$ac_dir";;
934*)
935 case "$ac_dir" in
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_top_builddir=${ac_top_builddir}.;;
943*)
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_srcdir=$ac_srcdir;;
952*)
953 case $ac_srcdir in
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 esac;;
958esac
959case $ac_abs_builddir in
960.) ac_abs_top_srcdir=$ac_top_srcdir;;
961*)
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966 esac;;
967esac
968
969 cd $ac_dir
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
972 echo
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
975 echo
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
979 echo
980 $ac_configure --help
981 else
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 fi
984 cd "$ac_popdir"
985 done
986fi
987
988test -n "$ac_init_help" && exit 0
989if $ac_init_version; then
990 cat <<\_ACEOF
991
992Copyright (C) 2003 Free Software Foundation, Inc.
993This configure script is free software; the Free Software Foundation
994gives unlimited permission to copy, distribute and modify it.
995_ACEOF
996 exit 0
997fi
998exec 5>config.log
999cat >&5 <<_ACEOF
1000This file contains any messages produced by compilers while
1001running configure, to aid debugging if configure makes a mistake.
1002
1003It was created by $as_me, which was
1004generated by GNU Autoconf 2.59. Invocation command line was
1005
1006 $ $0 $@
1007
1008_ACEOF
1009{
1010cat <<_ASUNAME
1011## --------- ##
1012## Platform. ##
1013## --------- ##
1014
1015hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020
1021/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023
1024/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1031
1032_ASUNAME
1033
1034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035for as_dir in $PATH
1036do
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040done
1041
1042} >&5
1043
1044cat >&5 <<_ACEOF
1045
1046
1047## ----------- ##
1048## Core tests. ##
1049## ----------- ##
1050
1051_ACEOF
1052
1053
1054# Keep a trace of the command line.
1055# Strip out --no-create and --no-recursion so they do not pile up.
1056# Strip out --silent because we don't want to record it for future runs.
1057# Also quote any args containing shell meta-characters.
1058# Make two passes to allow for proper duplicate-argument suppression.
1059ac_configure_args=
1060ac_configure_args0=
1061ac_configure_args1=
1062ac_sep=
1063ac_must_keep_next=false
1064for ac_pass in 1 2
1065do
1066 for ac_arg
1067 do
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 2)
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1091 ;;
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1094 fi
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1098 ;;
1099 esac
1100 done
1101done
1102$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104
1105# When interrupted or exit'd, cleanup temporary files, and complete
1106# config.log. We remove comments because anyway the quotes in there
1107# would cause problems or look ugly.
1108# WARNING: Be sure not to use single quotes in there, as some shells,
1109# such as our DU 5.0 friend, will then `close' the trap.
1110trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1112 {
1113 echo
1114
1115 cat <<\_ASBOX
1116## ---------------- ##
1117## Cache variables. ##
1118## ---------------- ##
1119_ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1122{
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 ;;
1130 *)
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133 ;;
1134 esac;
1135}
1136 echo
1137
1138 cat <<\_ASBOX
1139## ----------------- ##
1140## Output variables. ##
1141## ----------------- ##
1142_ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1145 do
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1150
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153## ------------- ##
1154## Output files. ##
1155## ------------- ##
1156_ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1159 do
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1164 fi
1165
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168## ----------- ##
1169## confdefs.h. ##
1170## ----------- ##
1171_ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1175 fi
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1183 ' 0
1184for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186done
1187ac_signal=0
1188
1189# confdefs.h avoids OS command line length limits that DEFS can exceed.
1190rm -rf conftest* confdefs.h
1191# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192echo >confdefs.h
1193
1194# Predefined preprocessor variables.
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_NAME "$PACKAGE_NAME"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_VERSION "$PACKAGE_VERSION"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_STRING "$PACKAGE_STRING"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218_ACEOF
1219
1220
1221# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001222# Prefer explicitly selected file to automatically selected ones.
1223if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 fi
1229fi
1230for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001235 . "$ac_site_file"
1236 fi
1237done
1238
1239if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1249 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001250else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1254fi
1255
1256# Check that the precious variables saved in the cache have kept the same
1257# value.
1258ac_cache_corrupted=false
1259for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1275 *)
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1297 fi
1298done
1299if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001305fi
1306
1307ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001308ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001312
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332ac_aux_dir=
1333for ac_dir in config $srcdir/config; do
1334 if test -f $ac_dir/install-sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 break
1338 elif test -f $ac_dir/install.sh; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 break
1342 elif test -f $ac_dir/shtool; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/shtool install -c"
1345 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001346 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001347done
1348if test -z "$ac_aux_dir"; then
1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1350echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1351 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001352fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001353ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001356
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001357MCONFIG=./MCONFIG
1358
Theodore Ts'o74becf31997-04-26 14:37:06 +00001359BINARY_TYPE=bin
1360E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1361 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1362DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1363 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001364E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001365MONTH=`echo $DATE | awk -F- '{print $2}'`
1366YEAR=`echo $DATE | awk -F- '{print $3}'`
1367
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001368if expr $YEAR ">" 1900 > /dev/null ; then
1369 E2FSPROGS_YEAR=$YEAR
1370elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001371 E2FSPROGS_YEAR=19$YEAR
1372else
1373 E2FSPROGS_YEAR=20$YEAR
1374fi
1375
1376case $MONTH in
1377Jan) E2FSPROGS_MONTH="January" ;;
1378Feb) E2FSPROGS_MONTH="February" ;;
1379Mar) E2FSPROGS_MONTH="March" ;;
1380Apr) E2FSPROGS_MONTH="April" ;;
1381May) E2FSPROGS_MONTH="May" ;;
1382Jun) E2FSPROGS_MONTH="June" ;;
1383Jul) E2FSPROGS_MONTH="July" ;;
1384Aug) E2FSPROGS_MONTH="August" ;;
1385Sep) E2FSPROGS_MONTH="September" ;;
1386Oct) E2FSPROGS_MONTH="October" ;;
1387Nov) E2FSPROGS_MONTH="November" ;;
1388Dec) E2FSPROGS_MONTH="December" ;;
1389*) echo "Unknown month $MONTH??" ;;
1390esac
1391
1392unset DATE MONTH YEAR
1393echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1394echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1395
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001396
1397
1398
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001399# Make sure we can run config.sub.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001400$ac_config_sub sun4 >/dev/null 2>&1 ||
1401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1402echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1403 { (exit 1); exit 1; }; }
1404
1405echo "$as_me:$LINENO: checking build system type" >&5
1406echo $ECHO_N "checking build system type... $ECHO_C" >&6
1407if test "${ac_cv_build+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410 ac_cv_build_alias=$build_alias
1411test -z "$ac_cv_build_alias" &&
1412 ac_cv_build_alias=`$ac_config_guess`
1413test -z "$ac_cv_build_alias" &&
1414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1415echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1416 { (exit 1); exit 1; }; }
1417ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1419echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1421
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001422fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001423echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1424echo "${ECHO_T}$ac_cv_build" >&6
1425build=$ac_cv_build
1426build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001429
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001430
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001431echo "$as_me:$LINENO: checking host system type" >&5
1432echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435else
1436 ac_cv_host_alias=$host_alias
1437test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001443
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001444fi
1445echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1446echo "${ECHO_T}$ac_cv_host" >&6
1447host=$ac_cv_host
1448host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451
1452
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001453
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001454# Check whether --with-diet-libc or --without-diet-libc was given.
1455if test "${with_diet_libc+set}" = set; then
1456 withval="$with_diet_libc"
1457 CC="diet cc -nostdinc"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001458echo "$as_me:$LINENO: result: CC=$CC" >&5
1459echo "${ECHO_T}CC=$CC" >&6
1460fi;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001461# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001462if test "${with_cc+set}" = set; then
1463 withval="$with_cc"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001464 echo "$as_me:$LINENO: result: CC=$withval" >&5
1465echo "${ECHO_T}CC=$withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001466CC=$withval
1467else
1468 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1470echo "${ECHO_T}CC defaults to $CC" >&6
1471fi; export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00001472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473ac_ext=c
1474ac_cpp='$CPP $CPPFLAGS'
1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478if test -n "$ac_tool_prefix"; then
1479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1480set dummy ${ac_tool_prefix}gcc; ac_word=$2
1481echo "$as_me:$LINENO: checking for $ac_word" >&5
1482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483if test "${ac_cv_prog_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001485else
1486 if test -n "$CC"; then
1487 ac_cv_prog_CC="$CC" # Let the user override the test.
1488else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1499 fi
1500done
1501done
1502
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001503fi
1504fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001505CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001506if test -n "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001507 echo "$as_me:$LINENO: result: $CC" >&5
1508echo "${ECHO_T}$CC" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001509else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001510 echo "$as_me:$LINENO: result: no" >&5
1511echo "${ECHO_T}no" >&6
1512fi
1513
1514fi
1515if test -z "$ac_cv_prog_CC"; then
1516 ac_ct_CC=$CC
1517 # Extract the first word of "gcc", so it can be a program name with args.
1518set dummy gcc; ac_word=$2
1519echo "$as_me:$LINENO: checking for $ac_word" >&5
1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526else
1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528for as_dir in $PATH
1529do
1530 IFS=$as_save_IFS
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_ac_ct_CC="gcc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 break 2
1537 fi
1538done
1539done
1540
1541fi
1542fi
1543ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544if test -n "$ac_ct_CC"; then
1545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546echo "${ECHO_T}$ac_ct_CC" >&6
1547else
1548 echo "$as_me:$LINENO: result: no" >&5
1549echo "${ECHO_T}no" >&6
1550fi
1551
1552 CC=$ac_ct_CC
1553else
1554 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001555fi
1556
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001557if test -z "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001558 if test -n "$ac_tool_prefix"; then
1559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1560set dummy ${ac_tool_prefix}cc; ac_word=$2
1561echo "$as_me:$LINENO: checking for $ac_word" >&5
1562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563if test "${ac_cv_prog_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001565else
1566 if test -n "$CC"; then
1567 ac_cv_prog_CC="$CC" # Let the user override the test.
1568else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570for as_dir in $PATH
1571do
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_CC="${ac_tool_prefix}cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1579 fi
1580done
1581done
1582
1583fi
1584fi
1585CC=$ac_cv_prog_CC
1586if test -n "$CC"; then
1587 echo "$as_me:$LINENO: result: $CC" >&5
1588echo "${ECHO_T}$CC" >&6
1589else
1590 echo "$as_me:$LINENO: result: no" >&5
1591echo "${ECHO_T}no" >&6
1592fi
1593
1594fi
1595if test -z "$ac_cv_prog_CC"; then
1596 ac_ct_CC=$CC
1597 # Extract the first word of "cc", so it can be a program name with args.
1598set dummy cc; ac_word=$2
1599echo "$as_me:$LINENO: checking for $ac_word" >&5
1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604 if test -n "$ac_ct_CC"; then
1605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1606else
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 ac_cv_prog_ac_ct_CC="cc"
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616 break 2
1617 fi
1618done
1619done
1620
1621fi
1622fi
1623ac_ct_CC=$ac_cv_prog_ac_ct_CC
1624if test -n "$ac_ct_CC"; then
1625 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1626echo "${ECHO_T}$ac_ct_CC" >&6
1627else
1628 echo "$as_me:$LINENO: result: no" >&5
1629echo "${ECHO_T}no" >&6
1630fi
1631
1632 CC=$ac_ct_CC
1633else
1634 CC="$ac_cv_prog_CC"
1635fi
1636
1637fi
1638if test -z "$CC"; then
1639 # Extract the first word of "cc", so it can be a program name with args.
1640set dummy cc; ac_word=$2
1641echo "$as_me:$LINENO: checking for $ac_word" >&5
1642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643if test "${ac_cv_prog_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645else
1646 if test -n "$CC"; then
1647 ac_cv_prog_CC="$CC" # Let the user override the test.
1648else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001649 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651for as_dir in $PATH
1652do
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1658 ac_prog_rejected=yes
1659 continue
1660 fi
1661 ac_cv_prog_CC="cc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1664 fi
1665done
1666done
1667
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001668if test $ac_prog_rejected = yes; then
1669 # We found a bogon in the path, so make sure we never use it.
1670 set dummy $ac_cv_prog_CC
1671 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001672 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001673 # We chose a different compiler from the bogus one.
1674 # However, it has the same basename, so the bogon will be chosen
1675 # first if we set CC to just the basename; use the full file name.
1676 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001678 fi
1679fi
1680fi
1681fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001682CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001683if test -n "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001684 echo "$as_me:$LINENO: result: $CC" >&5
1685echo "${ECHO_T}$CC" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001686else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001687 echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001689fi
1690
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001691fi
1692if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 for ac_prog in cl
1695 do
1696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1698echo "$as_me:$LINENO: checking for $ac_word" >&5
1699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700if test "${ac_cv_prog_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001702else
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1705else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1716 fi
1717done
1718done
1719
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001720fi
1721fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001722CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001723if test -n "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001724 echo "$as_me:$LINENO: result: $CC" >&5
1725echo "${ECHO_T}$CC" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001726else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001727 echo "$as_me:$LINENO: result: no" >&5
1728echo "${ECHO_T}no" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001729fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001730
1731 test -n "$CC" && break
1732 done
1733fi
1734if test -z "$CC"; then
1735 ac_ct_CC=$CC
1736 for ac_prog in cl
1737do
1738 # Extract the first word of "$ac_prog", so it can be a program name with args.
1739set dummy $ac_prog; ac_word=$2
1740echo "$as_me:$LINENO: checking for $ac_word" >&5
1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 if test -n "$ac_ct_CC"; then
1746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747else
1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_ac_ct_CC="$ac_prog"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001758 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001759done
1760done
1761
1762fi
1763fi
1764ac_ct_CC=$ac_cv_prog_ac_ct_CC
1765if test -n "$ac_ct_CC"; then
1766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1767echo "${ECHO_T}$ac_ct_CC" >&6
1768else
1769 echo "$as_me:$LINENO: result: no" >&5
1770echo "${ECHO_T}no" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001771fi
1772
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001773 test -n "$ac_ct_CC" && break
1774done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001776 CC=$ac_ct_CC
1777fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001778
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001779fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001780
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001781
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001782test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1783See \`config.log' for more details." >&5
1784echo "$as_me: error: no acceptable C compiler found in \$PATH
1785See \`config.log' for more details." >&2;}
1786 { (exit 1); exit 1; }; }
1787
1788# Provide some information about the compiler.
1789echo "$as_me:$LINENO:" \
1790 "checking for C compiler version" >&5
1791ac_compiler=`set X $ac_compile; echo $2`
1792{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1793 (eval $ac_compiler --version </dev/null >&5) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }
1797{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1798 (eval $ac_compiler -v </dev/null >&5) 2>&5
1799 ac_status=$?
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1802{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1803 (eval $ac_compiler -V </dev/null >&5) 2>&5
1804 ac_status=$?
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }
1807
1808cat >conftest.$ac_ext <<_ACEOF
1809/* confdefs.h. */
1810_ACEOF
1811cat confdefs.h >>conftest.$ac_ext
1812cat >>conftest.$ac_ext <<_ACEOF
1813/* end confdefs.h. */
1814
1815int
1816main ()
1817{
1818
1819 ;
1820 return 0;
1821}
1822_ACEOF
1823ac_clean_files_save=$ac_clean_files
1824ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825# Try to create an executable without -o first, disregard a.out.
1826# It will help us diagnose broken compilers, and finding out an intuition
1827# of exeext.
1828echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1829echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1830ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832 (eval $ac_link_default) 2>&5
1833 ac_status=$?
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; then
1836 # Find the output, starting from the most likely. This scheme is
1837# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1838# resort.
1839
1840# Be careful to initialize this variable, since it used to be cached.
1841# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842ac_cv_exeext=
1843# b.out is created by i960 compilers.
1844for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845do
1846 test -f "$ac_file" || continue
1847 case $ac_file in
1848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1849 ;;
1850 conftest.$ac_ext )
1851 # This is the source file.
1852 ;;
1853 [ab].out )
1854 # We found the default executable, but exeext='' is most
1855 # certainly right.
1856 break;;
1857 *.* )
1858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859 # FIXME: I believe we export ac_cv_exeext for Libtool,
1860 # but it would be cool to find out if it's true. Does anybody
1861 # maintain Libtool? --akim.
1862 export ac_cv_exeext
1863 break;;
1864 * )
1865 break;;
1866 esac
1867done
1868else
1869 echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873See \`config.log' for more details." >&5
1874echo "$as_me: error: C compiler cannot create executables
1875See \`config.log' for more details." >&2;}
1876 { (exit 77); exit 77; }; }
1877fi
1878
1879ac_exeext=$ac_cv_exeext
1880echo "$as_me:$LINENO: result: $ac_file" >&5
1881echo "${ECHO_T}$ac_file" >&6
1882
1883# Check the compiler produces executables we can run. If not, either
1884# the compiler is broken, or we cross compile.
1885echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888# If not cross compiling, check that we can run a simple program.
1889if test "$cross_compiling" != yes; then
1890 if { ac_try='./$ac_file'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892 (eval $ac_try) 2>&5
1893 ac_status=$?
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1896 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001897 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001898 if test "$cross_compiling" = maybe; then
1899 cross_compiling=yes
1900 else
1901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902If you meant to cross compile, use \`--host'.
1903See \`config.log' for more details." >&5
1904echo "$as_me: error: cannot run C compiled programs.
1905If you meant to cross compile, use \`--host'.
1906See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1908 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001909 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001910fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001911echo "$as_me:$LINENO: result: yes" >&5
1912echo "${ECHO_T}yes" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001913
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001914rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915ac_clean_files=$ac_clean_files_save
1916# Check the compiler produces executables we can run. If not, either
1917# the compiler is broken, or we cross compile.
1918echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921echo "${ECHO_T}$cross_compiling" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001922
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001923echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926 (eval $ac_link) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; then
1930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1932# work properly (i.e., refer to `conftest.exe'), while it won't with
1933# `rm'.
1934for ac_file in conftest.exe conftest conftest.*; do
1935 test -f "$ac_file" || continue
1936 case $ac_file in
1937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939 export ac_cv_exeext
1940 break;;
1941 * ) break;;
1942 esac
1943done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001944else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946See \`config.log' for more details." >&5
1947echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }
1950fi
1951
1952rm -f conftest$ac_cv_exeext
1953echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954echo "${ECHO_T}$ac_cv_exeext" >&6
1955
1956rm -f conftest.$ac_ext
1957EXEEXT=$ac_cv_exeext
1958ac_exeext=$EXEEXT
1959echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961if test "${ac_cv_objext+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964 cat >conftest.$ac_ext <<_ACEOF
1965/* confdefs.h. */
1966_ACEOF
1967cat confdefs.h >>conftest.$ac_ext
1968cat >>conftest.$ac_ext <<_ACEOF
1969/* end confdefs.h. */
1970
1971int
1972main ()
1973{
1974
1975 ;
1976 return 0;
1977}
1978_ACEOF
1979rm -f conftest.o conftest.obj
1980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1981 (eval $ac_compile) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1986 case $ac_file in
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1989 break;;
1990 esac
1991done
1992else
1993 echo "$as_me: failed program was:" >&5
1994sed 's/^/| /' conftest.$ac_ext >&5
1995
1996{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1997See \`config.log' for more details." >&5
1998echo "$as_me: error: cannot compute suffix of object files: cannot compile
1999See \`config.log' for more details." >&2;}
2000 { (exit 1); exit 1; }; }
2001fi
2002
2003rm -f conftest.$ac_cv_objext conftest.$ac_ext
2004fi
2005echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2006echo "${ECHO_T}$ac_cv_objext" >&6
2007OBJEXT=$ac_cv_objext
2008ac_objext=$OBJEXT
2009echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2010echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2011if test "${ac_cv_c_compiler_gnu+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
2014 cat >conftest.$ac_ext <<_ACEOF
2015/* confdefs.h. */
2016_ACEOF
2017cat confdefs.h >>conftest.$ac_ext
2018cat >>conftest.$ac_ext <<_ACEOF
2019/* end confdefs.h. */
2020
2021int
2022main ()
2023{
2024#ifndef __GNUC__
2025 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002026#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002028 ;
2029 return 0;
2030}
2031_ACEOF
2032rm -f conftest.$ac_objext
2033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034 (eval $ac_compile) 2>conftest.er1
2035 ac_status=$?
2036 grep -v '^ *+' conftest.er1 >conftest.err
2037 rm -f conftest.er1
2038 cat conftest.err >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; } &&
2047 { ac_try='test -s conftest.$ac_objext'
2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049 (eval $ac_try) 2>&5
2050 ac_status=$?
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2053 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002054else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002055 echo "$as_me: failed program was:" >&5
2056sed 's/^/| /' conftest.$ac_ext >&5
2057
2058ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002059fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2061ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002062
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002063fi
2064echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2066GCC=`test $ac_compiler_gnu = yes && echo yes`
2067ac_test_CFLAGS=${CFLAGS+set}
2068ac_save_CFLAGS=$CFLAGS
2069CFLAGS="-g"
2070echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2072if test "${ac_cv_prog_cc_g+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002074else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002075 cat >conftest.$ac_ext <<_ACEOF
2076/* confdefs.h. */
2077_ACEOF
2078cat confdefs.h >>conftest.$ac_ext
2079cat >>conftest.$ac_ext <<_ACEOF
2080/* end confdefs.h. */
2081
2082int
2083main ()
2084{
2085
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090rm -f conftest.$ac_objext
2091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>conftest.er1
2093 ac_status=$?
2094 grep -v '^ *+' conftest.er1 >conftest.err
2095 rm -f conftest.er1
2096 cat conftest.err >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 (eval $ac_try) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002111 ac_cv_prog_cc_g=yes
2112else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002113 echo "$as_me: failed program was:" >&5
2114sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002115
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002116ac_cv_prog_cc_g=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002117fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119fi
2120echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2121echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002122if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002123 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002124elif test $ac_cv_prog_cc_g = yes; then
2125 if test "$GCC" = yes; then
2126 CFLAGS="-g -O2"
2127 else
2128 CFLAGS="-g"
2129 fi
2130else
2131 if test "$GCC" = yes; then
2132 CFLAGS="-O2"
2133 else
2134 CFLAGS=
2135 fi
2136fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002137echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2138echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2139if test "${ac_cv_prog_cc_stdc+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141else
2142 ac_cv_prog_cc_stdc=no
2143ac_save_CC=$CC
2144cat >conftest.$ac_ext <<_ACEOF
2145/* confdefs.h. */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h. */
2150#include <stdarg.h>
2151#include <stdio.h>
2152#include <sys/types.h>
2153#include <sys/stat.h>
2154/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2155struct buf { int x; };
2156FILE * (*rcsopen) (struct buf *, struct stat *, int);
2157static char *e (p, i)
2158 char **p;
2159 int i;
2160{
2161 return p[i];
2162}
2163static char *f (char * (*g) (char **, int), char **p, ...)
2164{
2165 char *s;
2166 va_list v;
2167 va_start (v,p);
2168 s = g (p, va_arg (v,int));
2169 va_end (v);
2170 return s;
2171}
2172
2173/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2174 function prototypes and stuff, but not '\xHH' hex character constants.
2175 These don't provoke an error unfortunately, instead are silently treated
2176 as 'x'. The following induces an error, until -std1 is added to get
2177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2178 array size at least. It's necessary to write '\x00'==0 to get something
2179 that's true only with -std1. */
2180int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2181
2182int test (int i, double x);
2183struct s1 {int (*f) (int a);};
2184struct s2 {int (*f) (double a);};
2185int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2186int argc;
2187char **argv;
2188int
2189main ()
2190{
2191return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2192 ;
2193 return 0;
2194}
2195_ACEOF
2196# Don't try gcc -ansi; that turns off useful extensions and
2197# breaks some systems' header files.
2198# AIX -qlanglvl=ansi
2199# Ultrix and OSF/1 -std1
2200# HP-UX 10.20 and later -Ae
2201# HP-UX older versions -Aa -D_HPUX_SOURCE
2202# SVR4 -Xc -D__EXTENSIONS__
2203for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2204do
2205 CC="$ac_save_CC $ac_arg"
2206 rm -f conftest.$ac_objext
2207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 ac_cv_prog_cc_stdc=$ac_arg
2228break
2229else
2230 echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233fi
2234rm -f conftest.err conftest.$ac_objext
2235done
2236rm -f conftest.$ac_ext conftest.$ac_objext
2237CC=$ac_save_CC
2238
2239fi
2240
2241case "x$ac_cv_prog_cc_stdc" in
2242 x|xno)
2243 echo "$as_me:$LINENO: result: none needed" >&5
2244echo "${ECHO_T}none needed" >&6 ;;
2245 *)
2246 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2247echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2248 CC="$CC $ac_cv_prog_cc_stdc" ;;
2249esac
2250
2251# Some people use a C++ compiler to compile C. Since we use `exit',
2252# in C++ we need to declare it. In case someone uses the same compiler
2253# for both compiling C and C++ we need to have the C++ compiler decide
2254# the declaration of exit, since it's the most demanding environment.
2255cat >conftest.$ac_ext <<_ACEOF
2256#ifndef __cplusplus
2257 choke me
2258#endif
2259_ACEOF
2260rm -f conftest.$ac_objext
2261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2263 ac_status=$?
2264 grep -v '^ *+' conftest.er1 >conftest.err
2265 rm -f conftest.er1
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 for ac_declaration in \
2282 '' \
2283 'extern "C" void std::exit (int) throw (); using std::exit;' \
2284 'extern "C" void std::exit (int); using std::exit;' \
2285 'extern "C" void exit (int) throw ();' \
2286 'extern "C" void exit (int);' \
2287 'void exit (int);'
2288do
2289 cat >conftest.$ac_ext <<_ACEOF
2290/* confdefs.h. */
2291_ACEOF
2292cat confdefs.h >>conftest.$ac_ext
2293cat >>conftest.$ac_ext <<_ACEOF
2294/* end confdefs.h. */
2295$ac_declaration
2296#include <stdlib.h>
2297int
2298main ()
2299{
2300exit (42);
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305rm -f conftest.$ac_objext
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 :
2327else
2328 echo "$as_me: failed program was:" >&5
2329sed 's/^/| /' conftest.$ac_ext >&5
2330
2331continue
2332fi
2333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
2340$ac_declaration
2341int
2342main ()
2343{
2344exit (42);
2345 ;
2346 return 0;
2347}
2348_ACEOF
2349rm -f conftest.$ac_objext
2350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
2358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 break
2371else
2372 echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375fi
2376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377done
2378rm -f conftest*
2379if test -n "$ac_declaration"; then
2380 echo '#ifdef __cplusplus' >>confdefs.h
2381 echo $ac_declaration >>confdefs.h
2382 echo '#endif' >>confdefs.h
2383fi
2384
2385else
2386 echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389fi
2390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391ac_ext=c
2392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002397
Theodore Ts'o74becf31997-04-26 14:37:06 +00002398# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002399if test "${with_linker+set}" = set; then
2400 withval="$with_linker"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002401 echo "$as_me:$LINENO: result: LD=$withval" >&5
2402echo "${ECHO_T}LD=$withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00002403LD=$withval
2404else
2405 if test -z "$LD" ; then LD=$CC; fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002406echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2407echo "${ECHO_T}LD defaults to $LD" >&6
2408fi; export LD
2409
Theodore Ts'o74becf31997-04-26 14:37:06 +00002410
2411# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002412if test "${with_ccopts+set}" = set; then
2413 withval="$with_ccopts"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002414 echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2415echo "${ECHO_T}CCOPTS is $withval" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002416CFLAGS=$withval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002417fi;
2418ac_ext=c
2419ac_cpp='$CPP $CPPFLAGS'
2420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2424echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002425# On Suns, sometimes $CPP names a directory.
2426if test -n "$CPP" && test -d "$CPP"; then
2427 CPP=
2428fi
2429if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002430 if test "${ac_cv_prog_CPP+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002432else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433 # Double quotes because CPP needs to be expanded
2434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2435 do
2436 ac_preproc_ok=false
2437for ac_c_preproc_warn_flag in '' yes
2438do
2439 # Use a header file that comes with gcc, so configuring glibc
2440 # with a fresh cross-compiler works.
2441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2442 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002443 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002444 # not just through cpp. "Syntax error" is here to catch this case.
2445 cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h. */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
2450/* end confdefs.h. */
2451#ifdef __STDC__
2452# include <limits.h>
2453#else
2454# include <assert.h>
2455#endif
2456 Syntax error
2457_ACEOF
2458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460 ac_status=$?
2461 grep -v '^ *+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } >/dev/null; then
2466 if test -s conftest.err; then
2467 ac_cpp_err=$ac_c_preproc_warn_flag
2468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2469 else
2470 ac_cpp_err=
2471 fi
2472else
2473 ac_cpp_err=yes
2474fi
2475if test -z "$ac_cpp_err"; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002476 :
2477else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002478 echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002480
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002481 # Broken: fails on valid input.
2482continue
2483fi
2484rm -f conftest.err conftest.$ac_ext
2485
2486 # OK, works on sane cases. Now check whether non-existent headers
2487 # can be detected and how.
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494#include <ac_nonexistent.h>
2495_ACEOF
2496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2507 else
2508 ac_cpp_err=
2509 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002510else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511 ac_cpp_err=yes
2512fi
2513if test -z "$ac_cpp_err"; then
2514 # Broken: success on invalid input.
2515continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002516else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002517 echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 # Passes both tests.
2521ac_preproc_ok=:
2522break
2523fi
2524rm -f conftest.err conftest.$ac_ext
2525
2526done
2527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2528rm -f conftest.err conftest.$ac_ext
2529if $ac_preproc_ok; then
2530 break
2531fi
2532
2533 done
2534 ac_cv_prog_CPP=$CPP
2535
2536fi
2537 CPP=$ac_cv_prog_CPP
2538else
2539 ac_cv_prog_CPP=$CPP
2540fi
2541echo "$as_me:$LINENO: result: $CPP" >&5
2542echo "${ECHO_T}$CPP" >&6
2543ac_preproc_ok=false
2544for ac_c_preproc_warn_flag in '' yes
2545do
2546 # Use a header file that comes with gcc, so configuring glibc
2547 # with a fresh cross-compiler works.
2548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2549 # <limits.h> exists even on freestanding compilers.
2550 # On the NeXT, cc -E runs the code through the compiler's parser,
2551 # not just through cpp. "Syntax error" is here to catch this case.
2552 cat >conftest.$ac_ext <<_ACEOF
2553/* confdefs.h. */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
2557/* end confdefs.h. */
2558#ifdef __STDC__
2559# include <limits.h>
2560#else
2561# include <assert.h>
2562#endif
2563 Syntax error
2564_ACEOF
2565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } >/dev/null; then
2573 if test -s conftest.err; then
2574 ac_cpp_err=$ac_c_preproc_warn_flag
2575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2576 else
2577 ac_cpp_err=
2578 fi
2579else
2580 ac_cpp_err=yes
2581fi
2582if test -z "$ac_cpp_err"; then
2583 :
2584else
2585 echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 # Broken: fails on valid input.
2589continue
2590fi
2591rm -f conftest.err conftest.$ac_ext
2592
2593 # OK, works on sane cases. Now check whether non-existent headers
2594 # can be detected and how.
2595 cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
2601#include <ac_nonexistent.h>
2602_ACEOF
2603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } >/dev/null; then
2611 if test -s conftest.err; then
2612 ac_cpp_err=$ac_c_preproc_warn_flag
2613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2614 else
2615 ac_cpp_err=
2616 fi
2617else
2618 ac_cpp_err=yes
2619fi
2620if test -z "$ac_cpp_err"; then
2621 # Broken: success on invalid input.
2622continue
2623else
2624 echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 # Passes both tests.
2628ac_preproc_ok=:
2629break
2630fi
2631rm -f conftest.err conftest.$ac_ext
2632
2633done
2634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2635rm -f conftest.err conftest.$ac_ext
2636if $ac_preproc_ok; then
2637 :
2638else
2639 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2640See \`config.log' for more details." >&5
2641echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2642See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2644fi
2645
2646ac_ext=c
2647ac_cpp='$CPP $CPPFLAGS'
2648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651
2652
2653echo "$as_me:$LINENO: checking for egrep" >&5
2654echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2655if test "${ac_cv_prog_egrep+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2659 then ac_cv_prog_egrep='grep -E'
2660 else ac_cv_prog_egrep='egrep'
2661 fi
2662fi
2663echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2664echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2665 EGREP=$ac_cv_prog_egrep
2666
2667
2668echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2669echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2670if test "${ac_cv_header_stdc+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673 cat >conftest.$ac_ext <<_ACEOF
2674/* confdefs.h. */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h. */
2679#include <stdlib.h>
2680#include <stdarg.h>
2681#include <string.h>
2682#include <float.h>
2683
2684int
2685main ()
2686{
2687
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2695 ac_status=$?
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_header_stdc=yes
2714else
2715 echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718ac_cv_header_stdc=no
2719fi
2720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721
2722if test $ac_cv_header_stdc = yes; then
2723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2724 cat >conftest.$ac_ext <<_ACEOF
2725/* confdefs.h. */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h. */
2730#include <string.h>
2731
2732_ACEOF
2733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2734 $EGREP "memchr" >/dev/null 2>&1; then
2735 :
2736else
2737 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002738fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002739rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002740
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002741fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002742
2743if test $ac_cv_header_stdc = yes; then
2744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2745 cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h. */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h. */
2751#include <stdlib.h>
2752
2753_ACEOF
2754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755 $EGREP "free" >/dev/null 2>&1; then
2756 :
2757else
2758 ac_cv_header_stdc=no
2759fi
2760rm -f conftest*
2761
2762fi
2763
2764if test $ac_cv_header_stdc = yes; then
2765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2766 if test "$cross_compiling" = yes; then
2767 :
2768else
2769 cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h. */
2775#include <ctype.h>
2776#if ((' ' & 0x0FF) == 0x020)
2777# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2778# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2779#else
2780# define ISLOWER(c) \
2781 (('a' <= (c) && (c) <= 'i') \
2782 || ('j' <= (c) && (c) <= 'r') \
2783 || ('s' <= (c) && (c) <= 'z'))
2784# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2785#endif
2786
2787#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2788int
2789main ()
2790{
2791 int i;
2792 for (i = 0; i < 256; i++)
2793 if (XOR (islower (i), ISLOWER (i))
2794 || toupper (i) != TOUPPER (i))
2795 exit(2);
2796 exit (0);
2797}
2798_ACEOF
2799rm -f conftest$ac_exeext
2800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2801 (eval $ac_link) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 (eval $ac_try) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 :
2811else
2812 echo "$as_me: program exited with status $ac_status" >&5
2813echo "$as_me: failed program was:" >&5
2814sed 's/^/| /' conftest.$ac_ext >&5
2815
2816( exit $ac_status )
2817ac_cv_header_stdc=no
2818fi
2819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2820fi
2821fi
2822fi
2823echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2824echo "${ECHO_T}$ac_cv_header_stdc" >&6
2825if test $ac_cv_header_stdc = yes; then
2826
2827cat >>confdefs.h <<\_ACEOF
2828#define STDC_HEADERS 1
2829_ACEOF
2830
2831fi
2832
2833# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2844 inttypes.h stdint.h unistd.h
2845do
2846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2847echo "$as_me:$LINENO: checking for $ac_header" >&5
2848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2849if eval "test \"\${$as_ac_Header+set}\" = set"; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851else
2852 cat >conftest.$ac_ext <<_ACEOF
2853/* confdefs.h. */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h. */
2858$ac_includes_default
2859
2860#include <$ac_header>
2861_ACEOF
2862rm -f conftest.$ac_objext
2863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864 (eval $ac_compile) 2>conftest.er1
2865 ac_status=$?
2866 grep -v '^ *+' conftest.er1 >conftest.err
2867 rm -f conftest.er1
2868 cat conftest.err >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } &&
2871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 eval "$as_ac_Header=yes"
2884else
2885 echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888eval "$as_ac_Header=no"
2889fi
2890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891fi
2892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2894if test `eval echo '${'$as_ac_Header'}'` = yes; then
2895 cat >>confdefs.h <<_ACEOF
2896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2897_ACEOF
2898
2899fi
2900
2901done
2902
2903
2904if test "${ac_cv_header_linux_fs_h+set}" = set; then
2905 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2906echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2907if test "${ac_cv_header_linux_fs_h+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909fi
2910echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2911echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2912else
2913 # Is the header compilable?
2914echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2915echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2916cat >conftest.$ac_ext <<_ACEOF
2917/* confdefs.h. */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h. */
2922$ac_includes_default
2923#include <linux/fs.h>
2924_ACEOF
2925rm -f conftest.$ac_objext
2926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 ac_header_compiler=yes
2947else
2948 echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951ac_header_compiler=no
2952fi
2953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2955echo "${ECHO_T}$ac_header_compiler" >&6
2956
2957# Is the header present?
2958echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2959echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2960cat >conftest.$ac_ext <<_ACEOF
2961/* confdefs.h. */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h. */
2966#include <linux/fs.h>
2967_ACEOF
2968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970 ac_status=$?
2971 grep -v '^ *+' conftest.er1 >conftest.err
2972 rm -f conftest.er1
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } >/dev/null; then
2976 if test -s conftest.err; then
2977 ac_cpp_err=$ac_c_preproc_warn_flag
2978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2979 else
2980 ac_cpp_err=
2981 fi
2982else
2983 ac_cpp_err=yes
2984fi
2985if test -z "$ac_cpp_err"; then
2986 ac_header_preproc=yes
2987else
2988 echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 ac_header_preproc=no
2992fi
2993rm -f conftest.err conftest.$ac_ext
2994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2995echo "${ECHO_T}$ac_header_preproc" >&6
2996
2997# So? What about this header?
2998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2999 yes:no: )
3000 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3001echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3002 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3003echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3004 ac_header_preproc=yes
3005 ;;
3006 no:yes:* )
3007 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3008echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3009 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3010echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3011 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3012echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3013 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3014echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3015 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3016echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3017 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3018echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3019 (
3020 cat <<\_ASBOX
3021## ------------------------------------------ ##
3022## Report this to the AC_PACKAGE_NAME lists. ##
3023## ------------------------------------------ ##
3024_ASBOX
3025 ) |
3026 sed "s/^/$as_me: WARNING: /" >&2
3027 ;;
3028esac
3029echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3030echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3031if test "${ac_cv_header_linux_fs_h+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034 ac_cv_header_linux_fs_h=$ac_header_preproc
3035fi
3036echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3037echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3038
3039fi
3040if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003041 linux_headers=yes
3042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003043 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003044fi
3045
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003046
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003047if test "$linux_headers" != yes; then
3048 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003049fi
3050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003051echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3052echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003053if test "$GCC" = yes
3054then
3055 case "$host_cpu" in
3056 alpha) addcflags="-mieee" ;;
3057 esac
3058fi
3059if test "x$addcflags" != x
3060then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003061 echo "$as_me:$LINENO: result: $addcflags" >&5
3062echo "${ECHO_T}$addcflags" >&6
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003063 CFLAGS="$addcflags $CFLAGS"
3064else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003065 echo "$as_me:$LINENO: result: (none)" >&5
3066echo "${ECHO_T}(none)" >&6
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003067fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003068LIB_EXT=.a
3069STATIC_LIB_EXT=.a
3070PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071
Theodore Ts'o74becf31997-04-26 14:37:06 +00003072# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003073if test "${with_ldopts+set}" = set; then
3074 withval="$with_ldopts"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003075 echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3076echo "${ECHO_T}LDFLAGS is $withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00003077LDFLAGS=$withval
3078else
3079 LDFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003080fi;
Theodore Ts'o74becf31997-04-26 14:37:06 +00003081
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003082# Check whether --with-root-prefix or --without-root-prefix was given.
3083if test "${with_root_prefix+set}" = set; then
3084 withval="$with_root_prefix"
3085 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003086else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003087 root_prefix=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003088fi; # Check whether --enable-compression or --disable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003089if test "${enable_compression+set}" = set; then
3090 enableval="$enable_compression"
3091 if test "$enableval" = "no"
3092then
3093 echo "Disabling compression support"
3094else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003095 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003096#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003097_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003098
3099 echo "Enabling compression support"
3100 echo "WARNING: Compression support is experimental"
3101fi
3102
3103else
3104 echo "Disabling compression support by default"
3105
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003107# Check whether --enable-htree or --disable-htree was given.
3108if test "${enable_htree+set}" = set; then
3109 enableval="$enable_htree"
3110 if test "$enableval" = "no"
3111then
3112 HTREE_CMT=#
3113 echo "Disabling htree directory support"
3114else
3115 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003117#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003119
3120 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003121fi
3122
3123else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003124 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003125cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003126#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003127_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003128
3129echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003130
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003131fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003132
3133# Check whether --enable-htree-clear or --disable-htree-clear was given.
3134if test "${enable_htree_clear+set}" = set; then
3135 enableval="$enable_htree_clear"
3136 if test "$enableval" = "no"
3137then
3138 HTREE_CLR_CMT=#
3139 echo "Disabling htree clearing"
3140else
3141 HTREE_CLR_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003142 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003143#define ENABLE_HTREE_CLEAR 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003145
3146 echo "Enabling htree clearing"
3147fi
3148
3149else
3150 HTREE_CLR_CMT=#
3151echo "Disabling htree clearing by default"
3152
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003153fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003154
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003155# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003156if test "${enable_elf_shlibs+set}" = set; then
3157 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003158 if test "$enableval" = "no"
3159then
3160 ELF_CMT=#
3161 MAKEFILE_ELF=/dev/null
3162 echo "Disabling ELF shared libraries"
3163else
3164 ELF_CMT=
3165 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003166 case "$host_os" in
3167 solaris2.*)
3168 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3169 ;;
3170 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003171 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003172 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003173 echo "Enabling ELF shared libraries"
3174fi
3175
3176else
3177 MAKEFILE_ELF=/dev/null
3178ELF_CMT=#
3179echo "Disabling ELF shared libraries by default"
3180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003181fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003182
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003183
3184# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003185if test "${enable_bsd_shlibs+set}" = set; then
3186 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003187 if test "$enableval" = "no"
3188then
3189 BSDLIB_CMT=#
3190 MAKEFILE_BSDLIB=/dev/null
3191 echo "Disabling BSD shared libraries"
3192else
3193 BSDLIB_CMT=
3194 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003195 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003196 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003197 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003198 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3199 LIB_EXT=.dylib
3200 ;;
3201 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003202 echo "Enabling BSD shared libraries"
3203fi
3204
3205else
3206 MAKEFILE_BSDLIB=/dev/null
3207BSDLIB_CMT=#
3208echo "Disabling BSD shared libraries by default"
3209
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003210fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003211
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003212
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003213# Check whether --enable-profile or --disable-profile was given.
3214if test "${enable_profile+set}" = set; then
3215 enableval="$enable_profile"
3216 if test "$enableval" = "no"
3217then
3218 PROFILE_CMT=#
3219 MAKEFILE_PROFILE=/dev/null
3220 echo "Disabling profiling libraries"
3221else
3222 PROFILE_CMT=
3223 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3224 PROFILED_LIB_EXT=_p.a
3225 echo "Building profiling libraries"
3226fi
3227
3228else
3229 PROFILE_CMT=#
3230MAKEFILE_PROFILE=/dev/null
3231echo "Disabling profiling libraries by default"
3232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003233fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003234
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003235
3236# Check whether --enable-checker or --disable-checker was given.
3237if test "${enable_checker+set}" = set; then
3238 enableval="$enable_checker"
3239 if test "$enableval" = "no"
3240then
3241 CHECKER_CMT=#
3242 MAKEFILE_CHECKER=/dev/null
3243 echo "Disabling checker libraries"
3244else
3245 CHECKER_CMT=
3246 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3247 echo "Building checker libraries"
3248fi
3249
3250else
3251 CHECKER_CMT=#
3252MAKEFILE_CHECKER=/dev/null
3253echo "Disabling checker libraries by default"
3254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003255fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003256
3257
3258
3259
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003260
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003261# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3262if test "${enable_jbd_debug+set}" = set; then
3263 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003264 if test "$enableval" = "no"
3265then
3266 echo "Disabling journal debugging"
3267else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003268 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003269#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003270_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003271
3272 echo "Enabling journal debugging"
3273fi
3274
3275else
3276 echo "Disabling journal debugging by default"
3277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003278fi;
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003279# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3280if test "${enable_blkid_debug+set}" = set; then
3281 enableval="$enable_blkid_debug"
3282 if test "$enableval" = "no"
3283then
3284 echo "Disabling blkid debugging"
3285else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003286 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003287#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003288_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003289
3290 echo "Enabling blkid debugging"
3291fi
3292
3293else
3294 echo "Disabling blkid debugging by default"
3295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003296fi;
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003297# Check whether --enable-testio-debug or --disable-testio-debug was given.
3298if test "${enable_testio_debug+set}" = set; then
3299 enableval="$enable_testio_debug"
3300 if test "$enableval" = "no"
3301then
3302 echo "Disabling testio debugging"
3303else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003304 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003305#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003306_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003307
3308 echo "Enabling testio debugging"
3309fi
3310
3311else
3312 echo "Disabling testio debugging by default"
3313
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003314fi;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003315# Check whether --enable-swapfs or --disable-swapfs was given.
3316if test "${enable_swapfs+set}" = set; then
3317 enableval="$enable_swapfs"
3318 if test "$enableval" = "no"
3319then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003320 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003321 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003322else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003323 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003324 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003325#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003326_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003327
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003328 echo "Enabling swapfs support"
3329fi
3330
3331else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003332 SWAPFS_CMT=
3333echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003334cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003335#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003336_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003337
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003338
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003339fi;
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003340
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003341# Check whether --enable-debugfs or --disable-debugfs was given.
3342if test "${enable_debugfs+set}" = set; then
3343 enableval="$enable_debugfs"
3344 if test "$enableval" = "no"
3345then
3346 echo "Disabling debugfs support"
3347 DEBUGFS_CMT="#"
3348else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003349 DEBUGFS_CMT=
3350 echo "Enabling debugfs support"
3351fi
3352
3353else
3354 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003355DEBUGFS_CMT=
3356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003357fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003358
3359# Check whether --enable-imager or --disable-imager was given.
3360if test "${enable_imager+set}" = set; then
3361 enableval="$enable_imager"
3362 if test "$enableval" = "no"
3363then
3364 echo "Disabling e2image support"
3365 IMAGER_CMT="#"
3366else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003367 IMAGER_CMT=
3368 echo "Enabling e2image support"
3369fi
3370
3371else
3372 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003373IMAGER_CMT=
3374
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003375fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003376
3377# Check whether --enable-resizer or --disable-resizer was given.
3378if test "${enable_resizer+set}" = set; then
3379 enableval="$enable_resizer"
3380 if test "$enableval" = "no"
3381then
3382 echo "Disabling e2resize support"
3383 RESIZER_CMT="#"
3384else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003385 RESIZER_CMT=
3386 echo "Enabling e2resize support"
3387fi
3388
3389else
3390 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003391RESIZER_CMT=
3392
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003393fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003394
3395# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3396if test "${enable_dynamic_e2fsck+set}" = set; then
3397 enableval="$enable_dynamic_e2fsck"
3398 if test "$enableval" = "no"
3399then
3400 E2FSCK_TYPE=static
3401 echo "Building e2fsck statically"
3402else
3403 E2FSCK_TYPE=shared
3404 echo "Building e2fsck dynamically"
3405fi
3406
3407else
3408 E2FSCK_TYPE=static
3409echo "Building e2fsck statically by default"
3410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003411fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003412
3413# Check whether --enable-fsck or --disable-fsck was given.
3414if test "${enable_fsck+set}" = set; then
3415 enableval="$enable_fsck"
3416 if test "$enableval" = "no"
3417then
3418 FSCK_PROG='' FSCK_MAN=''
3419 echo "Not building fsck wrapper"
3420else
3421 FSCK_PROG=fsck FSCK_MAN=fsck.8
3422 echo "Building fsck wrapper"
3423fi
3424
3425else
3426 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04003427 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003428 FSCK_PROG='' FSCK_MAN=''
3429 echo "Not building fsck wrapper by default"
3430 ;;
3431 *)
3432 FSCK_PROG=fsck FSCK_MAN=fsck.8
3433 echo "Building fsck wrapper by default"
3434esac
3435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003436fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003437
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003438
Theodore Ts'o5d407732004-09-18 14:53:14 -04003439# Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3440if test "${enable_e2initrd_helper+set}" = set; then
3441 enableval="$enable_e2initrd_helper"
3442 if test "$enableval" = "no"
3443then
3444 E2INITRD_PROG='' E2INITRD_MAN=''
3445 echo "Not building e2initrd helper"
3446else
3447 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3448 echo "Building e2initrd helper"
3449fi
3450
3451else
3452 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3453echo "Building e2initrd helper by default"
3454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003455fi;
Theodore Ts'o5d407732004-09-18 14:53:14 -04003456
3457
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003458MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3459
3460# Check whether --enable-old-bitops or --disable-old-bitops was given.
3461if test "${enable_old_bitops+set}" = set; then
3462 enableval="$enable_old_bitops"
3463 if test "$enableval" = "no"
3464then
3465 echo "Using new (standard) bitmask operations"
3466else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003467 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003468#define EXT2_OLD_BITOPS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003469_ACEOF
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003470
3471 echo "Using old (native) bitmask operations"
3472
3473fi
3474
3475else
3476 echo "Using standard bitmask operations by default"
3477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003478fi;
3479GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003480PACKAGE=e2fsprogs
3481VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003482VERSION=0.14.1
3483cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003484#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003485_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003486
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003487cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003488#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003489_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003490
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003491
3492
3493
3494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003495echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3496echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3497set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3498if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003500else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003501 cat >conftest.make <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003502all:
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503 @echo 'ac_maketemp="$(MAKE)"'
3504_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003505# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003506eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003507if test -n "$ac_maketemp"; then
3508 eval ac_cv_prog_make_${ac_make}_set=yes
3509else
3510 eval ac_cv_prog_make_${ac_make}_set=no
3511fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003512rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003513fi
3514if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003515 echo "$as_me:$LINENO: result: yes" >&5
3516echo "${ECHO_T}yes" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003517 SET_MAKE=
3518else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003519 echo "$as_me:$LINENO: result: no" >&5
3520echo "${ECHO_T}no" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003521 SET_MAKE="MAKE=${MAKE-make}"
3522fi
3523
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003524# Find a good install program. We prefer a C program (faster),
3525# so one script is as good as another. But avoid the broken or
3526# incompatible versions:
3527# SysV /etc/install, /usr/sbin/install
3528# SunOS /usr/etc/install
3529# IRIX /sbin/install
3530# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003531# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003532# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3533# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3534# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003535# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003536# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003537echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3538echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003539if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003540if test "${ac_cv_path_install+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003542else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544for as_dir in $PATH
3545do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 # Account for people who put trailing slashes in PATH elements.
3549case $as_dir/ in
3550 ./ | .// | /cC/* | \
3551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3552 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3553 /usr/ucb/* ) ;;
3554 *)
3555 # OSF1 and SCO ODT 3.0 have their own names for install.
3556 # Don't use installbsd from OSF since it installs stuff as root
3557 # by default.
3558 for ac_prog in ginstall scoinst install; do
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003561 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003562 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003563 # AIX install. It has an incompatible calling convention.
3564 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003565 elif test $ac_prog = install &&
3566 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3567 # program-specific install script used by HP pwplus--don't use.
3568 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003569 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003570 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3571 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003572 fi
3573 fi
3574 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003575 done
3576 ;;
3577esac
3578done
3579
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003580
3581fi
3582 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003583 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003584 else
3585 # As a last resort, use the slow shell script. We don't cache a
3586 # path for INSTALL within a source directory, because that will
3587 # break other packages using the cache if that directory is
3588 # removed, or if the path is relative.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003590 fi
3591fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003592echo "$as_me:$LINENO: result: $INSTALL" >&5
3593echo "${ECHO_T}$INSTALL" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003594
3595# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3596# It thinks the first close brace ends the variable substitution.
3597test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003599test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003600
3601test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3602
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003603
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003604 MKINSTALLDIRS=
3605 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003606 case "$ac_aux_dir" in
3607 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3608 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3609 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003610 fi
3611 if test -z "$MKINSTALLDIRS"; then
3612 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3613 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003614
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003615
3616
3617 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3618echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3619 # Check whether --enable-nls or --disable-nls was given.
3620if test "${enable_nls+set}" = set; then
3621 enableval="$enable_nls"
3622 USE_NLS=$enableval
3623else
3624 USE_NLS=yes
3625fi;
3626 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3627echo "${ECHO_T}$USE_NLS" >&6
3628
3629
3630
3631
3632
3633
3634# Prepare PATH_SEPARATOR.
3635# The user is always right.
3636if test "${PATH_SEPARATOR+set}" != set; then
3637 echo "#! /bin/sh" >conf$$.sh
3638 echo "exit 0" >>conf$$.sh
3639 chmod +x conf$$.sh
3640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3641 PATH_SEPARATOR=';'
3642 else
3643 PATH_SEPARATOR=:
3644 fi
3645 rm -f conf$$.sh
3646fi
3647
3648# Find out how to test for executable files. Don't use a zero-byte file,
3649# as systems may use methods other than mode bits to determine executability.
3650cat >conf$$.file <<_ASEOF
3651#! /bin/sh
3652exit 0
3653_ASEOF
3654chmod +x conf$$.file
3655if test -x conf$$.file >/dev/null 2>&1; then
3656 ac_executable_p="test -x"
3657else
3658 ac_executable_p="test -f"
3659fi
3660rm -f conf$$.file
3661
3662# Extract the first word of "msgfmt", so it can be a program name with args.
3663set dummy msgfmt; ac_word=$2
3664echo "$as_me:$LINENO: checking for $ac_word" >&5
3665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3666if test "${ac_cv_path_MSGFMT+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669 case "$MSGFMT" in
3670 [\\/]* | ?:[\\/]*)
3671 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3672 ;;
3673 *)
3674 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3675 for ac_dir in $PATH; do
3676 IFS="$ac_save_IFS"
3677 test -z "$ac_dir" && ac_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3680 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3681 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3682 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3683 break 2
3684 fi
3685 fi
3686 done
3687 done
3688 IFS="$ac_save_IFS"
3689 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3690 ;;
3691esac
3692fi
3693MSGFMT="$ac_cv_path_MSGFMT"
3694if test "$MSGFMT" != ":"; then
3695 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3696echo "${ECHO_T}$MSGFMT" >&6
3697else
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700fi
3701
3702 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3703set dummy gmsgfmt; ac_word=$2
3704echo "$as_me:$LINENO: checking for $ac_word" >&5
3705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3706if test "${ac_cv_path_GMSGFMT+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708else
3709 case $GMSGFMT in
3710 [\\/]* | ?:[\\/]*)
3711 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3712 ;;
3713 *)
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3724 fi
3725done
3726done
3727
3728 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3729 ;;
3730esac
3731fi
3732GMSGFMT=$ac_cv_path_GMSGFMT
3733
3734if test -n "$GMSGFMT"; then
3735 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3736echo "${ECHO_T}$GMSGFMT" >&6
3737else
3738 echo "$as_me:$LINENO: result: no" >&5
3739echo "${ECHO_T}no" >&6
3740fi
3741
3742
3743
3744# Prepare PATH_SEPARATOR.
3745# The user is always right.
3746if test "${PATH_SEPARATOR+set}" != set; then
3747 echo "#! /bin/sh" >conf$$.sh
3748 echo "exit 0" >>conf$$.sh
3749 chmod +x conf$$.sh
3750 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3751 PATH_SEPARATOR=';'
3752 else
3753 PATH_SEPARATOR=:
3754 fi
3755 rm -f conf$$.sh
3756fi
3757
3758# Find out how to test for executable files. Don't use a zero-byte file,
3759# as systems may use methods other than mode bits to determine executability.
3760cat >conf$$.file <<_ASEOF
3761#! /bin/sh
3762exit 0
3763_ASEOF
3764chmod +x conf$$.file
3765if test -x conf$$.file >/dev/null 2>&1; then
3766 ac_executable_p="test -x"
3767else
3768 ac_executable_p="test -f"
3769fi
3770rm -f conf$$.file
3771
3772# Extract the first word of "xgettext", so it can be a program name with args.
3773set dummy xgettext; ac_word=$2
3774echo "$as_me:$LINENO: checking for $ac_word" >&5
3775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3776if test "${ac_cv_path_XGETTEXT+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 case "$XGETTEXT" in
3780 [\\/]* | ?:[\\/]*)
3781 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3782 ;;
3783 *)
3784 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3785 for ac_dir in $PATH; do
3786 IFS="$ac_save_IFS"
3787 test -z "$ac_dir" && ac_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3790 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3791 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3792 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3793 break 2
3794 fi
3795 fi
3796 done
3797 done
3798 IFS="$ac_save_IFS"
3799 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3800 ;;
3801esac
3802fi
3803XGETTEXT="$ac_cv_path_XGETTEXT"
3804if test "$XGETTEXT" != ":"; then
3805 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3806echo "${ECHO_T}$XGETTEXT" >&6
3807else
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
3810fi
3811
3812 rm -f messages.po
3813
3814
3815# Prepare PATH_SEPARATOR.
3816# The user is always right.
3817if test "${PATH_SEPARATOR+set}" != set; then
3818 echo "#! /bin/sh" >conf$$.sh
3819 echo "exit 0" >>conf$$.sh
3820 chmod +x conf$$.sh
3821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3822 PATH_SEPARATOR=';'
3823 else
3824 PATH_SEPARATOR=:
3825 fi
3826 rm -f conf$$.sh
3827fi
3828
3829# Find out how to test for executable files. Don't use a zero-byte file,
3830# as systems may use methods other than mode bits to determine executability.
3831cat >conf$$.file <<_ASEOF
3832#! /bin/sh
3833exit 0
3834_ASEOF
3835chmod +x conf$$.file
3836if test -x conf$$.file >/dev/null 2>&1; then
3837 ac_executable_p="test -x"
3838else
3839 ac_executable_p="test -f"
3840fi
3841rm -f conf$$.file
3842
3843# Extract the first word of "msgmerge", so it can be a program name with args.
3844set dummy msgmerge; ac_word=$2
3845echo "$as_me:$LINENO: checking for $ac_word" >&5
3846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847if test "${ac_cv_path_MSGMERGE+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850 case "$MSGMERGE" in
3851 [\\/]* | ?:[\\/]*)
3852 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3853 ;;
3854 *)
3855 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3856 for ac_dir in $PATH; do
3857 IFS="$ac_save_IFS"
3858 test -z "$ac_dir" && ac_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3861 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3862 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3863 break 2
3864 fi
3865 fi
3866 done
3867 done
3868 IFS="$ac_save_IFS"
3869 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3870 ;;
3871esac
3872fi
3873MSGMERGE="$ac_cv_path_MSGMERGE"
3874if test "$MSGMERGE" != ":"; then
3875 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3876echo "${ECHO_T}$MSGMERGE" >&6
3877else
3878 echo "$as_me:$LINENO: result: no" >&5
3879echo "${ECHO_T}no" >&6
3880fi
3881
3882
3883 if test "$GMSGFMT" != ":"; then
3884 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3885 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3886 : ;
3887 else
3888 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3889 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3890echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3891 GMSGFMT=":"
3892 fi
3893 fi
3894
3895 if test "$XGETTEXT" != ":"; then
3896 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3897 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3898 : ;
3899 else
3900 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3901echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3902 XGETTEXT=":"
3903 fi
3904 rm -f messages.po
3905 fi
3906
3907 ac_config_commands="$ac_config_commands default-1"
3908
3909
3910if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3912set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3913echo "$as_me:$LINENO: checking for $ac_word" >&5
3914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915if test "${ac_cv_prog_RANLIB+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003917else
3918 if test -n "$RANLIB"; then
3919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3920else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003933done
3934
3935fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003936fi
3937RANLIB=$ac_cv_prog_RANLIB
3938if test -n "$RANLIB"; then
3939 echo "$as_me:$LINENO: result: $RANLIB" >&5
3940echo "${ECHO_T}$RANLIB" >&6
3941else
3942 echo "$as_me:$LINENO: result: no" >&5
3943echo "${ECHO_T}no" >&6
3944fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003946fi
3947if test -z "$ac_cv_prog_RANLIB"; then
3948 ac_ct_RANLIB=$RANLIB
3949 # Extract the first word of "ranlib", so it can be a program name with args.
3950set dummy ranlib; ac_word=$2
3951echo "$as_me:$LINENO: checking for $ac_word" >&5
3952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956 if test -n "$ac_ct_RANLIB"; then
3957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_ac_ct_RANLIB="ranlib"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970done
3971done
3972
3973 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3974fi
3975fi
3976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3977if test -n "$ac_ct_RANLIB"; then
3978 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3979echo "${ECHO_T}$ac_ct_RANLIB" >&6
3980else
3981 echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6
3983fi
3984
3985 RANLIB=$ac_ct_RANLIB
3986else
3987 RANLIB="$ac_cv_prog_RANLIB"
3988fi
3989
3990
3991 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3992echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3993if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996 ac_check_lib_save_LIBS=$LIBS
3997LIBS="-lcposix $LIBS"
3998cat >conftest.$ac_ext <<_ACEOF
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
4004
4005/* Override any gcc2 internal prototype to avoid an error. */
4006#ifdef __cplusplus
4007extern "C"
4008#endif
4009/* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4011char strerror ();
4012int
4013main ()
4014{
4015strerror ();
4016 ;
4017 return 0;
4018}
4019_ACEOF
4020rm -f conftest.$ac_objext conftest$ac_exeext
4021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022 (eval $ac_link) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest$ac_exeext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_cv_lib_cposix_strerror=yes
4042else
4043 echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046ac_cv_lib_cposix_strerror=no
4047fi
4048rm -f conftest.err conftest.$ac_objext \
4049 conftest$ac_exeext conftest.$ac_ext
4050LIBS=$ac_check_lib_save_LIBS
4051fi
4052echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4053echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4054if test $ac_cv_lib_cposix_strerror = yes; then
4055 LIBS="$LIBS -lcposix"
4056fi
4057
4058
4059
4060echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4061echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4062if test "${ac_cv_c_const+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064else
4065 cat >conftest.$ac_ext <<_ACEOF
4066/* confdefs.h. */
4067_ACEOF
4068cat confdefs.h >>conftest.$ac_ext
4069cat >>conftest.$ac_ext <<_ACEOF
4070/* end confdefs.h. */
4071
4072int
4073main ()
4074{
4075/* FIXME: Include the comments suggested by Paul. */
4076#ifndef __cplusplus
4077 /* Ultrix mips cc rejects this. */
4078 typedef int charset[2];
4079 const charset x;
4080 /* SunOS 4.1.1 cc rejects this. */
4081 char const *const *ccp;
4082 char **p;
4083 /* NEC SVR4.0.2 mips cc rejects this. */
4084 struct point {int x, y;};
4085 static struct point const zero = {0,0};
4086 /* AIX XL C 1.02.0.0 rejects this.
4087 It does not let you subtract one const X* pointer from another in
4088 an arm of an if-expression whose if-part is not a constant
4089 expression */
4090 const char *g = "string";
4091 ccp = &g + (g ? g-g : 0);
4092 /* HPUX 7.0 cc rejects these. */
4093 ++ccp;
4094 p = (char**) ccp;
4095 ccp = (char const *const *) p;
4096 { /* SCO 3.2v4 cc rejects this. */
4097 char *t;
4098 char const *s = 0 ? (char *) 0 : (char const *) 0;
4099
4100 *t++ = 0;
4101 }
4102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4103 int x[] = {25, 17};
4104 const int *foo = &x[0];
4105 ++foo;
4106 }
4107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4108 typedef const int *iptr;
4109 iptr p = 0;
4110 ++p;
4111 }
4112 { /* AIX XL C 1.02.0.0 rejects this saying
4113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4114 struct s { int j; const int *ap[3]; };
4115 struct s *b; b->j = 5;
4116 }
4117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4118 const int foo = 10;
4119 }
4120#endif
4121
4122 ;
4123 return 0;
4124}
4125_ACEOF
4126rm -f conftest.$ac_objext
4127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 (eval $ac_try) 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 (eval $ac_try) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_c_const=yes
4148else
4149 echo "$as_me: failed program was:" >&5
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
4152ac_cv_c_const=no
4153fi
4154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4155fi
4156echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4157echo "${ECHO_T}$ac_cv_c_const" >&6
4158if test $ac_cv_c_const = no; then
4159
4160cat >>confdefs.h <<\_ACEOF
4161#define const
4162_ACEOF
4163
4164fi
4165
4166
4167 echo "$as_me:$LINENO: checking for signed" >&5
4168echo $ECHO_N "checking for signed... $ECHO_C" >&6
4169if test "${bh_cv_c_signed+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h. */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h. */
4178
4179int
4180main ()
4181{
4182signed char x;
4183 ;
4184 return 0;
4185}
4186_ACEOF
4187rm -f conftest.$ac_objext
4188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 bh_cv_c_signed=yes
4209else
4210 echo "$as_me: failed program was:" >&5
4211sed 's/^/| /' conftest.$ac_ext >&5
4212
4213bh_cv_c_signed=no
4214fi
4215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4216fi
4217echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4218echo "${ECHO_T}$bh_cv_c_signed" >&6
4219 if test $bh_cv_c_signed = no; then
4220
4221cat >>confdefs.h <<\_ACEOF
4222#define signed
4223_ACEOF
4224
4225 fi
4226
4227echo "$as_me:$LINENO: checking for inline" >&5
4228echo $ECHO_N "checking for inline... $ECHO_C" >&6
4229if test "${ac_cv_c_inline+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231else
4232 ac_cv_c_inline=no
4233for ac_kw in inline __inline__ __inline; do
4234 cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h. */
4240#ifndef __cplusplus
4241typedef int foo_t;
4242static $ac_kw foo_t static_foo () {return 0; }
4243$ac_kw foo_t foo () {return 0; }
4244#endif
4245
4246_ACEOF
4247rm -f conftest.$ac_objext
4248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249 (eval $ac_compile) 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_cv_c_inline=$ac_kw; break
4269else
4270 echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
4273fi
4274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4275done
4276
4277fi
4278echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4279echo "${ECHO_T}$ac_cv_c_inline" >&6
4280
4281
4282case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004283 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004284 *)
4285 case $ac_cv_c_inline in
4286 no) ac_val=;;
4287 *) ac_val=$ac_cv_c_inline;;
4288 esac
4289 cat >>confdefs.h <<_ACEOF
4290#ifndef __cplusplus
4291#define inline $ac_val
4292#endif
4293_ACEOF
4294 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004295esac
4296
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004297echo "$as_me:$LINENO: checking for off_t" >&5
4298echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4299if test "${ac_cv_type_off_t+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004301else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004302 cat >conftest.$ac_ext <<_ACEOF
4303/* confdefs.h. */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h. */
4308$ac_includes_default
4309int
4310main ()
4311{
4312if ((off_t *) 0)
4313 return 0;
4314if (sizeof (off_t))
4315 return 0;
4316 ;
4317 return 0;
4318}
4319_ACEOF
4320rm -f conftest.$ac_objext
4321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4322 (eval $ac_compile) 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 (eval $ac_try) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004341 ac_cv_type_off_t=yes
4342else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004343 echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004345
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004346ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004347fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004349fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004350echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4351echo "${ECHO_T}$ac_cv_type_off_t" >&6
4352if test $ac_cv_type_off_t = yes; then
4353 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004354else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004355
4356cat >>confdefs.h <<_ACEOF
4357#define off_t long
4358_ACEOF
4359
4360fi
4361
4362echo "$as_me:$LINENO: checking for size_t" >&5
4363echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4364if test "${ac_cv_type_size_t+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367 cat >conftest.$ac_ext <<_ACEOF
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
4373$ac_includes_default
4374int
4375main ()
4376{
4377if ((size_t *) 0)
4378 return 0;
4379if (sizeof (size_t))
4380 return 0;
4381 ;
4382 return 0;
4383}
4384_ACEOF
4385rm -f conftest.$ac_objext
4386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004406 ac_cv_type_size_t=yes
4407else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004408 echo "$as_me: failed program was:" >&5
4409sed 's/^/| /' conftest.$ac_ext >&5
4410
4411ac_cv_type_size_t=no
4412fi
4413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4416echo "${ECHO_T}$ac_cv_type_size_t" >&6
4417if test $ac_cv_type_size_t = yes; then
4418 :
4419else
4420
4421cat >>confdefs.h <<_ACEOF
4422#define size_t unsigned
4423_ACEOF
4424
4425fi
4426
4427
4428 echo "$as_me:$LINENO: checking for long long" >&5
4429echo $ECHO_N "checking for long long... $ECHO_C" >&6
4430if test "${ac_cv_type_long_long+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439long long ll = 1LL; int i = 63;
4440int
4441main ()
4442{
4443long long llmax = (long long) -1;
4444 return ll << i | ll >> i | llmax / ll | llmax % ll;
4445 ;
4446 return 0;
4447}
4448_ACEOF
4449rm -f conftest.$ac_objext conftest$ac_exeext
4450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4451 (eval $ac_link) 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; } &&
4464 { ac_try='test -s conftest$ac_exeext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 ac_cv_type_long_long=yes
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475ac_cv_type_long_long=no
4476fi
4477rm -f conftest.err conftest.$ac_objext \
4478 conftest$ac_exeext conftest.$ac_ext
4479fi
4480echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4481echo "${ECHO_T}$ac_cv_type_long_long" >&6
4482 if test $ac_cv_type_long_long = yes; then
4483
4484cat >>confdefs.h <<\_ACEOF
4485#define HAVE_LONG_LONG 1
4486_ACEOF
4487
4488 fi
4489
4490
4491 echo "$as_me:$LINENO: checking for long double" >&5
4492echo $ECHO_N "checking for long double... $ECHO_C" >&6
4493if test "${gt_cv_c_long_double+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 if test "$GCC" = yes; then
4497 gt_cv_c_long_double=yes
4498 else
4499 cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h. */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h. */
4505
4506 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4507 long double foo = 0.0;
4508 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4509 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4510
4511int
4512main ()
4513{
4514
4515 ;
4516 return 0;
4517}
4518_ACEOF
4519rm -f conftest.$ac_objext
4520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 gt_cv_c_long_double=yes
4541else
4542 echo "$as_me: failed program was:" >&5
4543sed 's/^/| /' conftest.$ac_ext >&5
4544
4545gt_cv_c_long_double=no
4546fi
4547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548 fi
4549fi
4550echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4551echo "${ECHO_T}$gt_cv_c_long_double" >&6
4552 if test $gt_cv_c_long_double = yes; then
4553
4554cat >>confdefs.h <<\_ACEOF
4555#define HAVE_LONG_DOUBLE 1
4556_ACEOF
4557
4558 fi
4559
4560
4561 echo "$as_me:$LINENO: checking for wchar_t" >&5
4562echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4563if test "${gt_cv_c_wchar_t+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565else
4566 cat >conftest.$ac_ext <<_ACEOF
4567/* confdefs.h. */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h. */
4572#include <stddef.h>
4573 wchar_t foo = (wchar_t)'\0';
4574int
4575main ()
4576{
4577
4578 ;
4579 return 0;
4580}
4581_ACEOF
4582rm -f conftest.$ac_objext
4583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 gt_cv_c_wchar_t=yes
4604else
4605 echo "$as_me: failed program was:" >&5
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
4608gt_cv_c_wchar_t=no
4609fi
4610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611fi
4612echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4613echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4614 if test $gt_cv_c_wchar_t = yes; then
4615
4616cat >>confdefs.h <<\_ACEOF
4617#define HAVE_WCHAR_T 1
4618_ACEOF
4619
4620 fi
4621
4622
4623 echo "$as_me:$LINENO: checking for wint_t" >&5
4624echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4625if test "${gt_cv_c_wint_t+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628 cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
4634#include <wchar.h>
4635 wint_t foo = (wchar_t)'\0';
4636int
4637main ()
4638{
4639
4640 ;
4641 return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext
4645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; } &&
4659 { ac_try='test -s conftest.$ac_objext'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 (eval $ac_try) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4665 gt_cv_c_wint_t=yes
4666else
4667 echo "$as_me: failed program was:" >&5
4668sed 's/^/| /' conftest.$ac_ext >&5
4669
4670gt_cv_c_wint_t=no
4671fi
4672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4673fi
4674echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4675echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4676 if test $gt_cv_c_wint_t = yes; then
4677
4678cat >>confdefs.h <<\_ACEOF
4679#define HAVE_WINT_T 1
4680_ACEOF
4681
4682 fi
4683
4684
4685 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4686echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4687if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690 cat >conftest.$ac_ext <<_ACEOF
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
4696#include <sys/types.h>
4697#include <inttypes.h>
4698int
4699main ()
4700{
4701uintmax_t i = (uintmax_t) -1;
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext
4707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 jm_ac_cv_header_inttypes_h=yes
4728else
4729 echo "$as_me: failed program was:" >&5
4730sed 's/^/| /' conftest.$ac_ext >&5
4731
4732jm_ac_cv_header_inttypes_h=no
4733fi
4734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735fi
4736echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4737echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4738 if test $jm_ac_cv_header_inttypes_h = yes; then
4739
4740cat >>confdefs.h <<_ACEOF
4741#define HAVE_INTTYPES_H_WITH_UINTMAX 1
4742_ACEOF
4743
4744 fi
4745
4746
4747 echo "$as_me:$LINENO: checking for stdint.h" >&5
4748echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4749if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752 cat >conftest.$ac_ext <<_ACEOF
4753/* confdefs.h. */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h. */
4758#include <sys/types.h>
4759#include <stdint.h>
4760int
4761main ()
4762{
4763uintmax_t i = (uintmax_t) -1;
4764 ;
4765 return 0;
4766}
4767_ACEOF
4768rm -f conftest.$ac_objext
4769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; } &&
4783 { ac_try='test -s conftest.$ac_objext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 jm_ac_cv_header_stdint_h=yes
4790else
4791 echo "$as_me: failed program was:" >&5
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
4794jm_ac_cv_header_stdint_h=no
4795fi
4796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4797fi
4798echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4799echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4800 if test $jm_ac_cv_header_stdint_h = yes; then
4801
4802cat >>confdefs.h <<_ACEOF
4803#define HAVE_STDINT_H_WITH_UINTMAX 1
4804_ACEOF
4805
4806 fi
4807
4808
4809
4810
4811 echo "$as_me:$LINENO: checking for intmax_t" >&5
4812echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4813if test "${gt_cv_c_intmax_t+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h. */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h. */
4822
4823#include <stddef.h>
4824#include <stdlib.h>
4825#if HAVE_STDINT_H_WITH_UINTMAX
4826#include <stdint.h>
4827#endif
4828#if HAVE_INTTYPES_H_WITH_UINTMAX
4829#include <inttypes.h>
4830#endif
4831
4832int
4833main ()
4834{
4835intmax_t x = -1;
4836 ;
4837 return 0;
4838}
4839_ACEOF
4840rm -f conftest.$ac_objext
4841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 gt_cv_c_intmax_t=yes
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866gt_cv_c_intmax_t=no
4867fi
4868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4869fi
4870echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4871echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4872 if test $gt_cv_c_intmax_t = yes; then
4873
4874cat >>confdefs.h <<\_ACEOF
4875#define HAVE_INTMAX_T 1
4876_ACEOF
4877
4878 fi
4879
4880
4881
4882 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4883echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4884if test "${gt_cv_func_printf_posix+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4886else
4887
4888 if test "$cross_compiling" = yes; then
4889
4890 cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896
4897#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4898 notposix
4899#endif
4900
4901_ACEOF
4902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903 $EGREP "notposix" >/dev/null 2>&1; then
4904 gt_cv_func_printf_posix="guessing no"
4905else
4906 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004907fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004908rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004909
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004910
4911else
4912 cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h. */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h. */
4918
4919#include <stdio.h>
4920#include <string.h>
4921/* The string "%2$d %1$d", with dollar characters protected from the shell's
4922 dollar expansion (possibly an autoconf bug). */
4923static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4924static char buf[100];
4925int main ()
4926{
4927 sprintf (buf, format, 33, 55);
4928 return (strcmp (buf, "55 33") != 0);
4929}
4930_ACEOF
4931rm -f conftest$ac_exeext
4932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933 (eval $ac_link) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 gt_cv_func_printf_posix=yes
4943else
4944 echo "$as_me: program exited with status $ac_status" >&5
4945echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948( exit $ac_status )
4949gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004950fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004951rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4952fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004953
4954fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004955echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4956echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4957 case $gt_cv_func_printf_posix in
4958 *yes)
4959
4960cat >>confdefs.h <<\_ACEOF
4961#define HAVE_POSIX_PRINTF 1
4962_ACEOF
4963
4964 ;;
4965 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004966
4967# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4968# for constant arguments. Useless!
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004969echo "$as_me:$LINENO: checking for working alloca.h" >&5
4970echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4971if test "${ac_cv_working_alloca_h+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004973else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004974 cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h. */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004980#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004981int
4982main ()
4983{
4984char *p = (char *) alloca (2 * sizeof (int));
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989rm -f conftest.$ac_objext conftest$ac_exeext
4990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4991 (eval $ac_link) 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; } &&
5004 { ac_try='test -s conftest$ac_exeext'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5010 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005011else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005012 echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005014
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005015ac_cv_working_alloca_h=no
5016fi
5017rm -f conftest.err conftest.$ac_objext \
5018 conftest$ac_exeext conftest.$ac_ext
5019fi
5020echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5021echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5022if test $ac_cv_working_alloca_h = yes; then
5023
5024cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005025#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005026_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005027
5028fi
5029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005030echo "$as_me:$LINENO: checking for alloca" >&5
5031echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5032if test "${ac_cv_func_alloca_works+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005034else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005041#ifdef __GNUC__
5042# define alloca __builtin_alloca
5043#else
5044# ifdef _MSC_VER
5045# include <malloc.h>
5046# define alloca _alloca
5047# else
5048# if HAVE_ALLOCA_H
5049# include <alloca.h>
5050# else
5051# ifdef _AIX
5052 #pragma alloca
5053# else
5054# ifndef alloca /* predefined by HP cc +Olibcalls */
5055char *alloca ();
5056# endif
5057# endif
5058# endif
5059# endif
5060#endif
5061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005062int
5063main ()
5064{
5065char *p = (char *) alloca (1);
5066 ;
5067 return 0;
5068}
5069_ACEOF
5070rm -f conftest.$ac_objext conftest$ac_exeext
5071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072 (eval $ac_link) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest$ac_exeext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005091 ac_cv_func_alloca_works=yes
5092else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005093 echo "$as_me: failed program was:" >&5
5094sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005096ac_cv_func_alloca_works=no
5097fi
5098rm -f conftest.err conftest.$ac_objext \
5099 conftest$ac_exeext conftest.$ac_ext
5100fi
5101echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5102echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5103
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005104if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005105
5106cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005107#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005108_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005109
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005110else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005111 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5112# that cause trouble. Some versions do not even contain alloca or
5113# contain a buggy version. If you still want to use their alloca,
5114# use ar to extract alloca.o from them instead of compiling alloca.c.
5115
5116ALLOCA=alloca.$ac_objext
5117
5118cat >>confdefs.h <<\_ACEOF
5119#define C_ALLOCA 1
5120_ACEOF
5121
5122
5123echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5124echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5125if test "${ac_cv_os_cray+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128 cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h. */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005134#if defined(CRAY) && ! defined(CRAY2)
5135webecray
5136#else
5137wenotbecray
5138#endif
5139
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005140_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005142 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005143 ac_cv_os_cray=yes
5144else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005145 ac_cv_os_cray=no
5146fi
5147rm -f conftest*
5148
5149fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005150echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5151echo "${ECHO_T}$ac_cv_os_cray" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005152if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005153 for ac_func in _getb67 GETB67 getb67; do
5154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5155echo "$as_me:$LINENO: checking for $ac_func" >&5
5156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5157if eval "test \"\${$as_ac_var+set}\" = set"; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005159else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005160 cat >conftest.$ac_ext <<_ACEOF
5161/* confdefs.h. */
5162_ACEOF
5163cat confdefs.h >>conftest.$ac_ext
5164cat >>conftest.$ac_ext <<_ACEOF
5165/* end confdefs.h. */
5166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5168#define $ac_func innocuous_$ac_func
5169
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005170/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005171 which can conflict with char $ac_func (); below.
5172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5173 <limits.h> exists even on freestanding compilers. */
5174
5175#ifdef __STDC__
5176# include <limits.h>
5177#else
5178# include <assert.h>
5179#endif
5180
5181#undef $ac_func
5182
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005183/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005184#ifdef __cplusplus
5185extern "C"
5186{
5187#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005188/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005189 builtin and then its argument prototype would still apply. */
5190char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005191/* The GNU C library defines this for functions which it implements
5192 to always fail with ENOSYS. Some functions are actually named
5193 something starting with __ and the normal name is an alias. */
5194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5195choke me
5196#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005197char (*f) () = $ac_func;
5198#endif
5199#ifdef __cplusplus
5200}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005201#endif
5202
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005203int
5204main ()
5205{
5206return f != $ac_func;
5207 ;
5208 return 0;
5209}
5210_ACEOF
5211rm -f conftest.$ac_objext conftest$ac_exeext
5212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try='test -s conftest$ac_exeext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 (eval $ac_try) 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005233else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005234 echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005236
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005237eval "$as_ac_var=no"
5238fi
5239rm -f conftest.err conftest.$ac_objext \
5240 conftest$ac_exeext conftest.$ac_ext
5241fi
5242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5244if test `eval echo '${'$as_ac_var'}'` = yes; then
5245
5246cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005247#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005248_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005250 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005251fi
5252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005253 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005254fi
5255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005256echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5257echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5258if test "${ac_cv_c_stack_direction+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005260else
5261 if test "$cross_compiling" = yes; then
5262 ac_cv_c_stack_direction=0
5263else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005264 cat >conftest.$ac_ext <<_ACEOF
5265/* confdefs.h. */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
5269/* end confdefs.h. */
5270int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005271find_stack_direction ()
5272{
5273 static char *addr = 0;
5274 auto char dummy;
5275 if (addr == 0)
5276 {
5277 addr = &dummy;
5278 return find_stack_direction ();
5279 }
5280 else
5281 return (&dummy > addr) ? 1 : -1;
5282}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005283
5284int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005285main ()
5286{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005287 exit (find_stack_direction () < 0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005288}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005289_ACEOF
5290rm -f conftest$ac_exeext
5291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292 (eval $ac_link) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005301 ac_cv_c_stack_direction=1
5302else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005303 echo "$as_me: program exited with status $ac_status" >&5
5304echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005307( exit $ac_status )
5308ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005309fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5311fi
5312fi
5313echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5314echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005316cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005317#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005318_ACEOF
5319
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005320
5321fi
5322
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005323
5324
5325for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005326do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5328if eval "test \"\${$as_ac_Header+set}\" = set"; then
5329 echo "$as_me:$LINENO: checking for $ac_header" >&5
5330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5331if eval "test \"\${$as_ac_Header+set}\" = set"; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005333fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005336else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005337 # Is the header compilable?
5338echo "$as_me:$LINENO: checking $ac_header usability" >&5
5339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5340cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h. */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h. */
5346$ac_includes_default
5347#include <$ac_header>
5348_ACEOF
5349rm -f conftest.$ac_objext
5350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351 (eval $ac_compile) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 (eval $ac_try) 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_header_compiler=yes
5371else
5372 echo "$as_me: failed program was:" >&5
5373sed 's/^/| /' conftest.$ac_ext >&5
5374
5375ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005376fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5379echo "${ECHO_T}$ac_header_compiler" >&6
5380
5381# Is the header present?
5382echo "$as_me:$LINENO: checking $ac_header presence" >&5
5383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5384cat >conftest.$ac_ext <<_ACEOF
5385/* confdefs.h. */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h. */
5390#include <$ac_header>
5391_ACEOF
5392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_c_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403 else
5404 ac_cpp_err=
5405 fi
5406else
5407 ac_cpp_err=yes
5408fi
5409if test -z "$ac_cpp_err"; then
5410 ac_header_preproc=yes
5411else
5412 echo "$as_me: failed program was:" >&5
5413sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_header_preproc=no
5416fi
5417rm -f conftest.err conftest.$ac_ext
5418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5419echo "${ECHO_T}$ac_header_preproc" >&6
5420
5421# So? What about this header?
5422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5423 yes:no: )
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5428 ac_header_preproc=yes
5429 ;;
5430 no:yes:* )
5431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5443 (
5444 cat <<\_ASBOX
5445## ------------------------------------------ ##
5446## Report this to the AC_PACKAGE_NAME lists. ##
5447## ------------------------------------------ ##
5448_ASBOX
5449 ) |
5450 sed "s/^/$as_me: WARNING: /" >&2
5451 ;;
5452esac
5453echo "$as_me:$LINENO: checking for $ac_header" >&5
5454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5455if eval "test \"\${$as_ac_Header+set}\" = set"; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458 eval "$as_ac_Header=\$ac_header_preproc"
5459fi
5460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5462
5463fi
5464if test `eval echo '${'$as_ac_Header'}'` = yes; then
5465 cat >>confdefs.h <<_ACEOF
5466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5467_ACEOF
5468
5469fi
5470
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005471done
5472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005473
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005474for ac_func in getpagesize
5475do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5477echo "$as_me:$LINENO: checking for $ac_func" >&5
5478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5479if eval "test \"\${$as_ac_var+set}\" = set"; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005481else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005482 cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h. */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h. */
5488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5490#define $ac_func innocuous_$ac_func
5491
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005492/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005493 which can conflict with char $ac_func (); below.
5494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495 <limits.h> exists even on freestanding compilers. */
5496
5497#ifdef __STDC__
5498# include <limits.h>
5499#else
5500# include <assert.h>
5501#endif
5502
5503#undef $ac_func
5504
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005505/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005506#ifdef __cplusplus
5507extern "C"
5508{
5509#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005510/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005511 builtin and then its argument prototype would still apply. */
5512char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005513/* The GNU C library defines this for functions which it implements
5514 to always fail with ENOSYS. Some functions are actually named
5515 something starting with __ and the normal name is an alias. */
5516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5517choke me
5518#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005519char (*f) () = $ac_func;
5520#endif
5521#ifdef __cplusplus
5522}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005523#endif
5524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005525int
5526main ()
5527{
5528return f != $ac_func;
5529 ;
5530 return 0;
5531}
5532_ACEOF
5533rm -f conftest.$ac_objext conftest$ac_exeext
5534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535 (eval $ac_link) 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 (eval $ac_try) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; } &&
5548 { ac_try='test -s conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005555else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005556 echo "$as_me: failed program was:" >&5
5557sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005559eval "$as_ac_var=no"
5560fi
5561rm -f conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
5563fi
5564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5566if test `eval echo '${'$as_ac_var'}'` = yes; then
5567 cat >>confdefs.h <<_ACEOF
5568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5569_ACEOF
5570
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005571fi
5572done
5573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005574echo "$as_me:$LINENO: checking for working mmap" >&5
5575echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5576if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005578else
5579 if test "$cross_compiling" = yes; then
5580 ac_cv_func_mmap_fixed_mapped=no
5581else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005582 cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588$ac_includes_default
5589/* malloc might have been renamed as rpl_malloc. */
5590#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005591
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005592/* Thanks to Mike Haertel and Jim Avera for this test.
5593 Here is a matrix of mmap possibilities:
5594 mmap private not fixed
5595 mmap private fixed at somewhere currently unmapped
5596 mmap private fixed at somewhere already mapped
5597 mmap shared not fixed
5598 mmap shared fixed at somewhere currently unmapped
5599 mmap shared fixed at somewhere already mapped
5600 For private mappings, we should verify that changes cannot be read()
5601 back from the file, nor mmap's back from the file at a different
5602 address. (There have been systems where private was not correctly
5603 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005604 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005605 like early versions of FreeBSD and possibly contemporary NetBSD.)
5606 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005607 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005608
5609 Grep wants private fixed already mapped.
5610 The main things grep needs to know about mmap are:
5611 * does it exist and is it safe to write into the mmap'd area
5612 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005613
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005614#include <fcntl.h>
5615#include <sys/mman.h>
5616
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005617#if !STDC_HEADERS && !HAVE_STDLIB_H
5618char *malloc ();
5619#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005621/* This mess was copied from the GNU getpagesize.h. */
5622#if !HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005623/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005624# if !HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005625# define HAVE_SYS_PARAM_H 1
5626# endif
5627
5628# ifdef _SC_PAGESIZE
5629# define getpagesize() sysconf(_SC_PAGESIZE)
5630# else /* no _SC_PAGESIZE */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005631# if HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005632# include <sys/param.h>
5633# ifdef EXEC_PAGESIZE
5634# define getpagesize() EXEC_PAGESIZE
5635# else /* no EXEC_PAGESIZE */
5636# ifdef NBPG
5637# define getpagesize() NBPG * CLSIZE
5638# ifndef CLSIZE
5639# define CLSIZE 1
5640# endif /* no CLSIZE */
5641# else /* no NBPG */
5642# ifdef NBPC
5643# define getpagesize() NBPC
5644# else /* no NBPC */
5645# ifdef PAGESIZE
5646# define getpagesize() PAGESIZE
5647# endif /* PAGESIZE */
5648# endif /* no NBPC */
5649# endif /* no NBPG */
5650# endif /* no EXEC_PAGESIZE */
5651# else /* no HAVE_SYS_PARAM_H */
5652# define getpagesize() 8192 /* punt totally */
5653# endif /* no HAVE_SYS_PARAM_H */
5654# endif /* no _SC_PAGESIZE */
5655
5656#endif /* no HAVE_GETPAGESIZE */
5657
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005658int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005659main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005660{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005661 char *data, *data2, *data3;
5662 int i, pagesize;
5663 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005664
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005665 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005667 /* First, make a file with some known garbage in it. */
5668 data = (char *) malloc (pagesize);
5669 if (!data)
5670 exit (1);
5671 for (i = 0; i < pagesize; ++i)
5672 *(data + i) = rand ();
5673 umask (0);
5674 fd = creat ("conftest.mmap", 0600);
5675 if (fd < 0)
5676 exit (1);
5677 if (write (fd, data, pagesize) != pagesize)
5678 exit (1);
5679 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005680
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005681 /* Next, try to mmap the file at a fixed address which already has
5682 something else allocated at it. If we can, also make sure that
5683 we see the same garbage. */
5684 fd = open ("conftest.mmap", O_RDWR);
5685 if (fd < 0)
5686 exit (1);
5687 data2 = (char *) malloc (2 * pagesize);
5688 if (!data2)
5689 exit (1);
5690 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5691 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5692 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5693 exit (1);
5694 for (i = 0; i < pagesize; ++i)
5695 if (*(data + i) != *(data2 + i))
5696 exit (1);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005697
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005698 /* Finally, make sure that changes to the mapped area do not
5699 percolate back to the file as seen by read(). (This is a bug on
5700 some variants of i386 svr4.0.) */
5701 for (i = 0; i < pagesize; ++i)
5702 *(data2 + i) = *(data2 + i) + 1;
5703 data3 = (char *) malloc (pagesize);
5704 if (!data3)
5705 exit (1);
5706 if (read (fd, data3, pagesize) != pagesize)
5707 exit (1);
5708 for (i = 0; i < pagesize; ++i)
5709 if (*(data + i) != *(data3 + i))
5710 exit (1);
5711 close (fd);
5712 exit (0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005713}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005714_ACEOF
5715rm -f conftest$ac_exeext
5716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005726 ac_cv_func_mmap_fixed_mapped=yes
5727else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005728 echo "$as_me: program exited with status $ac_status" >&5
5729echo "$as_me: failed program was:" >&5
5730sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005731
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005732( exit $ac_status )
5733ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005734fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005735rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5736fi
5737fi
5738echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5739echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005740if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005741
5742cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005743#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005744_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005745
5746fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005747rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005748
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005750 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5751echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5752if test "${ac_cv_gnu_library_2_1+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005754else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005755 cat >conftest.$ac_ext <<_ACEOF
5756/* confdefs.h. */
5757_ACEOF
5758cat confdefs.h >>conftest.$ac_ext
5759cat >>conftest.$ac_ext <<_ACEOF
5760/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005761
5762#include <features.h>
5763#ifdef __GNU_LIBRARY__
5764 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5765 Lucky GNU user
5766 #endif
5767#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005768
5769_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005771 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005772 ac_cv_gnu_library_2_1=yes
5773else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005774 ac_cv_gnu_library_2_1=no
5775fi
5776rm -f conftest*
5777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005778
5779
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005780fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005781echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5782echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005783
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005784 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005785
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005787
5788
5789 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5790echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5791if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005793else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005794
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005795 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005796
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005797 # Guess based on the CPU.
5798 case "$host_cpu" in
5799 alpha* | i3456786 | m68k | s390*)
5800 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5801 *)
5802 gt_cv_int_divbyzero_sigfpe="guessing no";;
5803 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005804
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005805else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005806 cat >conftest.$ac_ext <<_ACEOF
5807/* confdefs.h. */
5808_ACEOF
5809cat confdefs.h >>conftest.$ac_ext
5810cat >>conftest.$ac_ext <<_ACEOF
5811/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005812
5813#include <stdlib.h>
5814#include <signal.h>
5815
5816static void
5817#ifdef __cplusplus
5818sigfpe_handler (int sig)
5819#else
5820sigfpe_handler (sig) int sig;
5821#endif
5822{
5823 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5824 exit (sig != SIGFPE);
5825}
5826
5827int x = 1;
5828int y = 0;
5829int z;
5830int nan;
5831
5832int main ()
5833{
5834 signal (SIGFPE, sigfpe_handler);
5835/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5836#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5837 signal (SIGTRAP, sigfpe_handler);
5838#endif
5839/* Linux/SPARC yields signal SIGILL. */
5840#if defined (__sparc__) && defined (__linux__)
5841 signal (SIGILL, sigfpe_handler);
5842#endif
5843
5844 z = x / y;
5845 nan = y / y;
5846 exit (1);
5847}
5848
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005849_ACEOF
5850rm -f conftest$ac_exeext
5851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5852 (eval $ac_link) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005861 gt_cv_int_divbyzero_sigfpe=yes
5862else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005863 echo "$as_me: program exited with status $ac_status" >&5
5864echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867( exit $ac_status )
5868gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005869fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005870rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005871fi
5872
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005873fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005874echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5875echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005876 case "$gt_cv_int_divbyzero_sigfpe" in
5877 *yes) value=1;;
5878 *) value=0;;
5879 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005880
5881cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005882#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005883_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005884
5885
5886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005887 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5888echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5889if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892 cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
5898unsigned long long ull = 1ULL; int i = 63;
5899int
5900main ()
5901{
5902unsigned long long ullmax = (unsigned long long) -1;
5903 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5904 ;
5905 return 0;
5906}
5907_ACEOF
5908rm -f conftest.$ac_objext conftest$ac_exeext
5909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest$ac_exeext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_type_unsigned_long_long=yes
5930else
5931 echo "$as_me: failed program was:" >&5
5932sed 's/^/| /' conftest.$ac_ext >&5
5933
5934ac_cv_type_unsigned_long_long=no
5935fi
5936rm -f conftest.err conftest.$ac_objext \
5937 conftest$ac_exeext conftest.$ac_ext
5938fi
5939echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5940echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5941 if test $ac_cv_type_unsigned_long_long = yes; then
5942
5943cat >>confdefs.h <<\_ACEOF
5944#define HAVE_UNSIGNED_LONG_LONG 1
5945_ACEOF
5946
5947 fi
5948
5949
5950
5951
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005952 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005953
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005954 test $ac_cv_type_unsigned_long_long = yes \
5955 && ac_type='unsigned long long' \
5956 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005957
5958cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005959#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005960_ACEOF
5961
5962 else
5963
5964cat >>confdefs.h <<\_ACEOF
5965#define HAVE_UINTMAX_T 1
5966_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005967
5968 fi
5969
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005970
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005971 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5972echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5973if test "${gt_cv_header_inttypes_h+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005976
5977 cat >conftest.$ac_ext <<_ACEOF
5978/* confdefs.h. */
5979_ACEOF
5980cat confdefs.h >>conftest.$ac_ext
5981cat >>conftest.$ac_ext <<_ACEOF
5982/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005983#include <sys/types.h>
5984#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005985int
5986main ()
5987{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005988
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005989 ;
5990 return 0;
5991}
5992_ACEOF
5993rm -f conftest.$ac_objext
5994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5995 (eval $ac_compile) 2>conftest.er1
5996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006014 gt_cv_header_inttypes_h=yes
6015else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006016 echo "$as_me: failed program was:" >&5
6017sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006018
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006019gt_cv_header_inttypes_h=no
6020fi
6021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6022
6023fi
6024echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6025echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006026 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027
6028cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006029#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006030_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006031
6032 fi
6033
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006034
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006035
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006036 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006037 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6038echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6039if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042
6043 cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006049#include <inttypes.h>
6050#ifdef PRId32
6051char *p = PRId32;
6052#endif
6053
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006054int
6055main ()
6056{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006057
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006058 ;
6059 return 0;
6060}
6061_ACEOF
6062rm -f conftest.$ac_objext
6063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064 (eval $ac_compile) 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try='test -s conftest.$ac_objext'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 (eval $ac_try) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006083 gt_cv_inttypes_pri_broken=no
6084else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006085 echo "$as_me: failed program was:" >&5
6086sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006087
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006088gt_cv_inttypes_pri_broken=yes
6089fi
6090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6091
6092fi
6093echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6094echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006095 fi
6096 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006097
6098cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006099#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006100_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006101
6102 fi
6103
6104
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006105
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106for ac_header in stdint.h
6107do
6108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6109if eval "test \"\${$as_ac_Header+set}\" = set"; then
6110 echo "$as_me:$LINENO: checking for $ac_header" >&5
6111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6112if eval "test \"\${$as_ac_Header+set}\" = set"; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114fi
6115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6117else
6118 # Is the header compilable?
6119echo "$as_me:$LINENO: checking $ac_header usability" >&5
6120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6121cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h. */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h. */
6127$ac_includes_default
6128#include <$ac_header>
6129_ACEOF
6130rm -f conftest.$ac_objext
6131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_header_compiler=yes
6152else
6153 echo "$as_me: failed program was:" >&5
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
6156ac_header_compiler=no
6157fi
6158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6160echo "${ECHO_T}$ac_header_compiler" >&6
6161
6162# Is the header present?
6163echo "$as_me:$LINENO: checking $ac_header presence" >&5
6164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6165cat >conftest.$ac_ext <<_ACEOF
6166/* confdefs.h. */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h. */
6171#include <$ac_header>
6172_ACEOF
6173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } >/dev/null; then
6181 if test -s conftest.err; then
6182 ac_cpp_err=$ac_c_preproc_warn_flag
6183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6184 else
6185 ac_cpp_err=
6186 fi
6187else
6188 ac_cpp_err=yes
6189fi
6190if test -z "$ac_cpp_err"; then
6191 ac_header_preproc=yes
6192else
6193 echo "$as_me: failed program was:" >&5
6194sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 ac_header_preproc=no
6197fi
6198rm -f conftest.err conftest.$ac_ext
6199echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6200echo "${ECHO_T}$ac_header_preproc" >&6
6201
6202# So? What about this header?
6203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6204 yes:no: )
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6206echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6208echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6209 ac_header_preproc=yes
6210 ;;
6211 no:yes:* )
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6213echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6215echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6217echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6219echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6223echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6224 (
6225 cat <<\_ASBOX
6226## ------------------------------------------ ##
6227## Report this to the AC_PACKAGE_NAME lists. ##
6228## ------------------------------------------ ##
6229_ASBOX
6230 ) |
6231 sed "s/^/$as_me: WARNING: /" >&2
6232 ;;
6233esac
6234echo "$as_me:$LINENO: checking for $ac_header" >&5
6235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6236if eval "test \"\${$as_ac_Header+set}\" = set"; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239 eval "$as_ac_Header=\$ac_header_preproc"
6240fi
6241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6243
6244fi
6245if test `eval echo '${'$as_ac_Header'}'` = yes; then
6246 cat >>confdefs.h <<_ACEOF
6247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248_ACEOF
6249
6250fi
6251
6252done
6253
6254 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6255echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6256 result=
6257 cat >conftest.$ac_ext <<_ACEOF
6258/* confdefs.h. */
6259_ACEOF
6260cat confdefs.h >>conftest.$ac_ext
6261cat >>conftest.$ac_ext <<_ACEOF
6262/* end confdefs.h. */
6263
6264#include <limits.h>
6265#if HAVE_STDINT_H
6266#include <stdint.h>
6267#endif
6268#ifdef SIZE_MAX
6269Found it
6270#endif
6271
6272_ACEOF
6273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 $EGREP "Found it" >/dev/null 2>&1; then
6275 result=yes
6276fi
6277rm -f conftest*
6278
6279 if test -z "$result"; then
6280 if test "$cross_compiling" = yes; then
6281 # Depending upon the size, compute the lo and hi bounds.
6282cat >conftest.$ac_ext <<_ACEOF
6283/* confdefs.h. */
6284_ACEOF
6285cat confdefs.h >>conftest.$ac_ext
6286cat >>conftest.$ac_ext <<_ACEOF
6287/* end confdefs.h. */
6288#include <stddef.h>
6289int
6290main ()
6291{
6292static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6293test_array [0] = 0
6294
6295 ;
6296 return 0;
6297}
6298_ACEOF
6299rm -f conftest.$ac_objext
6300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; } &&
6314 { ac_try='test -s conftest.$ac_objext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 ac_lo=0 ac_mid=0
6321 while :; do
6322 cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h. */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h. */
6328#include <stddef.h>
6329int
6330main ()
6331{
6332static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6333test_array [0] = 0
6334
6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext
6340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_hi=$ac_mid; break
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365ac_lo=`expr $ac_mid + 1`
6366 if test $ac_lo -le $ac_mid; then
6367 ac_lo= ac_hi=
6368 break
6369 fi
6370 ac_mid=`expr 2 '*' $ac_mid + 1`
6371fi
6372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 done
6374else
6375 echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378cat >conftest.$ac_ext <<_ACEOF
6379/* confdefs.h. */
6380_ACEOF
6381cat confdefs.h >>conftest.$ac_ext
6382cat >>conftest.$ac_ext <<_ACEOF
6383/* end confdefs.h. */
6384#include <stddef.h>
6385int
6386main ()
6387{
6388static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6389test_array [0] = 0
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395rm -f conftest.$ac_objext
6396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_hi=-1 ac_mid=-1
6417 while :; do
6418 cat >conftest.$ac_ext <<_ACEOF
6419/* confdefs.h. */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
6423/* end confdefs.h. */
6424#include <stddef.h>
6425int
6426main ()
6427{
6428static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6429test_array [0] = 0
6430
6431 ;
6432 return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext
6436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6437 (eval $ac_compile) 2>conftest.er1
6438 ac_status=$?
6439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest.$ac_objext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 ac_lo=$ac_mid; break
6457else
6458 echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461ac_hi=`expr '(' $ac_mid ')' - 1`
6462 if test $ac_mid -le $ac_hi; then
6463 ac_lo= ac_hi=
6464 break
6465 fi
6466 ac_mid=`expr 2 '*' $ac_mid`
6467fi
6468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6469 done
6470else
6471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474ac_lo= ac_hi=
6475fi
6476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6477fi
6478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479# Binary search between lo and hi bounds.
6480while test "x$ac_lo" != "x$ac_hi"; do
6481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6482 cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h. */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h. */
6488#include <stddef.h>
6489int
6490main ()
6491{
6492static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6493test_array [0] = 0
6494
6495 ;
6496 return 0;
6497}
6498_ACEOF
6499rm -f conftest.$ac_objext
6500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501 (eval $ac_compile) 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_hi=$ac_mid
6521else
6522 echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
6525ac_lo=`expr '(' $ac_mid ')' + 1`
6526fi
6527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528done
6529case $ac_lo in
6530?*) res_hi=$ac_lo;;
6531'') result=? ;;
6532esac
6533else
6534 if test "$cross_compiling" = yes; then
6535 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6536echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6537 { (exit 1); exit 1; }; }
6538else
6539 cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h. */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h. */
6545#include <stddef.h>
6546long longval () { return ~(size_t)0 / 10; }
6547unsigned long ulongval () { return ~(size_t)0 / 10; }
6548#include <stdio.h>
6549#include <stdlib.h>
6550int
6551main ()
6552{
6553
6554 FILE *f = fopen ("conftest.val", "w");
6555 if (! f)
6556 exit (1);
6557 if ((~(size_t)0 / 10) < 0)
6558 {
6559 long i = longval ();
6560 if (i != (~(size_t)0 / 10))
6561 exit (1);
6562 fprintf (f, "%ld\n", i);
6563 }
6564 else
6565 {
6566 unsigned long i = ulongval ();
6567 if (i != (~(size_t)0 / 10))
6568 exit (1);
6569 fprintf (f, "%lu\n", i);
6570 }
6571 exit (ferror (f) || fclose (f) != 0);
6572
6573 ;
6574 return 0;
6575}
6576_ACEOF
6577rm -f conftest$ac_exeext
6578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579 (eval $ac_link) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 res_hi=`cat conftest.val`
6589else
6590 echo "$as_me: program exited with status $ac_status" >&5
6591echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594( exit $ac_status )
6595result=?
6596fi
6597rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6598fi
6599fi
6600rm -f conftest.val
6601 if test "$cross_compiling" = yes; then
6602 # Depending upon the size, compute the lo and hi bounds.
6603cat >conftest.$ac_ext <<_ACEOF
6604/* confdefs.h. */
6605_ACEOF
6606cat confdefs.h >>conftest.$ac_ext
6607cat >>conftest.$ac_ext <<_ACEOF
6608/* end confdefs.h. */
6609#include <stddef.h>
6610int
6611main ()
6612{
6613static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6614test_array [0] = 0
6615
6616 ;
6617 return 0;
6618}
6619_ACEOF
6620rm -f conftest.$ac_objext
6621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622 (eval $ac_compile) 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_lo=0 ac_mid=0
6642 while :; do
6643 cat >conftest.$ac_ext <<_ACEOF
6644/* confdefs.h. */
6645_ACEOF
6646cat confdefs.h >>conftest.$ac_ext
6647cat >>conftest.$ac_ext <<_ACEOF
6648/* end confdefs.h. */
6649#include <stddef.h>
6650int
6651main ()
6652{
6653static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6654test_array [0] = 0
6655
6656 ;
6657 return 0;
6658}
6659_ACEOF
6660rm -f conftest.$ac_objext
6661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662 (eval $ac_compile) 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 (eval $ac_try) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_hi=$ac_mid; break
6682else
6683 echo "$as_me: failed program was:" >&5
6684sed 's/^/| /' conftest.$ac_ext >&5
6685
6686ac_lo=`expr $ac_mid + 1`
6687 if test $ac_lo -le $ac_mid; then
6688 ac_lo= ac_hi=
6689 break
6690 fi
6691 ac_mid=`expr 2 '*' $ac_mid + 1`
6692fi
6693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694 done
6695else
6696 echo "$as_me: failed program was:" >&5
6697sed 's/^/| /' conftest.$ac_ext >&5
6698
6699cat >conftest.$ac_ext <<_ACEOF
6700/* confdefs.h. */
6701_ACEOF
6702cat confdefs.h >>conftest.$ac_ext
6703cat >>conftest.$ac_ext <<_ACEOF
6704/* end confdefs.h. */
6705#include <stddef.h>
6706int
6707main ()
6708{
6709static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6710test_array [0] = 0
6711
6712 ;
6713 return 0;
6714}
6715_ACEOF
6716rm -f conftest.$ac_objext
6717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; } &&
6731 { ac_try='test -s conftest.$ac_objext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 (eval $ac_try) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6737 ac_hi=-1 ac_mid=-1
6738 while :; do
6739 cat >conftest.$ac_ext <<_ACEOF
6740/* confdefs.h. */
6741_ACEOF
6742cat confdefs.h >>conftest.$ac_ext
6743cat >>conftest.$ac_ext <<_ACEOF
6744/* end confdefs.h. */
6745#include <stddef.h>
6746int
6747main ()
6748{
6749static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6750test_array [0] = 0
6751
6752 ;
6753 return 0;
6754}
6755_ACEOF
6756rm -f conftest.$ac_objext
6757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest.$ac_objext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 (eval $ac_try) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_lo=$ac_mid; break
6778else
6779 echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
6781
6782ac_hi=`expr '(' $ac_mid ')' - 1`
6783 if test $ac_mid -le $ac_hi; then
6784 ac_lo= ac_hi=
6785 break
6786 fi
6787 ac_mid=`expr 2 '*' $ac_mid`
6788fi
6789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790 done
6791else
6792 echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795ac_lo= ac_hi=
6796fi
6797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798fi
6799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6800# Binary search between lo and hi bounds.
6801while test "x$ac_lo" != "x$ac_hi"; do
6802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6803 cat >conftest.$ac_ext <<_ACEOF
6804/* confdefs.h. */
6805_ACEOF
6806cat confdefs.h >>conftest.$ac_ext
6807cat >>conftest.$ac_ext <<_ACEOF
6808/* end confdefs.h. */
6809#include <stddef.h>
6810int
6811main ()
6812{
6813static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6814test_array [0] = 0
6815
6816 ;
6817 return 0;
6818}
6819_ACEOF
6820rm -f conftest.$ac_objext
6821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822 (eval $ac_compile) 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; } &&
6835 { ac_try='test -s conftest.$ac_objext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 ac_hi=$ac_mid
6842else
6843 echo "$as_me: failed program was:" >&5
6844sed 's/^/| /' conftest.$ac_ext >&5
6845
6846ac_lo=`expr '(' $ac_mid ')' + 1`
6847fi
6848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849done
6850case $ac_lo in
6851?*) res_lo=$ac_lo;;
6852'') result=? ;;
6853esac
6854else
6855 if test "$cross_compiling" = yes; then
6856 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6857echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6858 { (exit 1); exit 1; }; }
6859else
6860 cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
6866#include <stddef.h>
6867long longval () { return ~(size_t)0 % 10; }
6868unsigned long ulongval () { return ~(size_t)0 % 10; }
6869#include <stdio.h>
6870#include <stdlib.h>
6871int
6872main ()
6873{
6874
6875 FILE *f = fopen ("conftest.val", "w");
6876 if (! f)
6877 exit (1);
6878 if ((~(size_t)0 % 10) < 0)
6879 {
6880 long i = longval ();
6881 if (i != (~(size_t)0 % 10))
6882 exit (1);
6883 fprintf (f, "%ld\n", i);
6884 }
6885 else
6886 {
6887 unsigned long i = ulongval ();
6888 if (i != (~(size_t)0 % 10))
6889 exit (1);
6890 fprintf (f, "%lu\n", i);
6891 }
6892 exit (ferror (f) || fclose (f) != 0);
6893
6894 ;
6895 return 0;
6896}
6897_ACEOF
6898rm -f conftest$ac_exeext
6899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 res_lo=`cat conftest.val`
6910else
6911 echo "$as_me: program exited with status $ac_status" >&5
6912echo "$as_me: failed program was:" >&5
6913sed 's/^/| /' conftest.$ac_ext >&5
6914
6915( exit $ac_status )
6916result=?
6917fi
6918rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6919fi
6920fi
6921rm -f conftest.val
6922 if test "$cross_compiling" = yes; then
6923 # Depending upon the size, compute the lo and hi bounds.
6924cat >conftest.$ac_ext <<_ACEOF
6925/* confdefs.h. */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h. */
6930#include <stddef.h>
6931int
6932main ()
6933{
6934static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6935test_array [0] = 0
6936
6937 ;
6938 return 0;
6939}
6940_ACEOF
6941rm -f conftest.$ac_objext
6942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943 (eval $ac_compile) 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest.$ac_objext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 ac_lo=0 ac_mid=0
6963 while :; do
6964 cat >conftest.$ac_ext <<_ACEOF
6965/* confdefs.h. */
6966_ACEOF
6967cat confdefs.h >>conftest.$ac_ext
6968cat >>conftest.$ac_ext <<_ACEOF
6969/* end confdefs.h. */
6970#include <stddef.h>
6971int
6972main ()
6973{
6974static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6975test_array [0] = 0
6976
6977 ;
6978 return 0;
6979}
6980_ACEOF
6981rm -f conftest.$ac_objext
6982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 (eval $ac_try) 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; } &&
6996 { ac_try='test -s conftest.$ac_objext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_hi=$ac_mid; break
7003else
7004 echo "$as_me: failed program was:" >&5
7005sed 's/^/| /' conftest.$ac_ext >&5
7006
7007ac_lo=`expr $ac_mid + 1`
7008 if test $ac_lo -le $ac_mid; then
7009 ac_lo= ac_hi=
7010 break
7011 fi
7012 ac_mid=`expr 2 '*' $ac_mid + 1`
7013fi
7014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7015 done
7016else
7017 echo "$as_me: failed program was:" >&5
7018sed 's/^/| /' conftest.$ac_ext >&5
7019
7020cat >conftest.$ac_ext <<_ACEOF
7021/* confdefs.h. */
7022_ACEOF
7023cat confdefs.h >>conftest.$ac_ext
7024cat >>conftest.$ac_ext <<_ACEOF
7025/* end confdefs.h. */
7026#include <stddef.h>
7027int
7028main ()
7029{
7030static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7031test_array [0] = 0
7032
7033 ;
7034 return 0;
7035}
7036_ACEOF
7037rm -f conftest.$ac_objext
7038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039 (eval $ac_compile) 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_hi=-1 ac_mid=-1
7059 while :; do
7060 cat >conftest.$ac_ext <<_ACEOF
7061/* confdefs.h. */
7062_ACEOF
7063cat confdefs.h >>conftest.$ac_ext
7064cat >>conftest.$ac_ext <<_ACEOF
7065/* end confdefs.h. */
7066#include <stddef.h>
7067int
7068main ()
7069{
7070static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7071test_array [0] = 0
7072
7073 ;
7074 return 0;
7075}
7076_ACEOF
7077rm -f conftest.$ac_objext
7078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079 (eval $ac_compile) 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 (eval $ac_try) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_lo=$ac_mid; break
7099else
7100 echo "$as_me: failed program was:" >&5
7101sed 's/^/| /' conftest.$ac_ext >&5
7102
7103ac_hi=`expr '(' $ac_mid ')' - 1`
7104 if test $ac_mid -le $ac_hi; then
7105 ac_lo= ac_hi=
7106 break
7107 fi
7108 ac_mid=`expr 2 '*' $ac_mid`
7109fi
7110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7111 done
7112else
7113 echo "$as_me: failed program was:" >&5
7114sed 's/^/| /' conftest.$ac_ext >&5
7115
7116ac_lo= ac_hi=
7117fi
7118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119fi
7120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121# Binary search between lo and hi bounds.
7122while test "x$ac_lo" != "x$ac_hi"; do
7123 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7124 cat >conftest.$ac_ext <<_ACEOF
7125/* confdefs.h. */
7126_ACEOF
7127cat confdefs.h >>conftest.$ac_ext
7128cat >>conftest.$ac_ext <<_ACEOF
7129/* end confdefs.h. */
7130#include <stddef.h>
7131int
7132main ()
7133{
7134static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7135test_array [0] = 0
7136
7137 ;
7138 return 0;
7139}
7140_ACEOF
7141rm -f conftest.$ac_objext
7142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try='test -s conftest.$ac_objext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 ac_hi=$ac_mid
7163else
7164 echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167ac_lo=`expr '(' $ac_mid ')' + 1`
7168fi
7169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7170done
7171case $ac_lo in
7172?*) fits_in_uint=$ac_lo;;
7173'') result=? ;;
7174esac
7175else
7176 if test "$cross_compiling" = yes; then
7177 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7178echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7179 { (exit 1); exit 1; }; }
7180else
7181 cat >conftest.$ac_ext <<_ACEOF
7182/* confdefs.h. */
7183_ACEOF
7184cat confdefs.h >>conftest.$ac_ext
7185cat >>conftest.$ac_ext <<_ACEOF
7186/* end confdefs.h. */
7187#include <stddef.h>
7188long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7189unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7190#include <stdio.h>
7191#include <stdlib.h>
7192int
7193main ()
7194{
7195
7196 FILE *f = fopen ("conftest.val", "w");
7197 if (! f)
7198 exit (1);
7199 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7200 {
7201 long i = longval ();
7202 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7203 exit (1);
7204 fprintf (f, "%ld\n", i);
7205 }
7206 else
7207 {
7208 unsigned long i = ulongval ();
7209 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7210 exit (1);
7211 fprintf (f, "%lu\n", i);
7212 }
7213 exit (ferror (f) || fclose (f) != 0);
7214
7215 ;
7216 return 0;
7217}
7218_ACEOF
7219rm -f conftest$ac_exeext
7220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221 (eval $ac_link) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 fits_in_uint=`cat conftest.val`
7231else
7232 echo "$as_me: program exited with status $ac_status" >&5
7233echo "$as_me: failed program was:" >&5
7234sed 's/^/| /' conftest.$ac_ext >&5
7235
7236( exit $ac_status )
7237result=?
7238fi
7239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7240fi
7241fi
7242rm -f conftest.val
7243 if test "$fits_in_uint" = 1; then
7244 cat >conftest.$ac_ext <<_ACEOF
7245/* confdefs.h. */
7246_ACEOF
7247cat confdefs.h >>conftest.$ac_ext
7248cat >>conftest.$ac_ext <<_ACEOF
7249/* end confdefs.h. */
7250#include <stddef.h>
7251 extern size_t foo;
7252 extern unsigned long foo;
7253
7254int
7255main ()
7256{
7257
7258 ;
7259 return 0;
7260}
7261_ACEOF
7262rm -f conftest.$ac_objext
7263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try='test -s conftest.$ac_objext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 fits_in_uint=0
7284else
7285 echo "$as_me: failed program was:" >&5
7286sed 's/^/| /' conftest.$ac_ext >&5
7287
7288fi
7289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7290 fi
7291 if test -z "$result"; then
7292 if test "$fits_in_uint" = 1; then
7293 result="$res_hi$res_lo"U
7294 else
7295 result="$res_hi$res_lo"UL
7296 fi
7297 else
7298 result='~(size_t)0'
7299 fi
7300 fi
7301 echo "$as_me:$LINENO: result: $result" >&5
7302echo "${ECHO_T}$result" >&6
7303 if test "$result" != yes; then
7304
7305cat >>confdefs.h <<_ACEOF
7306#define SIZE_MAX $result
7307_ACEOF
7308
7309 fi
7310
7311
7312
7313
7314for ac_header in stdint.h
7315do
7316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318 echo "$as_me:$LINENO: checking for $ac_header" >&5
7319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322fi
7323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7325else
7326 # Is the header compilable?
7327echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329cat >conftest.$ac_ext <<_ACEOF
7330/* confdefs.h. */
7331_ACEOF
7332cat confdefs.h >>conftest.$ac_ext
7333cat >>conftest.$ac_ext <<_ACEOF
7334/* end confdefs.h. */
7335$ac_includes_default
7336#include <$ac_header>
7337_ACEOF
7338rm -f conftest.$ac_objext
7339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 (eval $ac_try) 2>&5
7350 ac_status=$?
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); }; } &&
7353 { ac_try='test -s conftest.$ac_objext'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; }; then
7359 ac_header_compiler=yes
7360else
7361 echo "$as_me: failed program was:" >&5
7362sed 's/^/| /' conftest.$ac_ext >&5
7363
7364ac_header_compiler=no
7365fi
7366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7368echo "${ECHO_T}$ac_header_compiler" >&6
7369
7370# Is the header present?
7371echo "$as_me:$LINENO: checking $ac_header presence" >&5
7372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7373cat >conftest.$ac_ext <<_ACEOF
7374/* confdefs.h. */
7375_ACEOF
7376cat confdefs.h >>conftest.$ac_ext
7377cat >>conftest.$ac_ext <<_ACEOF
7378/* end confdefs.h. */
7379#include <$ac_header>
7380_ACEOF
7381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7383 ac_status=$?
7384 grep -v '^ *+' conftest.er1 >conftest.err
7385 rm -f conftest.er1
7386 cat conftest.err >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } >/dev/null; then
7389 if test -s conftest.err; then
7390 ac_cpp_err=$ac_c_preproc_warn_flag
7391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7392 else
7393 ac_cpp_err=
7394 fi
7395else
7396 ac_cpp_err=yes
7397fi
7398if test -z "$ac_cpp_err"; then
7399 ac_header_preproc=yes
7400else
7401 echo "$as_me: failed program was:" >&5
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404 ac_header_preproc=no
7405fi
7406rm -f conftest.err conftest.$ac_ext
7407echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7408echo "${ECHO_T}$ac_header_preproc" >&6
7409
7410# So? What about this header?
7411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7412 yes:no: )
7413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7417 ac_header_preproc=yes
7418 ;;
7419 no:yes:* )
7420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7432 (
7433 cat <<\_ASBOX
7434## ------------------------------------------ ##
7435## Report this to the AC_PACKAGE_NAME lists. ##
7436## ------------------------------------------ ##
7437_ASBOX
7438 ) |
7439 sed "s/^/$as_me: WARNING: /" >&2
7440 ;;
7441esac
7442echo "$as_me:$LINENO: checking for $ac_header" >&5
7443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7444if eval "test \"\${$as_ac_Header+set}\" = set"; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447 eval "$as_ac_Header=\$ac_header_preproc"
7448fi
7449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7451
7452fi
7453if test `eval echo '${'$as_ac_Header'}'` = yes; then
7454 cat >>confdefs.h <<_ACEOF
7455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7456_ACEOF
7457
7458fi
7459
7460done
7461
7462
7463
7464 if test "X$prefix" = "XNONE"; then
7465 acl_final_prefix="$ac_default_prefix"
7466 else
7467 acl_final_prefix="$prefix"
7468 fi
7469 if test "X$exec_prefix" = "XNONE"; then
7470 acl_final_exec_prefix='${prefix}'
7471 else
7472 acl_final_exec_prefix="$exec_prefix"
7473 fi
7474 acl_save_prefix="$prefix"
7475 prefix="$acl_final_prefix"
7476 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7477 prefix="$acl_save_prefix"
7478
7479
7480# Check whether --with-gnu-ld or --without-gnu-ld was given.
7481if test "${with_gnu_ld+set}" = set; then
7482 withval="$with_gnu_ld"
7483 test "$withval" = no || with_gnu_ld=yes
7484else
7485 with_gnu_ld=no
7486fi;
7487# Prepare PATH_SEPARATOR.
7488# The user is always right.
7489if test "${PATH_SEPARATOR+set}" != set; then
7490 echo "#! /bin/sh" >conf$$.sh
7491 echo "exit 0" >>conf$$.sh
7492 chmod +x conf$$.sh
7493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7494 PATH_SEPARATOR=';'
7495 else
7496 PATH_SEPARATOR=:
7497 fi
7498 rm -f conf$$.sh
7499fi
7500ac_prog=ld
7501if test "$GCC" = yes; then
7502 # Check if gcc -print-prog-name=ld gives a path.
7503 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7504echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7505 case $host in
7506 *-*-mingw*)
7507 # gcc leaves a trailing carriage return which upsets mingw
7508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7509 *)
7510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7511 esac
7512 case $ac_prog in
7513 # Accept absolute paths.
7514 [\\/]* | [A-Za-z]:[\\/]*)
7515 re_direlt='/[^/][^/]*/\.\./'
7516 # Canonicalize the path of ld
7517 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7518 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7519 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7520 done
7521 test -z "$LD" && LD="$ac_prog"
7522 ;;
7523 "")
7524 # If it fails, then pretend we aren't using GCC.
7525 ac_prog=ld
7526 ;;
7527 *)
7528 # If it is relative, then search for the first ld in PATH.
7529 with_gnu_ld=unknown
7530 ;;
7531 esac
7532elif test "$with_gnu_ld" = yes; then
7533 echo "$as_me:$LINENO: checking for GNU ld" >&5
7534echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7535else
7536 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7537echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7538fi
7539if test "${acl_cv_path_LD+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542 if test -z "$LD"; then
7543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7544 for ac_dir in $PATH; do
7545 test -z "$ac_dir" && ac_dir=.
7546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7547 acl_cv_path_LD="$ac_dir/$ac_prog"
7548 # Check to see if the program is GNU ld. I'd rather use --version,
7549 # but apparently some GNU ld's only accept -v.
7550 # Break only if it was the GNU/non-GNU ld that we prefer.
7551 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7552 *GNU* | *'with BFD'*)
7553 test "$with_gnu_ld" != no && break ;;
7554 *)
7555 test "$with_gnu_ld" != yes && break ;;
7556 esac
7557 fi
7558 done
7559 IFS="$ac_save_ifs"
7560else
7561 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7562fi
7563fi
7564
7565LD="$acl_cv_path_LD"
7566if test -n "$LD"; then
7567 echo "$as_me:$LINENO: result: $LD" >&5
7568echo "${ECHO_T}$LD" >&6
7569else
7570 echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6
7572fi
7573test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7574echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7575 { (exit 1); exit 1; }; }
7576echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7577echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7578if test "${acl_cv_prog_gnu_ld+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7582case `$LD -v 2>&1 </dev/null` in
7583*GNU* | *'with BFD'*)
7584 acl_cv_prog_gnu_ld=yes ;;
7585*)
7586 acl_cv_prog_gnu_ld=no ;;
7587esac
7588fi
7589echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7590echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7591with_gnu_ld=$acl_cv_prog_gnu_ld
7592
7593
7594
7595 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7596echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7597if test "${acl_cv_rpath+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600
7601 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7602 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7603 . ./conftest.sh
7604 rm -f ./conftest.sh
7605 acl_cv_rpath=done
7606
7607fi
7608echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7609echo "${ECHO_T}$acl_cv_rpath" >&6
7610 wl="$acl_cv_wl"
7611 libext="$acl_cv_libext"
7612 shlibext="$acl_cv_shlibext"
7613 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7614 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7615 hardcode_direct="$acl_cv_hardcode_direct"
7616 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7617 # Check whether --enable-rpath or --disable-rpath was given.
7618if test "${enable_rpath+set}" = set; then
7619 enableval="$enable_rpath"
7620 :
7621else
7622 enable_rpath=yes
7623fi;
7624
7625
7626
7627
7628
7629
7630
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007631 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007632
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007633 acl_save_prefix="$prefix"
7634 prefix="$acl_final_prefix"
7635 acl_save_exec_prefix="$exec_prefix"
7636 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007637
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007638 eval additional_includedir=\"$includedir\"
7639 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007640
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007641 exec_prefix="$acl_save_exec_prefix"
7642 prefix="$acl_save_prefix"
7643
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007644
7645# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007646if test "${with_libiconv_prefix+set}" = set; then
7647 withval="$with_libiconv_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007648
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007649 if test "X$withval" = "Xno"; then
7650 use_additional=no
7651 else
7652 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007653
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007654 acl_save_prefix="$prefix"
7655 prefix="$acl_final_prefix"
7656 acl_save_exec_prefix="$exec_prefix"
7657 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007659 eval additional_includedir=\"$includedir\"
7660 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007661
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007662 exec_prefix="$acl_save_exec_prefix"
7663 prefix="$acl_save_prefix"
7664
7665 else
7666 additional_includedir="$withval/include"
7667 additional_libdir="$withval/lib"
7668 fi
7669 fi
7670
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007671fi;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007672 LIBICONV=
7673 LTLIBICONV=
7674 INCICONV=
7675 rpathdirs=
7676 ltrpathdirs=
7677 names_already_handled=
7678 names_next_round='iconv '
7679 while test -n "$names_next_round"; do
7680 names_this_round="$names_next_round"
7681 names_next_round=
7682 for name in $names_this_round; do
7683 already_handled=
7684 for n in $names_already_handled; do
7685 if test "$n" = "$name"; then
7686 already_handled=yes
7687 break
7688 fi
7689 done
7690 if test -z "$already_handled"; then
7691 names_already_handled="$names_already_handled $name"
7692 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7693 eval value=\"\$HAVE_LIB$uppername\"
7694 if test -n "$value"; then
7695 if test "$value" = yes; then
7696 eval value=\"\$LIB$uppername\"
7697 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7698 eval value=\"\$LTLIB$uppername\"
7699 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7700 else
7701 :
7702 fi
7703 else
7704 found_dir=
7705 found_la=
7706 found_so=
7707 found_a=
7708 if test $use_additional = yes; then
7709 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7710 found_dir="$additional_libdir"
7711 found_so="$additional_libdir/lib$name.$shlibext"
7712 if test -f "$additional_libdir/lib$name.la"; then
7713 found_la="$additional_libdir/lib$name.la"
7714 fi
7715 else
7716 if test -f "$additional_libdir/lib$name.$libext"; then
7717 found_dir="$additional_libdir"
7718 found_a="$additional_libdir/lib$name.$libext"
7719 if test -f "$additional_libdir/lib$name.la"; then
7720 found_la="$additional_libdir/lib$name.la"
7721 fi
7722 fi
7723 fi
7724 fi
7725 if test "X$found_dir" = "X"; then
7726 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007728 acl_save_prefix="$prefix"
7729 prefix="$acl_final_prefix"
7730 acl_save_exec_prefix="$exec_prefix"
7731 exec_prefix="$acl_final_exec_prefix"
7732 eval x=\"$x\"
7733 exec_prefix="$acl_save_exec_prefix"
7734 prefix="$acl_save_prefix"
7735
7736 case "$x" in
7737 -L*)
7738 dir=`echo "X$x" | sed -e 's/^X-L//'`
7739 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7740 found_dir="$dir"
7741 found_so="$dir/lib$name.$shlibext"
7742 if test -f "$dir/lib$name.la"; then
7743 found_la="$dir/lib$name.la"
7744 fi
7745 else
7746 if test -f "$dir/lib$name.$libext"; then
7747 found_dir="$dir"
7748 found_a="$dir/lib$name.$libext"
7749 if test -f "$dir/lib$name.la"; then
7750 found_la="$dir/lib$name.la"
7751 fi
7752 fi
7753 fi
7754 ;;
7755 esac
7756 if test "X$found_dir" != "X"; then
7757 break
7758 fi
7759 done
7760 fi
7761 if test "X$found_dir" != "X"; then
7762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7763 if test "X$found_so" != "X"; then
7764 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7766 else
7767 haveit=
7768 for x in $ltrpathdirs; do
7769 if test "X$x" = "X$found_dir"; then
7770 haveit=yes
7771 break
7772 fi
7773 done
7774 if test -z "$haveit"; then
7775 ltrpathdirs="$ltrpathdirs $found_dir"
7776 fi
7777 if test "$hardcode_direct" = yes; then
7778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7779 else
7780 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7782 haveit=
7783 for x in $rpathdirs; do
7784 if test "X$x" = "X$found_dir"; then
7785 haveit=yes
7786 break
7787 fi
7788 done
7789 if test -z "$haveit"; then
7790 rpathdirs="$rpathdirs $found_dir"
7791 fi
7792 else
7793 haveit=
7794 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007795
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007796 acl_save_prefix="$prefix"
7797 prefix="$acl_final_prefix"
7798 acl_save_exec_prefix="$exec_prefix"
7799 exec_prefix="$acl_final_exec_prefix"
7800 eval x=\"$x\"
7801 exec_prefix="$acl_save_exec_prefix"
7802 prefix="$acl_save_prefix"
7803
7804 if test "X$x" = "X-L$found_dir"; then
7805 haveit=yes
7806 break
7807 fi
7808 done
7809 if test -z "$haveit"; then
7810 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7811 fi
7812 if test "$hardcode_minus_L" != no; then
7813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7814 else
7815 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7816 fi
7817 fi
7818 fi
7819 fi
7820 else
7821 if test "X$found_a" != "X"; then
7822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7823 else
7824 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7825 fi
7826 fi
7827 additional_includedir=
7828 case "$found_dir" in
7829 */lib | */lib/)
7830 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7831 additional_includedir="$basedir/include"
7832 ;;
7833 esac
7834 if test "X$additional_includedir" != "X"; then
7835 if test "X$additional_includedir" != "X/usr/include"; then
7836 haveit=
7837 if test "X$additional_includedir" = "X/usr/local/include"; then
7838 if test -n "$GCC"; then
7839 case $host_os in
7840 linux*) haveit=yes;;
7841 esac
7842 fi
7843 fi
7844 if test -z "$haveit"; then
7845 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007846
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007847 acl_save_prefix="$prefix"
7848 prefix="$acl_final_prefix"
7849 acl_save_exec_prefix="$exec_prefix"
7850 exec_prefix="$acl_final_exec_prefix"
7851 eval x=\"$x\"
7852 exec_prefix="$acl_save_exec_prefix"
7853 prefix="$acl_save_prefix"
7854
7855 if test "X$x" = "X-I$additional_includedir"; then
7856 haveit=yes
7857 break
7858 fi
7859 done
7860 if test -z "$haveit"; then
7861 if test -d "$additional_includedir"; then
7862 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7863 fi
7864 fi
7865 fi
7866 fi
7867 fi
7868 if test -n "$found_la"; then
7869 save_libdir="$libdir"
7870 case "$found_la" in
7871 */* | *\\*) . "$found_la" ;;
7872 *) . "./$found_la" ;;
7873 esac
7874 libdir="$save_libdir"
7875 for dep in $dependency_libs; do
7876 case "$dep" in
7877 -L*)
7878 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7879 if test "X$additional_libdir" != "X/usr/lib"; then
7880 haveit=
7881 if test "X$additional_libdir" = "X/usr/local/lib"; then
7882 if test -n "$GCC"; then
7883 case $host_os in
7884 linux*) haveit=yes;;
7885 esac
7886 fi
7887 fi
7888 if test -z "$haveit"; then
7889 haveit=
7890 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007891
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007892 acl_save_prefix="$prefix"
7893 prefix="$acl_final_prefix"
7894 acl_save_exec_prefix="$exec_prefix"
7895 exec_prefix="$acl_final_exec_prefix"
7896 eval x=\"$x\"
7897 exec_prefix="$acl_save_exec_prefix"
7898 prefix="$acl_save_prefix"
7899
7900 if test "X$x" = "X-L$additional_libdir"; then
7901 haveit=yes
7902 break
7903 fi
7904 done
7905 if test -z "$haveit"; then
7906 if test -d "$additional_libdir"; then
7907 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7908 fi
7909 fi
7910 haveit=
7911 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007912
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007913 acl_save_prefix="$prefix"
7914 prefix="$acl_final_prefix"
7915 acl_save_exec_prefix="$exec_prefix"
7916 exec_prefix="$acl_final_exec_prefix"
7917 eval x=\"$x\"
7918 exec_prefix="$acl_save_exec_prefix"
7919 prefix="$acl_save_prefix"
7920
7921 if test "X$x" = "X-L$additional_libdir"; then
7922 haveit=yes
7923 break
7924 fi
7925 done
7926 if test -z "$haveit"; then
7927 if test -d "$additional_libdir"; then
7928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7929 fi
7930 fi
7931 fi
7932 fi
7933 ;;
7934 -R*)
7935 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7936 if test "$enable_rpath" != no; then
7937 haveit=
7938 for x in $rpathdirs; do
7939 if test "X$x" = "X$dir"; then
7940 haveit=yes
7941 break
7942 fi
7943 done
7944 if test -z "$haveit"; then
7945 rpathdirs="$rpathdirs $dir"
7946 fi
7947 haveit=
7948 for x in $ltrpathdirs; do
7949 if test "X$x" = "X$dir"; then
7950 haveit=yes
7951 break
7952 fi
7953 done
7954 if test -z "$haveit"; then
7955 ltrpathdirs="$ltrpathdirs $dir"
7956 fi
7957 fi
7958 ;;
7959 -l*)
7960 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7961 ;;
7962 *.la)
7963 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7964 ;;
7965 *)
7966 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7968 ;;
7969 esac
7970 done
7971 fi
7972 else
7973 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7974 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7975 fi
7976 fi
7977 fi
7978 done
7979 done
7980 if test "X$rpathdirs" != "X"; then
7981 if test -n "$hardcode_libdir_separator"; then
7982 alldirs=
7983 for found_dir in $rpathdirs; do
7984 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7985 done
7986 acl_save_libdir="$libdir"
7987 libdir="$alldirs"
7988 eval flag=\"$hardcode_libdir_flag_spec\"
7989 libdir="$acl_save_libdir"
7990 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7991 else
7992 for found_dir in $rpathdirs; do
7993 acl_save_libdir="$libdir"
7994 libdir="$found_dir"
7995 eval flag=\"$hardcode_libdir_flag_spec\"
7996 libdir="$acl_save_libdir"
7997 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7998 done
7999 fi
8000 fi
8001 if test "X$ltrpathdirs" != "X"; then
8002 for found_dir in $ltrpathdirs; do
8003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8004 done
8005 fi
8006
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008007
8008
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008010
8011
8012
8013
8014 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8015echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8016if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008018else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008019 cat >conftest.$ac_ext <<_ACEOF
8020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
8025$ac_includes_default
8026int
8027main ()
8028{
8029if ((ptrdiff_t *) 0)
8030 return 0;
8031if (sizeof (ptrdiff_t))
8032 return 0;
8033 ;
8034 return 0;
8035}
8036_ACEOF
8037rm -f conftest.$ac_objext
8038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039 (eval $ac_compile) 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 ac_cv_type_ptrdiff_t=yes
8059else
8060 echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008064fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066fi
8067echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8068echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8069if test $ac_cv_type_ptrdiff_t = yes; then
8070 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008071else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008072
8073cat >>confdefs.h <<\_ACEOF
8074#define ptrdiff_t long
8075_ACEOF
8076
8077
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008078fi
8079
8080
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008081
8082
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008083
8084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008085
8086
8087
8088
8089
8090for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008091stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008092do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8094if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095 echo "$as_me:$LINENO: checking for $ac_header" >&5
8096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8097if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008099fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008103 # Is the header compilable?
8104echo "$as_me:$LINENO: checking $ac_header usability" >&5
8105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8106cat >conftest.$ac_ext <<_ACEOF
8107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
8112$ac_includes_default
8113#include <$ac_header>
8114_ACEOF
8115rm -f conftest.$ac_objext
8116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117 (eval $ac_compile) 2>conftest.er1
8118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_header_compiler=yes
8137else
8138 echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008142fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145echo "${ECHO_T}$ac_header_compiler" >&6
8146
8147# Is the header present?
8148echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150cat >conftest.$ac_ext <<_ACEOF
8151/* confdefs.h. */
8152_ACEOF
8153cat confdefs.h >>conftest.$ac_ext
8154cat >>conftest.$ac_ext <<_ACEOF
8155/* end confdefs.h. */
8156#include <$ac_header>
8157_ACEOF
8158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } >/dev/null; then
8166 if test -s conftest.err; then
8167 ac_cpp_err=$ac_c_preproc_warn_flag
8168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8169 else
8170 ac_cpp_err=
8171 fi
8172else
8173 ac_cpp_err=yes
8174fi
8175if test -z "$ac_cpp_err"; then
8176 ac_header_preproc=yes
8177else
8178 echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 ac_header_preproc=no
8182fi
8183rm -f conftest.err conftest.$ac_ext
8184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185echo "${ECHO_T}$ac_header_preproc" >&6
8186
8187# So? What about this header?
8188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8189 yes:no: )
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8194 ac_header_preproc=yes
8195 ;;
8196 no:yes:* )
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8209 (
8210 cat <<\_ASBOX
8211## ------------------------------------------ ##
8212## Report this to the AC_PACKAGE_NAME lists. ##
8213## ------------------------------------------ ##
8214_ASBOX
8215 ) |
8216 sed "s/^/$as_me: WARNING: /" >&2
8217 ;;
8218esac
8219echo "$as_me:$LINENO: checking for $ac_header" >&5
8220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8221if eval "test \"\${$as_ac_Header+set}\" = set"; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223else
8224 eval "$as_ac_Header=\$ac_header_preproc"
8225fi
8226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8228
8229fi
8230if test `eval echo '${'$as_ac_Header'}'` = yes; then
8231 cat >>confdefs.h <<_ACEOF
8232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233_ACEOF
8234
8235fi
8236
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008237done
8238
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8263mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8264strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8265__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008266do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268echo "$as_me:$LINENO: checking for $ac_func" >&5
8269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8270if eval "test \"\${$as_ac_var+set}\" = set"; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008272else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008273 cat >conftest.$ac_ext <<_ACEOF
8274/* confdefs.h. */
8275_ACEOF
8276cat confdefs.h >>conftest.$ac_ext
8277cat >>conftest.$ac_ext <<_ACEOF
8278/* end confdefs.h. */
8279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8281#define $ac_func innocuous_$ac_func
8282
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008283/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008284 which can conflict with char $ac_func (); below.
8285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8286 <limits.h> exists even on freestanding compilers. */
8287
8288#ifdef __STDC__
8289# include <limits.h>
8290#else
8291# include <assert.h>
8292#endif
8293
8294#undef $ac_func
8295
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008296/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008297#ifdef __cplusplus
8298extern "C"
8299{
8300#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008301/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008302 builtin and then its argument prototype would still apply. */
8303char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008304/* The GNU C library defines this for functions which it implements
8305 to always fail with ENOSYS. Some functions are actually named
8306 something starting with __ and the normal name is an alias. */
8307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8308choke me
8309#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008310char (*f) () = $ac_func;
8311#endif
8312#ifdef __cplusplus
8313}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008314#endif
8315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008316int
8317main ()
8318{
8319return f != $ac_func;
8320 ;
8321 return 0;
8322}
8323_ACEOF
8324rm -f conftest.$ac_objext conftest$ac_exeext
8325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try='test -s conftest$ac_exeext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008346else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008347 echo "$as_me: failed program was:" >&5
8348sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008350eval "$as_ac_var=no"
8351fi
8352rm -f conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8354fi
8355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8357if test `eval echo '${'$as_ac_var'}'` = yes; then
8358 cat >>confdefs.h <<_ACEOF
8359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8360_ACEOF
8361
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008362fi
8363done
8364
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008365
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008366
8367 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8368echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8369if test "${ac_cv_have_decl__snprintf+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371else
8372 cat >conftest.$ac_ext <<_ACEOF
8373/* confdefs.h. */
8374_ACEOF
8375cat confdefs.h >>conftest.$ac_ext
8376cat >>conftest.$ac_ext <<_ACEOF
8377/* end confdefs.h. */
8378#include <stdio.h>
8379int
8380main ()
8381{
8382
8383#ifndef _snprintf
8384 char *p = (char *) _snprintf;
8385#endif
8386
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391rm -f conftest.$ac_objext
8392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8393 (eval $ac_compile) 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 (eval $ac_try) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; } &&
8406 { ac_try='test -s conftest.$ac_objext'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 (eval $ac_try) 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; }; then
8412 ac_cv_have_decl__snprintf=yes
8413else
8414 echo "$as_me: failed program was:" >&5
8415sed 's/^/| /' conftest.$ac_ext >&5
8416
8417ac_cv_have_decl__snprintf=no
8418fi
8419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8420fi
8421echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8422echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8423 if test $ac_cv_have_decl__snprintf = yes; then
8424 gt_value=1
8425 else
8426 gt_value=0
8427 fi
8428
8429cat >>confdefs.h <<_ACEOF
8430#define HAVE_DECL__SNPRINTF $gt_value
8431_ACEOF
8432
8433
8434
8435 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8436echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8437if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439else
8440 cat >conftest.$ac_ext <<_ACEOF
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
8446#include <stdio.h>
8447int
8448main ()
8449{
8450
8451#ifndef _snwprintf
8452 char *p = (char *) _snwprintf;
8453#endif
8454
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459rm -f conftest.$ac_objext
8460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461 (eval $ac_compile) 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest.$ac_objext'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_have_decl__snwprintf=yes
8481else
8482 echo "$as_me: failed program was:" >&5
8483sed 's/^/| /' conftest.$ac_ext >&5
8484
8485ac_cv_have_decl__snwprintf=no
8486fi
8487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8488fi
8489echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8490echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8491 if test $ac_cv_have_decl__snwprintf = yes; then
8492 gt_value=1
8493 else
8494 gt_value=0
8495 fi
8496
8497cat >>confdefs.h <<_ACEOF
8498#define HAVE_DECL__SNWPRINTF $gt_value
8499_ACEOF
8500
8501
8502
8503
8504 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8505echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8506if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
8509 cat >conftest.$ac_ext <<_ACEOF
8510/* confdefs.h. */
8511_ACEOF
8512cat confdefs.h >>conftest.$ac_ext
8513cat >>conftest.$ac_ext <<_ACEOF
8514/* end confdefs.h. */
8515#include <stdio.h>
8516int
8517main ()
8518{
8519
8520#ifndef feof_unlocked
8521 char *p = (char *) feof_unlocked;
8522#endif
8523
8524 ;
8525 return 0;
8526}
8527_ACEOF
8528rm -f conftest.$ac_objext
8529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8530 (eval $ac_compile) 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
8537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_cv_have_decl_feof_unlocked=yes
8550else
8551 echo "$as_me: failed program was:" >&5
8552sed 's/^/| /' conftest.$ac_ext >&5
8553
8554ac_cv_have_decl_feof_unlocked=no
8555fi
8556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8557fi
8558echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8559echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8560 if test $ac_cv_have_decl_feof_unlocked = yes; then
8561 gt_value=1
8562 else
8563 gt_value=0
8564 fi
8565
8566cat >>confdefs.h <<_ACEOF
8567#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8568_ACEOF
8569
8570
8571
8572 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8573echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8574if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8576else
8577 cat >conftest.$ac_ext <<_ACEOF
8578/* confdefs.h. */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h. */
8583#include <stdio.h>
8584int
8585main ()
8586{
8587
8588#ifndef fgets_unlocked
8589 char *p = (char *) fgets_unlocked;
8590#endif
8591
8592 ;
8593 return 0;
8594}
8595_ACEOF
8596rm -f conftest.$ac_objext
8597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8598 (eval $ac_compile) 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest.$ac_objext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_have_decl_fgets_unlocked=yes
8618else
8619 echo "$as_me: failed program was:" >&5
8620sed 's/^/| /' conftest.$ac_ext >&5
8621
8622ac_cv_have_decl_fgets_unlocked=no
8623fi
8624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8625fi
8626echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8627echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8628 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8629 gt_value=1
8630 else
8631 gt_value=0
8632 fi
8633
8634cat >>confdefs.h <<_ACEOF
8635#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8636_ACEOF
8637
8638
8639
8640 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8641echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8642if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644else
8645 cat >conftest.$ac_ext <<_ACEOF
8646/* confdefs.h. */
8647_ACEOF
8648cat confdefs.h >>conftest.$ac_ext
8649cat >>conftest.$ac_ext <<_ACEOF
8650/* end confdefs.h. */
8651#include <stdio.h>
8652int
8653main ()
8654{
8655
8656#ifndef getc_unlocked
8657 char *p = (char *) getc_unlocked;
8658#endif
8659
8660 ;
8661 return 0;
8662}
8663_ACEOF
8664rm -f conftest.$ac_objext
8665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>conftest.er1
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 (eval $ac_try) 2>&5
8676 ac_status=$?
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; } &&
8679 { ac_try='test -s conftest.$ac_objext'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 (eval $ac_try) 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 ac_cv_have_decl_getc_unlocked=yes
8686else
8687 echo "$as_me: failed program was:" >&5
8688sed 's/^/| /' conftest.$ac_ext >&5
8689
8690ac_cv_have_decl_getc_unlocked=no
8691fi
8692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8693fi
8694echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8695echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8696 if test $ac_cv_have_decl_getc_unlocked = yes; then
8697 gt_value=1
8698 else
8699 gt_value=0
8700 fi
8701
8702cat >>confdefs.h <<_ACEOF
8703#define HAVE_DECL_GETC_UNLOCKED $gt_value
8704_ACEOF
8705
8706
8707
8708 case $gt_cv_func_printf_posix in
8709 *yes) HAVE_POSIX_PRINTF=1 ;;
8710 *) HAVE_POSIX_PRINTF=0 ;;
8711 esac
8712
8713 if test "$ac_cv_func_asprintf" = yes; then
8714 HAVE_ASPRINTF=1
8715 else
8716 HAVE_ASPRINTF=0
8717 fi
8718
8719 if test "$ac_cv_func_snprintf" = yes; then
8720 HAVE_SNPRINTF=1
8721 else
8722 HAVE_SNPRINTF=0
8723 fi
8724
8725 if test "$ac_cv_func_wprintf" = yes; then
8726 HAVE_WPRINTF=1
8727 else
8728 HAVE_WPRINTF=0
8729 fi
8730
8731
8732
8733
8734
8735
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008736
8737 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008738
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008739 for element in $INCICONV; do
8740 haveit=
8741 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008742
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008743 acl_save_prefix="$prefix"
8744 prefix="$acl_final_prefix"
8745 acl_save_exec_prefix="$exec_prefix"
8746 exec_prefix="$acl_final_exec_prefix"
8747 eval x=\"$x\"
8748 exec_prefix="$acl_save_exec_prefix"
8749 prefix="$acl_save_prefix"
8750
8751 if test "X$x" = "X$element"; then
8752 haveit=yes
8753 break
8754 fi
8755 done
8756 if test -z "$haveit"; then
8757 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8758 fi
8759 done
8760
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008761
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008762 echo "$as_me:$LINENO: checking for iconv" >&5
8763echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8764if test "${am_cv_func_iconv+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008766else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008767
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008768 am_cv_func_iconv="no, consider installing GNU libiconv"
8769 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008770 cat >conftest.$ac_ext <<_ACEOF
8771/* confdefs.h. */
8772_ACEOF
8773cat confdefs.h >>conftest.$ac_ext
8774cat >>conftest.$ac_ext <<_ACEOF
8775/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008776#include <stdlib.h>
8777#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008778int
8779main ()
8780{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008781iconv_t cd = iconv_open("","");
8782 iconv(cd,NULL,NULL,NULL,NULL);
8783 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008784 ;
8785 return 0;
8786}
8787_ACEOF
8788rm -f conftest.$ac_objext conftest$ac_exeext
8789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8790 (eval $ac_link) 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest$ac_exeext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008809 am_cv_func_iconv=yes
8810else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008811 echo "$as_me: failed program was:" >&5
8812sed 's/^/| /' conftest.$ac_ext >&5
8813
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008814fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008815rm -f conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008817 if test "$am_cv_func_iconv" != yes; then
8818 am_save_LIBS="$LIBS"
8819 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008820 cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008826#include <stdlib.h>
8827#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008828int
8829main ()
8830{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008831iconv_t cd = iconv_open("","");
8832 iconv(cd,NULL,NULL,NULL,NULL);
8833 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008834 ;
8835 return 0;
8836}
8837_ACEOF
8838rm -f conftest.$ac_objext conftest$ac_exeext
8839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>conftest.er1
8841 ac_status=$?
8842 grep -v '^ *+' conftest.er1 >conftest.err
8843 rm -f conftest.er1
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; } &&
8853 { ac_try='test -s conftest$ac_exeext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008859 am_cv_lib_iconv=yes
8860 am_cv_func_iconv=yes
8861else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008862 echo "$as_me: failed program was:" >&5
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008865fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008866rm -f conftest.err conftest.$ac_objext \
8867 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008868 LIBS="$am_save_LIBS"
8869 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008870
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008871fi
8872echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8873echo "${ECHO_T}$am_cv_func_iconv" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008874 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008875
8876cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008877#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008878_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008879
8880 fi
8881 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008882 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8883echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8884 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8885echo "${ECHO_T}$LIBICONV" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008886 else
8887 CPPFLAGS="$am_save_CPPFLAGS"
8888 LIBICONV=
8889 LTLIBICONV=
8890 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008891
8892
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008893
8894 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008895 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8896echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8897 if test "${am_cv_proto_iconv+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008899else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008900
8901 cat >conftest.$ac_ext <<_ACEOF
8902/* confdefs.h. */
8903_ACEOF
8904cat confdefs.h >>conftest.$ac_ext
8905cat >>conftest.$ac_ext <<_ACEOF
8906/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008907
8908#include <stdlib.h>
8909#include <iconv.h>
8910extern
8911#ifdef __cplusplus
8912"C"
8913#endif
8914#if defined(__STDC__) || defined(__cplusplus)
8915size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8916#else
8917size_t iconv();
8918#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008919
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008920int
8921main ()
8922{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008923
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008924 ;
8925 return 0;
8926}
8927_ACEOF
8928rm -f conftest.$ac_objext
8929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8930 (eval $ac_compile) 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 (eval $ac_try) 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; } &&
8943 { ac_try='test -s conftest.$ac_objext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008949 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008950else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008951 echo "$as_me: failed program was:" >&5
8952sed 's/^/| /' conftest.$ac_ext >&5
8953
8954am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008955fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008957 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 +00008958fi
8959
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008960 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008961 echo "$as_me:$LINENO: result: ${ac_t:-
8962 }$am_cv_proto_iconv" >&5
8963echo "${ECHO_T}${ac_t:-
8964 }$am_cv_proto_iconv" >&6
8965
8966cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008967#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008968_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008969
8970 fi
8971
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008972
8973 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8974echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8975if test "${am_cv_langinfo_codeset+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008977else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008978 cat >conftest.$ac_ext <<_ACEOF
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008984#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008985int
8986main ()
8987{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008988char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008989 ;
8990 return 0;
8991}
8992_ACEOF
8993rm -f conftest.$ac_objext conftest$ac_exeext
8994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009014 am_cv_langinfo_codeset=yes
9015else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009016 echo "$as_me: failed program was:" >&5
9017sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009018
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009019am_cv_langinfo_codeset=no
9020fi
9021rm -f conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023
9024fi
9025echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9026echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009027 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009028
9029cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009030#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009031_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009032
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009033 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009034
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009035 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009036
9037 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9038echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9039if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009042 cat >conftest.$ac_ext <<_ACEOF
9043/* confdefs.h. */
9044_ACEOF
9045cat confdefs.h >>conftest.$ac_ext
9046cat >>conftest.$ac_ext <<_ACEOF
9047/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009048#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009049int
9050main ()
9051{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009052return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009053 ;
9054 return 0;
9055}
9056_ACEOF
9057rm -f conftest.$ac_objext conftest$ac_exeext
9058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>conftest.er1
9060 ac_status=$?
9061 grep -v '^ *+' conftest.er1 >conftest.err
9062 rm -f conftest.er1
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; } &&
9072 { ac_try='test -s conftest$ac_exeext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009078 am_cv_val_LC_MESSAGES=yes
9079else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009080 echo "$as_me: failed program was:" >&5
9081sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009082
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009083am_cv_val_LC_MESSAGES=no
9084fi
9085rm -f conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9087fi
9088echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9089echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009090 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009091
9092cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009093#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009094_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009095
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009096 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009097
9098 fi
9099
9100 for ac_prog in bison
9101do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009102 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009103set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009104echo "$as_me:$LINENO: checking for $ac_word" >&5
9105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9106if test "${ac_cv_prog_INTLBISON+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009108else
9109 if test -n "$INTLBISON"; then
9110 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9111else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113for as_dir in $PATH
9114do
9115 IFS=$as_save_IFS
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119 ac_cv_prog_INTLBISON="$ac_prog"
9120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 break 2
9122 fi
9123done
9124done
9125
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009126fi
9127fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009128INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009129if test -n "$INTLBISON"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009130 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9131echo "${ECHO_T}$INTLBISON" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009132else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009133 echo "$as_me:$LINENO: result: no" >&5
9134echo "${ECHO_T}no" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009135fi
9136
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009137 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009138done
9139
9140 if test -z "$INTLBISON"; then
9141 ac_verc_fail=yes
9142 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009143 echo "$as_me:$LINENO: checking version of bison" >&5
9144echo $ECHO_N "checking version of bison... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009145 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9146 case $ac_prog_version in
9147 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9148 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9149 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9150 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9151 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009152 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9153echo "${ECHO_T}$ac_prog_version" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009154 fi
9155 if test $ac_verc_fail = yes; then
9156 INTLBISON=:
9157 fi
9158
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009159
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009160
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009161
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009162
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9175echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009176 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009177if test "${enable_nls+set}" = set; then
9178 enableval="$enable_nls"
9179 USE_NLS=$enableval
9180else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009181 USE_NLS=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009182fi;
9183 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9184echo "${ECHO_T}$USE_NLS" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009185
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009187
9188
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009189 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009190 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009191
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009192 LIBINTL=
9193 LTLIBINTL=
9194 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009195
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009196 if test "$USE_NLS" = "yes"; then
9197 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009198
9199 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9200echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9201
9202# Check whether --with-included-gettext or --without-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009203if test "${with_included_gettext+set}" = set; then
9204 withval="$with_included_gettext"
9205 nls_cv_force_use_gnu_gettext=$withval
9206else
9207 nls_cv_force_use_gnu_gettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009208fi;
9209 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9210echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009211
9212 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9213 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009215
9216
9217
9218
9219
9220 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9221echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9222if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009224else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009225 cat >conftest.$ac_ext <<_ACEOF
9226/* confdefs.h. */
9227_ACEOF
9228cat confdefs.h >>conftest.$ac_ext
9229cat >>conftest.$ac_ext <<_ACEOF
9230/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009231#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009232extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009233extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009234int
9235main ()
9236{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009237bindtextdomain ("", "");
9238return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009239 ;
9240 return 0;
9241}
9242_ACEOF
9243rm -f conftest.$ac_objext conftest$ac_exeext
9244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9245 (eval $ac_link) 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; } &&
9258 { ac_try='test -s conftest$ac_exeext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009264 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009265else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266 echo "$as_me: failed program was:" >&5
9267sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009268
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009269gt_cv_func_gnugettext1_libc=no
9270fi
9271rm -f conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273fi
9274echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9275echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009276
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009277 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009278
9279
9280
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009281 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009282
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009283 acl_save_prefix="$prefix"
9284 prefix="$acl_final_prefix"
9285 acl_save_exec_prefix="$exec_prefix"
9286 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009287
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009288 eval additional_includedir=\"$includedir\"
9289 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009290
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009291 exec_prefix="$acl_save_exec_prefix"
9292 prefix="$acl_save_prefix"
9293
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294
9295# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009296if test "${with_libintl_prefix+set}" = set; then
9297 withval="$with_libintl_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009298
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009299 if test "X$withval" = "Xno"; then
9300 use_additional=no
9301 else
9302 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009303
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009304 acl_save_prefix="$prefix"
9305 prefix="$acl_final_prefix"
9306 acl_save_exec_prefix="$exec_prefix"
9307 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009308
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009309 eval additional_includedir=\"$includedir\"
9310 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009311
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009312 exec_prefix="$acl_save_exec_prefix"
9313 prefix="$acl_save_prefix"
9314
9315 else
9316 additional_includedir="$withval/include"
9317 additional_libdir="$withval/lib"
9318 fi
9319 fi
9320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009321fi;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009322 LIBINTL=
9323 LTLIBINTL=
9324 INCINTL=
9325 rpathdirs=
9326 ltrpathdirs=
9327 names_already_handled=
9328 names_next_round='intl '
9329 while test -n "$names_next_round"; do
9330 names_this_round="$names_next_round"
9331 names_next_round=
9332 for name in $names_this_round; do
9333 already_handled=
9334 for n in $names_already_handled; do
9335 if test "$n" = "$name"; then
9336 already_handled=yes
9337 break
9338 fi
9339 done
9340 if test -z "$already_handled"; then
9341 names_already_handled="$names_already_handled $name"
9342 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9343 eval value=\"\$HAVE_LIB$uppername\"
9344 if test -n "$value"; then
9345 if test "$value" = yes; then
9346 eval value=\"\$LIB$uppername\"
9347 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9348 eval value=\"\$LTLIB$uppername\"
9349 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9350 else
9351 :
9352 fi
9353 else
9354 found_dir=
9355 found_la=
9356 found_so=
9357 found_a=
9358 if test $use_additional = yes; then
9359 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9360 found_dir="$additional_libdir"
9361 found_so="$additional_libdir/lib$name.$shlibext"
9362 if test -f "$additional_libdir/lib$name.la"; then
9363 found_la="$additional_libdir/lib$name.la"
9364 fi
9365 else
9366 if test -f "$additional_libdir/lib$name.$libext"; then
9367 found_dir="$additional_libdir"
9368 found_a="$additional_libdir/lib$name.$libext"
9369 if test -f "$additional_libdir/lib$name.la"; then
9370 found_la="$additional_libdir/lib$name.la"
9371 fi
9372 fi
9373 fi
9374 fi
9375 if test "X$found_dir" = "X"; then
9376 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009377
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009378 acl_save_prefix="$prefix"
9379 prefix="$acl_final_prefix"
9380 acl_save_exec_prefix="$exec_prefix"
9381 exec_prefix="$acl_final_exec_prefix"
9382 eval x=\"$x\"
9383 exec_prefix="$acl_save_exec_prefix"
9384 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009385
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009386 case "$x" in
9387 -L*)
9388 dir=`echo "X$x" | sed -e 's/^X-L//'`
9389 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9390 found_dir="$dir"
9391 found_so="$dir/lib$name.$shlibext"
9392 if test -f "$dir/lib$name.la"; then
9393 found_la="$dir/lib$name.la"
9394 fi
9395 else
9396 if test -f "$dir/lib$name.$libext"; then
9397 found_dir="$dir"
9398 found_a="$dir/lib$name.$libext"
9399 if test -f "$dir/lib$name.la"; then
9400 found_la="$dir/lib$name.la"
9401 fi
9402 fi
9403 fi
9404 ;;
9405 esac
9406 if test "X$found_dir" != "X"; then
9407 break
9408 fi
9409 done
9410 fi
9411 if test "X$found_dir" != "X"; then
9412 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9413 if test "X$found_so" != "X"; then
9414 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9416 else
9417 haveit=
9418 for x in $ltrpathdirs; do
9419 if test "X$x" = "X$found_dir"; then
9420 haveit=yes
9421 break
9422 fi
9423 done
9424 if test -z "$haveit"; then
9425 ltrpathdirs="$ltrpathdirs $found_dir"
9426 fi
9427 if test "$hardcode_direct" = yes; then
9428 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9429 else
9430 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9431 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9432 haveit=
9433 for x in $rpathdirs; do
9434 if test "X$x" = "X$found_dir"; then
9435 haveit=yes
9436 break
9437 fi
9438 done
9439 if test -z "$haveit"; then
9440 rpathdirs="$rpathdirs $found_dir"
9441 fi
9442 else
9443 haveit=
9444 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009445
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009446 acl_save_prefix="$prefix"
9447 prefix="$acl_final_prefix"
9448 acl_save_exec_prefix="$exec_prefix"
9449 exec_prefix="$acl_final_exec_prefix"
9450 eval x=\"$x\"
9451 exec_prefix="$acl_save_exec_prefix"
9452 prefix="$acl_save_prefix"
9453
9454 if test "X$x" = "X-L$found_dir"; then
9455 haveit=yes
9456 break
9457 fi
9458 done
9459 if test -z "$haveit"; then
9460 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9461 fi
9462 if test "$hardcode_minus_L" != no; then
9463 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9464 else
9465 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9466 fi
9467 fi
9468 fi
9469 fi
9470 else
9471 if test "X$found_a" != "X"; then
9472 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9473 else
9474 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9475 fi
9476 fi
9477 additional_includedir=
9478 case "$found_dir" in
9479 */lib | */lib/)
9480 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9481 additional_includedir="$basedir/include"
9482 ;;
9483 esac
9484 if test "X$additional_includedir" != "X"; then
9485 if test "X$additional_includedir" != "X/usr/include"; then
9486 haveit=
9487 if test "X$additional_includedir" = "X/usr/local/include"; then
9488 if test -n "$GCC"; then
9489 case $host_os in
9490 linux*) haveit=yes;;
9491 esac
9492 fi
9493 fi
9494 if test -z "$haveit"; then
9495 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009496
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009497 acl_save_prefix="$prefix"
9498 prefix="$acl_final_prefix"
9499 acl_save_exec_prefix="$exec_prefix"
9500 exec_prefix="$acl_final_exec_prefix"
9501 eval x=\"$x\"
9502 exec_prefix="$acl_save_exec_prefix"
9503 prefix="$acl_save_prefix"
9504
9505 if test "X$x" = "X-I$additional_includedir"; then
9506 haveit=yes
9507 break
9508 fi
9509 done
9510 if test -z "$haveit"; then
9511 if test -d "$additional_includedir"; then
9512 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9513 fi
9514 fi
9515 fi
9516 fi
9517 fi
9518 if test -n "$found_la"; then
9519 save_libdir="$libdir"
9520 case "$found_la" in
9521 */* | *\\*) . "$found_la" ;;
9522 *) . "./$found_la" ;;
9523 esac
9524 libdir="$save_libdir"
9525 for dep in $dependency_libs; do
9526 case "$dep" in
9527 -L*)
9528 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9529 if test "X$additional_libdir" != "X/usr/lib"; then
9530 haveit=
9531 if test "X$additional_libdir" = "X/usr/local/lib"; then
9532 if test -n "$GCC"; then
9533 case $host_os in
9534 linux*) haveit=yes;;
9535 esac
9536 fi
9537 fi
9538 if test -z "$haveit"; then
9539 haveit=
9540 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009541
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009542 acl_save_prefix="$prefix"
9543 prefix="$acl_final_prefix"
9544 acl_save_exec_prefix="$exec_prefix"
9545 exec_prefix="$acl_final_exec_prefix"
9546 eval x=\"$x\"
9547 exec_prefix="$acl_save_exec_prefix"
9548 prefix="$acl_save_prefix"
9549
9550 if test "X$x" = "X-L$additional_libdir"; then
9551 haveit=yes
9552 break
9553 fi
9554 done
9555 if test -z "$haveit"; then
9556 if test -d "$additional_libdir"; then
9557 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9558 fi
9559 fi
9560 haveit=
9561 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009562
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009563 acl_save_prefix="$prefix"
9564 prefix="$acl_final_prefix"
9565 acl_save_exec_prefix="$exec_prefix"
9566 exec_prefix="$acl_final_exec_prefix"
9567 eval x=\"$x\"
9568 exec_prefix="$acl_save_exec_prefix"
9569 prefix="$acl_save_prefix"
9570
9571 if test "X$x" = "X-L$additional_libdir"; then
9572 haveit=yes
9573 break
9574 fi
9575 done
9576 if test -z "$haveit"; then
9577 if test -d "$additional_libdir"; then
9578 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9579 fi
9580 fi
9581 fi
9582 fi
9583 ;;
9584 -R*)
9585 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9586 if test "$enable_rpath" != no; then
9587 haveit=
9588 for x in $rpathdirs; do
9589 if test "X$x" = "X$dir"; then
9590 haveit=yes
9591 break
9592 fi
9593 done
9594 if test -z "$haveit"; then
9595 rpathdirs="$rpathdirs $dir"
9596 fi
9597 haveit=
9598 for x in $ltrpathdirs; do
9599 if test "X$x" = "X$dir"; then
9600 haveit=yes
9601 break
9602 fi
9603 done
9604 if test -z "$haveit"; then
9605 ltrpathdirs="$ltrpathdirs $dir"
9606 fi
9607 fi
9608 ;;
9609 -l*)
9610 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9611 ;;
9612 *.la)
9613 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9614 ;;
9615 *)
9616 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9618 ;;
9619 esac
9620 done
9621 fi
9622 else
9623 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9625 fi
9626 fi
9627 fi
9628 done
9629 done
9630 if test "X$rpathdirs" != "X"; then
9631 if test -n "$hardcode_libdir_separator"; then
9632 alldirs=
9633 for found_dir in $rpathdirs; do
9634 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9635 done
9636 acl_save_libdir="$libdir"
9637 libdir="$alldirs"
9638 eval flag=\"$hardcode_libdir_flag_spec\"
9639 libdir="$acl_save_libdir"
9640 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9641 else
9642 for found_dir in $rpathdirs; do
9643 acl_save_libdir="$libdir"
9644 libdir="$found_dir"
9645 eval flag=\"$hardcode_libdir_flag_spec\"
9646 libdir="$acl_save_libdir"
9647 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9648 done
9649 fi
9650 fi
9651 if test "X$ltrpathdirs" != "X"; then
9652 for found_dir in $ltrpathdirs; do
9653 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9654 done
9655 fi
9656
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009657 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9658echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9659if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009661else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009662 gt_save_CPPFLAGS="$CPPFLAGS"
9663 CPPFLAGS="$CPPFLAGS $INCINTL"
9664 gt_save_LIBS="$LIBS"
9665 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009666 cat >conftest.$ac_ext <<_ACEOF
9667/* confdefs.h. */
9668_ACEOF
9669cat confdefs.h >>conftest.$ac_ext
9670cat >>conftest.$ac_ext <<_ACEOF
9671/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009672#include <libintl.h>
9673extern int _nl_msg_cat_cntr;
9674extern
9675#ifdef __cplusplus
9676"C"
9677#endif
9678const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009679int
9680main ()
9681{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009682bindtextdomain ("", "");
9683return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009684 ;
9685 return 0;
9686}
9687_ACEOF
9688rm -f conftest.$ac_objext conftest$ac_exeext
9689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9690 (eval $ac_link) 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009709 gt_cv_func_gnugettext1_libintl=yes
9710else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009711 echo "$as_me: failed program was:" >&5
9712sed 's/^/| /' conftest.$ac_ext >&5
9713
9714gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009715fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009716rm -f conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009718 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9719 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009720 cat >conftest.$ac_ext <<_ACEOF
9721/* confdefs.h. */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009726#include <libintl.h>
9727extern int _nl_msg_cat_cntr;
9728extern
9729#ifdef __cplusplus
9730"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009731#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009732const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009733int
9734main ()
9735{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009736bindtextdomain ("", "");
9737return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
9743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009763 LIBINTL="$LIBINTL $LIBICONV"
9764 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9765 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009766
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009767else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009768 echo "$as_me: failed program was:" >&5
9769sed 's/^/| /' conftest.$ac_ext >&5
9770
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009771fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772rm -f conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009774 fi
9775 CPPFLAGS="$gt_save_CPPFLAGS"
9776 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009777fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009778echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9779echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009780 fi
9781
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009782 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9783 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009784 && test "$PACKAGE" != gettext-runtime \
9785 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009786 gt_use_preinstalled_gnugettext=yes
9787 else
9788 LIBINTL=
9789 LTLIBINTL=
9790 INCINTL=
9791 fi
9792
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009793
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009794 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9795 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009796 fi
9797 fi
9798
9799 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009800 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009801 USE_INCLUDED_LIBINTL=yes
9802 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9803 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9804 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009805 fi
9806
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009807 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9808 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9809 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009810 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009811
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009812
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009813 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9814 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009815
9816cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009817#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009818_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009819
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009820 else
9821 USE_NLS=no
9822 fi
9823 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009824
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009825 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9826echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9827 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9828echo "${ECHO_T}$USE_NLS" >&6
9829 if test "$USE_NLS" = "yes"; then
9830 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9831echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9832 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9833 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9834 gt_source="external libintl"
9835 else
9836 gt_source="libc"
9837 fi
9838 else
9839 gt_source="included intl directory"
9840 fi
9841 echo "$as_me:$LINENO: result: $gt_source" >&5
9842echo "${ECHO_T}$gt_source" >&6
9843 fi
9844
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009845 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009846
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009847 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9848 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009849 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9850echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9851 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9852echo "${ECHO_T}$LIBINTL" >&6
9853
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009854 for element in $INCINTL; do
9855 haveit=
9856 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009857
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009858 acl_save_prefix="$prefix"
9859 prefix="$acl_final_prefix"
9860 acl_save_exec_prefix="$exec_prefix"
9861 exec_prefix="$acl_final_exec_prefix"
9862 eval x=\"$x\"
9863 exec_prefix="$acl_save_exec_prefix"
9864 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009865
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009866 if test "X$x" = "X$element"; then
9867 haveit=yes
9868 break
9869 fi
9870 done
9871 if test -z "$haveit"; then
9872 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9873 fi
9874 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009875
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009876 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009877
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009878
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009879cat >>confdefs.h <<\_ACEOF
9880#define HAVE_GETTEXT 1
9881_ACEOF
9882
9883
9884cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009885#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009886_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009887
9888 fi
9889
9890 POSUB=po
9891 fi
9892
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009893
9894 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009895 BUILD_INCLUDED_LIBINTL=yes
9896 fi
9897
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009898
9899
9900
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009901
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009902 nls_cv_header_intl=
9903 nls_cv_header_libgt=
9904
9905 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009906
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009907
9908 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009909
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009910
9911 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009912
9913
9914 if test "$USE_INCLUDED_LIBINTL" = yes; then
9915 INTLOBJS="\$(GETTOBJS)"
9916 fi
9917
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009918
9919 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009920
9921
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009922
9923 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009924
9925
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009926
9927
9928
9929
9930
9931echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9932echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9933set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9934if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009936else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009937 cat >conftest.make <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009938all:
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009939 @echo 'ac_maketemp="$(MAKE)"'
9940_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009941# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009942eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009943if test -n "$ac_maketemp"; then
9944 eval ac_cv_prog_make_${ac_make}_set=yes
9945else
9946 eval ac_cv_prog_make_${ac_make}_set=no
9947fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009948rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009949fi
9950if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009951 echo "$as_me:$LINENO: result: yes" >&5
9952echo "${ECHO_T}yes" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009953 SET_MAKE=
9954else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009955 echo "$as_me:$LINENO: result: no" >&5
9956echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009957 SET_MAKE="MAKE=${MAKE-make}"
9958fi
9959
9960# Extract the first word of "ln", so it can be a program name with args.
9961set dummy ln; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009962echo "$as_me:$LINENO: checking for $ac_word" >&5
9963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9964if test "${ac_cv_path_LN+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009966else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009967 case $LN in
9968 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009969 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9970 ;;
9971 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973for as_dir in $PATH
9974do
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 break 2
9982 fi
9983done
9984done
9985
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009986 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9987 ;;
9988esac
9989fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009990LN=$ac_cv_path_LN
9991
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009992if test -n "$LN"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009993 echo "$as_me:$LINENO: result: $LN" >&5
9994echo "${ECHO_T}$LN" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009995else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009996 echo "$as_me:$LINENO: result: no" >&5
9997echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009998fi
9999
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010000echo "$as_me:$LINENO: checking whether ln -s works" >&5
10001echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10002LN_S=$as_ln_s
10003if test "$LN_S" = "ln -s"; then
10004 echo "$as_me:$LINENO: result: yes" >&5
10005echo "${ECHO_T}yes" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010006else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010007 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10008echo "${ECHO_T}no, using $LN_S" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010009fi
10010
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010011# Extract the first word of "mv", so it can be a program name with args.
10012set dummy mv; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010013echo "$as_me:$LINENO: checking for $ac_word" >&5
10014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10015if test "${ac_cv_path_MV+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010018 case $MV in
10019 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010020 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10021 ;;
10022 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024for as_dir in $PATH
10025do
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10030 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10033 fi
10034done
10035done
10036
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010037 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10038 ;;
10039esac
10040fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010041MV=$ac_cv_path_MV
10042
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010043if test -n "$MV"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010044 echo "$as_me:$LINENO: result: $MV" >&5
10045echo "${ECHO_T}$MV" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010046else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010047 echo "$as_me:$LINENO: result: no" >&5
10048echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010049fi
10050
10051# Extract the first word of "cp", so it can be a program name with args.
10052set dummy cp; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010053echo "$as_me:$LINENO: checking for $ac_word" >&5
10054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10055if test "${ac_cv_path_CP+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010058 case $CP in
10059 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010060 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10061 ;;
10062 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064for as_dir in $PATH
10065do
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10073 fi
10074done
10075done
10076
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010077 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10078 ;;
10079esac
10080fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010081CP=$ac_cv_path_CP
10082
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010083if test -n "$CP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010084 echo "$as_me:$LINENO: result: $CP" >&5
10085echo "${ECHO_T}$CP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010086else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010087 echo "$as_me:$LINENO: result: no" >&5
10088echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010089fi
10090
10091# Extract the first word of "rm", so it can be a program name with args.
10092set dummy rm; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010093echo "$as_me:$LINENO: checking for $ac_word" >&5
10094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10095if test "${ac_cv_path_RM+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010098 case $RM in
10099 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010100 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10101 ;;
10102 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104for as_dir in $PATH
10105do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10113 fi
10114done
10115done
10116
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010117 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10118 ;;
10119esac
10120fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010121RM=$ac_cv_path_RM
10122
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010123if test -n "$RM"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010124 echo "$as_me:$LINENO: result: $RM" >&5
10125echo "${ECHO_T}$RM" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010126else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010127 echo "$as_me:$LINENO: result: no" >&5
10128echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010129fi
10130
10131# Extract the first word of "chmod", so it can be a program name with args.
10132set dummy chmod; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010133echo "$as_me:$LINENO: checking for $ac_word" >&5
10134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10135if test "${ac_cv_path_CHMOD+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010137else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010138 case $CHMOD in
10139 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010140 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10141 ;;
10142 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144for as_dir in $PATH
10145do
10146 IFS=$as_save_IFS
10147 test -z "$as_dir" && as_dir=.
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10150 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10152 break 2
10153 fi
10154done
10155done
10156
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010157 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10158 ;;
10159esac
10160fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010161CHMOD=$ac_cv_path_CHMOD
10162
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010163if test -n "$CHMOD"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010164 echo "$as_me:$LINENO: result: $CHMOD" >&5
10165echo "${ECHO_T}$CHMOD" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010166else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010169fi
10170
Theodore Ts'o32237012005-01-17 19:13:39 -050010171for ac_prog in gawk mawk nawk awk
10172do
10173 # Extract the first word of "$ac_prog", so it can be a program name with args.
10174set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010175echo "$as_me:$LINENO: checking for $ac_word" >&5
10176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050010177if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010178 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010179else
Theodore Ts'o32237012005-01-17 19:13:39 -050010180 if test -n "$AWK"; then
10181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10182else
10183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010184for as_dir in $PATH
10185do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010190 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194done
10195done
10196
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010197fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010198fi
10199AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010200if test -n "$AWK"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010201 echo "$as_me:$LINENO: result: $AWK" >&5
10202echo "${ECHO_T}$AWK" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010203else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010204 echo "$as_me:$LINENO: result: no" >&5
10205echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010206fi
10207
Theodore Ts'o32237012005-01-17 19:13:39 -050010208 test -n "$AWK" && break
10209done
10210
10211echo "$as_me:$LINENO: checking for egrep" >&5
10212echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10213if test "${ac_cv_prog_egrep+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10217 then ac_cv_prog_egrep='grep -E'
10218 else ac_cv_prog_egrep='egrep'
10219 fi
10220fi
10221echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10222echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10223 EGREP=$ac_cv_prog_egrep
10224
10225
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010226# Extract the first word of "sed", so it can be a program name with args.
10227set dummy sed; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010228echo "$as_me:$LINENO: checking for $ac_word" >&5
10229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10230if test "${ac_cv_path_SED+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010233 case $SED in
10234 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010235 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10236 ;;
10237 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239for as_dir in $PATH
10240do
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10245 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 break 2
10248 fi
10249done
10250done
10251
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010252 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10253 ;;
10254esac
10255fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010256SED=$ac_cv_path_SED
10257
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010258if test -n "$SED"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010259 echo "$as_me:$LINENO: result: $SED" >&5
10260echo "${ECHO_T}$SED" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010261else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010262 echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010264fi
10265
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010266# Extract the first word of "perl", so it can be a program name with args.
10267set dummy perl; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010268echo "$as_me:$LINENO: checking for $ac_word" >&5
10269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10270if test "${ac_cv_path_PERL+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010272else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010273 case $PERL in
10274 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010275 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10276 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010277 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279for as_dir in $PATH
10280do
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 break 2
10288 fi
10289done
10290done
10291
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010292 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10293 ;;
10294esac
10295fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010296PERL=$ac_cv_path_PERL
10297
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010298if test -n "$PERL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010299 echo "$as_me:$LINENO: result: $PERL" >&5
10300echo "${ECHO_T}$PERL" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010301else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010302 echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010304fi
10305
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010306# Extract the first word of "ldconfig", so it can be a program name with args.
10307set dummy ldconfig; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010308echo "$as_me:$LINENO: checking for $ac_word" >&5
10309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10310if test "${ac_cv_path_LDCONFIG+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010312else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010313 case $LDCONFIG in
10314 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010315 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10316 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010317 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319for as_dir in $PATH
10320do
10321 IFS=$as_save_IFS
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 break 2
10328 fi
10329done
10330done
10331
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010332 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10333 ;;
10334esac
10335fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010336LDCONFIG=$ac_cv_path_LDCONFIG
10337
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010338if test -n "$LDCONFIG"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010339 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10340echo "${ECHO_T}$LDCONFIG" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010341else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010342 echo "$as_me:$LINENO: result: no" >&5
10343echo "${ECHO_T}no" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010344fi
10345
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010346if test -n "$ac_tool_prefix"; then
10347 # 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 +000010348set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010349echo "$as_me:$LINENO: checking for $ac_word" >&5
10350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10351if test "${ac_cv_prog_AR+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010353else
10354 if test -n "$AR"; then
10355 ac_cv_prog_AR="$AR" # Let the user override the test.
10356else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358for as_dir in $PATH
10359do
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_prog_AR="${ac_tool_prefix}ar"
10365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10367 fi
10368done
10369done
10370
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010371fi
10372fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010373AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010374if test -n "$AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010375 echo "$as_me:$LINENO: result: $AR" >&5
10376echo "${ECHO_T}$AR" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010377else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010378 echo "$as_me:$LINENO: result: no" >&5
10379echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010380fi
10381
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010382fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010383if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010384 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010385 # Extract the first word of "ar", so it can be a program name with args.
10386set dummy ar; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010387echo "$as_me:$LINENO: checking for $ac_word" >&5
10388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010391else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010392 if test -n "$ac_ct_AR"; then
10393 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010394else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_ac_ct_AR="ar"
10403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406done
10407done
10408
10409 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010410fi
10411fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010412ac_ct_AR=$ac_cv_prog_ac_ct_AR
10413if test -n "$ac_ct_AR"; then
10414 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10415echo "${ECHO_T}$ac_ct_AR" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010416else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010417 echo "$as_me:$LINENO: result: no" >&5
10418echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010419fi
10420
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010421 AR=$ac_ct_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010422else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010423 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010424fi
10425
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010426if test -n "$ac_tool_prefix"; then
10427 # 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 +000010428set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010429echo "$as_me:$LINENO: checking for $ac_word" >&5
10430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10431if test "${ac_cv_prog_RANLIB+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010433else
10434 if test -n "$RANLIB"; then
10435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10436else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438for as_dir in $PATH
10439do
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10447 fi
10448done
10449done
10450
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010451fi
10452fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010453RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010454if test -n "$RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010455 echo "$as_me:$LINENO: result: $RANLIB" >&5
10456echo "${ECHO_T}$RANLIB" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010457else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010458 echo "$as_me:$LINENO: result: no" >&5
10459echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010460fi
10461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010462fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010463if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010464 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010465 # Extract the first word of "ranlib", so it can be a program name with args.
10466set dummy ranlib; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010467echo "$as_me:$LINENO: checking for $ac_word" >&5
10468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10469if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010471else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010472 if test -n "$ac_ct_RANLIB"; then
10473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010474else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476for as_dir in $PATH
10477do
10478 IFS=$as_save_IFS
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_prog_ac_ct_RANLIB="ranlib"
10483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10484 break 2
10485 fi
10486done
10487done
10488
10489 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010490fi
10491fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010492ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10493if test -n "$ac_ct_RANLIB"; then
10494 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10495echo "${ECHO_T}$ac_ct_RANLIB" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010496else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010497 echo "$as_me:$LINENO: result: no" >&5
10498echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010499fi
10500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010501 RANLIB=$ac_ct_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010502else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010503 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010504fi
10505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010506if test -n "$ac_tool_prefix"; then
10507 # 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 +000010508set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010509echo "$as_me:$LINENO: checking for $ac_word" >&5
10510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10511if test "${ac_cv_prog_STRIP+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010513else
10514 if test -n "$STRIP"; then
10515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10516else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518for as_dir in $PATH
10519do
10520 IFS=$as_save_IFS
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10524 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10526 break 2
10527 fi
10528done
10529done
10530
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010531fi
10532fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010533STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010534if test -n "$STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010535 echo "$as_me:$LINENO: result: $STRIP" >&5
10536echo "${ECHO_T}$STRIP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010537else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010538 echo "$as_me:$LINENO: result: no" >&5
10539echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010540fi
10541
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010542fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010543if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010544 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010545 # Extract the first word of "strip", so it can be a program name with args.
10546set dummy strip; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010547echo "$as_me:$LINENO: checking for $ac_word" >&5
10548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10549if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010552 if test -n "$ac_ct_STRIP"; then
10553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010554else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556for as_dir in $PATH
10557do
10558 IFS=$as_save_IFS
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562 ac_cv_prog_ac_ct_STRIP="strip"
10563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10564 break 2
10565 fi
10566done
10567done
10568
10569 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010570fi
10571fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010572ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10573if test -n "$ac_ct_STRIP"; then
10574 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10575echo "${ECHO_T}$ac_ct_STRIP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010576else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577 echo "$as_me:$LINENO: result: no" >&5
10578echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010579fi
10580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010581 STRIP=$ac_ct_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010582else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010583 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010584fi
10585
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010586# Find a good install program. We prefer a C program (faster),
10587# so one script is as good as another. But avoid the broken or
10588# incompatible versions:
10589# SysV /etc/install, /usr/sbin/install
10590# SunOS /usr/etc/install
10591# IRIX /sbin/install
10592# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010593# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000010594# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010595# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10596# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010598# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010599echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10600echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010601if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010602if test "${ac_cv_path_install+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010604else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $PATH
10607do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
10610 # Account for people who put trailing slashes in PATH elements.
10611case $as_dir/ in
10612 ./ | .// | /cC/* | \
10613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10614 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10615 /usr/ucb/* ) ;;
10616 *)
10617 # OSF1 and SCO ODT 3.0 have their own names for install.
10618 # Don't use installbsd from OSF since it installs stuff as root
10619 # by default.
10620 for ac_prog in ginstall scoinst install; do
10621 for ac_exec_ext in '' $ac_executable_extensions; do
10622 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010623 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010625 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010626 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010627 elif test $ac_prog = install &&
10628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10629 # program-specific install script used by HP pwplus--don't use.
10630 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010631 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010632 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10633 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010634 fi
10635 fi
10636 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010637 done
10638 ;;
10639esac
10640done
10641
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010642
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010643fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010644 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010645 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010646 else
10647 # As a last resort, use the slow shell script. We don't cache a
10648 # path for INSTALL within a source directory, because that will
10649 # break other packages using the cache if that directory is
10650 # removed, or if the path is relative.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010651 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010652 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010653fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010654echo "$as_me:$LINENO: result: $INSTALL" >&5
10655echo "${ECHO_T}$INSTALL" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010656
10657# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10658# It thinks the first close brace ends the variable substitution.
10659test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010661test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000010662
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010663test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10664
Theodore Ts'o6c133521999-07-03 20:37:03 +000010665# See if we need a separate native compiler.
10666if test $cross_compiling = no; then
10667 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010668
Theodore Ts'o6c133521999-07-03 20:37:03 +000010669else
10670 for ac_prog in gcc cc
10671do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010672 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010673set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010674echo "$as_me:$LINENO: checking for $ac_word" >&5
10675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10676if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010678else
10679 if test -n "$BUILD_CC"; then
10680 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10681else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010684do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010685 IFS=$as_save_IFS
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689 ac_cv_prog_BUILD_CC="$ac_prog"
10690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 break 2
10692 fi
10693done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010694done
10695
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010696fi
10697fi
10698BUILD_CC=$ac_cv_prog_BUILD_CC
10699if test -n "$BUILD_CC"; then
10700 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10701echo "${ECHO_T}$BUILD_CC" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010702else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010703 echo "$as_me:$LINENO: result: no" >&5
10704echo "${ECHO_T}no" >&6
10705fi
10706
10707 test -n "$BUILD_CC" && break
10708done
10709
10710fi
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010740for ac_header in stdlib.h unistd.h stdarg.h stdint.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/queue.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_dl.h netinet/in.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010741do
10742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10743if eval "test \"\${$as_ac_Header+set}\" = set"; then
10744 echo "$as_me:$LINENO: checking for $ac_header" >&5
10745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10746if eval "test \"\${$as_ac_Header+set}\" = set"; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748fi
10749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10751else
10752 # Is the header compilable?
10753echo "$as_me:$LINENO: checking $ac_header usability" >&5
10754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10755cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761$ac_includes_default
10762#include <$ac_header>
10763_ACEOF
10764rm -f conftest.$ac_objext
10765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10766 (eval $ac_compile) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try='test -s conftest.$ac_objext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 ac_header_compiler=yes
10786else
10787 echo "$as_me: failed program was:" >&5
10788sed 's/^/| /' conftest.$ac_ext >&5
10789
10790ac_header_compiler=no
10791fi
10792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10794echo "${ECHO_T}$ac_header_compiler" >&6
10795
10796# Is the header present?
10797echo "$as_me:$LINENO: checking $ac_header presence" >&5
10798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10799cat >conftest.$ac_ext <<_ACEOF
10800/* confdefs.h. */
10801_ACEOF
10802cat confdefs.h >>conftest.$ac_ext
10803cat >>conftest.$ac_ext <<_ACEOF
10804/* end confdefs.h. */
10805#include <$ac_header>
10806_ACEOF
10807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10818 else
10819 ac_cpp_err=
10820 fi
10821else
10822 ac_cpp_err=yes
10823fi
10824if test -z "$ac_cpp_err"; then
10825 ac_header_preproc=yes
10826else
10827 echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_header_preproc=no
10831fi
10832rm -f conftest.err conftest.$ac_ext
10833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10834echo "${ECHO_T}$ac_header_preproc" >&6
10835
10836# So? What about this header?
10837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10838 yes:no: )
10839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10842echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10843 ac_header_preproc=yes
10844 ;;
10845 no:yes:* )
10846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10849echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10851echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10853echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10857echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10858 (
10859 cat <<\_ASBOX
10860## ------------------------------------------ ##
10861## Report this to the AC_PACKAGE_NAME lists. ##
10862## ------------------------------------------ ##
10863_ASBOX
10864 ) |
10865 sed "s/^/$as_me: WARNING: /" >&2
10866 ;;
10867esac
10868echo "$as_me:$LINENO: checking for $ac_header" >&5
10869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10870if eval "test \"\${$as_ac_Header+set}\" = set"; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872else
10873 eval "$as_ac_Header=\$ac_header_preproc"
10874fi
10875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10877
10878fi
10879if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882_ACEOF
10883
10884fi
10885
10886done
10887
10888
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010889
10890for ac_header in sys/disk.h sys/mount.h
10891do
10892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10893echo "$as_me:$LINENO: checking for $ac_header" >&5
10894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10895if eval "test \"\${$as_ac_Header+set}\" = set"; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10897else
10898 cat >conftest.$ac_ext <<_ACEOF
10899/* confdefs.h. */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h. */
10904
10905#if HAVE_SYS_QUEUE_H
10906#include <sys/queue.h>
10907#endif
10908
10909
10910#include <$ac_header>
10911_ACEOF
10912rm -f conftest.$ac_objext
10913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914 (eval $ac_compile) 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest.$ac_objext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 eval "$as_ac_Header=yes"
10934else
10935 echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
10937
10938eval "$as_ac_Header=no"
10939fi
10940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10941fi
10942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10944if test `eval echo '${'$as_ac_Header'}'` = yes; then
10945 cat >>confdefs.h <<_ACEOF
10946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10947_ACEOF
10948
10949fi
10950
10951done
10952
10953
10954for ac_header in net/if.h
10955do
10956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10957echo "$as_me:$LINENO: checking for $ac_header" >&5
10958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10959if eval "test \"\${$as_ac_Header+set}\" = set"; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962 cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h. */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h. */
10968
10969#if HAVE_SYS_TYPES_H
10970#include <sys/types.h>
10971#endif
10972#if HAVE_SYS_SOCKET
10973#include <sys/socket.h>
10974#endif
10975
10976
10977#include <$ac_header>
10978_ACEOF
10979rm -f conftest.$ac_objext
10980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10981 (eval $ac_compile) 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest.$ac_objext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 eval "$as_ac_Header=yes"
11001else
11002 echo "$as_me: failed program was:" >&5
11003sed 's/^/| /' conftest.$ac_ext >&5
11004
11005eval "$as_ac_Header=no"
11006fi
11007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11008fi
11009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11011if test `eval echo '${'$as_ac_Header'}'` = yes; then
11012 cat >>confdefs.h <<_ACEOF
11013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11014_ACEOF
11015
11016fi
11017
11018done
11019
11020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011021for ac_func in vprintf
11022do
11023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11024echo "$as_me:$LINENO: checking for $ac_func" >&5
11025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11026if eval "test \"\${$as_ac_var+set}\" = set"; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028else
11029 cat >conftest.$ac_ext <<_ACEOF
11030/* confdefs.h. */
11031_ACEOF
11032cat confdefs.h >>conftest.$ac_ext
11033cat >>conftest.$ac_ext <<_ACEOF
11034/* end confdefs.h. */
11035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11037#define $ac_func innocuous_$ac_func
11038
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011039/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011040 which can conflict with char $ac_func (); below.
11041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11042 <limits.h> exists even on freestanding compilers. */
11043
11044#ifdef __STDC__
11045# include <limits.h>
11046#else
11047# include <assert.h>
11048#endif
11049
11050#undef $ac_func
11051
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011052/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011053#ifdef __cplusplus
11054extern "C"
11055{
11056#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011057/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011058 builtin and then its argument prototype would still apply. */
11059char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011060/* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011064choke me
11065#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011066char (*f) () = $ac_func;
11067#endif
11068#ifdef __cplusplus
11069}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011070#endif
11071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011072int
11073main ()
11074{
11075return f != $ac_func;
11076 ;
11077 return 0;
11078}
11079_ACEOF
11080rm -f conftest.$ac_objext conftest$ac_exeext
11081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11082 (eval $ac_link) 2>conftest.er1
11083 ac_status=$?
11084 grep -v '^ *+' conftest.er1 >conftest.err
11085 rm -f conftest.er1
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } &&
11089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try='test -s conftest$ac_exeext'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011103 echo "$as_me: failed program was:" >&5
11104sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011105
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011106eval "$as_ac_var=no"
11107fi
11108rm -f conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110fi
11111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11112echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11113if test `eval echo '${'$as_ac_var'}'` = yes; then
11114 cat >>confdefs.h <<_ACEOF
11115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11116_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011118echo "$as_me:$LINENO: checking for _doprnt" >&5
11119echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11120if test "${ac_cv_func__doprnt+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011122else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011123 cat >conftest.$ac_ext <<_ACEOF
11124/* confdefs.h. */
11125_ACEOF
11126cat confdefs.h >>conftest.$ac_ext
11127cat >>conftest.$ac_ext <<_ACEOF
11128/* end confdefs.h. */
11129/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11131#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011132
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011133/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011134 which can conflict with char _doprnt (); below.
11135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11136 <limits.h> exists even on freestanding compilers. */
11137
11138#ifdef __STDC__
11139# include <limits.h>
11140#else
11141# include <assert.h>
11142#endif
11143
11144#undef _doprnt
11145
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011146/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011147#ifdef __cplusplus
11148extern "C"
11149{
11150#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011151/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011152 builtin and then its argument prototype would still apply. */
11153char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011154/* The GNU C library defines this for functions which it implements
11155 to always fail with ENOSYS. Some functions are actually named
11156 something starting with __ and the normal name is an alias. */
11157#if defined (__stub__doprnt) || defined (__stub____doprnt)
11158choke me
11159#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011160char (*f) () = _doprnt;
11161#endif
11162#ifdef __cplusplus
11163}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011164#endif
11165
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011166int
11167main ()
11168{
11169return f != _doprnt;
11170 ;
11171 return 0;
11172}
11173_ACEOF
11174rm -f conftest.$ac_objext conftest$ac_exeext
11175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011196else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011199
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011200ac_cv_func__doprnt=no
11201fi
11202rm -f conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204fi
11205echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11206echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11207if test $ac_cv_func__doprnt = yes; then
11208
11209cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011210#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011211_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011212
11213fi
11214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011215fi
11216done
11217
11218
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011219echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11220echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6
11221if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011222 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011223else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011224 cat >conftest.$ac_ext <<_ACEOF
11225/* confdefs.h. */
11226_ACEOF
11227cat confdefs.h >>conftest.$ac_ext
11228cat >>conftest.$ac_ext <<_ACEOF
11229/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040011230#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011232int
11233main ()
11234{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011235static struct dirent ac_aggr;
11236if (ac_aggr.d_reclen)
11237return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011238 ;
11239 return 0;
11240}
11241_ACEOF
11242rm -f conftest.$ac_objext
11243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11244 (eval $ac_compile) 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; } &&
11257 { ac_try='test -s conftest.$ac_objext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011263 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040011264else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011265 echo "$as_me: failed program was:" >&5
11266sed 's/^/| /' conftest.$ac_ext >&5
11267
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011268cat >conftest.$ac_ext <<_ACEOF
11269/* confdefs.h. */
11270_ACEOF
11271cat confdefs.h >>conftest.$ac_ext
11272cat >>conftest.$ac_ext <<_ACEOF
11273/* end confdefs.h. */
11274#include <dirent.h>
11275
11276int
11277main ()
11278{
11279static struct dirent ac_aggr;
11280if (sizeof ac_aggr.d_reclen)
11281return 0;
11282 ;
11283 return 0;
11284}
11285_ACEOF
11286rm -f conftest.$ac_objext
11287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11288 (eval $ac_compile) 2>conftest.er1
11289 ac_status=$?
11290 grep -v '^ *+' conftest.er1 >conftest.err
11291 rm -f conftest.er1
11292 cat conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
11295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; } &&
11301 { ac_try='test -s conftest.$ac_objext'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 ac_cv_member_struct_dirent_d_reclen=yes
11308else
11309 echo "$as_me: failed program was:" >&5
11310sed 's/^/| /' conftest.$ac_ext >&5
11311
11312ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040011313fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040011315fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11317fi
11318echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11319echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6
11320if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11321 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011322#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011323_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011324
11325fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011326
11327echo "$as_me:$LINENO: checking for ssize_t" >&5
11328echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11329if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040011331else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011332 cat >conftest.$ac_ext <<_ACEOF
11333/* confdefs.h. */
11334_ACEOF
11335cat confdefs.h >>conftest.$ac_ext
11336cat >>conftest.$ac_ext <<_ACEOF
11337/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040011338#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011339
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340int
11341main ()
11342{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011343if ((ssize_t *) 0)
11344 return 0;
11345if (sizeof (ssize_t))
11346 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011347 ;
11348 return 0;
11349}
11350_ACEOF
11351rm -f conftest.$ac_objext
11352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11353 (eval $ac_compile) 2>conftest.er1
11354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } &&
11360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest.$ac_objext'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011372 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040011373else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011374 echo "$as_me: failed program was:" >&5
11375sed 's/^/| /' conftest.$ac_ext >&5
11376
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011377ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040011378fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040011380fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011381echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11382echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11383if test $ac_cv_type_ssize_t = yes; then
11384 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011385#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011386_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011387
11388fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011389
11390echo "$as_me:$LINENO: checking whether llseek is declared" >&5
11391echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6
11392if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011393 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040011394else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011395 cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h. */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011401#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011402
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011403int
11404main ()
11405{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011406#ifndef llseek
11407 char *p = (char *) llseek;
11408#endif
11409
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011410 ;
11411 return 0;
11412}
11413_ACEOF
11414rm -f conftest.$ac_objext
11415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11416 (eval $ac_compile) 2>conftest.er1
11417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; } &&
11429 { ac_try='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011435 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011436else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011437 echo "$as_me: failed program was:" >&5
11438sed 's/^/| /' conftest.$ac_ext >&5
11439
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011440ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011441fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011443fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011444echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
11445echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6
11446if test $ac_cv_have_decl_llseek = yes; then
11447 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011448#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011449_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011450
11451fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011452
11453echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
11454echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6
11455if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011456 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011457else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011458 cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011464#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011465 #define _LARGEFILE64_SOURCE
11466 #include <unistd.h>
11467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011468int
11469main ()
11470{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011471#ifndef lseek64
11472 char *p = (char *) lseek64;
11473#endif
11474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011475 ;
11476 return 0;
11477}
11478_ACEOF
11479rm -f conftest.$ac_objext
11480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481 (eval $ac_compile) 2>conftest.er1
11482 ac_status=$?
11483 grep -v '^ *+' conftest.er1 >conftest.err
11484 rm -f conftest.er1
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } &&
11488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; } &&
11494 { ac_try='test -s conftest.$ac_objext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011500 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011501else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011502 echo "$as_me: failed program was:" >&5
11503sed 's/^/| /' conftest.$ac_ext >&5
11504
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011505ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011506fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011508fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011509echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
11510echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6
11511if test $ac_cv_have_decl_lseek64 = yes; then
11512 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011513#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011514_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011515
11516fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011517
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011518if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011519 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011520 ac_cv_sizeof_short=2
11521 ac_cv_sizeof_int=4
11522 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000011523 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011524 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11525echo "$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 +000011526fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011527echo "$as_me:$LINENO: checking for short" >&5
11528echo $ECHO_N "checking for short... $ECHO_C" >&6
11529if test "${ac_cv_type_short+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531else
11532 cat >conftest.$ac_ext <<_ACEOF
11533/* confdefs.h. */
11534_ACEOF
11535cat confdefs.h >>conftest.$ac_ext
11536cat >>conftest.$ac_ext <<_ACEOF
11537/* end confdefs.h. */
11538$ac_includes_default
11539int
11540main ()
11541{
11542if ((short *) 0)
11543 return 0;
11544if (sizeof (short))
11545 return 0;
11546 ;
11547 return 0;
11548}
11549_ACEOF
11550rm -f conftest.$ac_objext
11551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>conftest.er1
11553 ac_status=$?
11554 grep -v '^ *+' conftest.er1 >conftest.err
11555 rm -f conftest.er1
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest.$ac_objext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_cv_type_short=yes
11572else
11573 echo "$as_me: failed program was:" >&5
11574sed 's/^/| /' conftest.$ac_ext >&5
11575
11576ac_cv_type_short=no
11577fi
11578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11579fi
11580echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11581echo "${ECHO_T}$ac_cv_type_short" >&6
11582
11583echo "$as_me:$LINENO: checking size of short" >&5
11584echo $ECHO_N "checking size of short... $ECHO_C" >&6
11585if test "${ac_cv_sizeof_short+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588 if test "$ac_cv_type_short" = yes; then
11589 # The cast to unsigned long works around a bug in the HP C Compiler
11590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11592 # This bug is HP SR number 8606223364.
11593 if test "$cross_compiling" = yes; then
11594 # Depending upon the size, compute the lo and hi bounds.
11595cat >conftest.$ac_ext <<_ACEOF
11596/* confdefs.h. */
11597_ACEOF
11598cat confdefs.h >>conftest.$ac_ext
11599cat >>conftest.$ac_ext <<_ACEOF
11600/* end confdefs.h. */
11601$ac_includes_default
11602int
11603main ()
11604{
11605static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11606test_array [0] = 0
11607
11608 ;
11609 return 0;
11610}
11611_ACEOF
11612rm -f conftest.$ac_objext
11613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11614 (eval $ac_compile) 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest.$ac_objext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_lo=0 ac_mid=0
11634 while :; do
11635 cat >conftest.$ac_ext <<_ACEOF
11636/* confdefs.h. */
11637_ACEOF
11638cat confdefs.h >>conftest.$ac_ext
11639cat >>conftest.$ac_ext <<_ACEOF
11640/* end confdefs.h. */
11641$ac_includes_default
11642int
11643main ()
11644{
11645static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11646test_array [0] = 0
11647
11648 ;
11649 return 0;
11650}
11651_ACEOF
11652rm -f conftest.$ac_objext
11653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11654 (eval $ac_compile) 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest.$ac_objext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_hi=$ac_mid; break
11674else
11675 echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
11678ac_lo=`expr $ac_mid + 1`
11679 if test $ac_lo -le $ac_mid; then
11680 ac_lo= ac_hi=
11681 break
11682 fi
11683 ac_mid=`expr 2 '*' $ac_mid + 1`
11684fi
11685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11686 done
11687else
11688 echo "$as_me: failed program was:" >&5
11689sed 's/^/| /' conftest.$ac_ext >&5
11690
11691cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h. */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h. */
11697$ac_includes_default
11698int
11699main ()
11700{
11701static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11702test_array [0] = 0
11703
11704 ;
11705 return 0;
11706}
11707_ACEOF
11708rm -f conftest.$ac_objext
11709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710 (eval $ac_compile) 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest.$ac_objext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_hi=-1 ac_mid=-1
11730 while :; do
11731 cat >conftest.$ac_ext <<_ACEOF
11732/* confdefs.h. */
11733_ACEOF
11734cat confdefs.h >>conftest.$ac_ext
11735cat >>conftest.$ac_ext <<_ACEOF
11736/* end confdefs.h. */
11737$ac_includes_default
11738int
11739main ()
11740{
11741static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11742test_array [0] = 0
11743
11744 ;
11745 return 0;
11746}
11747_ACEOF
11748rm -f conftest.$ac_objext
11749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11750 (eval $ac_compile) 2>conftest.er1
11751 ac_status=$?
11752 grep -v '^ *+' conftest.er1 >conftest.err
11753 rm -f conftest.er1
11754 cat conftest.err >&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } &&
11757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest.$ac_objext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_lo=$ac_mid; break
11770else
11771 echo "$as_me: failed program was:" >&5
11772sed 's/^/| /' conftest.$ac_ext >&5
11773
11774ac_hi=`expr '(' $ac_mid ')' - 1`
11775 if test $ac_mid -le $ac_hi; then
11776 ac_lo= ac_hi=
11777 break
11778 fi
11779 ac_mid=`expr 2 '*' $ac_mid`
11780fi
11781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11782 done
11783else
11784 echo "$as_me: failed program was:" >&5
11785sed 's/^/| /' conftest.$ac_ext >&5
11786
11787ac_lo= ac_hi=
11788fi
11789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11790fi
11791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11792# Binary search between lo and hi bounds.
11793while test "x$ac_lo" != "x$ac_hi"; do
11794 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11795 cat >conftest.$ac_ext <<_ACEOF
11796/* confdefs.h. */
11797_ACEOF
11798cat confdefs.h >>conftest.$ac_ext
11799cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h. */
11801$ac_includes_default
11802int
11803main ()
11804{
11805static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11806test_array [0] = 0
11807
11808 ;
11809 return 0;
11810}
11811_ACEOF
11812rm -f conftest.$ac_objext
11813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11814 (eval $ac_compile) 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; } &&
11827 { ac_try='test -s conftest.$ac_objext'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 ac_hi=$ac_mid
11834else
11835 echo "$as_me: failed program was:" >&5
11836sed 's/^/| /' conftest.$ac_ext >&5
11837
11838ac_lo=`expr '(' $ac_mid ')' + 1`
11839fi
11840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11841done
11842case $ac_lo in
11843?*) ac_cv_sizeof_short=$ac_lo;;
11844'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11845See \`config.log' for more details." >&5
11846echo "$as_me: error: cannot compute sizeof (short), 77
11847See \`config.log' for more details." >&2;}
11848 { (exit 1); exit 1; }; } ;;
11849esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011850else
11851 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011852 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11853echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11854 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011855else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011856 cat >conftest.$ac_ext <<_ACEOF
11857/* confdefs.h. */
11858_ACEOF
11859cat confdefs.h >>conftest.$ac_ext
11860cat >>conftest.$ac_ext <<_ACEOF
11861/* end confdefs.h. */
11862$ac_includes_default
11863long longval () { return (long) (sizeof (short)); }
11864unsigned long ulongval () { return (long) (sizeof (short)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011865#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011866#include <stdlib.h>
11867int
11868main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011869{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011870
11871 FILE *f = fopen ("conftest.val", "w");
11872 if (! f)
11873 exit (1);
11874 if (((long) (sizeof (short))) < 0)
11875 {
11876 long i = longval ();
11877 if (i != ((long) (sizeof (short))))
11878 exit (1);
11879 fprintf (f, "%ld\n", i);
11880 }
11881 else
11882 {
11883 unsigned long i = ulongval ();
11884 if (i != ((long) (sizeof (short))))
11885 exit (1);
11886 fprintf (f, "%lu\n", i);
11887 }
11888 exit (ferror (f) || fclose (f) != 0);
11889
11890 ;
11891 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011892}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011893_ACEOF
11894rm -f conftest$ac_exeext
11895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011907 echo "$as_me: program exited with status $ac_status" >&5
11908echo "$as_me: failed program was:" >&5
11909sed 's/^/| /' conftest.$ac_ext >&5
11910
11911( exit $ac_status )
11912{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11913See \`config.log' for more details." >&5
11914echo "$as_me: error: cannot compute sizeof (short), 77
11915See \`config.log' for more details." >&2;}
11916 { (exit 1); exit 1; }; }
11917fi
11918rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11919fi
11920fi
11921rm -f conftest.val
11922else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011923 ac_cv_sizeof_short=0
11924fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011925fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011926echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11927echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11928cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011929#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011930_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011931
11932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011933echo "$as_me:$LINENO: checking for int" >&5
11934echo $ECHO_N "checking for int... $ECHO_C" >&6
11935if test "${ac_cv_type_int+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938 cat >conftest.$ac_ext <<_ACEOF
11939/* confdefs.h. */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
11943/* end confdefs.h. */
11944$ac_includes_default
11945int
11946main ()
11947{
11948if ((int *) 0)
11949 return 0;
11950if (sizeof (int))
11951 return 0;
11952 ;
11953 return 0;
11954}
11955_ACEOF
11956rm -f conftest.$ac_objext
11957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11958 (eval $ac_compile) 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest.$ac_objext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_type_int=yes
11978else
11979 echo "$as_me: failed program was:" >&5
11980sed 's/^/| /' conftest.$ac_ext >&5
11981
11982ac_cv_type_int=no
11983fi
11984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11985fi
11986echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11987echo "${ECHO_T}$ac_cv_type_int" >&6
11988
11989echo "$as_me:$LINENO: checking size of int" >&5
11990echo $ECHO_N "checking size of int... $ECHO_C" >&6
11991if test "${ac_cv_sizeof_int+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993else
11994 if test "$ac_cv_type_int" = yes; then
11995 # The cast to unsigned long works around a bug in the HP C Compiler
11996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11998 # This bug is HP SR number 8606223364.
11999 if test "$cross_compiling" = yes; then
12000 # Depending upon the size, compute the lo and hi bounds.
12001cat >conftest.$ac_ext <<_ACEOF
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
12007$ac_includes_default
12008int
12009main ()
12010{
12011static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12012test_array [0] = 0
12013
12014 ;
12015 return 0;
12016}
12017_ACEOF
12018rm -f conftest.$ac_objext
12019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12020 (eval $ac_compile) 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest.$ac_objext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_lo=0 ac_mid=0
12040 while :; do
12041 cat >conftest.$ac_ext <<_ACEOF
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
12047$ac_includes_default
12048int
12049main ()
12050{
12051static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12052test_array [0] = 0
12053
12054 ;
12055 return 0;
12056}
12057_ACEOF
12058rm -f conftest.$ac_objext
12059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12060 (eval $ac_compile) 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; } &&
12073 { ac_try='test -s conftest.$ac_objext'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12076 ac_status=$?
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 ac_hi=$ac_mid; break
12080else
12081 echo "$as_me: failed program was:" >&5
12082sed 's/^/| /' conftest.$ac_ext >&5
12083
12084ac_lo=`expr $ac_mid + 1`
12085 if test $ac_lo -le $ac_mid; then
12086 ac_lo= ac_hi=
12087 break
12088 fi
12089 ac_mid=`expr 2 '*' $ac_mid + 1`
12090fi
12091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12092 done
12093else
12094 echo "$as_me: failed program was:" >&5
12095sed 's/^/| /' conftest.$ac_ext >&5
12096
12097cat >conftest.$ac_ext <<_ACEOF
12098/* confdefs.h. */
12099_ACEOF
12100cat confdefs.h >>conftest.$ac_ext
12101cat >>conftest.$ac_ext <<_ACEOF
12102/* end confdefs.h. */
12103$ac_includes_default
12104int
12105main ()
12106{
12107static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12108test_array [0] = 0
12109
12110 ;
12111 return 0;
12112}
12113_ACEOF
12114rm -f conftest.$ac_objext
12115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116 (eval $ac_compile) 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_hi=-1 ac_mid=-1
12136 while :; do
12137 cat >conftest.$ac_ext <<_ACEOF
12138/* confdefs.h. */
12139_ACEOF
12140cat confdefs.h >>conftest.$ac_ext
12141cat >>conftest.$ac_ext <<_ACEOF
12142/* end confdefs.h. */
12143$ac_includes_default
12144int
12145main ()
12146{
12147static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12148test_array [0] = 0
12149
12150 ;
12151 return 0;
12152}
12153_ACEOF
12154rm -f conftest.$ac_objext
12155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156 (eval $ac_compile) 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; } &&
12169 { ac_try='test -s conftest.$ac_objext'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_lo=$ac_mid; break
12176else
12177 echo "$as_me: failed program was:" >&5
12178sed 's/^/| /' conftest.$ac_ext >&5
12179
12180ac_hi=`expr '(' $ac_mid ')' - 1`
12181 if test $ac_mid -le $ac_hi; then
12182 ac_lo= ac_hi=
12183 break
12184 fi
12185 ac_mid=`expr 2 '*' $ac_mid`
12186fi
12187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12188 done
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193ac_lo= ac_hi=
12194fi
12195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12196fi
12197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12198# Binary search between lo and hi bounds.
12199while test "x$ac_lo" != "x$ac_hi"; do
12200 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12201 cat >conftest.$ac_ext <<_ACEOF
12202/* confdefs.h. */
12203_ACEOF
12204cat confdefs.h >>conftest.$ac_ext
12205cat >>conftest.$ac_ext <<_ACEOF
12206/* end confdefs.h. */
12207$ac_includes_default
12208int
12209main ()
12210{
12211static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12212test_array [0] = 0
12213
12214 ;
12215 return 0;
12216}
12217_ACEOF
12218rm -f conftest.$ac_objext
12219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12220 (eval $ac_compile) 2>conftest.er1
12221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } &&
12227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest.$ac_objext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_hi=$ac_mid
12240else
12241 echo "$as_me: failed program was:" >&5
12242sed 's/^/| /' conftest.$ac_ext >&5
12243
12244ac_lo=`expr '(' $ac_mid ')' + 1`
12245fi
12246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12247done
12248case $ac_lo in
12249?*) ac_cv_sizeof_int=$ac_lo;;
12250'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12251See \`config.log' for more details." >&5
12252echo "$as_me: error: cannot compute sizeof (int), 77
12253See \`config.log' for more details." >&2;}
12254 { (exit 1); exit 1; }; } ;;
12255esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012256else
12257 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012258 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12259echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12260 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012261else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262 cat >conftest.$ac_ext <<_ACEOF
12263/* confdefs.h. */
12264_ACEOF
12265cat confdefs.h >>conftest.$ac_ext
12266cat >>conftest.$ac_ext <<_ACEOF
12267/* end confdefs.h. */
12268$ac_includes_default
12269long longval () { return (long) (sizeof (int)); }
12270unsigned long ulongval () { return (long) (sizeof (int)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012271#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012272#include <stdlib.h>
12273int
12274main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012275{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012276
12277 FILE *f = fopen ("conftest.val", "w");
12278 if (! f)
12279 exit (1);
12280 if (((long) (sizeof (int))) < 0)
12281 {
12282 long i = longval ();
12283 if (i != ((long) (sizeof (int))))
12284 exit (1);
12285 fprintf (f, "%ld\n", i);
12286 }
12287 else
12288 {
12289 unsigned long i = ulongval ();
12290 if (i != ((long) (sizeof (int))))
12291 exit (1);
12292 fprintf (f, "%lu\n", i);
12293 }
12294 exit (ferror (f) || fclose (f) != 0);
12295
12296 ;
12297 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012298}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012299_ACEOF
12300rm -f conftest$ac_exeext
12301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12302 (eval $ac_link) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012312else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012313 echo "$as_me: program exited with status $ac_status" >&5
12314echo "$as_me: failed program was:" >&5
12315sed 's/^/| /' conftest.$ac_ext >&5
12316
12317( exit $ac_status )
12318{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12319See \`config.log' for more details." >&5
12320echo "$as_me: error: cannot compute sizeof (int), 77
12321See \`config.log' for more details." >&2;}
12322 { (exit 1); exit 1; }; }
12323fi
12324rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12325fi
12326fi
12327rm -f conftest.val
12328else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012329 ac_cv_sizeof_int=0
12330fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012331fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012332echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12333echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12334cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012335#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012337
12338
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012339echo "$as_me:$LINENO: checking for long" >&5
12340echo $ECHO_N "checking for long... $ECHO_C" >&6
12341if test "${ac_cv_type_long+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12343else
12344 cat >conftest.$ac_ext <<_ACEOF
12345/* confdefs.h. */
12346_ACEOF
12347cat confdefs.h >>conftest.$ac_ext
12348cat >>conftest.$ac_ext <<_ACEOF
12349/* end confdefs.h. */
12350$ac_includes_default
12351int
12352main ()
12353{
12354if ((long *) 0)
12355 return 0;
12356if (sizeof (long))
12357 return 0;
12358 ;
12359 return 0;
12360}
12361_ACEOF
12362rm -f conftest.$ac_objext
12363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364 (eval $ac_compile) 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } &&
12371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_type_long=yes
12384else
12385 echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388ac_cv_type_long=no
12389fi
12390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12391fi
12392echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12393echo "${ECHO_T}$ac_cv_type_long" >&6
12394
12395echo "$as_me:$LINENO: checking size of long" >&5
12396echo $ECHO_N "checking size of long... $ECHO_C" >&6
12397if test "${ac_cv_sizeof_long+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399else
12400 if test "$ac_cv_type_long" = yes; then
12401 # The cast to unsigned long works around a bug in the HP C Compiler
12402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12404 # This bug is HP SR number 8606223364.
12405 if test "$cross_compiling" = yes; then
12406 # Depending upon the size, compute the lo and hi bounds.
12407cat >conftest.$ac_ext <<_ACEOF
12408/* confdefs.h. */
12409_ACEOF
12410cat confdefs.h >>conftest.$ac_ext
12411cat >>conftest.$ac_ext <<_ACEOF
12412/* end confdefs.h. */
12413$ac_includes_default
12414int
12415main ()
12416{
12417static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12418test_array [0] = 0
12419
12420 ;
12421 return 0;
12422}
12423_ACEOF
12424rm -f conftest.$ac_objext
12425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426 (eval $ac_compile) 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; } &&
12439 { ac_try='test -s conftest.$ac_objext'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_lo=0 ac_mid=0
12446 while :; do
12447 cat >conftest.$ac_ext <<_ACEOF
12448/* confdefs.h. */
12449_ACEOF
12450cat confdefs.h >>conftest.$ac_ext
12451cat >>conftest.$ac_ext <<_ACEOF
12452/* end confdefs.h. */
12453$ac_includes_default
12454int
12455main ()
12456{
12457static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12458test_array [0] = 0
12459
12460 ;
12461 return 0;
12462}
12463_ACEOF
12464rm -f conftest.$ac_objext
12465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest.$ac_objext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 ac_hi=$ac_mid; break
12486else
12487 echo "$as_me: failed program was:" >&5
12488sed 's/^/| /' conftest.$ac_ext >&5
12489
12490ac_lo=`expr $ac_mid + 1`
12491 if test $ac_lo -le $ac_mid; then
12492 ac_lo= ac_hi=
12493 break
12494 fi
12495 ac_mid=`expr 2 '*' $ac_mid + 1`
12496fi
12497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12498 done
12499else
12500 echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
12503cat >conftest.$ac_ext <<_ACEOF
12504/* confdefs.h. */
12505_ACEOF
12506cat confdefs.h >>conftest.$ac_ext
12507cat >>conftest.$ac_ext <<_ACEOF
12508/* end confdefs.h. */
12509$ac_includes_default
12510int
12511main ()
12512{
12513static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12514test_array [0] = 0
12515
12516 ;
12517 return 0;
12518}
12519_ACEOF
12520rm -f conftest.$ac_objext
12521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522 (eval $ac_compile) 2>conftest.er1
12523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
12529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest.$ac_objext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_hi=-1 ac_mid=-1
12542 while :; do
12543 cat >conftest.$ac_ext <<_ACEOF
12544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549$ac_includes_default
12550int
12551main ()
12552{
12553static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12554test_array [0] = 0
12555
12556 ;
12557 return 0;
12558}
12559_ACEOF
12560rm -f conftest.$ac_objext
12561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562 (eval $ac_compile) 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_lo=$ac_mid; break
12582else
12583 echo "$as_me: failed program was:" >&5
12584sed 's/^/| /' conftest.$ac_ext >&5
12585
12586ac_hi=`expr '(' $ac_mid ')' - 1`
12587 if test $ac_mid -le $ac_hi; then
12588 ac_lo= ac_hi=
12589 break
12590 fi
12591 ac_mid=`expr 2 '*' $ac_mid`
12592fi
12593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12594 done
12595else
12596 echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
12599ac_lo= ac_hi=
12600fi
12601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12602fi
12603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12604# Binary search between lo and hi bounds.
12605while test "x$ac_lo" != "x$ac_hi"; do
12606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12607 cat >conftest.$ac_ext <<_ACEOF
12608/* confdefs.h. */
12609_ACEOF
12610cat confdefs.h >>conftest.$ac_ext
12611cat >>conftest.$ac_ext <<_ACEOF
12612/* end confdefs.h. */
12613$ac_includes_default
12614int
12615main ()
12616{
12617static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12618test_array [0] = 0
12619
12620 ;
12621 return 0;
12622}
12623_ACEOF
12624rm -f conftest.$ac_objext
12625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626 (eval $ac_compile) 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest.$ac_objext'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_hi=$ac_mid
12646else
12647 echo "$as_me: failed program was:" >&5
12648sed 's/^/| /' conftest.$ac_ext >&5
12649
12650ac_lo=`expr '(' $ac_mid ')' + 1`
12651fi
12652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12653done
12654case $ac_lo in
12655?*) ac_cv_sizeof_long=$ac_lo;;
12656'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12657See \`config.log' for more details." >&5
12658echo "$as_me: error: cannot compute sizeof (long), 77
12659See \`config.log' for more details." >&2;}
12660 { (exit 1); exit 1; }; } ;;
12661esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012662else
12663 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012664 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12665echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12666 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012667else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012668 cat >conftest.$ac_ext <<_ACEOF
12669/* confdefs.h. */
12670_ACEOF
12671cat confdefs.h >>conftest.$ac_ext
12672cat >>conftest.$ac_ext <<_ACEOF
12673/* end confdefs.h. */
12674$ac_includes_default
12675long longval () { return (long) (sizeof (long)); }
12676unsigned long ulongval () { return (long) (sizeof (long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012677#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012678#include <stdlib.h>
12679int
12680main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012681{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012682
12683 FILE *f = fopen ("conftest.val", "w");
12684 if (! f)
12685 exit (1);
12686 if (((long) (sizeof (long))) < 0)
12687 {
12688 long i = longval ();
12689 if (i != ((long) (sizeof (long))))
12690 exit (1);
12691 fprintf (f, "%ld\n", i);
12692 }
12693 else
12694 {
12695 unsigned long i = ulongval ();
12696 if (i != ((long) (sizeof (long))))
12697 exit (1);
12698 fprintf (f, "%lu\n", i);
12699 }
12700 exit (ferror (f) || fclose (f) != 0);
12701
12702 ;
12703 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012704}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012705_ACEOF
12706rm -f conftest$ac_exeext
12707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12708 (eval $ac_link) 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012718else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012719 echo "$as_me: program exited with status $ac_status" >&5
12720echo "$as_me: failed program was:" >&5
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
12723( exit $ac_status )
12724{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12725See \`config.log' for more details." >&5
12726echo "$as_me: error: cannot compute sizeof (long), 77
12727See \`config.log' for more details." >&2;}
12728 { (exit 1); exit 1; }; }
12729fi
12730rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12731fi
12732fi
12733rm -f conftest.val
12734else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012735 ac_cv_sizeof_long=0
12736fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012737fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012738echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12739echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12740cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012741#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012742_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012743
12744
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012745echo "$as_me:$LINENO: checking for long long" >&5
12746echo $ECHO_N "checking for long long... $ECHO_C" >&6
12747if test "${ac_cv_type_long_long+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749else
12750 cat >conftest.$ac_ext <<_ACEOF
12751/* confdefs.h. */
12752_ACEOF
12753cat confdefs.h >>conftest.$ac_ext
12754cat >>conftest.$ac_ext <<_ACEOF
12755/* end confdefs.h. */
12756$ac_includes_default
12757int
12758main ()
12759{
12760if ((long long *) 0)
12761 return 0;
12762if (sizeof (long long))
12763 return 0;
12764 ;
12765 return 0;
12766}
12767_ACEOF
12768rm -f conftest.$ac_objext
12769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>conftest.er1
12771 ac_status=$?
12772 grep -v '^ *+' conftest.er1 >conftest.err
12773 rm -f conftest.er1
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } &&
12777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try='test -s conftest.$ac_objext'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12789 ac_cv_type_long_long=yes
12790else
12791 echo "$as_me: failed program was:" >&5
12792sed 's/^/| /' conftest.$ac_ext >&5
12793
12794ac_cv_type_long_long=no
12795fi
12796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12797fi
12798echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12799echo "${ECHO_T}$ac_cv_type_long_long" >&6
12800
12801echo "$as_me:$LINENO: checking size of long long" >&5
12802echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12803if test "${ac_cv_sizeof_long_long+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12805else
12806 if test "$ac_cv_type_long_long" = yes; then
12807 # The cast to unsigned long works around a bug in the HP C Compiler
12808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12810 # This bug is HP SR number 8606223364.
12811 if test "$cross_compiling" = yes; then
12812 # Depending upon the size, compute the lo and hi bounds.
12813cat >conftest.$ac_ext <<_ACEOF
12814/* confdefs.h. */
12815_ACEOF
12816cat confdefs.h >>conftest.$ac_ext
12817cat >>conftest.$ac_ext <<_ACEOF
12818/* end confdefs.h. */
12819$ac_includes_default
12820int
12821main ()
12822{
12823static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12824test_array [0] = 0
12825
12826 ;
12827 return 0;
12828}
12829_ACEOF
12830rm -f conftest.$ac_objext
12831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12832 (eval $ac_compile) 2>conftest.er1
12833 ac_status=$?
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
12839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; } &&
12845 { ac_try='test -s conftest.$ac_objext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 ac_lo=0 ac_mid=0
12852 while :; do
12853 cat >conftest.$ac_ext <<_ACEOF
12854/* confdefs.h. */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
12858/* end confdefs.h. */
12859$ac_includes_default
12860int
12861main ()
12862{
12863static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12864test_array [0] = 0
12865
12866 ;
12867 return 0;
12868}
12869_ACEOF
12870rm -f conftest.$ac_objext
12871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12872 (eval $ac_compile) 2>conftest.er1
12873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } &&
12885 { ac_try='test -s conftest.$ac_objext'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 ac_hi=$ac_mid; break
12892else
12893 echo "$as_me: failed program was:" >&5
12894sed 's/^/| /' conftest.$ac_ext >&5
12895
12896ac_lo=`expr $ac_mid + 1`
12897 if test $ac_lo -le $ac_mid; then
12898 ac_lo= ac_hi=
12899 break
12900 fi
12901 ac_mid=`expr 2 '*' $ac_mid + 1`
12902fi
12903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904 done
12905else
12906 echo "$as_me: failed program was:" >&5
12907sed 's/^/| /' conftest.$ac_ext >&5
12908
12909cat >conftest.$ac_ext <<_ACEOF
12910/* confdefs.h. */
12911_ACEOF
12912cat confdefs.h >>conftest.$ac_ext
12913cat >>conftest.$ac_ext <<_ACEOF
12914/* end confdefs.h. */
12915$ac_includes_default
12916int
12917main ()
12918{
12919static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12920test_array [0] = 0
12921
12922 ;
12923 return 0;
12924}
12925_ACEOF
12926rm -f conftest.$ac_objext
12927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12928 (eval $ac_compile) 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; } &&
12941 { ac_try='test -s conftest.$ac_objext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 ac_hi=-1 ac_mid=-1
12948 while :; do
12949 cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */
12955$ac_includes_default
12956int
12957main ()
12958{
12959static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12960test_array [0] = 0
12961
12962 ;
12963 return 0;
12964}
12965_ACEOF
12966rm -f conftest.$ac_objext
12967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12968 (eval $ac_compile) 2>conftest.er1
12969 ac_status=$?
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest.$ac_objext'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_lo=$ac_mid; break
12988else
12989 echo "$as_me: failed program was:" >&5
12990sed 's/^/| /' conftest.$ac_ext >&5
12991
12992ac_hi=`expr '(' $ac_mid ')' - 1`
12993 if test $ac_mid -le $ac_hi; then
12994 ac_lo= ac_hi=
12995 break
12996 fi
12997 ac_mid=`expr 2 '*' $ac_mid`
12998fi
12999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13000 done
13001else
13002 echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
13005ac_lo= ac_hi=
13006fi
13007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13008fi
13009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13010# Binary search between lo and hi bounds.
13011while test "x$ac_lo" != "x$ac_hi"; do
13012 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13013 cat >conftest.$ac_ext <<_ACEOF
13014/* confdefs.h. */
13015_ACEOF
13016cat confdefs.h >>conftest.$ac_ext
13017cat >>conftest.$ac_ext <<_ACEOF
13018/* end confdefs.h. */
13019$ac_includes_default
13020int
13021main ()
13022{
13023static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13024test_array [0] = 0
13025
13026 ;
13027 return 0;
13028}
13029_ACEOF
13030rm -f conftest.$ac_objext
13031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032 (eval $ac_compile) 2>conftest.er1
13033 ac_status=$?
13034 grep -v '^ *+' conftest.er1 >conftest.err
13035 rm -f conftest.er1
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; } &&
13045 { ac_try='test -s conftest.$ac_objext'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 ac_hi=$ac_mid
13052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056ac_lo=`expr '(' $ac_mid ')' + 1`
13057fi
13058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13059done
13060case $ac_lo in
13061?*) ac_cv_sizeof_long_long=$ac_lo;;
13062'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13063See \`config.log' for more details." >&5
13064echo "$as_me: error: cannot compute sizeof (long long), 77
13065See \`config.log' for more details." >&2;}
13066 { (exit 1); exit 1; }; } ;;
13067esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013068else
13069 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013070 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13071echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13072 { (exit 1); exit 1; }; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013073else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013074 cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h. */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
13079/* end confdefs.h. */
13080$ac_includes_default
13081long longval () { return (long) (sizeof (long long)); }
13082unsigned long ulongval () { return (long) (sizeof (long long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013083#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013084#include <stdlib.h>
13085int
13086main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013087{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013088
13089 FILE *f = fopen ("conftest.val", "w");
13090 if (! f)
13091 exit (1);
13092 if (((long) (sizeof (long long))) < 0)
13093 {
13094 long i = longval ();
13095 if (i != ((long) (sizeof (long long))))
13096 exit (1);
13097 fprintf (f, "%ld\n", i);
13098 }
13099 else
13100 {
13101 unsigned long i = ulongval ();
13102 if (i != ((long) (sizeof (long long))))
13103 exit (1);
13104 fprintf (f, "%lu\n", i);
13105 }
13106 exit (ferror (f) || fclose (f) != 0);
13107
13108 ;
13109 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013110}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013111_ACEOF
13112rm -f conftest$ac_exeext
13113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13114 (eval $ac_link) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013124else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013125 echo "$as_me: program exited with status $ac_status" >&5
13126echo "$as_me: failed program was:" >&5
13127sed 's/^/| /' conftest.$ac_ext >&5
13128
13129( exit $ac_status )
13130{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13131See \`config.log' for more details." >&5
13132echo "$as_me: error: cannot compute sizeof (long long), 77
13133See \`config.log' for more details." >&2;}
13134 { (exit 1); exit 1; }; }
13135fi
13136rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13137fi
13138fi
13139rm -f conftest.val
13140else
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013141 ac_cv_sizeof_long_long=0
13142fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013143fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013144echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13145echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13146cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013147#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013148_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013149
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013150
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013151SIZEOF_SHORT=$ac_cv_sizeof_short
13152SIZEOF_INT=$ac_cv_sizeof_int
13153SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013154SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13155
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013156
13157
13158
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013159echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13160echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13161if test "${ac_cv_c_bigendian+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013163else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013164 # See if sys/param.h defines the BYTE_ORDER macro.
13165cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013171#include <sys/types.h>
13172#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013173
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013174int
13175main ()
13176{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013177#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13178 bogus endian macros
13179#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013180
13181 ;
13182 return 0;
13183}
13184_ACEOF
13185rm -f conftest.$ac_objext
13186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
13194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; } &&
13200 { ac_try='test -s conftest.$ac_objext'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013206 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013207cat >conftest.$ac_ext <<_ACEOF
13208/* confdefs.h. */
13209_ACEOF
13210cat confdefs.h >>conftest.$ac_ext
13211cat >>conftest.$ac_ext <<_ACEOF
13212/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013213#include <sys/types.h>
13214#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013215
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013216int
13217main ()
13218{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013219#if BYTE_ORDER != BIG_ENDIAN
13220 not big endian
13221#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013222
13223 ;
13224 return 0;
13225}
13226_ACEOF
13227rm -f conftest.$ac_objext
13228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13229 (eval $ac_compile) 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13239 ac_status=$?
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; } &&
13242 { ac_try='test -s conftest.$ac_objext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013248 ac_cv_c_bigendian=yes
13249else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013250 echo "$as_me: failed program was:" >&5
13251sed 's/^/| /' conftest.$ac_ext >&5
13252
13253ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013254fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013256else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013257 echo "$as_me: failed program was:" >&5
13258sed 's/^/| /' conftest.$ac_ext >&5
13259
13260# It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013261if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013262 # try to guess the endianness by grepping values into an object file
13263 ac_cv_c_bigendian=unknown
13264 cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */
13270short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13271short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13272void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13273short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13274short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13275void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13276int
13277main ()
13278{
13279 _ascii (); _ebcdic ();
13280 ;
13281 return 0;
13282}
13283_ACEOF
13284rm -f conftest.$ac_objext
13285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286 (eval $ac_compile) 2>conftest.er1
13287 ac_status=$?
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
13293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest.$ac_objext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13306 ac_cv_c_bigendian=yes
13307fi
13308if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13309 if test "$ac_cv_c_bigendian" = unknown; then
13310 ac_cv_c_bigendian=no
13311 else
13312 # finding both strings is unlikely to happen, but who knows?
13313 ac_cv_c_bigendian=unknown
13314 fi
13315fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013316else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013317 echo "$as_me: failed program was:" >&5
13318sed 's/^/| /' conftest.$ac_ext >&5
13319
13320fi
13321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13322else
13323 cat >conftest.$ac_ext <<_ACEOF
13324/* confdefs.h. */
13325_ACEOF
13326cat confdefs.h >>conftest.$ac_ext
13327cat >>conftest.$ac_ext <<_ACEOF
13328/* end confdefs.h. */
13329int
13330main ()
13331{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013332 /* Are we little or big endian? From Harbison&Steele. */
13333 union
13334 {
13335 long l;
13336 char c[sizeof (long)];
13337 } u;
13338 u.l = 1;
13339 exit (u.c[sizeof (long) - 1] == 1);
13340}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013341_ACEOF
13342rm -f conftest$ac_exeext
13343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13344 (eval $ac_link) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013353 ac_cv_c_bigendian=no
13354else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013355 echo "$as_me: program exited with status $ac_status" >&5
13356echo "$as_me: failed program was:" >&5
13357sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013358
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013359( exit $ac_status )
13360ac_cv_c_bigendian=yes
13361fi
13362rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013363fi
13364fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13366fi
13367echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13368echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13369case $ac_cv_c_bigendian in
13370 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013372cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013373#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013374_ACEOF
13375 ;;
13376 no)
13377 ;;
13378 *)
13379 { { echo "$as_me:$LINENO: error: unknown endianness
13380presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13381echo "$as_me: error: unknown endianness
13382presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13383 { (exit 1); exit 1; }; } ;;
13384esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013385
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013386
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013387for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013388do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13390if eval "test \"\${$as_ac_Header+set}\" = set"; then
13391 echo "$as_me:$LINENO: checking for $ac_header" >&5
13392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13393if eval "test \"\${$as_ac_Header+set}\" = set"; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013395fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013398else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013399 # Is the header compilable?
13400echo "$as_me:$LINENO: checking $ac_header usability" >&5
13401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13402cat >conftest.$ac_ext <<_ACEOF
13403/* confdefs.h. */
13404_ACEOF
13405cat confdefs.h >>conftest.$ac_ext
13406cat >>conftest.$ac_ext <<_ACEOF
13407/* end confdefs.h. */
13408$ac_includes_default
13409#include <$ac_header>
13410_ACEOF
13411rm -f conftest.$ac_objext
13412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13413 (eval $ac_compile) 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest.$ac_objext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_header_compiler=yes
13433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013438fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13441echo "${ECHO_T}$ac_header_compiler" >&6
13442
13443# Is the header present?
13444echo "$as_me:$LINENO: checking $ac_header presence" >&5
13445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13446cat >conftest.$ac_ext <<_ACEOF
13447/* confdefs.h. */
13448_ACEOF
13449cat confdefs.h >>conftest.$ac_ext
13450cat >>conftest.$ac_ext <<_ACEOF
13451/* end confdefs.h. */
13452#include <$ac_header>
13453_ACEOF
13454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } >/dev/null; then
13462 if test -s conftest.err; then
13463 ac_cpp_err=$ac_c_preproc_warn_flag
13464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13465 else
13466 ac_cpp_err=
13467 fi
13468else
13469 ac_cpp_err=yes
13470fi
13471if test -z "$ac_cpp_err"; then
13472 ac_header_preproc=yes
13473else
13474 echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
13477 ac_header_preproc=no
13478fi
13479rm -f conftest.err conftest.$ac_ext
13480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13481echo "${ECHO_T}$ac_header_preproc" >&6
13482
13483# So? What about this header?
13484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13485 yes:no: )
13486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13490 ac_header_preproc=yes
13491 ;;
13492 no:yes:* )
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13505 (
13506 cat <<\_ASBOX
13507## ------------------------------------------ ##
13508## Report this to the AC_PACKAGE_NAME lists. ##
13509## ------------------------------------------ ##
13510_ASBOX
13511 ) |
13512 sed "s/^/$as_me: WARNING: /" >&2
13513 ;;
13514esac
13515echo "$as_me:$LINENO: checking for $ac_header" >&5
13516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13517if eval "test \"\${$as_ac_Header+set}\" = set"; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519else
13520 eval "$as_ac_Header=\$ac_header_preproc"
13521fi
13522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13524
13525fi
13526if test `eval echo '${'$as_ac_Header'}'` = yes; then
13527 cat >>confdefs.h <<_ACEOF
13528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13529_ACEOF
13530
13531fi
13532
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013533done
13534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013535echo "$as_me:$LINENO: checking for intptr_t" >&5
13536echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13537if test "${ac_cv_type_intptr_t+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013539else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013540 cat >conftest.$ac_ext <<_ACEOF
13541/* confdefs.h. */
13542_ACEOF
13543cat confdefs.h >>conftest.$ac_ext
13544cat >>conftest.$ac_ext <<_ACEOF
13545/* end confdefs.h. */
13546$ac_includes_default
13547int
13548main ()
13549{
13550if ((intptr_t *) 0)
13551 return 0;
13552if (sizeof (intptr_t))
13553 return 0;
13554 ;
13555 return 0;
13556}
13557_ACEOF
13558rm -f conftest.$ac_objext
13559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560 (eval $ac_compile) 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; } &&
13573 { ac_try='test -s conftest.$ac_objext'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013579 ac_cv_type_intptr_t=yes
13580else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013581 echo "$as_me: failed program was:" >&5
13582sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013584ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013585fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013587fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013588echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13589echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13590if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013591
13592cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050013593#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013594_ACEOF
13595
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050013596
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013597fi
13598
13599echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13600echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13601if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13603else
13604 cat >conftest.$ac_ext <<_ACEOF
13605/* confdefs.h. */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
13609/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013610#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013611int
13612main ()
13613{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013614struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013615 ;
13616 return 0;
13617}
13618_ACEOF
13619rm -f conftest.$ac_objext
13620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13621 (eval $ac_compile) 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest.$ac_objext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013640 e2fsprogs_cv_struct_st_flags=yes
13641else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013642 echo "$as_me: failed program was:" >&5
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
13645e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013646fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013648fi
13649
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013650echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13651echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013652if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013653 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13654echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13655 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013657else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013658 cat >conftest.$ac_ext <<_ACEOF
13659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013664#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013665int
13666main ()
13667{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013668struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013669 ;
13670 return 0;
13671}
13672_ACEOF
13673rm -f conftest.$ac_objext
13674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>conftest.er1
13676 ac_status=$?
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
13682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try='test -s conftest.$ac_objext'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013694 e2fsprogs_cv_struct_st_flags_immut=yes
13695else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013696 echo "$as_me: failed program was:" >&5
13697sed 's/^/| /' conftest.$ac_ext >&5
13698
13699e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013700fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013702fi
13703
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013704 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13705echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013706 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013707 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013708#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013709_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013710
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013711 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013712fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013713echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13714echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13715if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013716 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013717else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013718 cat >conftest.$ac_ext <<_ACEOF
13719/* confdefs.h. */
13720_ACEOF
13721cat confdefs.h >>conftest.$ac_ext
13722cat >>conftest.$ac_ext <<_ACEOF
13723/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013724#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013725 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013726
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013727int
13728main ()
13729{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013730static struct sockaddr ac_aggr;
13731if (ac_aggr.sa_len)
13732return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013733 ;
13734 return 0;
13735}
13736_ACEOF
13737rm -f conftest.$ac_objext
13738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739 (eval $ac_compile) 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013758 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013759else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013760 echo "$as_me: failed program was:" >&5
13761sed 's/^/| /' conftest.$ac_ext >&5
13762
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013763cat >conftest.$ac_ext <<_ACEOF
13764/* confdefs.h. */
13765_ACEOF
13766cat confdefs.h >>conftest.$ac_ext
13767cat >>conftest.$ac_ext <<_ACEOF
13768/* end confdefs.h. */
13769#include <sys/types.h>
13770 #include <sys/socket.h>
13771
13772int
13773main ()
13774{
13775static struct sockaddr ac_aggr;
13776if (sizeof ac_aggr.sa_len)
13777return 0;
13778 ;
13779 return 0;
13780}
13781_ACEOF
13782rm -f conftest.$ac_objext
13783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13784 (eval $ac_compile) 2>conftest.er1
13785 ac_status=$?
13786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } &&
13791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest.$ac_objext'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }; then
13803 ac_cv_member_struct_sockaddr_sa_len=yes
13804else
13805 echo "$as_me: failed program was:" >&5
13806sed 's/^/| /' conftest.$ac_ext >&5
13807
13808ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013809fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013811fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13813fi
13814echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13815echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13816if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013817
13818cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013819#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013820_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013821
13822fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013842
Theodore Ts'o1c29b092003-07-12 16:01:45 -040013843for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013844do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13846echo "$as_me:$LINENO: checking for $ac_func" >&5
13847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13848if eval "test \"\${$as_ac_var+set}\" = set"; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013850else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013851 cat >conftest.$ac_ext <<_ACEOF
13852/* confdefs.h. */
13853_ACEOF
13854cat confdefs.h >>conftest.$ac_ext
13855cat >>conftest.$ac_ext <<_ACEOF
13856/* end confdefs.h. */
13857/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13859#define $ac_func innocuous_$ac_func
13860
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013861/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013862 which can conflict with char $ac_func (); below.
13863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13864 <limits.h> exists even on freestanding compilers. */
13865
13866#ifdef __STDC__
13867# include <limits.h>
13868#else
13869# include <assert.h>
13870#endif
13871
13872#undef $ac_func
13873
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013874/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013875#ifdef __cplusplus
13876extern "C"
13877{
13878#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013879/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013880 builtin and then its argument prototype would still apply. */
13881char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013882/* The GNU C library defines this for functions which it implements
13883 to always fail with ENOSYS. Some functions are actually named
13884 something starting with __ and the normal name is an alias. */
13885#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13886choke me
13887#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013888char (*f) () = $ac_func;
13889#endif
13890#ifdef __cplusplus
13891}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013892#endif
13893
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013894int
13895main ()
13896{
13897return f != $ac_func;
13898 ;
13899 return 0;
13900}
13901_ACEOF
13902rm -f conftest.$ac_objext conftest$ac_exeext
13903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904 (eval $ac_link) 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; } &&
13917 { ac_try='test -s conftest$ac_exeext'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
13923 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013924else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013925 echo "$as_me: failed program was:" >&5
13926sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013927
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013928eval "$as_ac_var=no"
13929fi
13930rm -f conftest.err conftest.$ac_objext \
13931 conftest$ac_exeext conftest.$ac_ext
13932fi
13933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13934echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13935if test `eval echo '${'$as_ac_var'}'` = yes; then
13936 cat >>confdefs.h <<_ACEOF
13937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13938_ACEOF
13939
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013940fi
13941done
13942
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013943SOCKET_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013944echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13945echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13946if test "${ac_cv_lib_socket_socket+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013948else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013949 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013950LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951cat >conftest.$ac_ext <<_ACEOF
13952/* confdefs.h. */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
13956/* end confdefs.h. */
13957
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013958/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959#ifdef __cplusplus
13960extern "C"
13961#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013962/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013963 builtin and then its argument prototype would still apply. */
13964char socket ();
13965int
13966main ()
13967{
13968socket ();
13969 ;
13970 return 0;
13971}
13972_ACEOF
13973rm -f conftest.$ac_objext conftest$ac_exeext
13974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13975 (eval $ac_link) 2>conftest.er1
13976 ac_status=$?
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } &&
13982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest$ac_exeext'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013995else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013996 echo "$as_me: failed program was:" >&5
13997sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013999ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014000fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014001rm -f conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext conftest.$ac_ext
14003LIBS=$ac_check_lib_save_LIBS
14004fi
14005echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14006echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
14007if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014008 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014009fi
14010
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014011
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014012DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014013echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14014echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14015if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014018 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014019LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014020cat >conftest.$ac_ext <<_ACEOF
14021/* confdefs.h. */
14022_ACEOF
14023cat confdefs.h >>conftest.$ac_ext
14024cat >>conftest.$ac_ext <<_ACEOF
14025/* end confdefs.h. */
14026
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014027/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014028#ifdef __cplusplus
14029extern "C"
14030#endif
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014031/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014032 builtin and then its argument prototype would still apply. */
14033char dlopen ();
14034int
14035main ()
14036{
14037dlopen ();
14038 ;
14039 return 0;
14040}
14041_ACEOF
14042rm -f conftest.$ac_objext conftest$ac_exeext
14043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest$ac_exeext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014064else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014065 echo "$as_me: failed program was:" >&5
14066sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014067
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014068ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014069fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014070rm -f conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14072LIBS=$ac_check_lib_save_LIBS
14073fi
14074echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14075echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14076if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014077 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014078cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014079#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014081
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014082fi
14083
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014085echo "$as_me:$LINENO: checking for optreset" >&5
14086echo $ECHO_N "checking for optreset... $ECHO_C" >&6
14087if test "${ac_cv_have_optreset+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014089else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014090 cat >conftest.$ac_ext <<_ACEOF
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014096#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014097
14098_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014100 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014101 ac_cv_have_optreset=yes
14102else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014103 ac_cv_have_optreset=no
14104fi
14105rm -f conftest*
14106
14107fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014108echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14109echo "${ECHO_T}$ac_cv_have_optreset" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014110if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014111 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014112#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014113_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014114
14115fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014116case "$host_os" in
14117linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014118 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014119#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014120_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014121
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014122 ;;
14123esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014124LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014125CYGWIN_CMT="#"
14126UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014127case "$host_os" in
14128linux*)
14129 LINUX_CMT=
14130 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040014131cygwin)
14132 CYGWIN_CMT=
14133 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014134 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014135esac
14136
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014137
14138
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014139case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014140linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014141 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14142 root_prefix="";
14143 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014144 fi
14145 ;;
14146esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014147case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014148linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014149 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014150 prefix="/usr";
14151 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040014152 if test "$mandir" = '${prefix}/man' ; then
14153 echo "...and mandir defaults to /usr/share/man"
14154 mandir=/usr/share/man
14155 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014156 fi
14157;;
14158esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014159if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000014160 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014161 root_prefix="$ac_default_prefix"
14162 else
14163 root_prefix="$prefix"
14164 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040014165 root_bindir=$bindir
14166 root_sbindir=$sbindir
14167 root_libdir=$libdir
14168 root_sysconfdir=$sysconfdir
14169else
14170 root_bindir='${root_prefix}/bin'
14171 root_sbindir='${root_prefix}/sbin'
14172 root_libdir='${root_prefix}/lib'
14173 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014174fi
14175
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014176
14177
14178
14179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014180echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14181echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
14182if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000014184else
14185 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014186cat >conftest.$ac_ext <<_ACEOF
14187/* confdefs.h. */
14188_ACEOF
14189cat confdefs.h >>conftest.$ac_ext
14190cat >>conftest.$ac_ext <<_ACEOF
14191/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000014192#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014193int
14194main ()
14195{
Theodore Ts'oae851481997-04-29 18:13:24 +000014196fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014197 ;
14198 return 0;
14199}
14200_ACEOF
14201rm -f conftest.$ac_objext conftest$ac_exeext
14202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14203 (eval $ac_link) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
Theodore Ts'oae851481997-04-29 18:13:24 +000014222 ac_cv_e2fsprogs_use_static=yes
14223else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014224 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000014228fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014229rm -f conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000014231LDFLAGS=$SAVE_LDFLAGS
14232fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014233
Theodore Ts'odefde781999-01-04 07:39:19 +000014234case "$host_os" in
14235solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014236 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000014237;;
14238esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014239echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14240echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +000014241LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000014242if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014243 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000014244fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014245
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014246case "$host_os" in
14247darwin*)
14248 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014249 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014250#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014251_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014252
14253 ;;
14254esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014255SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14256ET_DIR=`cd ${srcdir}/lib/et; pwd`
14257
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014258
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014259if test "$cross_compiling" = yes ; then
14260 DO_TEST_SUITE=
14261else
14262 DO_TEST_SUITE=check
14263fi
14264
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040014265INTL_FLAGS=
14266if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14267 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14268fi
14269
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014270test -d lib || mkdir lib
14271test -d include || mkdir include
14272test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000014273test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050014274for i in MCONFIG Makefile e2fsprogs.spec \
14275 util/Makefile util/subst.conf util/gen-tarball \
14276 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014277 lib/uuid/Makefile lib/uuid/uuid_types.h \
14278 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050014279 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014280 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14281 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14282 if test -d `dirname ${srcdir}/$i` ; then
14283 outlist="$outlist $i"
14284 fi
14285done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014286 ac_config_files="$ac_config_files $outlist"
14287cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014288# This file is a shell script that caches the results of configure
14289# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014290# scripts and configure runs, see configure's option --config-cache.
14291# It is not useful on other systems. If it contains results you don't
14292# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014293#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014294# config.status only pays attention to the cache file if you give it
14295# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014296#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014297# `ac_cv_env_foo' variables (set or unset) will be overridden when
14298# loading this file, other *unset* `ac_cv_foo' will be assigned the
14299# following values.
14300
14301_ACEOF
14302
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014303# The following way of writing the cache mishandles newlines in values,
14304# but we know of no workaround that is simple, portable, and efficient.
14305# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014306# Ultrix sh set writes to stderr and can't be redirected directly,
14307# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014308{
14309 (set) 2>&1 |
14310 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14311 *ac_space=\ *)
14312 # `set' does not quote correctly, so add quotes (double-quote
14313 # substitution turns \\\\ into \\, and sed turns \\ into \).
14314 sed -n \
14315 "s/'/'\\\\''/g;
14316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14317 ;;
14318 *)
14319 # `set' quotes correctly as required by POSIX, so do not add quotes.
14320 sed -n \
14321 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14322 ;;
14323 esac;
14324} |
14325 sed '
14326 t clear
14327 : clear
14328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14329 t end
14330 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14331 : end' >>confcache
14332if diff $cache_file confcache >/dev/null 2>&1; then :; else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014333 if test -w $cache_file; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014334 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14335 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014336 else
14337 echo "not updating unwritable cache $cache_file"
14338 fi
14339fi
14340rm -f confcache
14341
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014342test "x$prefix" = xNONE && prefix=$ac_default_prefix
14343# Let make expand exec_prefix.
14344test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14345
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014346# VPATH may cause trouble with some makes, so we remove $(srcdir),
14347# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14348# trailing colons and then remove the whole line if VPATH becomes empty
14349# (actually we leave an empty line to preserve line numbers).
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014350if test "x$srcdir" = x.; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014351 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14352s/:*\$(srcdir):*/:/;
14353s/:*\${srcdir}:*/:/;
14354s/:*@srcdir@:*/:/;
14355s/^\([^=]*=[ ]*\):*/\1/;
14356s/:*$//;
14357s/^[^=]*=[ ]*$//;
14358}'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014359fi
14360
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014361# Transform confdefs.h into DEFS.
14362# Protect against shell expansion while executing Makefile rules.
14363# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014364#
14365# If the first sed substitution is executed (which looks for macros that
14366# take arguments), then we branch to the quote section. Otherwise,
14367# look for a macro that doesn't take arguments.
14368cat >confdef2opt.sed <<\_ACEOF
14369t clear
14370: clear
14371s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14372t quote
14373s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14374t quote
14375d
14376: quote
14377s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14378s,\[,\\&,g
14379s,\],\\&,g
14380s,\$,$$,g
14381p
14382_ACEOF
14383# We use echo to avoid assuming a particular line-breaking character.
14384# The extra dot is to prevent the shell from consuming trailing
14385# line-breaks from the sub-command output. A line-break within
14386# single-quotes doesn't work because, if this script is created in a
14387# platform that uses two characters for line-breaks (e.g., DOS), tr
14388# would break.
14389ac_LF_and_DOT=`echo; echo .`
14390DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14391rm -f confdef2opt.sed
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014392
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014393
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014394ac_libobjs=
14395ac_ltlibobjs=
14396for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14397 # 1. Remove the extension, and $U if already installed.
14398 ac_i=`echo "$ac_i" |
14399 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14400 # 2. Add them.
14401 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14402 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14403done
14404LIBOBJS=$ac_libobjs
14405
14406LTLIBOBJS=$ac_ltlibobjs
14407
14408
14409
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014410: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014411ac_clean_files_save=$ac_clean_files
14412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14413{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14414echo "$as_me: creating $CONFIG_STATUS" >&6;}
14415cat >$CONFIG_STATUS <<_ACEOF
14416#! $SHELL
14417# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014418# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014419# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014420# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014421
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014422debug=false
14423ac_cs_recheck=false
14424ac_cs_silent=false
14425SHELL=\${CONFIG_SHELL-$SHELL}
14426_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014428cat >>$CONFIG_STATUS <<\_ACEOF
14429## --------------------- ##
14430## M4sh Initialization. ##
14431## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014433# Be Bourne compatible
14434if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14435 emulate sh
14436 NULLCMD=:
14437 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14438 # is contrary to our usage. Disable this feature.
14439 alias -g '${1+"$@"}'='"$@"'
14440elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14441 set -o posix
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014442fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014443DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014444
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014445# Support unset when possible.
14446if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14447 as_unset=unset
14448else
14449 as_unset=false
14450fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014451
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014453# Work around bugs in pre-3.0 UWIN ksh.
14454$as_unset ENV MAIL MAILPATH
14455PS1='$ '
14456PS2='> '
14457PS4='+ '
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014459# NLS nuisances.
14460for as_var in \
14461 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14462 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14463 LC_TELEPHONE LC_TIME
14464do
14465 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14466 eval $as_var=C; export $as_var
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014467 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468 $as_unset $as_var
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014469 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014470done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014472# Required to use basename.
14473if expr a : '\(a\)' >/dev/null 2>&1; then
14474 as_expr=expr
14475else
14476 as_expr=false
14477fi
14478
14479if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14480 as_basename=basename
14481else
14482 as_basename=false
14483fi
14484
14485
14486# Name of the executable.
14487as_me=`$as_basename "$0" ||
14488$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14489 X"$0" : 'X\(//\)$' \| \
14490 X"$0" : 'X\(/\)$' \| \
14491 . : '\(.\)' 2>/dev/null ||
14492echo X/"$0" |
14493 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14494 /^X\/\(\/\/\)$/{ s//\1/; q; }
14495 /^X\/\(\/\).*/{ s//\1/; q; }
14496 s/.*/./; q'`
14497
14498
14499# PATH needs CR, and LINENO needs CR and PATH.
14500# Avoid depending upon Character Ranges.
14501as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14502as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14503as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14504as_cr_digits='0123456789'
14505as_cr_alnum=$as_cr_Letters$as_cr_digits
14506
14507# The user is always right.
14508if test "${PATH_SEPARATOR+set}" != set; then
14509 echo "#! /bin/sh" >conf$$.sh
14510 echo "exit 0" >>conf$$.sh
14511 chmod +x conf$$.sh
14512 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14513 PATH_SEPARATOR=';'
14514 else
14515 PATH_SEPARATOR=:
14516 fi
14517 rm -f conf$$.sh
14518fi
14519
14520
14521 as_lineno_1=$LINENO
14522 as_lineno_2=$LINENO
14523 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14524 test "x$as_lineno_1" != "x$as_lineno_2" &&
14525 test "x$as_lineno_3" = "x$as_lineno_2" || {
14526 # Find who we are. Look in the path if we contain no path at all
14527 # relative or not.
14528 case $0 in
14529 *[\\/]* ) as_myself=$0 ;;
14530 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531for as_dir in $PATH
14532do
14533 IFS=$as_save_IFS
14534 test -z "$as_dir" && as_dir=.
14535 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14536done
14537
14538 ;;
14539 esac
14540 # We did not find ourselves, most probably we were run as `sh COMMAND'
14541 # in which case we are not to be found in the path.
14542 if test "x$as_myself" = x; then
14543 as_myself=$0
14544 fi
14545 if test ! -f "$as_myself"; then
14546 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14547echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14548 { (exit 1); exit 1; }; }
14549 fi
14550 case $CONFIG_SHELL in
14551 '')
14552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14553for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14554do
14555 IFS=$as_save_IFS
14556 test -z "$as_dir" && as_dir=.
14557 for as_base in sh bash ksh sh5; do
14558 case $as_dir in
14559 /*)
14560 if ("$as_dir/$as_base" -c '
14561 as_lineno_1=$LINENO
14562 as_lineno_2=$LINENO
14563 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14564 test "x$as_lineno_1" != "x$as_lineno_2" &&
14565 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14566 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14567 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14568 CONFIG_SHELL=$as_dir/$as_base
14569 export CONFIG_SHELL
14570 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14571 fi;;
14572 esac
14573 done
14574done
14575;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014576 esac
14577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014578 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14579 # uniformly replaced by the line number. The first 'sed' inserts a
14580 # line-number line before each line; the second 'sed' does the real
14581 # work. The second script uses 'N' to pair each line-number line
14582 # with the numbered line, and appends trailing '-' during
14583 # substitution so that $LINENO is not a special case at line end.
14584 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14585 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14586 sed '=' <$as_myself |
14587 sed '
14588 N
14589 s,$,-,
14590 : loop
14591 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14592 t loop
14593 s,-$,,
14594 s,^['$as_cr_digits']*\n,,
14595 ' >$as_me.lineno &&
14596 chmod +x $as_me.lineno ||
14597 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14598echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14599 { (exit 1); exit 1; }; }
14600
14601 # Don't try to exec as it changes $[0], causing all sort of problems
14602 # (the dirname of $[0] is not the place where we might find the
14603 # original and so on. Autoconf is especially sensible to this).
14604 . ./$as_me.lineno
14605 # Exit status is that of the last command.
14606 exit
14607}
14608
14609
14610case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14611 *c*,-n*) ECHO_N= ECHO_C='
14612' ECHO_T=' ' ;;
14613 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14614 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14615esac
14616
14617if expr a : '\(a\)' >/dev/null 2>&1; then
14618 as_expr=expr
14619else
14620 as_expr=false
14621fi
14622
14623rm -f conf$$ conf$$.exe conf$$.file
14624echo >conf$$.file
14625if ln -s conf$$.file conf$$ 2>/dev/null; then
14626 # We could just check for DJGPP; but this test a) works b) is more generic
14627 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14628 if test -f conf$$.exe; then
14629 # Don't use ln at all; we don't have any links
14630 as_ln_s='cp -p'
14631 else
14632 as_ln_s='ln -s'
14633 fi
14634elif ln conf$$.file conf$$ 2>/dev/null; then
14635 as_ln_s=ln
14636else
14637 as_ln_s='cp -p'
14638fi
14639rm -f conf$$ conf$$.exe conf$$.file
14640
14641if mkdir -p . 2>/dev/null; then
14642 as_mkdir_p=:
14643else
14644 test -d ./-p && rmdir ./-p
14645 as_mkdir_p=false
14646fi
14647
14648as_executable_p="test -f"
14649
14650# Sed expression to map a string onto a valid CPP name.
14651as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14652
14653# Sed expression to map a string onto a valid variable name.
14654as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14655
14656
14657# IFS
14658# We need space, tab and new line, in precisely that order.
14659as_nl='
14660'
14661IFS=" $as_nl"
14662
14663# CDPATH.
14664$as_unset CDPATH
14665
14666exec 6>&1
14667
14668# Open the log real soon, to keep \$[0] and so on meaningful, and to
14669# report actual input values of CONFIG_FILES etc. instead of their
14670# values after options handling. Logging --version etc. is OK.
14671exec 5>>config.log
14672{
14673 echo
14674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14675## Running $as_me. ##
14676_ASBOX
14677} >&5
14678cat >&5 <<_CSEOF
14679
14680This file was extended by $as_me, which was
14681generated by GNU Autoconf 2.59. Invocation command line was
14682
14683 CONFIG_FILES = $CONFIG_FILES
14684 CONFIG_HEADERS = $CONFIG_HEADERS
14685 CONFIG_LINKS = $CONFIG_LINKS
14686 CONFIG_COMMANDS = $CONFIG_COMMANDS
14687 $ $0 $@
14688
14689_CSEOF
14690echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14691echo >&5
14692_ACEOF
14693
14694# Files that config.status was made for.
14695if test -n "$ac_config_files"; then
14696 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14697fi
14698
14699if test -n "$ac_config_headers"; then
14700 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14701fi
14702
14703if test -n "$ac_config_links"; then
14704 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14705fi
14706
14707if test -n "$ac_config_commands"; then
14708 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14709fi
14710
14711cat >>$CONFIG_STATUS <<\_ACEOF
14712
14713ac_cs_usage="\
14714\`$as_me' instantiates files from templates according to the
14715current configuration.
14716
14717Usage: $0 [OPTIONS] [FILE]...
14718
14719 -h, --help print this help, then exit
14720 -V, --version print version number, then exit
14721 -q, --quiet do not print progress messages
14722 -d, --debug don't remove temporary files
14723 --recheck update $as_me by reconfiguring in the same conditions
14724 --file=FILE[:TEMPLATE]
14725 instantiate the configuration file FILE
14726
14727Configuration files:
14728$config_files
14729
14730Configuration commands:
14731$config_commands
14732
14733Report bugs to <bug-autoconf@gnu.org>."
14734_ACEOF
14735
14736cat >>$CONFIG_STATUS <<_ACEOF
14737ac_cs_version="\\
14738config.status
14739configured by $0, generated by GNU Autoconf 2.59,
14740 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14741
14742Copyright (C) 2003 Free Software Foundation, Inc.
14743This config.status script is free software; the Free Software Foundation
14744gives unlimited permission to copy, distribute and modify it."
14745srcdir=$srcdir
14746INSTALL="$INSTALL"
14747_ACEOF
14748
14749cat >>$CONFIG_STATUS <<\_ACEOF
14750# If no file are specified by the user, then we need to provide default
14751# value. By we need to know if files were specified by the user.
14752ac_need_defaults=:
14753while test $# != 0
14754do
14755 case $1 in
14756 --*=*)
14757 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14758 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14759 ac_shift=:
14760 ;;
14761 -*)
14762 ac_option=$1
14763 ac_optarg=$2
14764 ac_shift=shift
14765 ;;
14766 *) # This is not an option, so the user has probably given explicit
14767 # arguments.
14768 ac_option=$1
14769 ac_need_defaults=false;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014770 esac
14771
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014772 case $ac_option in
14773 # Handling of the options.
14774_ACEOF
14775cat >>$CONFIG_STATUS <<\_ACEOF
14776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14777 ac_cs_recheck=: ;;
14778 --version | --vers* | -V )
14779 echo "$ac_cs_version"; exit 0 ;;
14780 --he | --h)
14781 # Conflict between --help and --header
14782 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14783Try \`$0 --help' for more information." >&5
14784echo "$as_me: error: ambiguous option: $1
14785Try \`$0 --help' for more information." >&2;}
14786 { (exit 1); exit 1; }; };;
14787 --help | --hel | -h )
14788 echo "$ac_cs_usage"; exit 0 ;;
14789 --debug | --d* | -d )
14790 debug=: ;;
14791 --file | --fil | --fi | --f )
14792 $ac_shift
14793 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14794 ac_need_defaults=false;;
14795 --header | --heade | --head | --hea )
14796 $ac_shift
14797 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14798 ac_need_defaults=false;;
14799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14801 ac_cs_silent=: ;;
14802
14803 # This is an error.
14804 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14805Try \`$0 --help' for more information." >&5
14806echo "$as_me: error: unrecognized option: $1
14807Try \`$0 --help' for more information." >&2;}
14808 { (exit 1); exit 1; }; } ;;
14809
14810 *) ac_config_targets="$ac_config_targets $1" ;;
14811
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014812 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014813 shift
14814done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014815
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014816ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014817
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014818if $ac_cs_silent; then
14819 exec 6>/dev/null
14820 ac_configure_extra_args="$ac_configure_extra_args --silent"
14821fi
14822
14823_ACEOF
14824cat >>$CONFIG_STATUS <<_ACEOF
14825if \$ac_cs_recheck; then
14826 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14827 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14828fi
14829
14830_ACEOF
14831
14832cat >>$CONFIG_STATUS <<_ACEOF
14833#
14834# INIT-COMMANDS section.
14835#
14836
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014837# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014838 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014839 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014840 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014841 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14842 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014843
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014844
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014845_ACEOF
14846
14847
14848
14849cat >>$CONFIG_STATUS <<\_ACEOF
14850for ac_config_target in $ac_config_targets
14851do
14852 case "$ac_config_target" in
14853 # Handling of arguments.
14854 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14855 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14857echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14858 { (exit 1); exit 1; }; };;
14859 esac
14860done
14861
14862# If the user did not use the arguments to specify the items to instantiate,
14863# then the envvar interface is used. Set only those that are not.
14864# We use the long form for the default assignment because of an extremely
14865# bizarre bug on SunOS 4.1.3.
14866if $ac_need_defaults; then
14867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14868 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14869fi
14870
14871# Have a temporary directory for convenience. Make it in the build tree
14872# simply because there is no reason to put it here, and in addition,
14873# creating and moving files from /tmp can sometimes cause problems.
14874# Create a temporary directory, and hook for its removal unless debugging.
14875$debug ||
14876{
14877 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14878 trap '{ (exit 1); exit 1; }' 1 2 13 15
14879}
14880
14881# Create a (secure) tmp directory for tmp files.
14882
14883{
14884 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14885 test -n "$tmp" && test -d "$tmp"
14886} ||
14887{
14888 tmp=./confstat$$-$RANDOM
14889 (umask 077 && mkdir $tmp)
14890} ||
14891{
14892 echo "$me: cannot create a temporary directory in ." >&2
14893 { (exit 1); exit 1; }
14894}
14895
14896_ACEOF
14897
14898cat >>$CONFIG_STATUS <<_ACEOF
14899
14900#
14901# CONFIG_FILES section.
14902#
14903
14904# No need to generate the scripts if there are no CONFIG_FILES.
14905# This happens for instance when ./config.status config.h
14906if test -n "\$CONFIG_FILES"; then
14907 # Protect against being on the right side of a sed subst in config.status.
14908 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14909 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14910s,@SHELL@,$SHELL,;t t
14911s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14912s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14913s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14914s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14915s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14916s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14917s,@exec_prefix@,$exec_prefix,;t t
14918s,@prefix@,$prefix,;t t
14919s,@program_transform_name@,$program_transform_name,;t t
14920s,@bindir@,$bindir,;t t
14921s,@sbindir@,$sbindir,;t t
14922s,@libexecdir@,$libexecdir,;t t
14923s,@datadir@,$datadir,;t t
14924s,@sysconfdir@,$sysconfdir,;t t
14925s,@sharedstatedir@,$sharedstatedir,;t t
14926s,@localstatedir@,$localstatedir,;t t
14927s,@libdir@,$libdir,;t t
14928s,@includedir@,$includedir,;t t
14929s,@oldincludedir@,$oldincludedir,;t t
14930s,@infodir@,$infodir,;t t
14931s,@mandir@,$mandir,;t t
14932s,@build_alias@,$build_alias,;t t
14933s,@host_alias@,$host_alias,;t t
14934s,@target_alias@,$target_alias,;t t
14935s,@DEFS@,$DEFS,;t t
14936s,@ECHO_C@,$ECHO_C,;t t
14937s,@ECHO_N@,$ECHO_N,;t t
14938s,@ECHO_T@,$ECHO_T,;t t
14939s,@LIBS@,$LIBS,;t t
14940s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14941s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14942s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14943s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14944s,@build@,$build,;t t
14945s,@build_cpu@,$build_cpu,;t t
14946s,@build_vendor@,$build_vendor,;t t
14947s,@build_os@,$build_os,;t t
14948s,@host@,$host,;t t
14949s,@host_cpu@,$host_cpu,;t t
14950s,@host_vendor@,$host_vendor,;t t
14951s,@host_os@,$host_os,;t t
14952s,@CC@,$CC,;t t
14953s,@CFLAGS@,$CFLAGS,;t t
14954s,@LDFLAGS@,$LDFLAGS,;t t
14955s,@CPPFLAGS@,$CPPFLAGS,;t t
14956s,@ac_ct_CC@,$ac_ct_CC,;t t
14957s,@EXEEXT@,$EXEEXT,;t t
14958s,@OBJEXT@,$OBJEXT,;t t
14959s,@LD@,$LD,;t t
14960s,@CPP@,$CPP,;t t
14961s,@EGREP@,$EGREP,;t t
14962s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
14963s,@HTREE_CMT@,$HTREE_CMT,;t t
14964s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t
14965s,@ELF_CMT@,$ELF_CMT,;t t
14966s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14967s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14968s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14969s,@LIB_EXT@,$LIB_EXT,;t t
14970s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14971s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14972s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
14973s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
14974s,@IMAGER_CMT@,$IMAGER_CMT,;t t
14975s,@RESIZER_CMT@,$RESIZER_CMT,;t t
14976s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
14977s,@FSCK_PROG@,$FSCK_PROG,;t t
14978s,@FSCK_MAN@,$FSCK_MAN,;t t
14979s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
14980s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
14981s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
14982s,@PACKAGE@,$PACKAGE,;t t
14983s,@VERSION@,$VERSION,;t t
14984s,@SET_MAKE@,$SET_MAKE,;t t
14985s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14986s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14987s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14988s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14989s,@USE_NLS@,$USE_NLS,;t t
14990s,@MSGFMT@,$MSGFMT,;t t
14991s,@GMSGFMT@,$GMSGFMT,;t t
14992s,@XGETTEXT@,$XGETTEXT,;t t
14993s,@MSGMERGE@,$MSGMERGE,;t t
14994s,@RANLIB@,$RANLIB,;t t
14995s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14996s,@ALLOCA@,$ALLOCA,;t t
14997s,@GLIBC21@,$GLIBC21,;t t
14998s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
14999s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
15000s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
15001s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
15002s,@LIBICONV@,$LIBICONV,;t t
15003s,@LTLIBICONV@,$LTLIBICONV,;t t
15004s,@INTLBISON@,$INTLBISON,;t t
15005s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15006s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15007s,@CATOBJEXT@,$CATOBJEXT,;t t
15008s,@DATADIRNAME@,$DATADIRNAME,;t t
15009s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15010s,@GENCAT@,$GENCAT,;t t
15011s,@INTLOBJS@,$INTLOBJS,;t t
15012s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15013s,@INTLLIBS@,$INTLLIBS,;t t
15014s,@LIBINTL@,$LIBINTL,;t t
15015s,@LTLIBINTL@,$LTLIBINTL,;t t
15016s,@POSUB@,$POSUB,;t t
15017s,@BINARY_TYPE@,$BINARY_TYPE,;t t
15018s,@LN@,$LN,;t t
15019s,@LN_S@,$LN_S,;t t
15020s,@MV@,$MV,;t t
15021s,@CP@,$CP,;t t
15022s,@RM@,$RM,;t t
15023s,@CHMOD@,$CHMOD,;t t
15024s,@AWK@,$AWK,;t t
15025s,@SED@,$SED,;t t
15026s,@PERL@,$PERL,;t t
15027s,@LDCONFIG@,$LDCONFIG,;t t
15028s,@AR@,$AR,;t t
15029s,@ac_ct_AR@,$ac_ct_AR,;t t
15030s,@STRIP@,$STRIP,;t t
15031s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15032s,@BUILD_CC@,$BUILD_CC,;t t
15033s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
15034s,@SIZEOF_INT@,$SIZEOF_INT,;t t
15035s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
15036s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
15037s,@SOCKET_LIB@,$SOCKET_LIB,;t t
15038s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
15039s,@LINUX_CMT@,$LINUX_CMT,;t t
15040s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
15041s,@UNIX_CMT@,$UNIX_CMT,;t t
15042s,@root_prefix@,$root_prefix,;t t
15043s,@root_bindir@,$root_bindir,;t t
15044s,@root_sbindir@,$root_sbindir,;t t
15045s,@root_libdir@,$root_libdir,;t t
15046s,@root_sysconfdir@,$root_sysconfdir,;t t
15047s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
15048s,@SS_DIR@,$SS_DIR,;t t
15049s,@ET_DIR@,$ET_DIR,;t t
15050s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
15051s,@INTL_FLAGS@,$INTL_FLAGS,;t t
15052s,@LIBOBJS@,$LIBOBJS,;t t
15053s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15054/@MCONFIG@/r $MCONFIG
15055s,@MCONFIG@,,;t t
15056/@MAKEFILE_ELF@/r $MAKEFILE_ELF
15057s,@MAKEFILE_ELF@,,;t t
15058/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
15059s,@MAKEFILE_BSDLIB@,,;t t
15060/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
15061s,@MAKEFILE_PROFILE@,,;t t
15062/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
15063s,@MAKEFILE_CHECKER@,,;t t
15064/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
15065s,@MAKEFILE_LIBRARY@,,;t t
15066CEOF
15067
15068_ACEOF
15069
15070 cat >>$CONFIG_STATUS <<\_ACEOF
15071 # Split the substitutions into bite-sized pieces for seds with
15072 # small command number limits, like on Digital OSF/1 and HP-UX.
15073 ac_max_sed_lines=48
15074 ac_sed_frag=1 # Number of current file.
15075 ac_beg=1 # First line for current file.
15076 ac_end=$ac_max_sed_lines # Line after last line for current file.
15077 ac_more_lines=:
15078 ac_sed_cmds=
15079 while $ac_more_lines; do
15080 if test $ac_beg -gt 1; then
15081 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15082 else
15083 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15084 fi
15085 if test ! -s $tmp/subs.frag; then
15086 ac_more_lines=false
15087 else
15088 # The purpose of the label and of the branching condition is to
15089 # speed up the sed processing (if there are no `@' at all, there
15090 # is no need to browse any of the substitutions).
15091 # These are the two extra sed commands mentioned above.
15092 (echo ':t
15093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15094 if test -z "$ac_sed_cmds"; then
15095 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15096 else
15097 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15098 fi
15099 ac_sed_frag=`expr $ac_sed_frag + 1`
15100 ac_beg=$ac_end
15101 ac_end=`expr $ac_end + $ac_max_sed_lines`
15102 fi
15103 done
15104 if test -z "$ac_sed_cmds"; then
15105 ac_sed_cmds=cat
15106 fi
15107fi # test -n "$CONFIG_FILES"
15108
15109_ACEOF
15110cat >>$CONFIG_STATUS <<\_ACEOF
15111for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15112 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15113 case $ac_file in
15114 - | *:- | *:-:* ) # input from stdin
15115 cat >$tmp/stdin
15116 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15117 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15118 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15119 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15120 * ) ac_file_in=$ac_file.in ;;
15121 esac
15122
15123 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15124 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15125$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15126 X"$ac_file" : 'X\(//\)[^/]' \| \
15127 X"$ac_file" : 'X\(//\)$' \| \
15128 X"$ac_file" : 'X\(/\)' \| \
15129 . : '\(.\)' 2>/dev/null ||
15130echo X"$ac_file" |
15131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15133 /^X\(\/\/\)$/{ s//\1/; q; }
15134 /^X\(\/\).*/{ s//\1/; q; }
15135 s/.*/./; q'`
15136 { if $as_mkdir_p; then
15137 mkdir -p "$ac_dir"
15138 else
15139 as_dir="$ac_dir"
15140 as_dirs=
15141 while test ! -d "$as_dir"; do
15142 as_dirs="$as_dir $as_dirs"
15143 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15144$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15145 X"$as_dir" : 'X\(//\)[^/]' \| \
15146 X"$as_dir" : 'X\(//\)$' \| \
15147 X"$as_dir" : 'X\(/\)' \| \
15148 . : '\(.\)' 2>/dev/null ||
15149echo X"$as_dir" |
15150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15152 /^X\(\/\/\)$/{ s//\1/; q; }
15153 /^X\(\/\).*/{ s//\1/; q; }
15154 s/.*/./; q'`
15155 done
15156 test ! -n "$as_dirs" || mkdir $as_dirs
15157 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15158echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15159 { (exit 1); exit 1; }; }; }
15160
15161 ac_builddir=.
15162
15163if test "$ac_dir" != .; then
15164 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15165 # A "../" for each directory in $ac_dir_suffix.
15166 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15167else
15168 ac_dir_suffix= ac_top_builddir=
15169fi
15170
15171case $srcdir in
15172 .) # No --srcdir option. We are building in place.
15173 ac_srcdir=.
15174 if test -z "$ac_top_builddir"; then
15175 ac_top_srcdir=.
15176 else
15177 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15178 fi ;;
15179 [\\/]* | ?:[\\/]* ) # Absolute path.
15180 ac_srcdir=$srcdir$ac_dir_suffix;
15181 ac_top_srcdir=$srcdir ;;
15182 *) # Relative path.
15183 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15184 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15185esac
15186
15187# Do not use `cd foo && pwd` to compute absolute paths, because
15188# the directories may not exist.
15189case `pwd` in
15190.) ac_abs_builddir="$ac_dir";;
15191*)
15192 case "$ac_dir" in
15193 .) ac_abs_builddir=`pwd`;;
15194 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15195 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15196 esac;;
15197esac
15198case $ac_abs_builddir in
15199.) ac_abs_top_builddir=${ac_top_builddir}.;;
15200*)
15201 case ${ac_top_builddir}. in
15202 .) ac_abs_top_builddir=$ac_abs_builddir;;
15203 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15204 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15205 esac;;
15206esac
15207case $ac_abs_builddir in
15208.) ac_abs_srcdir=$ac_srcdir;;
15209*)
15210 case $ac_srcdir in
15211 .) ac_abs_srcdir=$ac_abs_builddir;;
15212 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15213 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15214 esac;;
15215esac
15216case $ac_abs_builddir in
15217.) ac_abs_top_srcdir=$ac_top_srcdir;;
15218*)
15219 case $ac_top_srcdir in
15220 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15221 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15222 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15223 esac;;
15224esac
15225
15226
15227 case $INSTALL in
15228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15229 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15230 esac
15231
15232 # Let's still pretend it is `configure' which instantiates (i.e., don't
15233 # use $as_me), people would be surprised to read:
15234 # /* config.h. Generated by config.status. */
15235 if test x"$ac_file" = x-; then
15236 configure_input=
15237 else
15238 configure_input="$ac_file. "
15239 fi
15240 configure_input=$configure_input"Generated from `echo $ac_file_in |
15241 sed 's,.*/,,'` by configure."
15242
15243 # First look for the input files in the build tree, otherwise in the
15244 # src tree.
15245 ac_file_inputs=`IFS=:
15246 for f in $ac_file_in; do
15247 case $f in
15248 -) echo $tmp/stdin ;;
15249 [\\/$]*)
15250 # Absolute (can't be DOS-style, as IFS=:)
15251 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15252echo "$as_me: error: cannot find input file: $f" >&2;}
15253 { (exit 1); exit 1; }; }
15254 echo "$f";;
15255 *) # Relative
15256 if test -f "$f"; then
15257 # Build tree
15258 echo "$f"
15259 elif test -f "$srcdir/$f"; then
15260 # Source tree
15261 echo "$srcdir/$f"
15262 else
15263 # /dev/null tree
15264 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15265echo "$as_me: error: cannot find input file: $f" >&2;}
15266 { (exit 1); exit 1; }; }
15267 fi;;
15268 esac
15269 done` || { (exit 1); exit 1; }
15270
15271 if test x"$ac_file" != x-; then
15272 { echo "$as_me:$LINENO: creating $ac_file" >&5
15273echo "$as_me: creating $ac_file" >&6;}
15274 rm -f "$ac_file"
15275 fi
15276_ACEOF
15277cat >>$CONFIG_STATUS <<_ACEOF
15278 sed "$ac_vpsub
15279$extrasub
15280_ACEOF
15281cat >>$CONFIG_STATUS <<\_ACEOF
15282:t
15283/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15284s,@configure_input@,$configure_input,;t t
15285s,@srcdir@,$ac_srcdir,;t t
15286s,@abs_srcdir@,$ac_abs_srcdir,;t t
15287s,@top_srcdir@,$ac_top_srcdir,;t t
15288s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15289s,@builddir@,$ac_builddir,;t t
15290s,@abs_builddir@,$ac_abs_builddir,;t t
15291s,@top_builddir@,$ac_top_builddir,;t t
15292s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15293s,@INSTALL@,$ac_INSTALL,;t t
15294" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15295 rm -f $tmp/stdin
15296 if test x"$ac_file" != x-; then
15297 mv $tmp/out $ac_file
15298 else
15299 cat $tmp/out
15300 rm -f $tmp/out
15301 fi
15302
15303done
15304_ACEOF
15305cat >>$CONFIG_STATUS <<\_ACEOF
15306
15307#
15308# CONFIG_COMMANDS section.
15309#
15310for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15311 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15312 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15313 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15314$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15315 X"$ac_dest" : 'X\(//\)[^/]' \| \
15316 X"$ac_dest" : 'X\(//\)$' \| \
15317 X"$ac_dest" : 'X\(/\)' \| \
15318 . : '\(.\)' 2>/dev/null ||
15319echo X"$ac_dest" |
15320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15322 /^X\(\/\/\)$/{ s//\1/; q; }
15323 /^X\(\/\).*/{ s//\1/; q; }
15324 s/.*/./; q'`
15325 { if $as_mkdir_p; then
15326 mkdir -p "$ac_dir"
15327 else
15328 as_dir="$ac_dir"
15329 as_dirs=
15330 while test ! -d "$as_dir"; do
15331 as_dirs="$as_dir $as_dirs"
15332 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15334 X"$as_dir" : 'X\(//\)[^/]' \| \
15335 X"$as_dir" : 'X\(//\)$' \| \
15336 X"$as_dir" : 'X\(/\)' \| \
15337 . : '\(.\)' 2>/dev/null ||
15338echo X"$as_dir" |
15339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15341 /^X\(\/\/\)$/{ s//\1/; q; }
15342 /^X\(\/\).*/{ s//\1/; q; }
15343 s/.*/./; q'`
15344 done
15345 test ! -n "$as_dirs" || mkdir $as_dirs
15346 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15347echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15348 { (exit 1); exit 1; }; }; }
15349
15350 ac_builddir=.
15351
15352if test "$ac_dir" != .; then
15353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15354 # A "../" for each directory in $ac_dir_suffix.
15355 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15356else
15357 ac_dir_suffix= ac_top_builddir=
15358fi
15359
15360case $srcdir in
15361 .) # No --srcdir option. We are building in place.
15362 ac_srcdir=.
15363 if test -z "$ac_top_builddir"; then
15364 ac_top_srcdir=.
15365 else
15366 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15367 fi ;;
15368 [\\/]* | ?:[\\/]* ) # Absolute path.
15369 ac_srcdir=$srcdir$ac_dir_suffix;
15370 ac_top_srcdir=$srcdir ;;
15371 *) # Relative path.
15372 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15373 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15374esac
15375
15376# Do not use `cd foo && pwd` to compute absolute paths, because
15377# the directories may not exist.
15378case `pwd` in
15379.) ac_abs_builddir="$ac_dir";;
15380*)
15381 case "$ac_dir" in
15382 .) ac_abs_builddir=`pwd`;;
15383 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15384 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15385 esac;;
15386esac
15387case $ac_abs_builddir in
15388.) ac_abs_top_builddir=${ac_top_builddir}.;;
15389*)
15390 case ${ac_top_builddir}. in
15391 .) ac_abs_top_builddir=$ac_abs_builddir;;
15392 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15393 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15394 esac;;
15395esac
15396case $ac_abs_builddir in
15397.) ac_abs_srcdir=$ac_srcdir;;
15398*)
15399 case $ac_srcdir in
15400 .) ac_abs_srcdir=$ac_abs_builddir;;
15401 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15402 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15403 esac;;
15404esac
15405case $ac_abs_builddir in
15406.) ac_abs_top_srcdir=$ac_top_srcdir;;
15407*)
15408 case $ac_top_srcdir in
15409 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15410 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15411 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15412 esac;;
15413esac
15414
15415
15416 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15417echo "$as_me: executing $ac_dest commands" >&6;}
15418 case $ac_dest in
15419 default-1 )
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015420 for ac_file in $CONFIG_FILES; do
15421 # Support "outfile[:infile[:infile...]]"
15422 case "$ac_file" in
15423 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015424 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015425 # PO directories have a Makefile.in generated from Makefile.in.in.
15426 case "$ac_file" in */Makefile.in)
15427 # Adjust a relative srcdir.
15428 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15429 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15430 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15431 # In autoconf-2.13 it is called $ac_given_srcdir.
15432 # In autoconf-2.50 it is called $srcdir.
15433 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15434 case "$ac_given_srcdir" in
15435 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15436 /*) top_srcdir="$ac_given_srcdir" ;;
15437 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15438 esac
15439 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15440 rm -f "$ac_dir/POTFILES"
15441 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15442 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015443 POMAKEFILEDEPS="POTFILES.in"
15444 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015445 # on $ac_dir but don't depend on user-specified configuration
15446 # parameters.
15447 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15448 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015449 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015450 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15451 fi
15452 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15453 # Hide the ALL_LINGUAS assigment from automake.
15454 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015455 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15456 else
15457 # The set of available languages was given in configure.in.
15458 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015459 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015460 # Compute POFILES
15461 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15462 # Compute UPDATEPOFILES
15463 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15464 # Compute DUMMYPOFILES
15465 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15466 # Compute GMOFILES
15467 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015468 case "$ac_given_srcdir" in
15469 .) srcdirpre= ;;
15470 *) srcdirpre='$(srcdir)/' ;;
15471 esac
15472 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015473 UPDATEPOFILES=
15474 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015475 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015476 for lang in $ALL_LINGUAS; do
15477 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015478 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15479 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015480 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015481 done
15482 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15483 # environment variable.
15484 INST_LINGUAS=
15485 if test -n "$ALL_LINGUAS"; then
15486 for presentlang in $ALL_LINGUAS; do
15487 useit=no
15488 if test "%UNSET%" != "$LINGUAS"; then
15489 desiredlanguages="$LINGUAS"
15490 else
15491 desiredlanguages="$ALL_LINGUAS"
15492 fi
15493 for desiredlang in $desiredlanguages; do
15494 # Use the presentlang catalog if desiredlang is
15495 # a. equal to presentlang, or
15496 # b. a variant of presentlang (because in this case,
15497 # presentlang can be used as a fallback for messages
15498 # which are not translated in the desiredlang catalog).
15499 case "$desiredlang" in
15500 "$presentlang"*) useit=yes;;
15501 esac
15502 done
15503 if test $useit = yes; then
15504 INST_LINGUAS="$INST_LINGUAS $presentlang"
15505 fi
15506 done
15507 fi
15508 CATALOGS=
15509 if test -n "$INST_LINGUAS"; then
15510 for lang in $INST_LINGUAS; do
15511 CATALOGS="$CATALOGS $lang.gmo"
15512 done
15513 fi
15514 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015515 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015516 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15517 if test -f "$f"; then
15518 case "$f" in
15519 *.orig | *.bak | *~) ;;
15520 *) cat "$f" >> "$ac_dir/Makefile" ;;
15521 esac
15522 fi
15523 done
15524 fi
15525 ;;
15526 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015527 done ;;
15528 esac
15529done
15530_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015532cat >>$CONFIG_STATUS <<\_ACEOF
15533
15534{ (exit 0); exit 0; }
15535_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015536chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015537ac_clean_files=$ac_clean_files_save
15538
15539
15540# configure is writing to config.log, and then calls config.status.
15541# config.status does its own redirection, appending to config.log.
15542# Unfortunately, on DOS this fails, as config.log is still kept open
15543# by configure, so config.status won't be able to write to it; its
15544# output is simply discarded. So we exec the FD to /dev/null,
15545# effectively closing config.log, so it can be properly (re)opened and
15546# appended to by config.status. When coming back to configure, we
15547# need to make the FD available again.
15548if test "$no_create" != yes; then
15549 ac_cs_success=:
15550 ac_config_status_args=
15551 test "$silent" = yes &&
15552 ac_config_status_args="$ac_config_status_args --quiet"
15553 exec 5>/dev/null
15554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15555 exec 5>>config.log
15556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15557 # would make configure fail if this is the last instruction.
15558 $ac_cs_success || { (exit 1); exit 1; }
15559fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015560