blob: ac0f05ec6d353f79762a446bb6fdb078f7425418 [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
Karel Zak4db2f592006-03-08 14:17:28 -0500312ac_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 MAINTAINER_CMT HTREE_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 DEVMAPPER_REQ DEVMAPPER_PC_LIBS DEVMAPPER_LIBS STATIC_DEVMAPPER_LIBS 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 BUILD_CFLAGS BUILD_LDFLAGS LIBOBJS LTLIBOBJS'
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -0400313ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY ASM_TYPES_HEADER'
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]
Theodore Ts'o98919bd2005-02-04 10:43:58 -0500847 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500848 --enable-compression enable EXPERIMENTAL compression support
849 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500850 --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
Karel Zak4db2f592006-03-08 14:17:28 -0500864 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500865 --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'o98919bd2005-02-04 10:43:58 -05003088fi; # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3089if test "${enable_maintainer_mode+set}" = set; then
3090 enableval="$enable_maintainer_mode"
3091 if test "$enableval" = "no"
3092then
3093 MAINTAINER_CMT=#
3094 echo "Disabling maintainer mode"
3095else
3096 MAINTAINER_CMT=
3097 echo "Enabling maintainer mode"
3098fi
3099
3100else
3101 MAINTAINER_CMT=#
3102echo "Disabling maintainer mode by default"
3103
3104fi;
3105
3106# Check whether --enable-compression or --disable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003107if test "${enable_compression+set}" = set; then
3108 enableval="$enable_compression"
3109 if test "$enableval" = "no"
3110then
3111 echo "Disabling compression support"
3112else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003113 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003114#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003116
3117 echo "Enabling compression support"
3118 echo "WARNING: Compression support is experimental"
3119fi
3120
3121else
3122 echo "Disabling compression support by default"
3123
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003124fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003125# Check whether --enable-htree or --disable-htree was given.
3126if test "${enable_htree+set}" = set; then
3127 enableval="$enable_htree"
3128 if test "$enableval" = "no"
3129then
3130 HTREE_CMT=#
3131 echo "Disabling htree directory support"
3132else
3133 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003134 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003135#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003136_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003137
3138 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003139fi
3140
3141else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003142 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003143cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003144#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003145_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003146
3147echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003148
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003149fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003150
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003151# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003152if test "${enable_elf_shlibs+set}" = set; then
3153 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003154 if test "$enableval" = "no"
3155then
3156 ELF_CMT=#
3157 MAKEFILE_ELF=/dev/null
3158 echo "Disabling ELF shared libraries"
3159else
3160 ELF_CMT=
3161 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003162 case "$host_os" in
3163 solaris2.*)
3164 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3165 ;;
3166 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003167 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003168 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003169 echo "Enabling ELF shared libraries"
3170fi
3171
3172else
3173 MAKEFILE_ELF=/dev/null
3174ELF_CMT=#
3175echo "Disabling ELF shared libraries by default"
3176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003177fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003178
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003179
3180# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003181if test "${enable_bsd_shlibs+set}" = set; then
3182 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003183 if test "$enableval" = "no"
3184then
3185 BSDLIB_CMT=#
3186 MAKEFILE_BSDLIB=/dev/null
3187 echo "Disabling BSD shared libraries"
3188else
3189 BSDLIB_CMT=
3190 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003191 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003192 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003193 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003194 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3195 LIB_EXT=.dylib
3196 ;;
3197 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003198 echo "Enabling BSD shared libraries"
3199fi
3200
3201else
3202 MAKEFILE_BSDLIB=/dev/null
3203BSDLIB_CMT=#
3204echo "Disabling BSD shared libraries by default"
3205
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003206fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003207
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003208
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003209# Check whether --enable-profile or --disable-profile was given.
3210if test "${enable_profile+set}" = set; then
3211 enableval="$enable_profile"
3212 if test "$enableval" = "no"
3213then
3214 PROFILE_CMT=#
3215 MAKEFILE_PROFILE=/dev/null
3216 echo "Disabling profiling libraries"
3217else
3218 PROFILE_CMT=
3219 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3220 PROFILED_LIB_EXT=_p.a
3221 echo "Building profiling libraries"
3222fi
3223
3224else
3225 PROFILE_CMT=#
3226MAKEFILE_PROFILE=/dev/null
3227echo "Disabling profiling libraries by default"
3228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003229fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003230
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003231
3232# Check whether --enable-checker or --disable-checker was given.
3233if test "${enable_checker+set}" = set; then
3234 enableval="$enable_checker"
3235 if test "$enableval" = "no"
3236then
3237 CHECKER_CMT=#
3238 MAKEFILE_CHECKER=/dev/null
3239 echo "Disabling checker libraries"
3240else
3241 CHECKER_CMT=
3242 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3243 echo "Building checker libraries"
3244fi
3245
3246else
3247 CHECKER_CMT=#
3248MAKEFILE_CHECKER=/dev/null
3249echo "Disabling checker libraries by default"
3250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003251fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003252
3253
3254
3255
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003256
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003257# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3258if test "${enable_jbd_debug+set}" = set; then
3259 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003260 if test "$enableval" = "no"
3261then
3262 echo "Disabling journal debugging"
3263else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003264 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003265#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003266_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003267
3268 echo "Enabling journal debugging"
3269fi
3270
3271else
3272 echo "Disabling journal debugging by default"
3273
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003274fi;
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003275# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3276if test "${enable_blkid_debug+set}" = set; then
3277 enableval="$enable_blkid_debug"
3278 if test "$enableval" = "no"
3279then
3280 echo "Disabling blkid debugging"
3281else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003282 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003283#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003284_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003285
3286 echo "Enabling blkid debugging"
3287fi
3288
3289else
3290 echo "Disabling blkid debugging by default"
3291
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003292fi;
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003293# Check whether --enable-testio-debug or --disable-testio-debug was given.
3294if test "${enable_testio_debug+set}" = set; then
3295 enableval="$enable_testio_debug"
3296 if test "$enableval" = "no"
3297then
3298 echo "Disabling testio debugging"
3299else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003300 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003301#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003302_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003303
3304 echo "Enabling testio debugging"
3305fi
3306
3307else
3308 echo "Disabling testio debugging by default"
3309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003310fi;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003311# Check whether --enable-swapfs or --disable-swapfs was given.
3312if test "${enable_swapfs+set}" = set; then
3313 enableval="$enable_swapfs"
3314 if test "$enableval" = "no"
3315then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003316 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003317 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003318else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003319 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003320 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003321#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003322_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003323
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003324 echo "Enabling swapfs support"
3325fi
3326
3327else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003328 SWAPFS_CMT=
3329echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003330cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003331#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003332_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003333
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003334
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003335fi;
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003336
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003337# Check whether --enable-debugfs or --disable-debugfs was given.
3338if test "${enable_debugfs+set}" = set; then
3339 enableval="$enable_debugfs"
3340 if test "$enableval" = "no"
3341then
3342 echo "Disabling debugfs support"
3343 DEBUGFS_CMT="#"
3344else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003345 DEBUGFS_CMT=
3346 echo "Enabling debugfs support"
3347fi
3348
3349else
3350 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003351DEBUGFS_CMT=
3352
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003353fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003354
3355# Check whether --enable-imager or --disable-imager was given.
3356if test "${enable_imager+set}" = set; then
3357 enableval="$enable_imager"
3358 if test "$enableval" = "no"
3359then
3360 echo "Disabling e2image support"
3361 IMAGER_CMT="#"
3362else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003363 IMAGER_CMT=
3364 echo "Enabling e2image support"
3365fi
3366
3367else
3368 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003369IMAGER_CMT=
3370
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003371fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003372
3373# Check whether --enable-resizer or --disable-resizer was given.
3374if test "${enable_resizer+set}" = set; then
3375 enableval="$enable_resizer"
3376 if test "$enableval" = "no"
3377then
3378 echo "Disabling e2resize support"
3379 RESIZER_CMT="#"
3380else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003381 RESIZER_CMT=
3382 echo "Enabling e2resize support"
3383fi
3384
3385else
3386 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003387RESIZER_CMT=
3388
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003389fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003390
3391# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3392if test "${enable_dynamic_e2fsck+set}" = set; then
3393 enableval="$enable_dynamic_e2fsck"
3394 if test "$enableval" = "no"
3395then
3396 E2FSCK_TYPE=static
3397 echo "Building e2fsck statically"
3398else
3399 E2FSCK_TYPE=shared
3400 echo "Building e2fsck dynamically"
3401fi
3402
3403else
3404 E2FSCK_TYPE=static
3405echo "Building e2fsck statically by default"
3406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003407fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003408
3409# Check whether --enable-fsck or --disable-fsck was given.
3410if test "${enable_fsck+set}" = set; then
3411 enableval="$enable_fsck"
3412 if test "$enableval" = "no"
3413then
3414 FSCK_PROG='' FSCK_MAN=''
3415 echo "Not building fsck wrapper"
3416else
3417 FSCK_PROG=fsck FSCK_MAN=fsck.8
3418 echo "Building fsck wrapper"
3419fi
3420
3421else
3422 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04003423 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003424 FSCK_PROG='' FSCK_MAN=''
3425 echo "Not building fsck wrapper by default"
3426 ;;
3427 *)
3428 FSCK_PROG=fsck FSCK_MAN=fsck.8
3429 echo "Building fsck wrapper by default"
3430esac
3431
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003432fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003433
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003434
Theodore Ts'o5d407732004-09-18 14:53:14 -04003435# Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3436if test "${enable_e2initrd_helper+set}" = set; then
3437 enableval="$enable_e2initrd_helper"
3438 if test "$enableval" = "no"
3439then
3440 E2INITRD_PROG='' E2INITRD_MAN=''
3441 echo "Not building e2initrd helper"
3442else
3443 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3444 echo "Building e2initrd helper"
3445fi
3446
3447else
3448 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3449echo "Building e2initrd helper by default"
3450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003451fi;
Theodore Ts'o5d407732004-09-18 14:53:14 -04003452
3453
Karel Zak4db2f592006-03-08 14:17:28 -05003454# Check whether --enable-blkid-devmapper or --disable-blkid-devmapper was given.
3455if test "${enable_blkid_devmapper+set}" = set; then
3456 enableval="$enable_blkid_devmapper"
3457 if test "$enableval" = "no"
3458then
3459 echo "Disabling device-mapper support"
3460 DEVMAPPER_REQ=''
3461 DEVMAPPER_LIBS=''
3462 STATIC_DEVMAPPER_LIBS=''
3463else
3464 cat >>confdefs.h <<\_ACEOF
3465#define HAVE_DEVMAPPER 1
3466_ACEOF
3467
3468 echo "Enabling device-mapper support"
3469
3470 DEVMAPPER_REQ='libselinux libsepol'
3471 DEVMAPPER_PC_LIBS='-ldevmapper'
3472 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol'
3473 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a'
3474
3475fi
3476
3477else
3478 echo "Disabling device-mapper support by default"
3479
3480fi;
3481
3482
3483
3484
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003485MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3486
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003487GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003488PACKAGE=e2fsprogs
3489VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003490VERSION=0.14.1
3491cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003492#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003493_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003495cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003496#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003497_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003498
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003499
3500
3501
3502
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3504echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3505set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3506if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003508else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003509 cat >conftest.make <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003510all:
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003511 @echo 'ac_maketemp="$(MAKE)"'
3512_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003513# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003514eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003515if test -n "$ac_maketemp"; then
3516 eval ac_cv_prog_make_${ac_make}_set=yes
3517else
3518 eval ac_cv_prog_make_${ac_make}_set=no
3519fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003520rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003521fi
3522if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003523 echo "$as_me:$LINENO: result: yes" >&5
3524echo "${ECHO_T}yes" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003525 SET_MAKE=
3526else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003527 echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003529 SET_MAKE="MAKE=${MAKE-make}"
3530fi
3531
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003532# Find a good install program. We prefer a C program (faster),
3533# so one script is as good as another. But avoid the broken or
3534# incompatible versions:
3535# SysV /etc/install, /usr/sbin/install
3536# SunOS /usr/etc/install
3537# IRIX /sbin/install
3538# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003539# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003540# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3541# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3542# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003543# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003544# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003545echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3546echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003547if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003548if test "${ac_cv_path_install+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003550else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552for as_dir in $PATH
3553do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 # Account for people who put trailing slashes in PATH elements.
3557case $as_dir/ in
3558 ./ | .// | /cC/* | \
3559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3560 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3561 /usr/ucb/* ) ;;
3562 *)
3563 # OSF1 and SCO ODT 3.0 have their own names for install.
3564 # Don't use installbsd from OSF since it installs stuff as root
3565 # by default.
3566 for ac_prog in ginstall scoinst install; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003569 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003571 # AIX install. It has an incompatible calling convention.
3572 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003573 elif test $ac_prog = install &&
3574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3575 # program-specific install script used by HP pwplus--don't use.
3576 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003577 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3579 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003580 fi
3581 fi
3582 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003583 done
3584 ;;
3585esac
3586done
3587
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003588
3589fi
3590 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003592 else
3593 # As a last resort, use the slow shell script. We don't cache a
3594 # path for INSTALL within a source directory, because that will
3595 # break other packages using the cache if that directory is
3596 # removed, or if the path is relative.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003597 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003598 fi
3599fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003600echo "$as_me:$LINENO: result: $INSTALL" >&5
3601echo "${ECHO_T}$INSTALL" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003602
3603# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3604# It thinks the first close brace ends the variable substitution.
3605test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3606
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003607test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003608
3609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3610
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003611
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003612 MKINSTALLDIRS=
3613 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003614 case "$ac_aux_dir" in
3615 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3616 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3617 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003618 fi
3619 if test -z "$MKINSTALLDIRS"; then
3620 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3621 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003622
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003623
3624
3625 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3626echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3627 # Check whether --enable-nls or --disable-nls was given.
3628if test "${enable_nls+set}" = set; then
3629 enableval="$enable_nls"
3630 USE_NLS=$enableval
3631else
3632 USE_NLS=yes
3633fi;
3634 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3635echo "${ECHO_T}$USE_NLS" >&6
3636
3637
3638
3639
3640
3641
3642# Prepare PATH_SEPARATOR.
3643# The user is always right.
3644if test "${PATH_SEPARATOR+set}" != set; then
3645 echo "#! /bin/sh" >conf$$.sh
3646 echo "exit 0" >>conf$$.sh
3647 chmod +x conf$$.sh
3648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3649 PATH_SEPARATOR=';'
3650 else
3651 PATH_SEPARATOR=:
3652 fi
3653 rm -f conf$$.sh
3654fi
3655
3656# Find out how to test for executable files. Don't use a zero-byte file,
3657# as systems may use methods other than mode bits to determine executability.
3658cat >conf$$.file <<_ASEOF
3659#! /bin/sh
3660exit 0
3661_ASEOF
3662chmod +x conf$$.file
3663if test -x conf$$.file >/dev/null 2>&1; then
3664 ac_executable_p="test -x"
3665else
3666 ac_executable_p="test -f"
3667fi
3668rm -f conf$$.file
3669
3670# Extract the first word of "msgfmt", so it can be a program name with args.
3671set dummy msgfmt; ac_word=$2
3672echo "$as_me:$LINENO: checking for $ac_word" >&5
3673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674if test "${ac_cv_path_MSGFMT+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
3677 case "$MSGFMT" in
3678 [\\/]* | ?:[\\/]*)
3679 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3680 ;;
3681 *)
3682 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3683 for ac_dir in $PATH; do
3684 IFS="$ac_save_IFS"
3685 test -z "$ac_dir" && ac_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3688 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3689 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3690 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3691 break 2
3692 fi
3693 fi
3694 done
3695 done
3696 IFS="$ac_save_IFS"
3697 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3698 ;;
3699esac
3700fi
3701MSGFMT="$ac_cv_path_MSGFMT"
3702if test "$MSGFMT" != ":"; then
3703 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3704echo "${ECHO_T}$MSGFMT" >&6
3705else
3706 echo "$as_me:$LINENO: result: no" >&5
3707echo "${ECHO_T}no" >&6
3708fi
3709
3710 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3711set dummy gmsgfmt; ac_word=$2
3712echo "$as_me:$LINENO: checking for $ac_word" >&5
3713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714if test "${ac_cv_path_GMSGFMT+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 case $GMSGFMT in
3718 [\\/]* | ?:[\\/]*)
3719 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3720 ;;
3721 *)
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733done
3734done
3735
3736 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3737 ;;
3738esac
3739fi
3740GMSGFMT=$ac_cv_path_GMSGFMT
3741
3742if test -n "$GMSGFMT"; then
3743 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3744echo "${ECHO_T}$GMSGFMT" >&6
3745else
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
3748fi
3749
3750
3751
3752# Prepare PATH_SEPARATOR.
3753# The user is always right.
3754if test "${PATH_SEPARATOR+set}" != set; then
3755 echo "#! /bin/sh" >conf$$.sh
3756 echo "exit 0" >>conf$$.sh
3757 chmod +x conf$$.sh
3758 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3759 PATH_SEPARATOR=';'
3760 else
3761 PATH_SEPARATOR=:
3762 fi
3763 rm -f conf$$.sh
3764fi
3765
3766# Find out how to test for executable files. Don't use a zero-byte file,
3767# as systems may use methods other than mode bits to determine executability.
3768cat >conf$$.file <<_ASEOF
3769#! /bin/sh
3770exit 0
3771_ASEOF
3772chmod +x conf$$.file
3773if test -x conf$$.file >/dev/null 2>&1; then
3774 ac_executable_p="test -x"
3775else
3776 ac_executable_p="test -f"
3777fi
3778rm -f conf$$.file
3779
3780# Extract the first word of "xgettext", so it can be a program name with args.
3781set dummy xgettext; ac_word=$2
3782echo "$as_me:$LINENO: checking for $ac_word" >&5
3783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784if test "${ac_cv_path_XGETTEXT+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
3787 case "$XGETTEXT" in
3788 [\\/]* | ?:[\\/]*)
3789 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3790 ;;
3791 *)
3792 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3793 for ac_dir in $PATH; do
3794 IFS="$ac_save_IFS"
3795 test -z "$ac_dir" && ac_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3798 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3799 (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
3800 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3801 break 2
3802 fi
3803 fi
3804 done
3805 done
3806 IFS="$ac_save_IFS"
3807 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3808 ;;
3809esac
3810fi
3811XGETTEXT="$ac_cv_path_XGETTEXT"
3812if test "$XGETTEXT" != ":"; then
3813 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3814echo "${ECHO_T}$XGETTEXT" >&6
3815else
3816 echo "$as_me:$LINENO: result: no" >&5
3817echo "${ECHO_T}no" >&6
3818fi
3819
3820 rm -f messages.po
3821
3822
3823# Prepare PATH_SEPARATOR.
3824# The user is always right.
3825if test "${PATH_SEPARATOR+set}" != set; then
3826 echo "#! /bin/sh" >conf$$.sh
3827 echo "exit 0" >>conf$$.sh
3828 chmod +x conf$$.sh
3829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3830 PATH_SEPARATOR=';'
3831 else
3832 PATH_SEPARATOR=:
3833 fi
3834 rm -f conf$$.sh
3835fi
3836
3837# Find out how to test for executable files. Don't use a zero-byte file,
3838# as systems may use methods other than mode bits to determine executability.
3839cat >conf$$.file <<_ASEOF
3840#! /bin/sh
3841exit 0
3842_ASEOF
3843chmod +x conf$$.file
3844if test -x conf$$.file >/dev/null 2>&1; then
3845 ac_executable_p="test -x"
3846else
3847 ac_executable_p="test -f"
3848fi
3849rm -f conf$$.file
3850
3851# Extract the first word of "msgmerge", so it can be a program name with args.
3852set dummy msgmerge; ac_word=$2
3853echo "$as_me:$LINENO: checking for $ac_word" >&5
3854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855if test "${ac_cv_path_MSGMERGE+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858 case "$MSGMERGE" in
3859 [\\/]* | ?:[\\/]*)
3860 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3861 ;;
3862 *)
3863 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3864 for ac_dir in $PATH; do
3865 IFS="$ac_save_IFS"
3866 test -z "$ac_dir" && ac_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3869 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3870 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3871 break 2
3872 fi
3873 fi
3874 done
3875 done
3876 IFS="$ac_save_IFS"
3877 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3878 ;;
3879esac
3880fi
3881MSGMERGE="$ac_cv_path_MSGMERGE"
3882if test "$MSGMERGE" != ":"; then
3883 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3884echo "${ECHO_T}$MSGMERGE" >&6
3885else
3886 echo "$as_me:$LINENO: result: no" >&5
3887echo "${ECHO_T}no" >&6
3888fi
3889
3890
3891 if test "$GMSGFMT" != ":"; then
3892 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3893 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3894 : ;
3895 else
3896 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3897 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3898echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3899 GMSGFMT=":"
3900 fi
3901 fi
3902
3903 if test "$XGETTEXT" != ":"; then
3904 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3905 (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
3906 : ;
3907 else
3908 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3909echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3910 XGETTEXT=":"
3911 fi
3912 rm -f messages.po
3913 fi
3914
3915 ac_config_commands="$ac_config_commands default-1"
3916
3917
3918if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3920set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3921echo "$as_me:$LINENO: checking for $ac_word" >&5
3922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923if test "${ac_cv_prog_RANLIB+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003925else
3926 if test -n "$RANLIB"; then
3927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3928else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003941done
3942
3943fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003944fi
3945RANLIB=$ac_cv_prog_RANLIB
3946if test -n "$RANLIB"; then
3947 echo "$as_me:$LINENO: result: $RANLIB" >&5
3948echo "${ECHO_T}$RANLIB" >&6
3949else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003953
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003954fi
3955if test -z "$ac_cv_prog_RANLIB"; then
3956 ac_ct_RANLIB=$RANLIB
3957 # Extract the first word of "ranlib", so it can be a program name with args.
3958set dummy ranlib; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964 if test -n "$ac_ct_RANLIB"; then
3965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_RANLIB="ranlib"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978done
3979done
3980
3981 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3982fi
3983fi
3984ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3985if test -n "$ac_ct_RANLIB"; then
3986 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3987echo "${ECHO_T}$ac_ct_RANLIB" >&6
3988else
3989 echo "$as_me:$LINENO: result: no" >&5
3990echo "${ECHO_T}no" >&6
3991fi
3992
3993 RANLIB=$ac_ct_RANLIB
3994else
3995 RANLIB="$ac_cv_prog_RANLIB"
3996fi
3997
3998
3999 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4000echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4001if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004 ac_check_lib_save_LIBS=$LIBS
4005LIBS="-lcposix $LIBS"
4006cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
4012
4013/* Override any gcc2 internal prototype to avoid an error. */
4014#ifdef __cplusplus
4015extern "C"
4016#endif
4017/* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4019char strerror ();
4020int
4021main ()
4022{
4023strerror ();
4024 ;
4025 return 0;
4026}
4027_ACEOF
4028rm -f conftest.$ac_objext conftest$ac_exeext
4029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>conftest.er1
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest$ac_exeext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 ac_cv_lib_cposix_strerror=yes
4050else
4051 echo "$as_me: failed program was:" >&5
4052sed 's/^/| /' conftest.$ac_ext >&5
4053
4054ac_cv_lib_cposix_strerror=no
4055fi
4056rm -f conftest.err conftest.$ac_objext \
4057 conftest$ac_exeext conftest.$ac_ext
4058LIBS=$ac_check_lib_save_LIBS
4059fi
4060echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4061echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4062if test $ac_cv_lib_cposix_strerror = yes; then
4063 LIBS="$LIBS -lcposix"
4064fi
4065
4066
4067
4068echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4069echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4070if test "${ac_cv_c_const+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073 cat >conftest.$ac_ext <<_ACEOF
4074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h. */
4079
4080int
4081main ()
4082{
4083/* FIXME: Include the comments suggested by Paul. */
4084#ifndef __cplusplus
4085 /* Ultrix mips cc rejects this. */
4086 typedef int charset[2];
4087 const charset x;
4088 /* SunOS 4.1.1 cc rejects this. */
4089 char const *const *ccp;
4090 char **p;
4091 /* NEC SVR4.0.2 mips cc rejects this. */
4092 struct point {int x, y;};
4093 static struct point const zero = {0,0};
4094 /* AIX XL C 1.02.0.0 rejects this.
4095 It does not let you subtract one const X* pointer from another in
4096 an arm of an if-expression whose if-part is not a constant
4097 expression */
4098 const char *g = "string";
4099 ccp = &g + (g ? g-g : 0);
4100 /* HPUX 7.0 cc rejects these. */
4101 ++ccp;
4102 p = (char**) ccp;
4103 ccp = (char const *const *) p;
4104 { /* SCO 3.2v4 cc rejects this. */
4105 char *t;
4106 char const *s = 0 ? (char *) 0 : (char const *) 0;
4107
4108 *t++ = 0;
4109 }
4110 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4111 int x[] = {25, 17};
4112 const int *foo = &x[0];
4113 ++foo;
4114 }
4115 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4116 typedef const int *iptr;
4117 iptr p = 0;
4118 ++p;
4119 }
4120 { /* AIX XL C 1.02.0.0 rejects this saying
4121 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4122 struct s { int j; const int *ap[3]; };
4123 struct s *b; b->j = 5;
4124 }
4125 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4126 const int foo = 10;
4127 }
4128#endif
4129
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext
4135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_c_const=yes
4156else
4157 echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
4160ac_cv_c_const=no
4161fi
4162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163fi
4164echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4165echo "${ECHO_T}$ac_cv_c_const" >&6
4166if test $ac_cv_c_const = no; then
4167
4168cat >>confdefs.h <<\_ACEOF
4169#define const
4170_ACEOF
4171
4172fi
4173
4174
4175 echo "$as_me:$LINENO: checking for signed" >&5
4176echo $ECHO_N "checking for signed... $ECHO_C" >&6
4177if test "${bh_cv_c_signed+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180 cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h. */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h. */
4186
4187int
4188main ()
4189{
4190signed char x;
4191 ;
4192 return 0;
4193}
4194_ACEOF
4195rm -f conftest.$ac_objext
4196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 bh_cv_c_signed=yes
4217else
4218 echo "$as_me: failed program was:" >&5
4219sed 's/^/| /' conftest.$ac_ext >&5
4220
4221bh_cv_c_signed=no
4222fi
4223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4224fi
4225echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4226echo "${ECHO_T}$bh_cv_c_signed" >&6
4227 if test $bh_cv_c_signed = no; then
4228
4229cat >>confdefs.h <<\_ACEOF
4230#define signed
4231_ACEOF
4232
4233 fi
4234
4235echo "$as_me:$LINENO: checking for inline" >&5
4236echo $ECHO_N "checking for inline... $ECHO_C" >&6
4237if test "${ac_cv_c_inline+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239else
4240 ac_cv_c_inline=no
4241for ac_kw in inline __inline__ __inline; do
4242 cat >conftest.$ac_ext <<_ACEOF
4243/* confdefs.h. */
4244_ACEOF
4245cat confdefs.h >>conftest.$ac_ext
4246cat >>conftest.$ac_ext <<_ACEOF
4247/* end confdefs.h. */
4248#ifndef __cplusplus
4249typedef int foo_t;
4250static $ac_kw foo_t static_foo () {return 0; }
4251$ac_kw foo_t foo () {return 0; }
4252#endif
4253
4254_ACEOF
4255rm -f conftest.$ac_objext
4256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257 (eval $ac_compile) 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest.$ac_objext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_c_inline=$ac_kw; break
4277else
4278 echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281fi
4282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4283done
4284
4285fi
4286echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4287echo "${ECHO_T}$ac_cv_c_inline" >&6
4288
4289
4290case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004291 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004292 *)
4293 case $ac_cv_c_inline in
4294 no) ac_val=;;
4295 *) ac_val=$ac_cv_c_inline;;
4296 esac
4297 cat >>confdefs.h <<_ACEOF
4298#ifndef __cplusplus
4299#define inline $ac_val
4300#endif
4301_ACEOF
4302 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004303esac
4304
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004305echo "$as_me:$LINENO: checking for off_t" >&5
4306echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4307if test "${ac_cv_type_off_t+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004309else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004310 cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316$ac_includes_default
4317int
4318main ()
4319{
4320if ((off_t *) 0)
4321 return 0;
4322if (sizeof (off_t))
4323 return 0;
4324 ;
4325 return 0;
4326}
4327_ACEOF
4328rm -f conftest.$ac_objext
4329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>conftest.er1
4331 ac_status=$?
4332 grep -v '^ *+' conftest.er1 >conftest.err
4333 rm -f conftest.er1
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } &&
4337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004349 ac_cv_type_off_t=yes
4350else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004351 echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004354ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004355fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004357fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004358echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4359echo "${ECHO_T}$ac_cv_type_off_t" >&6
4360if test $ac_cv_type_off_t = yes; then
4361 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004362else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004363
4364cat >>confdefs.h <<_ACEOF
4365#define off_t long
4366_ACEOF
4367
4368fi
4369
4370echo "$as_me:$LINENO: checking for size_t" >&5
4371echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4372if test "${ac_cv_type_size_t+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375 cat >conftest.$ac_ext <<_ACEOF
4376/* confdefs.h. */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h. */
4381$ac_includes_default
4382int
4383main ()
4384{
4385if ((size_t *) 0)
4386 return 0;
4387if (sizeof (size_t))
4388 return 0;
4389 ;
4390 return 0;
4391}
4392_ACEOF
4393rm -f conftest.$ac_objext
4394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004414 ac_cv_type_size_t=yes
4415else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004416 echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419ac_cv_type_size_t=no
4420fi
4421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4422fi
4423echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4424echo "${ECHO_T}$ac_cv_type_size_t" >&6
4425if test $ac_cv_type_size_t = yes; then
4426 :
4427else
4428
4429cat >>confdefs.h <<_ACEOF
4430#define size_t unsigned
4431_ACEOF
4432
4433fi
4434
4435
4436 echo "$as_me:$LINENO: checking for long long" >&5
4437echo $ECHO_N "checking for long long... $ECHO_C" >&6
4438if test "${ac_cv_type_long_long+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 cat >conftest.$ac_ext <<_ACEOF
4442/* confdefs.h. */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h. */
4447long long ll = 1LL; int i = 63;
4448int
4449main ()
4450{
4451long long llmax = (long long) -1;
4452 return ll << i | ll >> i | llmax / ll | llmax % ll;
4453 ;
4454 return 0;
4455}
4456_ACEOF
4457rm -f conftest.$ac_objext conftest$ac_exeext
4458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest$ac_exeext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 ac_cv_type_long_long=yes
4479else
4480 echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483ac_cv_type_long_long=no
4484fi
4485rm -f conftest.err conftest.$ac_objext \
4486 conftest$ac_exeext conftest.$ac_ext
4487fi
4488echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4489echo "${ECHO_T}$ac_cv_type_long_long" >&6
4490 if test $ac_cv_type_long_long = yes; then
4491
4492cat >>confdefs.h <<\_ACEOF
4493#define HAVE_LONG_LONG 1
4494_ACEOF
4495
4496 fi
4497
4498
4499 echo "$as_me:$LINENO: checking for long double" >&5
4500echo $ECHO_N "checking for long double... $ECHO_C" >&6
4501if test "${gt_cv_c_long_double+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504 if test "$GCC" = yes; then
4505 gt_cv_c_long_double=yes
4506 else
4507 cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h. */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h. */
4513
4514 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4515 long double foo = 0.0;
4516 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4517 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4518
4519int
4520main ()
4521{
4522
4523 ;
4524 return 0;
4525}
4526_ACEOF
4527rm -f conftest.$ac_objext
4528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>conftest.er1
4530 ac_status=$?
4531 grep -v '^ *+' conftest.er1 >conftest.err
4532 rm -f conftest.er1
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 gt_cv_c_long_double=yes
4549else
4550 echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553gt_cv_c_long_double=no
4554fi
4555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4556 fi
4557fi
4558echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4559echo "${ECHO_T}$gt_cv_c_long_double" >&6
4560 if test $gt_cv_c_long_double = yes; then
4561
4562cat >>confdefs.h <<\_ACEOF
4563#define HAVE_LONG_DOUBLE 1
4564_ACEOF
4565
4566 fi
4567
4568
4569 echo "$as_me:$LINENO: checking for wchar_t" >&5
4570echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4571if test "${gt_cv_c_wchar_t+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574 cat >conftest.$ac_ext <<_ACEOF
4575/* confdefs.h. */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
4579/* end confdefs.h. */
4580#include <stddef.h>
4581 wchar_t foo = (wchar_t)'\0';
4582int
4583main ()
4584{
4585
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext
4591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 gt_cv_c_wchar_t=yes
4612else
4613 echo "$as_me: failed program was:" >&5
4614sed 's/^/| /' conftest.$ac_ext >&5
4615
4616gt_cv_c_wchar_t=no
4617fi
4618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4619fi
4620echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4621echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4622 if test $gt_cv_c_wchar_t = yes; then
4623
4624cat >>confdefs.h <<\_ACEOF
4625#define HAVE_WCHAR_T 1
4626_ACEOF
4627
4628 fi
4629
4630
4631 echo "$as_me:$LINENO: checking for wint_t" >&5
4632echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4633if test "${gt_cv_c_wint_t+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635else
4636 cat >conftest.$ac_ext <<_ACEOF
4637/* confdefs.h. */
4638_ACEOF
4639cat confdefs.h >>conftest.$ac_ext
4640cat >>conftest.$ac_ext <<_ACEOF
4641/* end confdefs.h. */
4642#include <wchar.h>
4643 wint_t foo = (wchar_t)'\0';
4644int
4645main ()
4646{
4647
4648 ;
4649 return 0;
4650}
4651_ACEOF
4652rm -f conftest.$ac_objext
4653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 gt_cv_c_wint_t=yes
4674else
4675 echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678gt_cv_c_wint_t=no
4679fi
4680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681fi
4682echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4683echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4684 if test $gt_cv_c_wint_t = yes; then
4685
4686cat >>confdefs.h <<\_ACEOF
4687#define HAVE_WINT_T 1
4688_ACEOF
4689
4690 fi
4691
4692
4693 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4694echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4695if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698 cat >conftest.$ac_ext <<_ACEOF
4699/* confdefs.h. */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h. */
4704#include <sys/types.h>
4705#include <inttypes.h>
4706int
4707main ()
4708{
4709uintmax_t i = (uintmax_t) -1;
4710 ;
4711 return 0;
4712}
4713_ACEOF
4714rm -f conftest.$ac_objext
4715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 jm_ac_cv_header_inttypes_h=yes
4736else
4737 echo "$as_me: failed program was:" >&5
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
4740jm_ac_cv_header_inttypes_h=no
4741fi
4742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4743fi
4744echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4745echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4746 if test $jm_ac_cv_header_inttypes_h = yes; then
4747
4748cat >>confdefs.h <<_ACEOF
4749#define HAVE_INTTYPES_H_WITH_UINTMAX 1
4750_ACEOF
4751
4752 fi
4753
4754
4755 echo "$as_me:$LINENO: checking for stdint.h" >&5
4756echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4757if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759else
4760 cat >conftest.$ac_ext <<_ACEOF
4761/* confdefs.h. */
4762_ACEOF
4763cat confdefs.h >>conftest.$ac_ext
4764cat >>conftest.$ac_ext <<_ACEOF
4765/* end confdefs.h. */
4766#include <sys/types.h>
4767#include <stdint.h>
4768int
4769main ()
4770{
4771uintmax_t i = (uintmax_t) -1;
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776rm -f conftest.$ac_objext
4777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>conftest.er1
4779 ac_status=$?
4780 grep -v '^ *+' conftest.er1 >conftest.err
4781 rm -f conftest.er1
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 jm_ac_cv_header_stdint_h=yes
4798else
4799 echo "$as_me: failed program was:" >&5
4800sed 's/^/| /' conftest.$ac_ext >&5
4801
4802jm_ac_cv_header_stdint_h=no
4803fi
4804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805fi
4806echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4807echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4808 if test $jm_ac_cv_header_stdint_h = yes; then
4809
4810cat >>confdefs.h <<_ACEOF
4811#define HAVE_STDINT_H_WITH_UINTMAX 1
4812_ACEOF
4813
4814 fi
4815
4816
4817
4818
4819 echo "$as_me:$LINENO: checking for intmax_t" >&5
4820echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4821if test "${gt_cv_c_intmax_t+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 cat >conftest.$ac_ext <<_ACEOF
4825/* confdefs.h. */
4826_ACEOF
4827cat confdefs.h >>conftest.$ac_ext
4828cat >>conftest.$ac_ext <<_ACEOF
4829/* end confdefs.h. */
4830
4831#include <stddef.h>
4832#include <stdlib.h>
4833#if HAVE_STDINT_H_WITH_UINTMAX
4834#include <stdint.h>
4835#endif
4836#if HAVE_INTTYPES_H_WITH_UINTMAX
4837#include <inttypes.h>
4838#endif
4839
4840int
4841main ()
4842{
4843intmax_t x = -1;
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848rm -f conftest.$ac_objext
4849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 gt_cv_c_intmax_t=yes
4870else
4871 echo "$as_me: failed program was:" >&5
4872sed 's/^/| /' conftest.$ac_ext >&5
4873
4874gt_cv_c_intmax_t=no
4875fi
4876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877fi
4878echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4879echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4880 if test $gt_cv_c_intmax_t = yes; then
4881
4882cat >>confdefs.h <<\_ACEOF
4883#define HAVE_INTMAX_T 1
4884_ACEOF
4885
4886 fi
4887
4888
4889
4890 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4891echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4892if test "${gt_cv_func_printf_posix+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895
4896 if test "$cross_compiling" = yes; then
4897
4898 cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904
4905#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4906 notposix
4907#endif
4908
4909_ACEOF
4910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4911 $EGREP "notposix" >/dev/null 2>&1; then
4912 gt_cv_func_printf_posix="guessing no"
4913else
4914 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004915fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004916rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004917
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004918
4919else
4920 cat >conftest.$ac_ext <<_ACEOF
4921/* confdefs.h. */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h. */
4926
4927#include <stdio.h>
4928#include <string.h>
4929/* The string "%2$d %1$d", with dollar characters protected from the shell's
4930 dollar expansion (possibly an autoconf bug). */
4931static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4932static char buf[100];
4933int main ()
4934{
4935 sprintf (buf, format, 33, 55);
4936 return (strcmp (buf, "55 33") != 0);
4937}
4938_ACEOF
4939rm -f conftest$ac_exeext
4940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 gt_cv_func_printf_posix=yes
4951else
4952 echo "$as_me: program exited with status $ac_status" >&5
4953echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956( exit $ac_status )
4957gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004958fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004959rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4960fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004961
4962fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004963echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4964echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4965 case $gt_cv_func_printf_posix in
4966 *yes)
4967
4968cat >>confdefs.h <<\_ACEOF
4969#define HAVE_POSIX_PRINTF 1
4970_ACEOF
4971
4972 ;;
4973 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004974
4975# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4976# for constant arguments. Useless!
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004977echo "$as_me:$LINENO: checking for working alloca.h" >&5
4978echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4979if test "${ac_cv_working_alloca_h+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004981else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004982 cat >conftest.$ac_ext <<_ACEOF
4983/* confdefs.h. */
4984_ACEOF
4985cat confdefs.h >>conftest.$ac_ext
4986cat >>conftest.$ac_ext <<_ACEOF
4987/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004988#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004989int
4990main ()
4991{
4992char *p = (char *) alloca (2 * sizeof (int));
4993 ;
4994 return 0;
4995}
4996_ACEOF
4997rm -f conftest.$ac_objext conftest$ac_exeext
4998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4999 (eval $ac_link) 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest$ac_exeext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005019else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005020 echo "$as_me: failed program was:" >&5
5021sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005023ac_cv_working_alloca_h=no
5024fi
5025rm -f conftest.err conftest.$ac_objext \
5026 conftest$ac_exeext conftest.$ac_ext
5027fi
5028echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5029echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5030if test $ac_cv_working_alloca_h = yes; then
5031
5032cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005033#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005034_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005035
5036fi
5037
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005038echo "$as_me:$LINENO: checking for alloca" >&5
5039echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5040if test "${ac_cv_func_alloca_works+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005043 cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005049#ifdef __GNUC__
5050# define alloca __builtin_alloca
5051#else
5052# ifdef _MSC_VER
5053# include <malloc.h>
5054# define alloca _alloca
5055# else
5056# if HAVE_ALLOCA_H
5057# include <alloca.h>
5058# else
5059# ifdef _AIX
5060 #pragma alloca
5061# else
5062# ifndef alloca /* predefined by HP cc +Olibcalls */
5063char *alloca ();
5064# endif
5065# endif
5066# endif
5067# endif
5068#endif
5069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005070int
5071main ()
5072{
5073char *p = (char *) alloca (1);
5074 ;
5075 return 0;
5076}
5077_ACEOF
5078rm -f conftest.$ac_objext conftest$ac_exeext
5079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080 (eval $ac_link) 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest$ac_exeext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005099 ac_cv_func_alloca_works=yes
5100else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005101 echo "$as_me: failed program was:" >&5
5102sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005103
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005104ac_cv_func_alloca_works=no
5105fi
5106rm -f conftest.err conftest.$ac_objext \
5107 conftest$ac_exeext conftest.$ac_ext
5108fi
5109echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5110echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5111
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005112if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005113
5114cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005115#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005116_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005117
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005118else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005119 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5120# that cause trouble. Some versions do not even contain alloca or
5121# contain a buggy version. If you still want to use their alloca,
5122# use ar to extract alloca.o from them instead of compiling alloca.c.
5123
5124ALLOCA=alloca.$ac_objext
5125
5126cat >>confdefs.h <<\_ACEOF
5127#define C_ALLOCA 1
5128_ACEOF
5129
5130
5131echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5132echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5133if test "${ac_cv_os_cray+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136 cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h. */
5138_ACEOF
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005142#if defined(CRAY) && ! defined(CRAY2)
5143webecray
5144#else
5145wenotbecray
5146#endif
5147
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005148_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005150 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005151 ac_cv_os_cray=yes
5152else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005153 ac_cv_os_cray=no
5154fi
5155rm -f conftest*
5156
5157fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005158echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5159echo "${ECHO_T}$ac_cv_os_cray" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005160if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005161 for ac_func in _getb67 GETB67 getb67; do
5162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5163echo "$as_me:$LINENO: checking for $ac_func" >&5
5164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5165if eval "test \"\${$as_ac_var+set}\" = set"; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005167else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005168 cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h. */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h. */
5174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5176#define $ac_func innocuous_$ac_func
5177
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005178/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005179 which can conflict with char $ac_func (); below.
5180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5181 <limits.h> exists even on freestanding compilers. */
5182
5183#ifdef __STDC__
5184# include <limits.h>
5185#else
5186# include <assert.h>
5187#endif
5188
5189#undef $ac_func
5190
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005191/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005192#ifdef __cplusplus
5193extern "C"
5194{
5195#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005196/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005197 builtin and then its argument prototype would still apply. */
5198char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005199/* The GNU C library defines this for functions which it implements
5200 to always fail with ENOSYS. Some functions are actually named
5201 something starting with __ and the normal name is an alias. */
5202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5203choke me
5204#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005205char (*f) () = $ac_func;
5206#endif
5207#ifdef __cplusplus
5208}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005209#endif
5210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005211int
5212main ()
5213{
5214return f != $ac_func;
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest.$ac_objext conftest$ac_exeext
5220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221 (eval $ac_link) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest$ac_exeext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005241else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005242 echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005244
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005245eval "$as_ac_var=no"
5246fi
5247rm -f conftest.err conftest.$ac_objext \
5248 conftest$ac_exeext conftest.$ac_ext
5249fi
5250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5251echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5252if test `eval echo '${'$as_ac_var'}'` = yes; then
5253
5254cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005255#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005256_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005258 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005259fi
5260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005261 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005262fi
5263
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005264echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5265echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5266if test "${ac_cv_c_stack_direction+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005268else
5269 if test "$cross_compiling" = yes; then
5270 ac_cv_c_stack_direction=0
5271else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005272 cat >conftest.$ac_ext <<_ACEOF
5273/* confdefs.h. */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h. */
5278int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005279find_stack_direction ()
5280{
5281 static char *addr = 0;
5282 auto char dummy;
5283 if (addr == 0)
5284 {
5285 addr = &dummy;
5286 return find_stack_direction ();
5287 }
5288 else
5289 return (&dummy > addr) ? 1 : -1;
5290}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005291
5292int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005293main ()
5294{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005295 exit (find_stack_direction () < 0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005296}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005297_ACEOF
5298rm -f conftest$ac_exeext
5299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005309 ac_cv_c_stack_direction=1
5310else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005311 echo "$as_me: program exited with status $ac_status" >&5
5312echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005315( exit $ac_status )
5316ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005317fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005318rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5319fi
5320fi
5321echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5322echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005324cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005325#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005326_ACEOF
5327
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005328
5329fi
5330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005331
5332
5333for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005334do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5336if eval "test \"\${$as_ac_Header+set}\" = set"; then
5337 echo "$as_me:$LINENO: checking for $ac_header" >&5
5338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5339if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005341fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005344else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005345 # Is the header compilable?
5346echo "$as_me:$LINENO: checking $ac_header usability" >&5
5347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5348cat >conftest.$ac_ext <<_ACEOF
5349/* confdefs.h. */
5350_ACEOF
5351cat confdefs.h >>conftest.$ac_ext
5352cat >>conftest.$ac_ext <<_ACEOF
5353/* end confdefs.h. */
5354$ac_includes_default
5355#include <$ac_header>
5356_ACEOF
5357rm -f conftest.$ac_objext
5358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359 (eval $ac_compile) 2>conftest.er1
5360 ac_status=$?
5361 grep -v '^ *+' conftest.er1 >conftest.err
5362 rm -f conftest.er1
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_header_compiler=yes
5379else
5380 echo "$as_me: failed program was:" >&5
5381sed 's/^/| /' conftest.$ac_ext >&5
5382
5383ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005384fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5387echo "${ECHO_T}$ac_header_compiler" >&6
5388
5389# Is the header present?
5390echo "$as_me:$LINENO: checking $ac_header presence" >&5
5391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5392cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h. */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h. */
5398#include <$ac_header>
5399_ACEOF
5400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev/null; then
5408 if test -s conftest.err; then
5409 ac_cpp_err=$ac_c_preproc_warn_flag
5410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5411 else
5412 ac_cpp_err=
5413 fi
5414else
5415 ac_cpp_err=yes
5416fi
5417if test -z "$ac_cpp_err"; then
5418 ac_header_preproc=yes
5419else
5420 echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_header_preproc=no
5424fi
5425rm -f conftest.err conftest.$ac_ext
5426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427echo "${ECHO_T}$ac_header_preproc" >&6
5428
5429# So? What about this header?
5430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5431 yes:no: )
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5436 ac_header_preproc=yes
5437 ;;
5438 no:yes:* )
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5451 (
5452 cat <<\_ASBOX
5453## ------------------------------------------ ##
5454## Report this to the AC_PACKAGE_NAME lists. ##
5455## ------------------------------------------ ##
5456_ASBOX
5457 ) |
5458 sed "s/^/$as_me: WARNING: /" >&2
5459 ;;
5460esac
5461echo "$as_me:$LINENO: checking for $ac_header" >&5
5462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 eval "$as_ac_Header=\$ac_header_preproc"
5467fi
5468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5470
5471fi
5472if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5475_ACEOF
5476
5477fi
5478
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005479done
5480
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005481
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005482for ac_func in getpagesize
5483do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5485echo "$as_me:$LINENO: checking for $ac_func" >&5
5486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5487if eval "test \"\${$as_ac_var+set}\" = set"; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005489else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005490 cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h. */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h. */
5496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5498#define $ac_func innocuous_$ac_func
5499
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005500/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005501 which can conflict with char $ac_func (); below.
5502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503 <limits.h> exists even on freestanding compilers. */
5504
5505#ifdef __STDC__
5506# include <limits.h>
5507#else
5508# include <assert.h>
5509#endif
5510
5511#undef $ac_func
5512
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005513/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005514#ifdef __cplusplus
5515extern "C"
5516{
5517#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005518/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005519 builtin and then its argument prototype would still apply. */
5520char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005521/* The GNU C library defines this for functions which it implements
5522 to always fail with ENOSYS. Some functions are actually named
5523 something starting with __ and the normal name is an alias. */
5524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5525choke me
5526#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005527char (*f) () = $ac_func;
5528#endif
5529#ifdef __cplusplus
5530}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005531#endif
5532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005533int
5534main ()
5535{
5536return f != $ac_func;
5537 ;
5538 return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext conftest$ac_exeext
5542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005563else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005564 echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005567eval "$as_ac_var=no"
5568fi
5569rm -f conftest.err conftest.$ac_objext \
5570 conftest$ac_exeext conftest.$ac_ext
5571fi
5572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5574if test `eval echo '${'$as_ac_var'}'` = yes; then
5575 cat >>confdefs.h <<_ACEOF
5576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5577_ACEOF
5578
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005579fi
5580done
5581
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005582echo "$as_me:$LINENO: checking for working mmap" >&5
5583echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5584if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005586else
5587 if test "$cross_compiling" = yes; then
5588 ac_cv_func_mmap_fixed_mapped=no
5589else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005590 cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h. */
5596$ac_includes_default
5597/* malloc might have been renamed as rpl_malloc. */
5598#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005599
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005600/* Thanks to Mike Haertel and Jim Avera for this test.
5601 Here is a matrix of mmap possibilities:
5602 mmap private not fixed
5603 mmap private fixed at somewhere currently unmapped
5604 mmap private fixed at somewhere already mapped
5605 mmap shared not fixed
5606 mmap shared fixed at somewhere currently unmapped
5607 mmap shared fixed at somewhere already mapped
5608 For private mappings, we should verify that changes cannot be read()
5609 back from the file, nor mmap's back from the file at a different
5610 address. (There have been systems where private was not correctly
5611 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005612 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005613 like early versions of FreeBSD and possibly contemporary NetBSD.)
5614 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005615 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005616
5617 Grep wants private fixed already mapped.
5618 The main things grep needs to know about mmap are:
5619 * does it exist and is it safe to write into the mmap'd area
5620 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005621
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005622#include <fcntl.h>
5623#include <sys/mman.h>
5624
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005625#if !STDC_HEADERS && !HAVE_STDLIB_H
5626char *malloc ();
5627#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005629/* This mess was copied from the GNU getpagesize.h. */
5630#if !HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005631/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005632# if !HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005633# define HAVE_SYS_PARAM_H 1
5634# endif
5635
5636# ifdef _SC_PAGESIZE
5637# define getpagesize() sysconf(_SC_PAGESIZE)
5638# else /* no _SC_PAGESIZE */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005639# if HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005640# include <sys/param.h>
5641# ifdef EXEC_PAGESIZE
5642# define getpagesize() EXEC_PAGESIZE
5643# else /* no EXEC_PAGESIZE */
5644# ifdef NBPG
5645# define getpagesize() NBPG * CLSIZE
5646# ifndef CLSIZE
5647# define CLSIZE 1
5648# endif /* no CLSIZE */
5649# else /* no NBPG */
5650# ifdef NBPC
5651# define getpagesize() NBPC
5652# else /* no NBPC */
5653# ifdef PAGESIZE
5654# define getpagesize() PAGESIZE
5655# endif /* PAGESIZE */
5656# endif /* no NBPC */
5657# endif /* no NBPG */
5658# endif /* no EXEC_PAGESIZE */
5659# else /* no HAVE_SYS_PARAM_H */
5660# define getpagesize() 8192 /* punt totally */
5661# endif /* no HAVE_SYS_PARAM_H */
5662# endif /* no _SC_PAGESIZE */
5663
5664#endif /* no HAVE_GETPAGESIZE */
5665
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005666int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005667main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005668{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005669 char *data, *data2, *data3;
5670 int i, pagesize;
5671 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005672
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005673 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005674
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005675 /* First, make a file with some known garbage in it. */
5676 data = (char *) malloc (pagesize);
5677 if (!data)
5678 exit (1);
5679 for (i = 0; i < pagesize; ++i)
5680 *(data + i) = rand ();
5681 umask (0);
5682 fd = creat ("conftest.mmap", 0600);
5683 if (fd < 0)
5684 exit (1);
5685 if (write (fd, data, pagesize) != pagesize)
5686 exit (1);
5687 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005688
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005689 /* Next, try to mmap the file at a fixed address which already has
5690 something else allocated at it. If we can, also make sure that
5691 we see the same garbage. */
5692 fd = open ("conftest.mmap", O_RDWR);
5693 if (fd < 0)
5694 exit (1);
5695 data2 = (char *) malloc (2 * pagesize);
5696 if (!data2)
5697 exit (1);
5698 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5699 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5700 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5701 exit (1);
5702 for (i = 0; i < pagesize; ++i)
5703 if (*(data + i) != *(data2 + i))
5704 exit (1);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005705
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005706 /* Finally, make sure that changes to the mapped area do not
5707 percolate back to the file as seen by read(). (This is a bug on
5708 some variants of i386 svr4.0.) */
5709 for (i = 0; i < pagesize; ++i)
5710 *(data2 + i) = *(data2 + i) + 1;
5711 data3 = (char *) malloc (pagesize);
5712 if (!data3)
5713 exit (1);
5714 if (read (fd, data3, pagesize) != pagesize)
5715 exit (1);
5716 for (i = 0; i < pagesize; ++i)
5717 if (*(data + i) != *(data3 + i))
5718 exit (1);
5719 close (fd);
5720 exit (0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005721}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005722_ACEOF
5723rm -f conftest$ac_exeext
5724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725 (eval $ac_link) 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005734 ac_cv_func_mmap_fixed_mapped=yes
5735else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005736 echo "$as_me: program exited with status $ac_status" >&5
5737echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005739
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005740( exit $ac_status )
5741ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005742fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005743rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5744fi
5745fi
5746echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5747echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005748if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005749
5750cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005751#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005752_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005753
5754fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005755rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005756
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005757
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005758 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5759echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5760if test "${ac_cv_gnu_library_2_1+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005762else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005763 cat >conftest.$ac_ext <<_ACEOF
5764/* confdefs.h. */
5765_ACEOF
5766cat confdefs.h >>conftest.$ac_ext
5767cat >>conftest.$ac_ext <<_ACEOF
5768/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005769
5770#include <features.h>
5771#ifdef __GNU_LIBRARY__
5772 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5773 Lucky GNU user
5774 #endif
5775#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005776
5777_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005779 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005780 ac_cv_gnu_library_2_1=yes
5781else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005782 ac_cv_gnu_library_2_1=no
5783fi
5784rm -f conftest*
5785
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005786
5787
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005788fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005789echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5790echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005791
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005792 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005793
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005795
5796
5797 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5798echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5799if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005801else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005802
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005803 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005804
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005805 # Guess based on the CPU.
5806 case "$host_cpu" in
5807 alpha* | i3456786 | m68k | s390*)
5808 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5809 *)
5810 gt_cv_int_divbyzero_sigfpe="guessing no";;
5811 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005812
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005813else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005814 cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005820
5821#include <stdlib.h>
5822#include <signal.h>
5823
5824static void
5825#ifdef __cplusplus
5826sigfpe_handler (int sig)
5827#else
5828sigfpe_handler (sig) int sig;
5829#endif
5830{
5831 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5832 exit (sig != SIGFPE);
5833}
5834
5835int x = 1;
5836int y = 0;
5837int z;
5838int nan;
5839
5840int main ()
5841{
5842 signal (SIGFPE, sigfpe_handler);
5843/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5844#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5845 signal (SIGTRAP, sigfpe_handler);
5846#endif
5847/* Linux/SPARC yields signal SIGILL. */
5848#if defined (__sparc__) && defined (__linux__)
5849 signal (SIGILL, sigfpe_handler);
5850#endif
5851
5852 z = x / y;
5853 nan = y / y;
5854 exit (1);
5855}
5856
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005857_ACEOF
5858rm -f conftest$ac_exeext
5859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005869 gt_cv_int_divbyzero_sigfpe=yes
5870else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005871 echo "$as_me: program exited with status $ac_status" >&5
5872echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875( exit $ac_status )
5876gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005877fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005878rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005879fi
5880
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005881fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005882echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5883echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005884 case "$gt_cv_int_divbyzero_sigfpe" in
5885 *yes) value=1;;
5886 *) value=0;;
5887 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005888
5889cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005890#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005891_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005892
5893
5894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005895 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5896echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5897if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899else
5900 cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h. */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h. */
5906unsigned long long ull = 1ULL; int i = 63;
5907int
5908main ()
5909{
5910unsigned long long ullmax = (unsigned long long) -1;
5911 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5912 ;
5913 return 0;
5914}
5915_ACEOF
5916rm -f conftest.$ac_objext conftest$ac_exeext
5917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918 (eval $ac_link) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try='test -s conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_type_unsigned_long_long=yes
5938else
5939 echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942ac_cv_type_unsigned_long_long=no
5943fi
5944rm -f conftest.err conftest.$ac_objext \
5945 conftest$ac_exeext conftest.$ac_ext
5946fi
5947echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5948echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5949 if test $ac_cv_type_unsigned_long_long = yes; then
5950
5951cat >>confdefs.h <<\_ACEOF
5952#define HAVE_UNSIGNED_LONG_LONG 1
5953_ACEOF
5954
5955 fi
5956
5957
5958
5959
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005960 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 -05005961
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005962 test $ac_cv_type_unsigned_long_long = yes \
5963 && ac_type='unsigned long long' \
5964 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005965
5966cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005967#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005968_ACEOF
5969
5970 else
5971
5972cat >>confdefs.h <<\_ACEOF
5973#define HAVE_UINTMAX_T 1
5974_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005975
5976 fi
5977
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005979 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5980echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5981if test "${gt_cv_header_inttypes_h+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005983else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005984
5985 cat >conftest.$ac_ext <<_ACEOF
5986/* confdefs.h. */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
5990/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005991#include <sys/types.h>
5992#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005993int
5994main ()
5995{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005996
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005997 ;
5998 return 0;
5999}
6000_ACEOF
6001rm -f conftest.$ac_objext
6002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006022 gt_cv_header_inttypes_h=yes
6023else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006024 echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027gt_cv_header_inttypes_h=no
6028fi
6029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030
6031fi
6032echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6033echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006034 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006035
6036cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006037#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006038_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006039
6040 fi
6041
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006042
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006044 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6046echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6047if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006049else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050
6051 cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h. */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006057#include <inttypes.h>
6058#ifdef PRId32
6059char *p = PRId32;
6060#endif
6061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062int
6063main ()
6064{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006065
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006066 ;
6067 return 0;
6068}
6069_ACEOF
6070rm -f conftest.$ac_objext
6071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006091 gt_cv_inttypes_pri_broken=no
6092else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006093 echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006096gt_cv_inttypes_pri_broken=yes
6097fi
6098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6099
6100fi
6101echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6102echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006103 fi
6104 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006105
6106cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006107#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006108_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006109
6110 fi
6111
6112
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006113
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006114for ac_header in stdint.h
6115do
6116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6117if eval "test \"\${$as_ac_Header+set}\" = set"; then
6118 echo "$as_me:$LINENO: checking for $ac_header" >&5
6119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6120if eval "test \"\${$as_ac_Header+set}\" = set"; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122fi
6123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6125else
6126 # Is the header compilable?
6127echo "$as_me:$LINENO: checking $ac_header usability" >&5
6128echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6129cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
6135$ac_includes_default
6136#include <$ac_header>
6137_ACEOF
6138rm -f conftest.$ac_objext
6139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_header_compiler=yes
6160else
6161 echo "$as_me: failed program was:" >&5
6162sed 's/^/| /' conftest.$ac_ext >&5
6163
6164ac_header_compiler=no
6165fi
6166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6168echo "${ECHO_T}$ac_header_compiler" >&6
6169
6170# Is the header present?
6171echo "$as_me:$LINENO: checking $ac_header presence" >&5
6172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6173cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h. */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h. */
6179#include <$ac_header>
6180_ACEOF
6181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null; then
6189 if test -s conftest.err; then
6190 ac_cpp_err=$ac_c_preproc_warn_flag
6191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6192 else
6193 ac_cpp_err=
6194 fi
6195else
6196 ac_cpp_err=yes
6197fi
6198if test -z "$ac_cpp_err"; then
6199 ac_header_preproc=yes
6200else
6201 echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 ac_header_preproc=no
6205fi
6206rm -f conftest.err conftest.$ac_ext
6207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6208echo "${ECHO_T}$ac_header_preproc" >&6
6209
6210# So? What about this header?
6211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6212 yes:no: )
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6217 ac_header_preproc=yes
6218 ;;
6219 no:yes:* )
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6232 (
6233 cat <<\_ASBOX
6234## ------------------------------------------ ##
6235## Report this to the AC_PACKAGE_NAME lists. ##
6236## ------------------------------------------ ##
6237_ASBOX
6238 ) |
6239 sed "s/^/$as_me: WARNING: /" >&2
6240 ;;
6241esac
6242echo "$as_me:$LINENO: checking for $ac_header" >&5
6243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6244if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247 eval "$as_ac_Header=\$ac_header_preproc"
6248fi
6249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6251
6252fi
6253if test `eval echo '${'$as_ac_Header'}'` = yes; then
6254 cat >>confdefs.h <<_ACEOF
6255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6256_ACEOF
6257
6258fi
6259
6260done
6261
6262 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6263echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6264 result=
6265 cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
6271
6272#include <limits.h>
6273#if HAVE_STDINT_H
6274#include <stdint.h>
6275#endif
6276#ifdef SIZE_MAX
6277Found it
6278#endif
6279
6280_ACEOF
6281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "Found it" >/dev/null 2>&1; then
6283 result=yes
6284fi
6285rm -f conftest*
6286
6287 if test -z "$result"; then
6288 if test "$cross_compiling" = yes; then
6289 # Depending upon the size, compute the lo and hi bounds.
6290cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h. */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h. */
6296#include <stddef.h>
6297int
6298main ()
6299{
6300static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6301test_array [0] = 0
6302
6303 ;
6304 return 0;
6305}
6306_ACEOF
6307rm -f conftest.$ac_objext
6308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_lo=0 ac_mid=0
6329 while :; do
6330 cat >conftest.$ac_ext <<_ACEOF
6331/* confdefs.h. */
6332_ACEOF
6333cat confdefs.h >>conftest.$ac_ext
6334cat >>conftest.$ac_ext <<_ACEOF
6335/* end confdefs.h. */
6336#include <stddef.h>
6337int
6338main ()
6339{
6340static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6341test_array [0] = 0
6342
6343 ;
6344 return 0;
6345}
6346_ACEOF
6347rm -f conftest.$ac_objext
6348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349 (eval $ac_compile) 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest.$ac_objext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_hi=$ac_mid; break
6369else
6370 echo "$as_me: failed program was:" >&5
6371sed 's/^/| /' conftest.$ac_ext >&5
6372
6373ac_lo=`expr $ac_mid + 1`
6374 if test $ac_lo -le $ac_mid; then
6375 ac_lo= ac_hi=
6376 break
6377 fi
6378 ac_mid=`expr 2 '*' $ac_mid + 1`
6379fi
6380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381 done
6382else
6383 echo "$as_me: failed program was:" >&5
6384sed 's/^/| /' conftest.$ac_ext >&5
6385
6386cat >conftest.$ac_ext <<_ACEOF
6387/* confdefs.h. */
6388_ACEOF
6389cat confdefs.h >>conftest.$ac_ext
6390cat >>conftest.$ac_ext <<_ACEOF
6391/* end confdefs.h. */
6392#include <stddef.h>
6393int
6394main ()
6395{
6396static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6397test_array [0] = 0
6398
6399 ;
6400 return 0;
6401}
6402_ACEOF
6403rm -f conftest.$ac_objext
6404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 (eval $ac_try) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_hi=-1 ac_mid=-1
6425 while :; do
6426 cat >conftest.$ac_ext <<_ACEOF
6427/* confdefs.h. */
6428_ACEOF
6429cat confdefs.h >>conftest.$ac_ext
6430cat >>conftest.$ac_ext <<_ACEOF
6431/* end confdefs.h. */
6432#include <stddef.h>
6433int
6434main ()
6435{
6436static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6437test_array [0] = 0
6438
6439 ;
6440 return 0;
6441}
6442_ACEOF
6443rm -f conftest.$ac_objext
6444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest.$ac_objext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_lo=$ac_mid; break
6465else
6466 echo "$as_me: failed program was:" >&5
6467sed 's/^/| /' conftest.$ac_ext >&5
6468
6469ac_hi=`expr '(' $ac_mid ')' - 1`
6470 if test $ac_mid -le $ac_hi; then
6471 ac_lo= ac_hi=
6472 break
6473 fi
6474 ac_mid=`expr 2 '*' $ac_mid`
6475fi
6476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6477 done
6478else
6479 echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482ac_lo= ac_hi=
6483fi
6484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6485fi
6486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487# Binary search between lo and hi bounds.
6488while test "x$ac_lo" != "x$ac_hi"; do
6489 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6490 cat >conftest.$ac_ext <<_ACEOF
6491/* confdefs.h. */
6492_ACEOF
6493cat confdefs.h >>conftest.$ac_ext
6494cat >>conftest.$ac_ext <<_ACEOF
6495/* end confdefs.h. */
6496#include <stddef.h>
6497int
6498main ()
6499{
6500static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6501test_array [0] = 0
6502
6503 ;
6504 return 0;
6505}
6506_ACEOF
6507rm -f conftest.$ac_objext
6508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509 (eval $ac_compile) 2>conftest.er1
6510 ac_status=$?
6511 grep -v '^ *+' conftest.er1 >conftest.err
6512 rm -f conftest.er1
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 (eval $ac_try) 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 (eval $ac_try) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_hi=$ac_mid
6529else
6530 echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
6532
6533ac_lo=`expr '(' $ac_mid ')' + 1`
6534fi
6535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536done
6537case $ac_lo in
6538?*) res_hi=$ac_lo;;
6539'') result=? ;;
6540esac
6541else
6542 if test "$cross_compiling" = yes; then
6543 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6544echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6545 { (exit 1); exit 1; }; }
6546else
6547 cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h. */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h. */
6553#include <stddef.h>
6554long longval () { return ~(size_t)0 / 10; }
6555unsigned long ulongval () { return ~(size_t)0 / 10; }
6556#include <stdio.h>
6557#include <stdlib.h>
6558int
6559main ()
6560{
6561
6562 FILE *f = fopen ("conftest.val", "w");
6563 if (! f)
6564 exit (1);
6565 if ((~(size_t)0 / 10) < 0)
6566 {
6567 long i = longval ();
6568 if (i != (~(size_t)0 / 10))
6569 exit (1);
6570 fprintf (f, "%ld\n", i);
6571 }
6572 else
6573 {
6574 unsigned long i = ulongval ();
6575 if (i != (~(size_t)0 / 10))
6576 exit (1);
6577 fprintf (f, "%lu\n", i);
6578 }
6579 exit (ferror (f) || fclose (f) != 0);
6580
6581 ;
6582 return 0;
6583}
6584_ACEOF
6585rm -f conftest$ac_exeext
6586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587 (eval $ac_link) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 res_hi=`cat conftest.val`
6597else
6598 echo "$as_me: program exited with status $ac_status" >&5
6599echo "$as_me: failed program was:" >&5
6600sed 's/^/| /' conftest.$ac_ext >&5
6601
6602( exit $ac_status )
6603result=?
6604fi
6605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6606fi
6607fi
6608rm -f conftest.val
6609 if test "$cross_compiling" = yes; then
6610 # Depending upon the size, compute the lo and hi bounds.
6611cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h. */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h. */
6617#include <stddef.h>
6618int
6619main ()
6620{
6621static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6622test_array [0] = 0
6623
6624 ;
6625 return 0;
6626}
6627_ACEOF
6628rm -f conftest.$ac_objext
6629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; } &&
6643 { ac_try='test -s conftest.$ac_objext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_lo=0 ac_mid=0
6650 while :; do
6651 cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
6657#include <stddef.h>
6658int
6659main ()
6660{
6661static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6662test_array [0] = 0
6663
6664 ;
6665 return 0;
6666}
6667_ACEOF
6668rm -f conftest.$ac_objext
6669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670 (eval $ac_compile) 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_hi=$ac_mid; break
6690else
6691 echo "$as_me: failed program was:" >&5
6692sed 's/^/| /' conftest.$ac_ext >&5
6693
6694ac_lo=`expr $ac_mid + 1`
6695 if test $ac_lo -le $ac_mid; then
6696 ac_lo= ac_hi=
6697 break
6698 fi
6699 ac_mid=`expr 2 '*' $ac_mid + 1`
6700fi
6701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6702 done
6703else
6704 echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707cat >conftest.$ac_ext <<_ACEOF
6708/* confdefs.h. */
6709_ACEOF
6710cat confdefs.h >>conftest.$ac_ext
6711cat >>conftest.$ac_ext <<_ACEOF
6712/* end confdefs.h. */
6713#include <stddef.h>
6714int
6715main ()
6716{
6717static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6718test_array [0] = 0
6719
6720 ;
6721 return 0;
6722}
6723_ACEOF
6724rm -f conftest.$ac_objext
6725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest.$ac_objext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_hi=-1 ac_mid=-1
6746 while :; do
6747 cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h. */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h. */
6753#include <stddef.h>
6754int
6755main ()
6756{
6757static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6758test_array [0] = 0
6759
6760 ;
6761 return 0;
6762}
6763_ACEOF
6764rm -f conftest.$ac_objext
6765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_lo=$ac_mid; break
6786else
6787 echo "$as_me: failed program was:" >&5
6788sed 's/^/| /' conftest.$ac_ext >&5
6789
6790ac_hi=`expr '(' $ac_mid ')' - 1`
6791 if test $ac_mid -le $ac_hi; then
6792 ac_lo= ac_hi=
6793 break
6794 fi
6795 ac_mid=`expr 2 '*' $ac_mid`
6796fi
6797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798 done
6799else
6800 echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803ac_lo= ac_hi=
6804fi
6805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6806fi
6807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808# Binary search between lo and hi bounds.
6809while test "x$ac_lo" != "x$ac_hi"; do
6810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6811 cat >conftest.$ac_ext <<_ACEOF
6812/* confdefs.h. */
6813_ACEOF
6814cat confdefs.h >>conftest.$ac_ext
6815cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h. */
6817#include <stddef.h>
6818int
6819main ()
6820{
6821static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6822test_array [0] = 0
6823
6824 ;
6825 return 0;
6826}
6827_ACEOF
6828rm -f conftest.$ac_objext
6829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6830 (eval $ac_compile) 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest.$ac_objext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_hi=$ac_mid
6850else
6851 echo "$as_me: failed program was:" >&5
6852sed 's/^/| /' conftest.$ac_ext >&5
6853
6854ac_lo=`expr '(' $ac_mid ')' + 1`
6855fi
6856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6857done
6858case $ac_lo in
6859?*) res_lo=$ac_lo;;
6860'') result=? ;;
6861esac
6862else
6863 if test "$cross_compiling" = yes; then
6864 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6865echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6866 { (exit 1); exit 1; }; }
6867else
6868 cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
6874#include <stddef.h>
6875long longval () { return ~(size_t)0 % 10; }
6876unsigned long ulongval () { return ~(size_t)0 % 10; }
6877#include <stdio.h>
6878#include <stdlib.h>
6879int
6880main ()
6881{
6882
6883 FILE *f = fopen ("conftest.val", "w");
6884 if (! f)
6885 exit (1);
6886 if ((~(size_t)0 % 10) < 0)
6887 {
6888 long i = longval ();
6889 if (i != (~(size_t)0 % 10))
6890 exit (1);
6891 fprintf (f, "%ld\n", i);
6892 }
6893 else
6894 {
6895 unsigned long i = ulongval ();
6896 if (i != (~(size_t)0 % 10))
6897 exit (1);
6898 fprintf (f, "%lu\n", i);
6899 }
6900 exit (ferror (f) || fclose (f) != 0);
6901
6902 ;
6903 return 0;
6904}
6905_ACEOF
6906rm -f conftest$ac_exeext
6907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908 (eval $ac_link) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 res_lo=`cat conftest.val`
6918else
6919 echo "$as_me: program exited with status $ac_status" >&5
6920echo "$as_me: failed program was:" >&5
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
6923( exit $ac_status )
6924result=?
6925fi
6926rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6927fi
6928fi
6929rm -f conftest.val
6930 if test "$cross_compiling" = yes; then
6931 # Depending upon the size, compute the lo and hi bounds.
6932cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938#include <stddef.h>
6939int
6940main ()
6941{
6942static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6943test_array [0] = 0
6944
6945 ;
6946 return 0;
6947}
6948_ACEOF
6949rm -f conftest.$ac_objext
6950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 (eval $ac_try) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; } &&
6964 { ac_try='test -s conftest.$ac_objext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970 ac_lo=0 ac_mid=0
6971 while :; do
6972 cat >conftest.$ac_ext <<_ACEOF
6973/* confdefs.h. */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h. */
6978#include <stddef.h>
6979int
6980main ()
6981{
6982static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6983test_array [0] = 0
6984
6985 ;
6986 return 0;
6987}
6988_ACEOF
6989rm -f conftest.$ac_objext
6990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991 (eval $ac_compile) 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 ac_hi=$ac_mid; break
7011else
7012 echo "$as_me: failed program was:" >&5
7013sed 's/^/| /' conftest.$ac_ext >&5
7014
7015ac_lo=`expr $ac_mid + 1`
7016 if test $ac_lo -le $ac_mid; then
7017 ac_lo= ac_hi=
7018 break
7019 fi
7020 ac_mid=`expr 2 '*' $ac_mid + 1`
7021fi
7022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 done
7024else
7025 echo "$as_me: failed program was:" >&5
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
7028cat >conftest.$ac_ext <<_ACEOF
7029/* confdefs.h. */
7030_ACEOF
7031cat confdefs.h >>conftest.$ac_ext
7032cat >>conftest.$ac_ext <<_ACEOF
7033/* end confdefs.h. */
7034#include <stddef.h>
7035int
7036main ()
7037{
7038static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7039test_array [0] = 0
7040
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext
7046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047 (eval $ac_compile) 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest.$ac_objext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 ac_hi=-1 ac_mid=-1
7067 while :; do
7068 cat >conftest.$ac_ext <<_ACEOF
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */
7074#include <stddef.h>
7075int
7076main ()
7077{
7078static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7079test_array [0] = 0
7080
7081 ;
7082 return 0;
7083}
7084_ACEOF
7085rm -f conftest.$ac_objext
7086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 (eval $ac_try) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; } &&
7100 { ac_try='test -s conftest.$ac_objext'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_lo=$ac_mid; break
7107else
7108 echo "$as_me: failed program was:" >&5
7109sed 's/^/| /' conftest.$ac_ext >&5
7110
7111ac_hi=`expr '(' $ac_mid ')' - 1`
7112 if test $ac_mid -le $ac_hi; then
7113 ac_lo= ac_hi=
7114 break
7115 fi
7116 ac_mid=`expr 2 '*' $ac_mid`
7117fi
7118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119 done
7120else
7121 echo "$as_me: failed program was:" >&5
7122sed 's/^/| /' conftest.$ac_ext >&5
7123
7124ac_lo= ac_hi=
7125fi
7126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7127fi
7128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129# Binary search between lo and hi bounds.
7130while test "x$ac_lo" != "x$ac_hi"; do
7131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7132 cat >conftest.$ac_ext <<_ACEOF
7133/* confdefs.h. */
7134_ACEOF
7135cat confdefs.h >>conftest.$ac_ext
7136cat >>conftest.$ac_ext <<_ACEOF
7137/* end confdefs.h. */
7138#include <stddef.h>
7139int
7140main ()
7141{
7142static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7143test_array [0] = 0
7144
7145 ;
7146 return 0;
7147}
7148_ACEOF
7149rm -f conftest.$ac_objext
7150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; } &&
7164 { ac_try='test -s conftest.$ac_objext'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7170 ac_hi=$ac_mid
7171else
7172 echo "$as_me: failed program was:" >&5
7173sed 's/^/| /' conftest.$ac_ext >&5
7174
7175ac_lo=`expr '(' $ac_mid ')' + 1`
7176fi
7177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178done
7179case $ac_lo in
7180?*) fits_in_uint=$ac_lo;;
7181'') result=? ;;
7182esac
7183else
7184 if test "$cross_compiling" = yes; then
7185 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7186echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7187 { (exit 1); exit 1; }; }
7188else
7189 cat >conftest.$ac_ext <<_ACEOF
7190/* confdefs.h. */
7191_ACEOF
7192cat confdefs.h >>conftest.$ac_ext
7193cat >>conftest.$ac_ext <<_ACEOF
7194/* end confdefs.h. */
7195#include <stddef.h>
7196long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7197unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7198#include <stdio.h>
7199#include <stdlib.h>
7200int
7201main ()
7202{
7203
7204 FILE *f = fopen ("conftest.val", "w");
7205 if (! f)
7206 exit (1);
7207 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7208 {
7209 long i = longval ();
7210 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7211 exit (1);
7212 fprintf (f, "%ld\n", i);
7213 }
7214 else
7215 {
7216 unsigned long i = ulongval ();
7217 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7218 exit (1);
7219 fprintf (f, "%lu\n", i);
7220 }
7221 exit (ferror (f) || fclose (f) != 0);
7222
7223 ;
7224 return 0;
7225}
7226_ACEOF
7227rm -f conftest$ac_exeext
7228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229 (eval $ac_link) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 fits_in_uint=`cat conftest.val`
7239else
7240 echo "$as_me: program exited with status $ac_status" >&5
7241echo "$as_me: failed program was:" >&5
7242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244( exit $ac_status )
7245result=?
7246fi
7247rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7248fi
7249fi
7250rm -f conftest.val
7251 if test "$fits_in_uint" = 1; then
7252 cat >conftest.$ac_ext <<_ACEOF
7253/* confdefs.h. */
7254_ACEOF
7255cat confdefs.h >>conftest.$ac_ext
7256cat >>conftest.$ac_ext <<_ACEOF
7257/* end confdefs.h. */
7258#include <stddef.h>
7259 extern size_t foo;
7260 extern unsigned long foo;
7261
7262int
7263main ()
7264{
7265
7266 ;
7267 return 0;
7268}
7269_ACEOF
7270rm -f conftest.$ac_objext
7271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272 (eval $ac_compile) 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } &&
7279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 fits_in_uint=0
7292else
7293 echo "$as_me: failed program was:" >&5
7294sed 's/^/| /' conftest.$ac_ext >&5
7295
7296fi
7297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7298 fi
7299 if test -z "$result"; then
7300 if test "$fits_in_uint" = 1; then
7301 result="$res_hi$res_lo"U
7302 else
7303 result="$res_hi$res_lo"UL
7304 fi
7305 else
7306 result='~(size_t)0'
7307 fi
7308 fi
7309 echo "$as_me:$LINENO: result: $result" >&5
7310echo "${ECHO_T}$result" >&6
7311 if test "$result" != yes; then
7312
7313cat >>confdefs.h <<_ACEOF
7314#define SIZE_MAX $result
7315_ACEOF
7316
7317 fi
7318
7319
7320
7321
7322for ac_header in stdint.h
7323do
7324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7325if eval "test \"\${$as_ac_Header+set}\" = set"; then
7326 echo "$as_me:$LINENO: checking for $ac_header" >&5
7327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7328if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330fi
7331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7333else
7334 # Is the header compilable?
7335echo "$as_me:$LINENO: checking $ac_header usability" >&5
7336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7337cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h. */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h. */
7343$ac_includes_default
7344#include <$ac_header>
7345_ACEOF
7346rm -f conftest.$ac_objext
7347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7349 ac_status=$?
7350 grep -v '^ *+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_header_compiler=yes
7368else
7369 echo "$as_me: failed program was:" >&5
7370sed 's/^/| /' conftest.$ac_ext >&5
7371
7372ac_header_compiler=no
7373fi
7374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7376echo "${ECHO_T}$ac_header_compiler" >&6
7377
7378# Is the header present?
7379echo "$as_me:$LINENO: checking $ac_header presence" >&5
7380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7381cat >conftest.$ac_ext <<_ACEOF
7382/* confdefs.h. */
7383_ACEOF
7384cat confdefs.h >>conftest.$ac_ext
7385cat >>conftest.$ac_ext <<_ACEOF
7386/* end confdefs.h. */
7387#include <$ac_header>
7388_ACEOF
7389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } >/dev/null; then
7397 if test -s conftest.err; then
7398 ac_cpp_err=$ac_c_preproc_warn_flag
7399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7400 else
7401 ac_cpp_err=
7402 fi
7403else
7404 ac_cpp_err=yes
7405fi
7406if test -z "$ac_cpp_err"; then
7407 ac_header_preproc=yes
7408else
7409 echo "$as_me: failed program was:" >&5
7410sed 's/^/| /' conftest.$ac_ext >&5
7411
7412 ac_header_preproc=no
7413fi
7414rm -f conftest.err conftest.$ac_ext
7415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7416echo "${ECHO_T}$ac_header_preproc" >&6
7417
7418# So? What about this header?
7419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7420 yes:no: )
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7425 ac_header_preproc=yes
7426 ;;
7427 no:yes:* )
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7440 (
7441 cat <<\_ASBOX
7442## ------------------------------------------ ##
7443## Report this to the AC_PACKAGE_NAME lists. ##
7444## ------------------------------------------ ##
7445_ASBOX
7446 ) |
7447 sed "s/^/$as_me: WARNING: /" >&2
7448 ;;
7449esac
7450echo "$as_me:$LINENO: checking for $ac_header" >&5
7451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7454else
7455 eval "$as_ac_Header=\$ac_header_preproc"
7456fi
7457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459
7460fi
7461if test `eval echo '${'$as_ac_Header'}'` = yes; then
7462 cat >>confdefs.h <<_ACEOF
7463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464_ACEOF
7465
7466fi
7467
7468done
7469
7470
7471
7472 if test "X$prefix" = "XNONE"; then
7473 acl_final_prefix="$ac_default_prefix"
7474 else
7475 acl_final_prefix="$prefix"
7476 fi
7477 if test "X$exec_prefix" = "XNONE"; then
7478 acl_final_exec_prefix='${prefix}'
7479 else
7480 acl_final_exec_prefix="$exec_prefix"
7481 fi
7482 acl_save_prefix="$prefix"
7483 prefix="$acl_final_prefix"
7484 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7485 prefix="$acl_save_prefix"
7486
7487
7488# Check whether --with-gnu-ld or --without-gnu-ld was given.
7489if test "${with_gnu_ld+set}" = set; then
7490 withval="$with_gnu_ld"
7491 test "$withval" = no || with_gnu_ld=yes
7492else
7493 with_gnu_ld=no
7494fi;
7495# Prepare PATH_SEPARATOR.
7496# The user is always right.
7497if test "${PATH_SEPARATOR+set}" != set; then
7498 echo "#! /bin/sh" >conf$$.sh
7499 echo "exit 0" >>conf$$.sh
7500 chmod +x conf$$.sh
7501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7502 PATH_SEPARATOR=';'
7503 else
7504 PATH_SEPARATOR=:
7505 fi
7506 rm -f conf$$.sh
7507fi
7508ac_prog=ld
7509if test "$GCC" = yes; then
7510 # Check if gcc -print-prog-name=ld gives a path.
7511 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7512echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7513 case $host in
7514 *-*-mingw*)
7515 # gcc leaves a trailing carriage return which upsets mingw
7516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7517 *)
7518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7519 esac
7520 case $ac_prog in
7521 # Accept absolute paths.
7522 [\\/]* | [A-Za-z]:[\\/]*)
7523 re_direlt='/[^/][^/]*/\.\./'
7524 # Canonicalize the path of ld
7525 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7527 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7528 done
7529 test -z "$LD" && LD="$ac_prog"
7530 ;;
7531 "")
7532 # If it fails, then pretend we aren't using GCC.
7533 ac_prog=ld
7534 ;;
7535 *)
7536 # If it is relative, then search for the first ld in PATH.
7537 with_gnu_ld=unknown
7538 ;;
7539 esac
7540elif test "$with_gnu_ld" = yes; then
7541 echo "$as_me:$LINENO: checking for GNU ld" >&5
7542echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7543else
7544 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7545echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7546fi
7547if test "${acl_cv_path_LD+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550 if test -z "$LD"; then
7551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7552 for ac_dir in $PATH; do
7553 test -z "$ac_dir" && ac_dir=.
7554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7555 acl_cv_path_LD="$ac_dir/$ac_prog"
7556 # Check to see if the program is GNU ld. I'd rather use --version,
7557 # but apparently some GNU ld's only accept -v.
7558 # Break only if it was the GNU/non-GNU ld that we prefer.
7559 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7560 *GNU* | *'with BFD'*)
7561 test "$with_gnu_ld" != no && break ;;
7562 *)
7563 test "$with_gnu_ld" != yes && break ;;
7564 esac
7565 fi
7566 done
7567 IFS="$ac_save_ifs"
7568else
7569 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7570fi
7571fi
7572
7573LD="$acl_cv_path_LD"
7574if test -n "$LD"; then
7575 echo "$as_me:$LINENO: result: $LD" >&5
7576echo "${ECHO_T}$LD" >&6
7577else
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
7580fi
7581test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7582echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7583 { (exit 1); exit 1; }; }
7584echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7585echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7586if test "${acl_cv_prog_gnu_ld+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7590case `$LD -v 2>&1 </dev/null` in
7591*GNU* | *'with BFD'*)
7592 acl_cv_prog_gnu_ld=yes ;;
7593*)
7594 acl_cv_prog_gnu_ld=no ;;
7595esac
7596fi
7597echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7598echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7599with_gnu_ld=$acl_cv_prog_gnu_ld
7600
7601
7602
7603 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7604echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7605if test "${acl_cv_rpath+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607else
7608
7609 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7610 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7611 . ./conftest.sh
7612 rm -f ./conftest.sh
7613 acl_cv_rpath=done
7614
7615fi
7616echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7617echo "${ECHO_T}$acl_cv_rpath" >&6
7618 wl="$acl_cv_wl"
7619 libext="$acl_cv_libext"
7620 shlibext="$acl_cv_shlibext"
7621 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7622 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7623 hardcode_direct="$acl_cv_hardcode_direct"
7624 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7625 # Check whether --enable-rpath or --disable-rpath was given.
7626if test "${enable_rpath+set}" = set; then
7627 enableval="$enable_rpath"
7628 :
7629else
7630 enable_rpath=yes
7631fi;
7632
7633
7634
7635
7636
7637
7638
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007639 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007640
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007641 acl_save_prefix="$prefix"
7642 prefix="$acl_final_prefix"
7643 acl_save_exec_prefix="$exec_prefix"
7644 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007645
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007646 eval additional_includedir=\"$includedir\"
7647 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007648
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007649 exec_prefix="$acl_save_exec_prefix"
7650 prefix="$acl_save_prefix"
7651
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007652
7653# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007654if test "${with_libiconv_prefix+set}" = set; then
7655 withval="$with_libiconv_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007656
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007657 if test "X$withval" = "Xno"; then
7658 use_additional=no
7659 else
7660 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007661
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007662 acl_save_prefix="$prefix"
7663 prefix="$acl_final_prefix"
7664 acl_save_exec_prefix="$exec_prefix"
7665 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007667 eval additional_includedir=\"$includedir\"
7668 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007669
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007670 exec_prefix="$acl_save_exec_prefix"
7671 prefix="$acl_save_prefix"
7672
7673 else
7674 additional_includedir="$withval/include"
7675 additional_libdir="$withval/lib"
7676 fi
7677 fi
7678
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007679fi;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007680 LIBICONV=
7681 LTLIBICONV=
7682 INCICONV=
7683 rpathdirs=
7684 ltrpathdirs=
7685 names_already_handled=
7686 names_next_round='iconv '
7687 while test -n "$names_next_round"; do
7688 names_this_round="$names_next_round"
7689 names_next_round=
7690 for name in $names_this_round; do
7691 already_handled=
7692 for n in $names_already_handled; do
7693 if test "$n" = "$name"; then
7694 already_handled=yes
7695 break
7696 fi
7697 done
7698 if test -z "$already_handled"; then
7699 names_already_handled="$names_already_handled $name"
7700 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7701 eval value=\"\$HAVE_LIB$uppername\"
7702 if test -n "$value"; then
7703 if test "$value" = yes; then
7704 eval value=\"\$LIB$uppername\"
7705 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7706 eval value=\"\$LTLIB$uppername\"
7707 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7708 else
7709 :
7710 fi
7711 else
7712 found_dir=
7713 found_la=
7714 found_so=
7715 found_a=
7716 if test $use_additional = yes; then
7717 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7718 found_dir="$additional_libdir"
7719 found_so="$additional_libdir/lib$name.$shlibext"
7720 if test -f "$additional_libdir/lib$name.la"; then
7721 found_la="$additional_libdir/lib$name.la"
7722 fi
7723 else
7724 if test -f "$additional_libdir/lib$name.$libext"; then
7725 found_dir="$additional_libdir"
7726 found_a="$additional_libdir/lib$name.$libext"
7727 if test -f "$additional_libdir/lib$name.la"; then
7728 found_la="$additional_libdir/lib$name.la"
7729 fi
7730 fi
7731 fi
7732 fi
7733 if test "X$found_dir" = "X"; then
7734 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007735
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007736 acl_save_prefix="$prefix"
7737 prefix="$acl_final_prefix"
7738 acl_save_exec_prefix="$exec_prefix"
7739 exec_prefix="$acl_final_exec_prefix"
7740 eval x=\"$x\"
7741 exec_prefix="$acl_save_exec_prefix"
7742 prefix="$acl_save_prefix"
7743
7744 case "$x" in
7745 -L*)
7746 dir=`echo "X$x" | sed -e 's/^X-L//'`
7747 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7748 found_dir="$dir"
7749 found_so="$dir/lib$name.$shlibext"
7750 if test -f "$dir/lib$name.la"; then
7751 found_la="$dir/lib$name.la"
7752 fi
7753 else
7754 if test -f "$dir/lib$name.$libext"; then
7755 found_dir="$dir"
7756 found_a="$dir/lib$name.$libext"
7757 if test -f "$dir/lib$name.la"; then
7758 found_la="$dir/lib$name.la"
7759 fi
7760 fi
7761 fi
7762 ;;
7763 esac
7764 if test "X$found_dir" != "X"; then
7765 break
7766 fi
7767 done
7768 fi
7769 if test "X$found_dir" != "X"; then
7770 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7771 if test "X$found_so" != "X"; then
7772 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7774 else
7775 haveit=
7776 for x in $ltrpathdirs; do
7777 if test "X$x" = "X$found_dir"; then
7778 haveit=yes
7779 break
7780 fi
7781 done
7782 if test -z "$haveit"; then
7783 ltrpathdirs="$ltrpathdirs $found_dir"
7784 fi
7785 if test "$hardcode_direct" = yes; then
7786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7787 else
7788 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7790 haveit=
7791 for x in $rpathdirs; do
7792 if test "X$x" = "X$found_dir"; then
7793 haveit=yes
7794 break
7795 fi
7796 done
7797 if test -z "$haveit"; then
7798 rpathdirs="$rpathdirs $found_dir"
7799 fi
7800 else
7801 haveit=
7802 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007803
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007804 acl_save_prefix="$prefix"
7805 prefix="$acl_final_prefix"
7806 acl_save_exec_prefix="$exec_prefix"
7807 exec_prefix="$acl_final_exec_prefix"
7808 eval x=\"$x\"
7809 exec_prefix="$acl_save_exec_prefix"
7810 prefix="$acl_save_prefix"
7811
7812 if test "X$x" = "X-L$found_dir"; then
7813 haveit=yes
7814 break
7815 fi
7816 done
7817 if test -z "$haveit"; then
7818 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7819 fi
7820 if test "$hardcode_minus_L" != no; then
7821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7822 else
7823 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7824 fi
7825 fi
7826 fi
7827 fi
7828 else
7829 if test "X$found_a" != "X"; then
7830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7831 else
7832 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7833 fi
7834 fi
7835 additional_includedir=
7836 case "$found_dir" in
7837 */lib | */lib/)
7838 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7839 additional_includedir="$basedir/include"
7840 ;;
7841 esac
7842 if test "X$additional_includedir" != "X"; then
7843 if test "X$additional_includedir" != "X/usr/include"; then
7844 haveit=
7845 if test "X$additional_includedir" = "X/usr/local/include"; then
7846 if test -n "$GCC"; then
7847 case $host_os in
7848 linux*) haveit=yes;;
7849 esac
7850 fi
7851 fi
7852 if test -z "$haveit"; then
7853 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007854
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007855 acl_save_prefix="$prefix"
7856 prefix="$acl_final_prefix"
7857 acl_save_exec_prefix="$exec_prefix"
7858 exec_prefix="$acl_final_exec_prefix"
7859 eval x=\"$x\"
7860 exec_prefix="$acl_save_exec_prefix"
7861 prefix="$acl_save_prefix"
7862
7863 if test "X$x" = "X-I$additional_includedir"; then
7864 haveit=yes
7865 break
7866 fi
7867 done
7868 if test -z "$haveit"; then
7869 if test -d "$additional_includedir"; then
7870 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7871 fi
7872 fi
7873 fi
7874 fi
7875 fi
7876 if test -n "$found_la"; then
7877 save_libdir="$libdir"
7878 case "$found_la" in
7879 */* | *\\*) . "$found_la" ;;
7880 *) . "./$found_la" ;;
7881 esac
7882 libdir="$save_libdir"
7883 for dep in $dependency_libs; do
7884 case "$dep" in
7885 -L*)
7886 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7887 if test "X$additional_libdir" != "X/usr/lib"; then
7888 haveit=
7889 if test "X$additional_libdir" = "X/usr/local/lib"; then
7890 if test -n "$GCC"; then
7891 case $host_os in
7892 linux*) haveit=yes;;
7893 esac
7894 fi
7895 fi
7896 if test -z "$haveit"; then
7897 haveit=
7898 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007899
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007900 acl_save_prefix="$prefix"
7901 prefix="$acl_final_prefix"
7902 acl_save_exec_prefix="$exec_prefix"
7903 exec_prefix="$acl_final_exec_prefix"
7904 eval x=\"$x\"
7905 exec_prefix="$acl_save_exec_prefix"
7906 prefix="$acl_save_prefix"
7907
7908 if test "X$x" = "X-L$additional_libdir"; then
7909 haveit=yes
7910 break
7911 fi
7912 done
7913 if test -z "$haveit"; then
7914 if test -d "$additional_libdir"; then
7915 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7916 fi
7917 fi
7918 haveit=
7919 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007920
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007921 acl_save_prefix="$prefix"
7922 prefix="$acl_final_prefix"
7923 acl_save_exec_prefix="$exec_prefix"
7924 exec_prefix="$acl_final_exec_prefix"
7925 eval x=\"$x\"
7926 exec_prefix="$acl_save_exec_prefix"
7927 prefix="$acl_save_prefix"
7928
7929 if test "X$x" = "X-L$additional_libdir"; then
7930 haveit=yes
7931 break
7932 fi
7933 done
7934 if test -z "$haveit"; then
7935 if test -d "$additional_libdir"; then
7936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7937 fi
7938 fi
7939 fi
7940 fi
7941 ;;
7942 -R*)
7943 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7944 if test "$enable_rpath" != no; then
7945 haveit=
7946 for x in $rpathdirs; do
7947 if test "X$x" = "X$dir"; then
7948 haveit=yes
7949 break
7950 fi
7951 done
7952 if test -z "$haveit"; then
7953 rpathdirs="$rpathdirs $dir"
7954 fi
7955 haveit=
7956 for x in $ltrpathdirs; do
7957 if test "X$x" = "X$dir"; then
7958 haveit=yes
7959 break
7960 fi
7961 done
7962 if test -z "$haveit"; then
7963 ltrpathdirs="$ltrpathdirs $dir"
7964 fi
7965 fi
7966 ;;
7967 -l*)
7968 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7969 ;;
7970 *.la)
7971 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7972 ;;
7973 *)
7974 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7976 ;;
7977 esac
7978 done
7979 fi
7980 else
7981 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7983 fi
7984 fi
7985 fi
7986 done
7987 done
7988 if test "X$rpathdirs" != "X"; then
7989 if test -n "$hardcode_libdir_separator"; then
7990 alldirs=
7991 for found_dir in $rpathdirs; do
7992 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7993 done
7994 acl_save_libdir="$libdir"
7995 libdir="$alldirs"
7996 eval flag=\"$hardcode_libdir_flag_spec\"
7997 libdir="$acl_save_libdir"
7998 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7999 else
8000 for found_dir in $rpathdirs; do
8001 acl_save_libdir="$libdir"
8002 libdir="$found_dir"
8003 eval flag=\"$hardcode_libdir_flag_spec\"
8004 libdir="$acl_save_libdir"
8005 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8006 done
8007 fi
8008 fi
8009 if test "X$ltrpathdirs" != "X"; then
8010 for found_dir in $ltrpathdirs; do
8011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8012 done
8013 fi
8014
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008015
8016
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008018
8019
8020
8021
8022 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8023echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8024if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008026else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008027 cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
8033$ac_includes_default
8034int
8035main ()
8036{
8037if ((ptrdiff_t *) 0)
8038 return 0;
8039if (sizeof (ptrdiff_t))
8040 return 0;
8041 ;
8042 return 0;
8043}
8044_ACEOF
8045rm -f conftest.$ac_objext
8046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8047 (eval $ac_compile) 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_type_ptrdiff_t=yes
8067else
8068 echo "$as_me: failed program was:" >&5
8069sed 's/^/| /' conftest.$ac_ext >&5
8070
8071ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008072fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8074fi
8075echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8076echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8077if test $ac_cv_type_ptrdiff_t = yes; then
8078 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008079else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008080
8081cat >>confdefs.h <<\_ACEOF
8082#define ptrdiff_t long
8083_ACEOF
8084
8085
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008086fi
8087
8088
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008089
8090
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008091
8092
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008093
8094
8095
8096
8097
8098for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008099stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008100do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8102if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103 echo "$as_me:$LINENO: checking for $ac_header" >&5
8104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8105if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008107fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008110else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008111 # Is the header compilable?
8112echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8114cat >conftest.$ac_ext <<_ACEOF
8115/* confdefs.h. */
8116_ACEOF
8117cat confdefs.h >>conftest.$ac_ext
8118cat >>conftest.$ac_ext <<_ACEOF
8119/* end confdefs.h. */
8120$ac_includes_default
8121#include <$ac_header>
8122_ACEOF
8123rm -f conftest.$ac_objext
8124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>conftest.er1
8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_header_compiler=yes
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008150fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8153echo "${ECHO_T}$ac_header_compiler" >&6
8154
8155# Is the header present?
8156echo "$as_me:$LINENO: checking $ac_header presence" >&5
8157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8158cat >conftest.$ac_ext <<_ACEOF
8159/* confdefs.h. */
8160_ACEOF
8161cat confdefs.h >>conftest.$ac_ext
8162cat >>conftest.$ac_ext <<_ACEOF
8163/* end confdefs.h. */
8164#include <$ac_header>
8165_ACEOF
8166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8168 ac_status=$?
8169 grep -v '^ *+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } >/dev/null; then
8174 if test -s conftest.err; then
8175 ac_cpp_err=$ac_c_preproc_warn_flag
8176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8177 else
8178 ac_cpp_err=
8179 fi
8180else
8181 ac_cpp_err=yes
8182fi
8183if test -z "$ac_cpp_err"; then
8184 ac_header_preproc=yes
8185else
8186 echo "$as_me: failed program was:" >&5
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 ac_header_preproc=no
8190fi
8191rm -f conftest.err conftest.$ac_ext
8192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193echo "${ECHO_T}$ac_header_preproc" >&6
8194
8195# So? What about this header?
8196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8197 yes:no: )
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8202 ac_header_preproc=yes
8203 ;;
8204 no:yes:* )
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8217 (
8218 cat <<\_ASBOX
8219## ------------------------------------------ ##
8220## Report this to the AC_PACKAGE_NAME lists. ##
8221## ------------------------------------------ ##
8222_ASBOX
8223 ) |
8224 sed "s/^/$as_me: WARNING: /" >&2
8225 ;;
8226esac
8227echo "$as_me:$LINENO: checking for $ac_header" >&5
8228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8229if eval "test \"\${$as_ac_Header+set}\" = set"; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231else
8232 eval "$as_ac_Header=\$ac_header_preproc"
8233fi
8234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8236
8237fi
8238if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8241_ACEOF
8242
8243fi
8244
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008245done
8246
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8271mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8272strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8273__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008274do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8276echo "$as_me:$LINENO: checking for $ac_func" >&5
8277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8278if eval "test \"\${$as_ac_var+set}\" = set"; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008280else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008281 cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h. */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h. */
8287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8289#define $ac_func innocuous_$ac_func
8290
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008291/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008292 which can conflict with char $ac_func (); below.
8293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294 <limits.h> exists even on freestanding compilers. */
8295
8296#ifdef __STDC__
8297# include <limits.h>
8298#else
8299# include <assert.h>
8300#endif
8301
8302#undef $ac_func
8303
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008304/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008305#ifdef __cplusplus
8306extern "C"
8307{
8308#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008309/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008310 builtin and then its argument prototype would still apply. */
8311char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008312/* The GNU C library defines this for functions which it implements
8313 to always fail with ENOSYS. Some functions are actually named
8314 something starting with __ and the normal name is an alias. */
8315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8316choke me
8317#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008318char (*f) () = $ac_func;
8319#endif
8320#ifdef __cplusplus
8321}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008322#endif
8323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008324int
8325main ()
8326{
8327return f != $ac_func;
8328 ;
8329 return 0;
8330}
8331_ACEOF
8332rm -f conftest.$ac_objext conftest$ac_exeext
8333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334 (eval $ac_link) 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008354else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008355 echo "$as_me: failed program was:" >&5
8356sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008358eval "$as_ac_var=no"
8359fi
8360rm -f conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8362fi
8363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8365if test `eval echo '${'$as_ac_var'}'` = yes; then
8366 cat >>confdefs.h <<_ACEOF
8367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8368_ACEOF
8369
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008370fi
8371done
8372
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008373
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008374
8375 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8376echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8377if test "${ac_cv_have_decl__snprintf+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379else
8380 cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
8386#include <stdio.h>
8387int
8388main ()
8389{
8390
8391#ifndef _snprintf
8392 char *p = (char *) _snprintf;
8393#endif
8394
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext
8400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_have_decl__snprintf=yes
8421else
8422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425ac_cv_have_decl__snprintf=no
8426fi
8427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8428fi
8429echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8430echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8431 if test $ac_cv_have_decl__snprintf = yes; then
8432 gt_value=1
8433 else
8434 gt_value=0
8435 fi
8436
8437cat >>confdefs.h <<_ACEOF
8438#define HAVE_DECL__SNPRINTF $gt_value
8439_ACEOF
8440
8441
8442
8443 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8444echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8445if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448 cat >conftest.$ac_ext <<_ACEOF
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
8454#include <stdio.h>
8455int
8456main ()
8457{
8458
8459#ifndef _snwprintf
8460 char *p = (char *) _snwprintf;
8461#endif
8462
8463 ;
8464 return 0;
8465}
8466_ACEOF
8467rm -f conftest.$ac_objext
8468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469 (eval $ac_compile) 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } &&
8476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_have_decl__snwprintf=yes
8489else
8490 echo "$as_me: failed program was:" >&5
8491sed 's/^/| /' conftest.$ac_ext >&5
8492
8493ac_cv_have_decl__snwprintf=no
8494fi
8495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8496fi
8497echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8498echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8499 if test $ac_cv_have_decl__snwprintf = yes; then
8500 gt_value=1
8501 else
8502 gt_value=0
8503 fi
8504
8505cat >>confdefs.h <<_ACEOF
8506#define HAVE_DECL__SNWPRINTF $gt_value
8507_ACEOF
8508
8509
8510
8511
8512 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8513echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8514if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516else
8517 cat >conftest.$ac_ext <<_ACEOF
8518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
8523#include <stdio.h>
8524int
8525main ()
8526{
8527
8528#ifndef feof_unlocked
8529 char *p = (char *) feof_unlocked;
8530#endif
8531
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536rm -f conftest.$ac_objext
8537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_have_decl_feof_unlocked=yes
8558else
8559 echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562ac_cv_have_decl_feof_unlocked=no
8563fi
8564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565fi
8566echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8567echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8568 if test $ac_cv_have_decl_feof_unlocked = yes; then
8569 gt_value=1
8570 else
8571 gt_value=0
8572 fi
8573
8574cat >>confdefs.h <<_ACEOF
8575#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8576_ACEOF
8577
8578
8579
8580 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8581echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8582if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584else
8585 cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
8591#include <stdio.h>
8592int
8593main ()
8594{
8595
8596#ifndef fgets_unlocked
8597 char *p = (char *) fgets_unlocked;
8598#endif
8599
8600 ;
8601 return 0;
8602}
8603_ACEOF
8604rm -f conftest.$ac_objext
8605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_have_decl_fgets_unlocked=yes
8626else
8627 echo "$as_me: failed program was:" >&5
8628sed 's/^/| /' conftest.$ac_ext >&5
8629
8630ac_cv_have_decl_fgets_unlocked=no
8631fi
8632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633fi
8634echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8635echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8636 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8637 gt_value=1
8638 else
8639 gt_value=0
8640 fi
8641
8642cat >>confdefs.h <<_ACEOF
8643#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8644_ACEOF
8645
8646
8647
8648 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8649echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8650if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653 cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659#include <stdio.h>
8660int
8661main ()
8662{
8663
8664#ifndef getc_unlocked
8665 char *p = (char *) getc_unlocked;
8666#endif
8667
8668 ;
8669 return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext
8673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8674 (eval $ac_compile) 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest.$ac_objext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_cv_have_decl_getc_unlocked=yes
8694else
8695 echo "$as_me: failed program was:" >&5
8696sed 's/^/| /' conftest.$ac_ext >&5
8697
8698ac_cv_have_decl_getc_unlocked=no
8699fi
8700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8701fi
8702echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8703echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8704 if test $ac_cv_have_decl_getc_unlocked = yes; then
8705 gt_value=1
8706 else
8707 gt_value=0
8708 fi
8709
8710cat >>confdefs.h <<_ACEOF
8711#define HAVE_DECL_GETC_UNLOCKED $gt_value
8712_ACEOF
8713
8714
8715
8716 case $gt_cv_func_printf_posix in
8717 *yes) HAVE_POSIX_PRINTF=1 ;;
8718 *) HAVE_POSIX_PRINTF=0 ;;
8719 esac
8720
8721 if test "$ac_cv_func_asprintf" = yes; then
8722 HAVE_ASPRINTF=1
8723 else
8724 HAVE_ASPRINTF=0
8725 fi
8726
8727 if test "$ac_cv_func_snprintf" = yes; then
8728 HAVE_SNPRINTF=1
8729 else
8730 HAVE_SNPRINTF=0
8731 fi
8732
8733 if test "$ac_cv_func_wprintf" = yes; then
8734 HAVE_WPRINTF=1
8735 else
8736 HAVE_WPRINTF=0
8737 fi
8738
8739
8740
8741
8742
8743
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008744
8745 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008746
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008747 for element in $INCICONV; do
8748 haveit=
8749 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008750
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008751 acl_save_prefix="$prefix"
8752 prefix="$acl_final_prefix"
8753 acl_save_exec_prefix="$exec_prefix"
8754 exec_prefix="$acl_final_exec_prefix"
8755 eval x=\"$x\"
8756 exec_prefix="$acl_save_exec_prefix"
8757 prefix="$acl_save_prefix"
8758
8759 if test "X$x" = "X$element"; then
8760 haveit=yes
8761 break
8762 fi
8763 done
8764 if test -z "$haveit"; then
8765 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8766 fi
8767 done
8768
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008770 echo "$as_me:$LINENO: checking for iconv" >&5
8771echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8772if test "${am_cv_func_iconv+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008774else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008775
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008776 am_cv_func_iconv="no, consider installing GNU libiconv"
8777 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008778 cat >conftest.$ac_ext <<_ACEOF
8779/* confdefs.h. */
8780_ACEOF
8781cat confdefs.h >>conftest.$ac_ext
8782cat >>conftest.$ac_ext <<_ACEOF
8783/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008784#include <stdlib.h>
8785#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008786int
8787main ()
8788{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008789iconv_t cd = iconv_open("","");
8790 iconv(cd,NULL,NULL,NULL,NULL);
8791 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008792 ;
8793 return 0;
8794}
8795_ACEOF
8796rm -f conftest.$ac_objext conftest$ac_exeext
8797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798 (eval $ac_link) 2>conftest.er1
8799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008817 am_cv_func_iconv=yes
8818else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008819 echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008822fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008823rm -f conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008825 if test "$am_cv_func_iconv" != yes; then
8826 am_save_LIBS="$LIBS"
8827 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008828 cat >conftest.$ac_ext <<_ACEOF
8829/* confdefs.h. */
8830_ACEOF
8831cat confdefs.h >>conftest.$ac_ext
8832cat >>conftest.$ac_ext <<_ACEOF
8833/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008834#include <stdlib.h>
8835#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008836int
8837main ()
8838{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008839iconv_t cd = iconv_open("","");
8840 iconv(cd,NULL,NULL,NULL,NULL);
8841 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008842 ;
8843 return 0;
8844}
8845_ACEOF
8846rm -f conftest.$ac_objext conftest$ac_exeext
8847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008867 am_cv_lib_iconv=yes
8868 am_cv_func_iconv=yes
8869else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008870 echo "$as_me: failed program was:" >&5
8871sed 's/^/| /' conftest.$ac_ext >&5
8872
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008873fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008874rm -f conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008876 LIBS="$am_save_LIBS"
8877 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008878
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008879fi
8880echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8881echo "${ECHO_T}$am_cv_func_iconv" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008882 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008883
8884cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008885#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008886_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008887
8888 fi
8889 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008890 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8891echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8892 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8893echo "${ECHO_T}$LIBICONV" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008894 else
8895 CPPFLAGS="$am_save_CPPFLAGS"
8896 LIBICONV=
8897 LTLIBICONV=
8898 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008899
8900
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008901
8902 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008903 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8904echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8905 if test "${am_cv_proto_iconv+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008907else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008908
8909 cat >conftest.$ac_ext <<_ACEOF
8910/* confdefs.h. */
8911_ACEOF
8912cat confdefs.h >>conftest.$ac_ext
8913cat >>conftest.$ac_ext <<_ACEOF
8914/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008915
8916#include <stdlib.h>
8917#include <iconv.h>
8918extern
8919#ifdef __cplusplus
8920"C"
8921#endif
8922#if defined(__STDC__) || defined(__cplusplus)
8923size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8924#else
8925size_t iconv();
8926#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008927
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008928int
8929main ()
8930{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008931
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008932 ;
8933 return 0;
8934}
8935_ACEOF
8936rm -f conftest.$ac_objext
8937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008957 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008958else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008959 echo "$as_me: failed program was:" >&5
8960sed 's/^/| /' conftest.$ac_ext >&5
8961
8962am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008963fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008965 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 +00008966fi
8967
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008968 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008969 echo "$as_me:$LINENO: result: ${ac_t:-
8970 }$am_cv_proto_iconv" >&5
8971echo "${ECHO_T}${ac_t:-
8972 }$am_cv_proto_iconv" >&6
8973
8974cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008975#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008976_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008977
8978 fi
8979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008980
8981 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8982echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8983if test "${am_cv_langinfo_codeset+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008985else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008986 cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h. */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008992#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008993int
8994main ()
8995{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008996char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008997 ;
8998 return 0;
8999}
9000_ACEOF
9001rm -f conftest.$ac_objext conftest$ac_exeext
9002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003 (eval $ac_link) 2>conftest.er1
9004 ac_status=$?
9005 grep -v '^ *+' conftest.er1 >conftest.err
9006 rm -f conftest.er1
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try='test -s conftest$ac_exeext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 (eval $ac_try) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009022 am_cv_langinfo_codeset=yes
9023else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009024 echo "$as_me: failed program was:" >&5
9025sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009027am_cv_langinfo_codeset=no
9028fi
9029rm -f conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext conftest.$ac_ext
9031
9032fi
9033echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9034echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009035 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009036
9037cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009038#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009039_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009040
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009041 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009042
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009043 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009044
9045 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9046echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9047if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009049else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009050 cat >conftest.$ac_ext <<_ACEOF
9051/* confdefs.h. */
9052_ACEOF
9053cat confdefs.h >>conftest.$ac_ext
9054cat >>conftest.$ac_ext <<_ACEOF
9055/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009056#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009057int
9058main ()
9059{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009060return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009061 ;
9062 return 0;
9063}
9064_ACEOF
9065rm -f conftest.$ac_objext conftest$ac_exeext
9066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067 (eval $ac_link) 2>conftest.er1
9068 ac_status=$?
9069 grep -v '^ *+' conftest.er1 >conftest.err
9070 rm -f conftest.er1
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } &&
9074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest$ac_exeext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009086 am_cv_val_LC_MESSAGES=yes
9087else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009088 echo "$as_me: failed program was:" >&5
9089sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009090
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009091am_cv_val_LC_MESSAGES=no
9092fi
9093rm -f conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
9095fi
9096echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9097echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009098 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009099
9100cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009101#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009102_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009103
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009104 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009105
9106 fi
9107
9108 for ac_prog in bison
9109do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009110 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009111set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009112echo "$as_me:$LINENO: checking for $ac_word" >&5
9113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9114if test "${ac_cv_prog_INTLBISON+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009116else
9117 if test -n "$INTLBISON"; then
9118 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9119else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127 ac_cv_prog_INTLBISON="$ac_prog"
9128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 break 2
9130 fi
9131done
9132done
9133
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009134fi
9135fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009136INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009137if test -n "$INTLBISON"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009138 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9139echo "${ECHO_T}$INTLBISON" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009140else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009141 echo "$as_me:$LINENO: result: no" >&5
9142echo "${ECHO_T}no" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009143fi
9144
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009145 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009146done
9147
9148 if test -z "$INTLBISON"; then
9149 ac_verc_fail=yes
9150 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009151 echo "$as_me:$LINENO: checking version of bison" >&5
9152echo $ECHO_N "checking version of bison... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009153 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9154 case $ac_prog_version in
9155 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9156 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9157 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9158 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9159 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009160 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9161echo "${ECHO_T}$ac_prog_version" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009162 fi
9163 if test $ac_verc_fail = yes; then
9164 INTLBISON=:
9165 fi
9166
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009167
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009168
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009169
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009170
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009171
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9183echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009184 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009185if test "${enable_nls+set}" = set; then
9186 enableval="$enable_nls"
9187 USE_NLS=$enableval
9188else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009189 USE_NLS=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009190fi;
9191 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9192echo "${ECHO_T}$USE_NLS" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009193
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009194
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009195
9196
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009197 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009198 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009199
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009200 LIBINTL=
9201 LTLIBINTL=
9202 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009203
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009204 if test "$USE_NLS" = "yes"; then
9205 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009206
9207 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9208echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9209
9210# Check whether --with-included-gettext or --without-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009211if test "${with_included_gettext+set}" = set; then
9212 withval="$with_included_gettext"
9213 nls_cv_force_use_gnu_gettext=$withval
9214else
9215 nls_cv_force_use_gnu_gettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009216fi;
9217 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9218echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009219
9220 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9221 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009223
9224
9225
9226
9227
9228 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9229echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9230if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009233 cat >conftest.$ac_ext <<_ACEOF
9234/* confdefs.h. */
9235_ACEOF
9236cat confdefs.h >>conftest.$ac_ext
9237cat >>conftest.$ac_ext <<_ACEOF
9238/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009239#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009240extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009241extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009242int
9243main ()
9244{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009245bindtextdomain ("", "");
9246return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009247 ;
9248 return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext conftest$ac_exeext
9252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009272 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009273else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009274 echo "$as_me: failed program was:" >&5
9275sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009277gt_cv_func_gnugettext1_libc=no
9278fi
9279rm -f conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281fi
9282echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9283echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009284
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009285 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009286
9287
9288
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009289 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009290
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009291 acl_save_prefix="$prefix"
9292 prefix="$acl_final_prefix"
9293 acl_save_exec_prefix="$exec_prefix"
9294 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009295
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009296 eval additional_includedir=\"$includedir\"
9297 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009298
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009299 exec_prefix="$acl_save_exec_prefix"
9300 prefix="$acl_save_prefix"
9301
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009302
9303# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009304if test "${with_libintl_prefix+set}" = set; then
9305 withval="$with_libintl_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009306
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009307 if test "X$withval" = "Xno"; then
9308 use_additional=no
9309 else
9310 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009311
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009312 acl_save_prefix="$prefix"
9313 prefix="$acl_final_prefix"
9314 acl_save_exec_prefix="$exec_prefix"
9315 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009316
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009317 eval additional_includedir=\"$includedir\"
9318 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009319
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009320 exec_prefix="$acl_save_exec_prefix"
9321 prefix="$acl_save_prefix"
9322
9323 else
9324 additional_includedir="$withval/include"
9325 additional_libdir="$withval/lib"
9326 fi
9327 fi
9328
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009329fi;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009330 LIBINTL=
9331 LTLIBINTL=
9332 INCINTL=
9333 rpathdirs=
9334 ltrpathdirs=
9335 names_already_handled=
9336 names_next_round='intl '
9337 while test -n "$names_next_round"; do
9338 names_this_round="$names_next_round"
9339 names_next_round=
9340 for name in $names_this_round; do
9341 already_handled=
9342 for n in $names_already_handled; do
9343 if test "$n" = "$name"; then
9344 already_handled=yes
9345 break
9346 fi
9347 done
9348 if test -z "$already_handled"; then
9349 names_already_handled="$names_already_handled $name"
9350 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9351 eval value=\"\$HAVE_LIB$uppername\"
9352 if test -n "$value"; then
9353 if test "$value" = yes; then
9354 eval value=\"\$LIB$uppername\"
9355 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9356 eval value=\"\$LTLIB$uppername\"
9357 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9358 else
9359 :
9360 fi
9361 else
9362 found_dir=
9363 found_la=
9364 found_so=
9365 found_a=
9366 if test $use_additional = yes; then
9367 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9368 found_dir="$additional_libdir"
9369 found_so="$additional_libdir/lib$name.$shlibext"
9370 if test -f "$additional_libdir/lib$name.la"; then
9371 found_la="$additional_libdir/lib$name.la"
9372 fi
9373 else
9374 if test -f "$additional_libdir/lib$name.$libext"; then
9375 found_dir="$additional_libdir"
9376 found_a="$additional_libdir/lib$name.$libext"
9377 if test -f "$additional_libdir/lib$name.la"; then
9378 found_la="$additional_libdir/lib$name.la"
9379 fi
9380 fi
9381 fi
9382 fi
9383 if test "X$found_dir" = "X"; then
9384 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009385
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009386 acl_save_prefix="$prefix"
9387 prefix="$acl_final_prefix"
9388 acl_save_exec_prefix="$exec_prefix"
9389 exec_prefix="$acl_final_exec_prefix"
9390 eval x=\"$x\"
9391 exec_prefix="$acl_save_exec_prefix"
9392 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009393
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009394 case "$x" in
9395 -L*)
9396 dir=`echo "X$x" | sed -e 's/^X-L//'`
9397 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9398 found_dir="$dir"
9399 found_so="$dir/lib$name.$shlibext"
9400 if test -f "$dir/lib$name.la"; then
9401 found_la="$dir/lib$name.la"
9402 fi
9403 else
9404 if test -f "$dir/lib$name.$libext"; then
9405 found_dir="$dir"
9406 found_a="$dir/lib$name.$libext"
9407 if test -f "$dir/lib$name.la"; then
9408 found_la="$dir/lib$name.la"
9409 fi
9410 fi
9411 fi
9412 ;;
9413 esac
9414 if test "X$found_dir" != "X"; then
9415 break
9416 fi
9417 done
9418 fi
9419 if test "X$found_dir" != "X"; then
9420 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9421 if test "X$found_so" != "X"; then
9422 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9424 else
9425 haveit=
9426 for x in $ltrpathdirs; do
9427 if test "X$x" = "X$found_dir"; then
9428 haveit=yes
9429 break
9430 fi
9431 done
9432 if test -z "$haveit"; then
9433 ltrpathdirs="$ltrpathdirs $found_dir"
9434 fi
9435 if test "$hardcode_direct" = yes; then
9436 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9437 else
9438 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9439 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9440 haveit=
9441 for x in $rpathdirs; do
9442 if test "X$x" = "X$found_dir"; then
9443 haveit=yes
9444 break
9445 fi
9446 done
9447 if test -z "$haveit"; then
9448 rpathdirs="$rpathdirs $found_dir"
9449 fi
9450 else
9451 haveit=
9452 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009453
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009454 acl_save_prefix="$prefix"
9455 prefix="$acl_final_prefix"
9456 acl_save_exec_prefix="$exec_prefix"
9457 exec_prefix="$acl_final_exec_prefix"
9458 eval x=\"$x\"
9459 exec_prefix="$acl_save_exec_prefix"
9460 prefix="$acl_save_prefix"
9461
9462 if test "X$x" = "X-L$found_dir"; then
9463 haveit=yes
9464 break
9465 fi
9466 done
9467 if test -z "$haveit"; then
9468 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9469 fi
9470 if test "$hardcode_minus_L" != no; then
9471 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9472 else
9473 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9474 fi
9475 fi
9476 fi
9477 fi
9478 else
9479 if test "X$found_a" != "X"; then
9480 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9481 else
9482 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9483 fi
9484 fi
9485 additional_includedir=
9486 case "$found_dir" in
9487 */lib | */lib/)
9488 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9489 additional_includedir="$basedir/include"
9490 ;;
9491 esac
9492 if test "X$additional_includedir" != "X"; then
9493 if test "X$additional_includedir" != "X/usr/include"; then
9494 haveit=
9495 if test "X$additional_includedir" = "X/usr/local/include"; then
9496 if test -n "$GCC"; then
9497 case $host_os in
9498 linux*) haveit=yes;;
9499 esac
9500 fi
9501 fi
9502 if test -z "$haveit"; then
9503 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009504
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009505 acl_save_prefix="$prefix"
9506 prefix="$acl_final_prefix"
9507 acl_save_exec_prefix="$exec_prefix"
9508 exec_prefix="$acl_final_exec_prefix"
9509 eval x=\"$x\"
9510 exec_prefix="$acl_save_exec_prefix"
9511 prefix="$acl_save_prefix"
9512
9513 if test "X$x" = "X-I$additional_includedir"; then
9514 haveit=yes
9515 break
9516 fi
9517 done
9518 if test -z "$haveit"; then
9519 if test -d "$additional_includedir"; then
9520 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9521 fi
9522 fi
9523 fi
9524 fi
9525 fi
9526 if test -n "$found_la"; then
9527 save_libdir="$libdir"
9528 case "$found_la" in
9529 */* | *\\*) . "$found_la" ;;
9530 *) . "./$found_la" ;;
9531 esac
9532 libdir="$save_libdir"
9533 for dep in $dependency_libs; do
9534 case "$dep" in
9535 -L*)
9536 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9537 if test "X$additional_libdir" != "X/usr/lib"; then
9538 haveit=
9539 if test "X$additional_libdir" = "X/usr/local/lib"; then
9540 if test -n "$GCC"; then
9541 case $host_os in
9542 linux*) haveit=yes;;
9543 esac
9544 fi
9545 fi
9546 if test -z "$haveit"; then
9547 haveit=
9548 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009549
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009550 acl_save_prefix="$prefix"
9551 prefix="$acl_final_prefix"
9552 acl_save_exec_prefix="$exec_prefix"
9553 exec_prefix="$acl_final_exec_prefix"
9554 eval x=\"$x\"
9555 exec_prefix="$acl_save_exec_prefix"
9556 prefix="$acl_save_prefix"
9557
9558 if test "X$x" = "X-L$additional_libdir"; then
9559 haveit=yes
9560 break
9561 fi
9562 done
9563 if test -z "$haveit"; then
9564 if test -d "$additional_libdir"; then
9565 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9566 fi
9567 fi
9568 haveit=
9569 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009570
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009571 acl_save_prefix="$prefix"
9572 prefix="$acl_final_prefix"
9573 acl_save_exec_prefix="$exec_prefix"
9574 exec_prefix="$acl_final_exec_prefix"
9575 eval x=\"$x\"
9576 exec_prefix="$acl_save_exec_prefix"
9577 prefix="$acl_save_prefix"
9578
9579 if test "X$x" = "X-L$additional_libdir"; then
9580 haveit=yes
9581 break
9582 fi
9583 done
9584 if test -z "$haveit"; then
9585 if test -d "$additional_libdir"; then
9586 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9587 fi
9588 fi
9589 fi
9590 fi
9591 ;;
9592 -R*)
9593 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9594 if test "$enable_rpath" != no; then
9595 haveit=
9596 for x in $rpathdirs; do
9597 if test "X$x" = "X$dir"; then
9598 haveit=yes
9599 break
9600 fi
9601 done
9602 if test -z "$haveit"; then
9603 rpathdirs="$rpathdirs $dir"
9604 fi
9605 haveit=
9606 for x in $ltrpathdirs; do
9607 if test "X$x" = "X$dir"; then
9608 haveit=yes
9609 break
9610 fi
9611 done
9612 if test -z "$haveit"; then
9613 ltrpathdirs="$ltrpathdirs $dir"
9614 fi
9615 fi
9616 ;;
9617 -l*)
9618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9619 ;;
9620 *.la)
9621 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9622 ;;
9623 *)
9624 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9625 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9626 ;;
9627 esac
9628 done
9629 fi
9630 else
9631 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9632 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9633 fi
9634 fi
9635 fi
9636 done
9637 done
9638 if test "X$rpathdirs" != "X"; then
9639 if test -n "$hardcode_libdir_separator"; then
9640 alldirs=
9641 for found_dir in $rpathdirs; do
9642 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9643 done
9644 acl_save_libdir="$libdir"
9645 libdir="$alldirs"
9646 eval flag=\"$hardcode_libdir_flag_spec\"
9647 libdir="$acl_save_libdir"
9648 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9649 else
9650 for found_dir in $rpathdirs; do
9651 acl_save_libdir="$libdir"
9652 libdir="$found_dir"
9653 eval flag=\"$hardcode_libdir_flag_spec\"
9654 libdir="$acl_save_libdir"
9655 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9656 done
9657 fi
9658 fi
9659 if test "X$ltrpathdirs" != "X"; then
9660 for found_dir in $ltrpathdirs; do
9661 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9662 done
9663 fi
9664
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009665 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9666echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9667if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009669else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009670 gt_save_CPPFLAGS="$CPPFLAGS"
9671 CPPFLAGS="$CPPFLAGS $INCINTL"
9672 gt_save_LIBS="$LIBS"
9673 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009674 cat >conftest.$ac_ext <<_ACEOF
9675/* confdefs.h. */
9676_ACEOF
9677cat confdefs.h >>conftest.$ac_ext
9678cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009680#include <libintl.h>
9681extern int _nl_msg_cat_cntr;
9682extern
9683#ifdef __cplusplus
9684"C"
9685#endif
9686const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009687int
9688main ()
9689{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009690bindtextdomain ("", "");
9691return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009692 ;
9693 return 0;
9694}
9695_ACEOF
9696rm -f conftest.$ac_objext conftest$ac_exeext
9697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009717 gt_cv_func_gnugettext1_libintl=yes
9718else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009719 echo "$as_me: failed program was:" >&5
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009723fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009724rm -f conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009726 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9727 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009728 cat >conftest.$ac_ext <<_ACEOF
9729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009734#include <libintl.h>
9735extern int _nl_msg_cat_cntr;
9736extern
9737#ifdef __cplusplus
9738"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009739#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009740const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009741int
9742main ()
9743{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009744bindtextdomain ("", "");
9745return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009746 ;
9747 return 0;
9748}
9749_ACEOF
9750rm -f conftest.$ac_objext conftest$ac_exeext
9751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; } &&
9765 { ac_try='test -s conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009771 LIBINTL="$LIBINTL $LIBICONV"
9772 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9773 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009774
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009775else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009776 echo "$as_me: failed program was:" >&5
9777sed 's/^/| /' conftest.$ac_ext >&5
9778
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009779fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009780rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009782 fi
9783 CPPFLAGS="$gt_save_CPPFLAGS"
9784 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009785fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009786echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9787echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009788 fi
9789
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009790 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9791 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009792 && test "$PACKAGE" != gettext-runtime \
9793 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009794 gt_use_preinstalled_gnugettext=yes
9795 else
9796 LIBINTL=
9797 LTLIBINTL=
9798 INCINTL=
9799 fi
9800
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009801
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009802 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9803 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009804 fi
9805 fi
9806
9807 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009808 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009809 USE_INCLUDED_LIBINTL=yes
9810 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9811 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9812 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009813 fi
9814
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009815 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9816 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9817 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009818 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009819
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009820
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009821 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9822 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009823
9824cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009825#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009826_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009827
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009828 else
9829 USE_NLS=no
9830 fi
9831 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009832
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009833 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9834echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9835 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9836echo "${ECHO_T}$USE_NLS" >&6
9837 if test "$USE_NLS" = "yes"; then
9838 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9839echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9840 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9841 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9842 gt_source="external libintl"
9843 else
9844 gt_source="libc"
9845 fi
9846 else
9847 gt_source="included intl directory"
9848 fi
9849 echo "$as_me:$LINENO: result: $gt_source" >&5
9850echo "${ECHO_T}$gt_source" >&6
9851 fi
9852
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009853 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009854
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009855 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9856 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009857 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9858echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9859 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9860echo "${ECHO_T}$LIBINTL" >&6
9861
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009862 for element in $INCINTL; do
9863 haveit=
9864 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009865
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009866 acl_save_prefix="$prefix"
9867 prefix="$acl_final_prefix"
9868 acl_save_exec_prefix="$exec_prefix"
9869 exec_prefix="$acl_final_exec_prefix"
9870 eval x=\"$x\"
9871 exec_prefix="$acl_save_exec_prefix"
9872 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009873
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009874 if test "X$x" = "X$element"; then
9875 haveit=yes
9876 break
9877 fi
9878 done
9879 if test -z "$haveit"; then
9880 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9881 fi
9882 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009883
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009884 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009885
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009887cat >>confdefs.h <<\_ACEOF
9888#define HAVE_GETTEXT 1
9889_ACEOF
9890
9891
9892cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009893#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009894_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009895
9896 fi
9897
9898 POSUB=po
9899 fi
9900
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009901
9902 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009903 BUILD_INCLUDED_LIBINTL=yes
9904 fi
9905
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009906
9907
9908
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009909
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009910 nls_cv_header_intl=
9911 nls_cv_header_libgt=
9912
9913 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009914
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009915
9916 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009918
9919 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009920
9921
9922 if test "$USE_INCLUDED_LIBINTL" = yes; then
9923 INTLOBJS="\$(GETTOBJS)"
9924 fi
9925
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009926
9927 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009928
9929
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009930
9931 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009932
9933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009934
9935
9936
9937
9938
9939echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9940echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9941set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9942if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009944else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009945 cat >conftest.make <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009946all:
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009947 @echo 'ac_maketemp="$(MAKE)"'
9948_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009949# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009950eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009951if test -n "$ac_maketemp"; then
9952 eval ac_cv_prog_make_${ac_make}_set=yes
9953else
9954 eval ac_cv_prog_make_${ac_make}_set=no
9955fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009956rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009957fi
9958if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009959 echo "$as_me:$LINENO: result: yes" >&5
9960echo "${ECHO_T}yes" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009961 SET_MAKE=
9962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009963 echo "$as_me:$LINENO: result: no" >&5
9964echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009965 SET_MAKE="MAKE=${MAKE-make}"
9966fi
9967
9968# Extract the first word of "ln", so it can be a program name with args.
9969set dummy ln; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009970echo "$as_me:$LINENO: checking for $ac_word" >&5
9971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9972if test "${ac_cv_path_LN+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009974else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009975 case $LN in
9976 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009977 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9978 ;;
9979 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981for as_dir in $PATH
9982do
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 break 2
9990 fi
9991done
9992done
9993
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009994 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9995 ;;
9996esac
9997fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009998LN=$ac_cv_path_LN
9999
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010000if test -n "$LN"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010001 echo "$as_me:$LINENO: result: $LN" >&5
10002echo "${ECHO_T}$LN" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010003else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004 echo "$as_me:$LINENO: result: no" >&5
10005echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010006fi
10007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010008echo "$as_me:$LINENO: checking whether ln -s works" >&5
10009echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10010LN_S=$as_ln_s
10011if test "$LN_S" = "ln -s"; then
10012 echo "$as_me:$LINENO: result: yes" >&5
10013echo "${ECHO_T}yes" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010014else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010015 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10016echo "${ECHO_T}no, using $LN_S" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010017fi
10018
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010019# Extract the first word of "mv", so it can be a program name with args.
10020set dummy mv; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010021echo "$as_me:$LINENO: checking for $ac_word" >&5
10022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10023if test "${ac_cv_path_MV+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010025else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010026 case $MV in
10027 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010028 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10029 ;;
10030 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032for as_dir in $PATH
10033do
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10038 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042done
10043done
10044
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010045 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10046 ;;
10047esac
10048fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010049MV=$ac_cv_path_MV
10050
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010051if test -n "$MV"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010052 echo "$as_me:$LINENO: result: $MV" >&5
10053echo "${ECHO_T}$MV" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010054else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010055 echo "$as_me:$LINENO: result: no" >&5
10056echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010057fi
10058
10059# Extract the first word of "cp", so it can be a program name with args.
10060set dummy cp; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010061echo "$as_me:$LINENO: checking for $ac_word" >&5
10062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10063if test "${ac_cv_path_CP+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010065else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010066 case $CP in
10067 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010068 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10069 ;;
10070 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072for as_dir in $PATH
10073do
10074 IFS=$as_save_IFS
10075 test -z "$as_dir" && as_dir=.
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10078 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10080 break 2
10081 fi
10082done
10083done
10084
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010085 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10086 ;;
10087esac
10088fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010089CP=$ac_cv_path_CP
10090
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010091if test -n "$CP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010092 echo "$as_me:$LINENO: result: $CP" >&5
10093echo "${ECHO_T}$CP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010094else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010095 echo "$as_me:$LINENO: result: no" >&5
10096echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010097fi
10098
10099# Extract the first word of "rm", so it can be a program name with args.
10100set dummy rm; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010101echo "$as_me:$LINENO: checking for $ac_word" >&5
10102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10103if test "${ac_cv_path_RM+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010105else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010106 case $RM in
10107 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010108 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10109 ;;
10110 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112for as_dir in $PATH
10113do
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10121 fi
10122done
10123done
10124
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010125 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10126 ;;
10127esac
10128fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010129RM=$ac_cv_path_RM
10130
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010131if test -n "$RM"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010132 echo "$as_me:$LINENO: result: $RM" >&5
10133echo "${ECHO_T}$RM" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010134else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010135 echo "$as_me:$LINENO: result: no" >&5
10136echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010137fi
10138
10139# Extract the first word of "chmod", so it can be a program name with args.
10140set dummy chmod; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010141echo "$as_me:$LINENO: checking for $ac_word" >&5
10142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10143if test "${ac_cv_path_CHMOD+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010145else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010146 case $CHMOD in
10147 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010148 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10149 ;;
10150 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152for as_dir in $PATH
10153do
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10161 fi
10162done
10163done
10164
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010165 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10166 ;;
10167esac
10168fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010169CHMOD=$ac_cv_path_CHMOD
10170
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010171if test -n "$CHMOD"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010172 echo "$as_me:$LINENO: result: $CHMOD" >&5
10173echo "${ECHO_T}$CHMOD" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010174else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010175 echo "$as_me:$LINENO: result: no" >&5
10176echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010177fi
10178
Theodore Ts'o32237012005-01-17 19:13:39 -050010179for ac_prog in gawk mawk nawk awk
10180do
10181 # Extract the first word of "$ac_prog", so it can be a program name with args.
10182set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010183echo "$as_me:$LINENO: checking for $ac_word" >&5
10184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050010185if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010186 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010187else
Theodore Ts'o32237012005-01-17 19:13:39 -050010188 if test -n "$AWK"; then
10189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10190else
10191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010192for as_dir in $PATH
10193do
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010198 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10200 break 2
10201 fi
10202done
10203done
10204
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010205fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010206fi
10207AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010208if test -n "$AWK"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010209 echo "$as_me:$LINENO: result: $AWK" >&5
10210echo "${ECHO_T}$AWK" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010211else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010214fi
10215
Theodore Ts'o32237012005-01-17 19:13:39 -050010216 test -n "$AWK" && break
10217done
10218
10219echo "$as_me:$LINENO: checking for egrep" >&5
10220echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10221if test "${ac_cv_prog_egrep+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10225 then ac_cv_prog_egrep='grep -E'
10226 else ac_cv_prog_egrep='egrep'
10227 fi
10228fi
10229echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10230echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10231 EGREP=$ac_cv_prog_egrep
10232
10233
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010234# Extract the first word of "sed", so it can be a program name with args.
10235set dummy sed; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010236echo "$as_me:$LINENO: checking for $ac_word" >&5
10237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10238if test "${ac_cv_path_SED+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010240else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010241 case $SED in
10242 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010243 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10244 ;;
10245 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247for as_dir in $PATH
10248do
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10253 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10256 fi
10257done
10258done
10259
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010260 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10261 ;;
10262esac
10263fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010264SED=$ac_cv_path_SED
10265
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010266if test -n "$SED"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010267 echo "$as_me:$LINENO: result: $SED" >&5
10268echo "${ECHO_T}$SED" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010269else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010270 echo "$as_me:$LINENO: result: no" >&5
10271echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010272fi
10273
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010274# Extract the first word of "perl", so it can be a program name with args.
10275set dummy perl; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010276echo "$as_me:$LINENO: checking for $ac_word" >&5
10277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10278if test "${ac_cv_path_PERL+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010280else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010281 case $PERL in
10282 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010283 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10284 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010285 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287for as_dir in $PATH
10288do
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10293 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10296 fi
10297done
10298done
10299
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010300 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10301 ;;
10302esac
10303fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010304PERL=$ac_cv_path_PERL
10305
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010306if test -n "$PERL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010307 echo "$as_me:$LINENO: result: $PERL" >&5
10308echo "${ECHO_T}$PERL" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010309else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010310 echo "$as_me:$LINENO: result: no" >&5
10311echo "${ECHO_T}no" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010312fi
10313
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010314# Extract the first word of "ldconfig", so it can be a program name with args.
10315set dummy ldconfig; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010316echo "$as_me:$LINENO: checking for $ac_word" >&5
10317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10318if test "${ac_cv_path_LDCONFIG+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010320else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010321 case $LDCONFIG in
10322 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010323 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10324 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010325 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327for as_dir in $PATH
10328do
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10333 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 break 2
10336 fi
10337done
10338done
10339
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010340 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10341 ;;
10342esac
10343fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010344LDCONFIG=$ac_cv_path_LDCONFIG
10345
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010346if test -n "$LDCONFIG"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010347 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10348echo "${ECHO_T}$LDCONFIG" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010349else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010350 echo "$as_me:$LINENO: result: no" >&5
10351echo "${ECHO_T}no" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010352fi
10353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010354if test -n "$ac_tool_prefix"; then
10355 # 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 +000010356set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010357echo "$as_me:$LINENO: checking for $ac_word" >&5
10358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359if test "${ac_cv_prog_AR+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010361else
10362 if test -n "$AR"; then
10363 ac_cv_prog_AR="$AR" # Let the user override the test.
10364else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_AR="${ac_tool_prefix}ar"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377done
10378
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010379fi
10380fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010381AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010382if test -n "$AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010383 echo "$as_me:$LINENO: result: $AR" >&5
10384echo "${ECHO_T}$AR" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010385else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010386 echo "$as_me:$LINENO: result: no" >&5
10387echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010388fi
10389
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010390fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010391if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010392 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010393 # Extract the first word of "ar", so it can be a program name with args.
10394set dummy ar; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010395echo "$as_me:$LINENO: checking for $ac_word" >&5
10396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10397if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010399else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010400 if test -n "$ac_ct_AR"; then
10401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010402else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410 ac_cv_prog_ac_ct_AR="ar"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10413 fi
10414done
10415done
10416
10417 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010418fi
10419fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010420ac_ct_AR=$ac_cv_prog_ac_ct_AR
10421if test -n "$ac_ct_AR"; then
10422 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10423echo "${ECHO_T}$ac_ct_AR" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010424else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010425 echo "$as_me:$LINENO: result: no" >&5
10426echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010427fi
10428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010429 AR=$ac_ct_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010430else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010431 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010432fi
10433
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010434if test -n "$ac_tool_prefix"; then
10435 # 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 +000010436set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010437echo "$as_me:$LINENO: checking for $ac_word" >&5
10438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439if test "${ac_cv_prog_RANLIB+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010441else
10442 if test -n "$RANLIB"; then
10443 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10444else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446for as_dir in $PATH
10447do
10448 IFS=$as_save_IFS
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 break 2
10455 fi
10456done
10457done
10458
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010459fi
10460fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010461RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010462if test -n "$RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010463 echo "$as_me:$LINENO: result: $RANLIB" >&5
10464echo "${ECHO_T}$RANLIB" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010465else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010466 echo "$as_me:$LINENO: result: no" >&5
10467echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010468fi
10469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010470fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010471if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010472 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010473 # Extract the first word of "ranlib", so it can be a program name with args.
10474set dummy ranlib; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010475echo "$as_me:$LINENO: checking for $ac_word" >&5
10476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10477if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010479else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010480 if test -n "$ac_ct_RANLIB"; then
10481 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010482else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484for as_dir in $PATH
10485do
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_prog_ac_ct_RANLIB="ranlib"
10491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10493 fi
10494done
10495done
10496
10497 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010498fi
10499fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010500ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10501if test -n "$ac_ct_RANLIB"; then
10502 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10503echo "${ECHO_T}$ac_ct_RANLIB" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010504else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010505 echo "$as_me:$LINENO: result: no" >&5
10506echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010507fi
10508
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010509 RANLIB=$ac_ct_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010510else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010511 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010512fi
10513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010514if test -n "$ac_tool_prefix"; then
10515 # 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 +000010516set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010517echo "$as_me:$LINENO: checking for $ac_word" >&5
10518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10519if test "${ac_cv_prog_STRIP+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010521else
10522 if test -n "$STRIP"; then
10523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10524else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526for as_dir in $PATH
10527do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10535 fi
10536done
10537done
10538
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010539fi
10540fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010541STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010542if test -n "$STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010543 echo "$as_me:$LINENO: result: $STRIP" >&5
10544echo "${ECHO_T}$STRIP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010545else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010546 echo "$as_me:$LINENO: result: no" >&5
10547echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010548fi
10549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010550fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010551if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010552 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010553 # Extract the first word of "strip", so it can be a program name with args.
10554set dummy strip; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010555echo "$as_me:$LINENO: checking for $ac_word" >&5
10556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10557if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010559else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010560 if test -n "$ac_ct_STRIP"; then
10561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010562else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564for as_dir in $PATH
10565do
10566 IFS=$as_save_IFS
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570 ac_cv_prog_ac_ct_STRIP="strip"
10571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 break 2
10573 fi
10574done
10575done
10576
10577 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010578fi
10579fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10581if test -n "$ac_ct_STRIP"; then
10582 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10583echo "${ECHO_T}$ac_ct_STRIP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010584else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010585 echo "$as_me:$LINENO: result: no" >&5
10586echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010587fi
10588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010589 STRIP=$ac_ct_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010590else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010591 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010592fi
10593
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010594# Find a good install program. We prefer a C program (faster),
10595# so one script is as good as another. But avoid the broken or
10596# incompatible versions:
10597# SysV /etc/install, /usr/sbin/install
10598# SunOS /usr/etc/install
10599# IRIX /sbin/install
10600# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010601# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000010602# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010603# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10604# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010605# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010606# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010607echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10608echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010609if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010610if test "${ac_cv_path_install+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010612else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614for as_dir in $PATH
10615do
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 # Account for people who put trailing slashes in PATH elements.
10619case $as_dir/ in
10620 ./ | .// | /cC/* | \
10621 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10622 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10623 /usr/ucb/* ) ;;
10624 *)
10625 # OSF1 and SCO ODT 3.0 have their own names for install.
10626 # Don't use installbsd from OSF since it installs stuff as root
10627 # by default.
10628 for ac_prog in ginstall scoinst install; do
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010631 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010632 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010633 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010634 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010635 elif test $ac_prog = install &&
10636 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10637 # program-specific install script used by HP pwplus--don't use.
10638 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010639 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010640 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10641 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010642 fi
10643 fi
10644 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010645 done
10646 ;;
10647esac
10648done
10649
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010650
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010651fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010652 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010653 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010654 else
10655 # As a last resort, use the slow shell script. We don't cache a
10656 # path for INSTALL within a source directory, because that will
10657 # break other packages using the cache if that directory is
10658 # removed, or if the path is relative.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010659 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010660 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010661fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010662echo "$as_me:$LINENO: result: $INSTALL" >&5
10663echo "${ECHO_T}$INSTALL" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010664
10665# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10666# It thinks the first close brace ends the variable substitution.
10667test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010669test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000010670
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010671test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10672
Theodore Ts'o6c133521999-07-03 20:37:03 +000010673# See if we need a separate native compiler.
10674if test $cross_compiling = no; then
10675 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010676
Theodore Ts'o6c133521999-07-03 20:37:03 +000010677else
10678 for ac_prog in gcc cc
10679do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010680 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010681set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010682echo "$as_me:$LINENO: checking for $ac_word" >&5
10683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10684if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010686else
10687 if test -n "$BUILD_CC"; then
10688 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10689else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010692do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010693 IFS=$as_save_IFS
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697 ac_cv_prog_BUILD_CC="$ac_prog"
10698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 break 2
10700 fi
10701done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010702done
10703
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010704fi
10705fi
10706BUILD_CC=$ac_cv_prog_BUILD_CC
10707if test -n "$BUILD_CC"; then
10708 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10709echo "${ECHO_T}$BUILD_CC" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010710else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010711 echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6
10713fi
10714
10715 test -n "$BUILD_CC" && break
10716done
10717
10718fi
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
Theodore Ts'o762c7c62005-04-06 14:44:16 -040010748
10749for 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/prctl.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 -050010750do
10751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10752if eval "test \"\${$as_ac_Header+set}\" = set"; then
10753 echo "$as_me:$LINENO: checking for $ac_header" >&5
10754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10755if eval "test \"\${$as_ac_Header+set}\" = set"; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757fi
10758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10760else
10761 # Is the header compilable?
10762echo "$as_me:$LINENO: checking $ac_header usability" >&5
10763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10764cat >conftest.$ac_ext <<_ACEOF
10765/* confdefs.h. */
10766_ACEOF
10767cat confdefs.h >>conftest.$ac_ext
10768cat >>conftest.$ac_ext <<_ACEOF
10769/* end confdefs.h. */
10770$ac_includes_default
10771#include <$ac_header>
10772_ACEOF
10773rm -f conftest.$ac_objext
10774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10775 (eval $ac_compile) 2>conftest.er1
10776 ac_status=$?
10777 grep -v '^ *+' conftest.er1 >conftest.err
10778 rm -f conftest.er1
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_header_compiler=yes
10795else
10796 echo "$as_me: failed program was:" >&5
10797sed 's/^/| /' conftest.$ac_ext >&5
10798
10799ac_header_compiler=no
10800fi
10801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10803echo "${ECHO_T}$ac_header_compiler" >&6
10804
10805# Is the header present?
10806echo "$as_me:$LINENO: checking $ac_header presence" >&5
10807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10808cat >conftest.$ac_ext <<_ACEOF
10809/* confdefs.h. */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h. */
10814#include <$ac_header>
10815_ACEOF
10816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } >/dev/null; then
10824 if test -s conftest.err; then
10825 ac_cpp_err=$ac_c_preproc_warn_flag
10826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10827 else
10828 ac_cpp_err=
10829 fi
10830else
10831 ac_cpp_err=yes
10832fi
10833if test -z "$ac_cpp_err"; then
10834 ac_header_preproc=yes
10835else
10836 echo "$as_me: failed program was:" >&5
10837sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ac_header_preproc=no
10840fi
10841rm -f conftest.err conftest.$ac_ext
10842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843echo "${ECHO_T}$ac_header_preproc" >&6
10844
10845# So? What about this header?
10846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10847 yes:no: )
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10852 ac_header_preproc=yes
10853 ;;
10854 no:yes:* )
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10867 (
10868 cat <<\_ASBOX
10869## ------------------------------------------ ##
10870## Report this to the AC_PACKAGE_NAME lists. ##
10871## ------------------------------------------ ##
10872_ASBOX
10873 ) |
10874 sed "s/^/$as_me: WARNING: /" >&2
10875 ;;
10876esac
10877echo "$as_me:$LINENO: checking for $ac_header" >&5
10878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10879if eval "test \"\${$as_ac_Header+set}\" = set"; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10881else
10882 eval "$as_ac_Header=\$ac_header_preproc"
10883fi
10884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10886
10887fi
10888if test `eval echo '${'$as_ac_Header'}'` = yes; then
10889 cat >>confdefs.h <<_ACEOF
10890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10891_ACEOF
10892
10893fi
10894
10895done
10896
10897
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010898
10899for ac_header in sys/disk.h sys/mount.h
10900do
10901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10902echo "$as_me:$LINENO: checking for $ac_header" >&5
10903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10904if eval "test \"\${$as_ac_Header+set}\" = set"; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906else
10907 cat >conftest.$ac_ext <<_ACEOF
10908/* confdefs.h. */
10909_ACEOF
10910cat confdefs.h >>conftest.$ac_ext
10911cat >>conftest.$ac_ext <<_ACEOF
10912/* end confdefs.h. */
10913
10914#if HAVE_SYS_QUEUE_H
10915#include <sys/queue.h>
10916#endif
10917
10918
10919#include <$ac_header>
10920_ACEOF
10921rm -f conftest.$ac_objext
10922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; } &&
10936 { ac_try='test -s conftest.$ac_objext'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 eval "$as_ac_Header=yes"
10943else
10944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947eval "$as_ac_Header=no"
10948fi
10949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10950fi
10951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10953if test `eval echo '${'$as_ac_Header'}'` = yes; then
10954 cat >>confdefs.h <<_ACEOF
10955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10956_ACEOF
10957
10958fi
10959
10960done
10961
10962
10963for ac_header in net/if.h
10964do
10965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10966echo "$as_me:$LINENO: checking for $ac_header" >&5
10967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10968if eval "test \"\${$as_ac_Header+set}\" = set"; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970else
10971 cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h. */
10977
10978#if HAVE_SYS_TYPES_H
10979#include <sys/types.h>
10980#endif
10981#if HAVE_SYS_SOCKET
10982#include <sys/socket.h>
10983#endif
10984
10985
10986#include <$ac_header>
10987_ACEOF
10988rm -f conftest.$ac_objext
10989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10990 (eval $ac_compile) 2>conftest.er1
10991 ac_status=$?
10992 grep -v '^ *+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; } &&
11003 { ac_try='test -s conftest.$ac_objext'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 eval "$as_ac_Header=yes"
11010else
11011 echo "$as_me: failed program was:" >&5
11012sed 's/^/| /' conftest.$ac_ext >&5
11013
11014eval "$as_ac_Header=no"
11015fi
11016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11017fi
11018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11020if test `eval echo '${'$as_ac_Header'}'` = yes; then
11021 cat >>confdefs.h <<_ACEOF
11022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11023_ACEOF
11024
11025fi
11026
11027done
11028
11029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011030for ac_func in vprintf
11031do
11032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11033echo "$as_me:$LINENO: checking for $ac_func" >&5
11034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11035if eval "test \"\${$as_ac_var+set}\" = set"; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
11038 cat >conftest.$ac_ext <<_ACEOF
11039/* confdefs.h. */
11040_ACEOF
11041cat confdefs.h >>conftest.$ac_ext
11042cat >>conftest.$ac_ext <<_ACEOF
11043/* end confdefs.h. */
11044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11046#define $ac_func innocuous_$ac_func
11047
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011048/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011049 which can conflict with char $ac_func (); below.
11050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11051 <limits.h> exists even on freestanding compilers. */
11052
11053#ifdef __STDC__
11054# include <limits.h>
11055#else
11056# include <assert.h>
11057#endif
11058
11059#undef $ac_func
11060
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011061/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011062#ifdef __cplusplus
11063extern "C"
11064{
11065#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011066/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011067 builtin and then its argument prototype would still apply. */
11068char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011069/* The GNU C library defines this for functions which it implements
11070 to always fail with ENOSYS. Some functions are actually named
11071 something starting with __ and the normal name is an alias. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011073choke me
11074#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011075char (*f) () = $ac_func;
11076#endif
11077#ifdef __cplusplus
11078}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011079#endif
11080
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011081int
11082main ()
11083{
11084return f != $ac_func;
11085 ;
11086 return 0;
11087}
11088_ACEOF
11089rm -f conftest.$ac_objext conftest$ac_exeext
11090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11091 (eval $ac_link) 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest$ac_exeext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011111else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011112 echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011115eval "$as_ac_var=no"
11116fi
11117rm -f conftest.err conftest.$ac_objext \
11118 conftest$ac_exeext conftest.$ac_ext
11119fi
11120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11122if test `eval echo '${'$as_ac_var'}'` = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11125_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011127echo "$as_me:$LINENO: checking for _doprnt" >&5
11128echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11129if test "${ac_cv_func__doprnt+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011131else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011132 cat >conftest.$ac_ext <<_ACEOF
11133/* confdefs.h. */
11134_ACEOF
11135cat confdefs.h >>conftest.$ac_ext
11136cat >>conftest.$ac_ext <<_ACEOF
11137/* end confdefs.h. */
11138/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11140#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011141
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011142/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011143 which can conflict with char _doprnt (); below.
11144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11145 <limits.h> exists even on freestanding compilers. */
11146
11147#ifdef __STDC__
11148# include <limits.h>
11149#else
11150# include <assert.h>
11151#endif
11152
11153#undef _doprnt
11154
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011155/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011156#ifdef __cplusplus
11157extern "C"
11158{
11159#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011160/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011161 builtin and then its argument prototype would still apply. */
11162char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011163/* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166#if defined (__stub__doprnt) || defined (__stub____doprnt)
11167choke me
11168#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011169char (*f) () = _doprnt;
11170#endif
11171#ifdef __cplusplus
11172}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011173#endif
11174
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011175int
11176main ()
11177{
11178return f != _doprnt;
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext conftest$ac_exeext
11184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; } &&
11198 { ac_try='test -s conftest$ac_exeext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011205else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011206 echo "$as_me: failed program was:" >&5
11207sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011208
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011209ac_cv_func__doprnt=no
11210fi
11211rm -f conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213fi
11214echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11215echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11216if test $ac_cv_func__doprnt = yes; then
11217
11218cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011219#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011220_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011221
11222fi
11223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011224fi
11225done
11226
11227
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011228echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11229echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6
11230if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011231 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011233 cat >conftest.$ac_ext <<_ACEOF
11234/* confdefs.h. */
11235_ACEOF
11236cat confdefs.h >>conftest.$ac_ext
11237cat >>conftest.$ac_ext <<_ACEOF
11238/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040011239#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011241int
11242main ()
11243{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011244static struct dirent ac_aggr;
11245if (ac_aggr.d_reclen)
11246return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011247 ;
11248 return 0;
11249}
11250_ACEOF
11251rm -f conftest.$ac_objext
11252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11253 (eval $ac_compile) 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest.$ac_objext'
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011272 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040011273else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011274 echo "$as_me: failed program was:" >&5
11275sed 's/^/| /' conftest.$ac_ext >&5
11276
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011277cat >conftest.$ac_ext <<_ACEOF
11278/* confdefs.h. */
11279_ACEOF
11280cat confdefs.h >>conftest.$ac_ext
11281cat >>conftest.$ac_ext <<_ACEOF
11282/* end confdefs.h. */
11283#include <dirent.h>
11284
11285int
11286main ()
11287{
11288static struct dirent ac_aggr;
11289if (sizeof ac_aggr.d_reclen)
11290return 0;
11291 ;
11292 return 0;
11293}
11294_ACEOF
11295rm -f conftest.$ac_objext
11296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; } &&
11310 { ac_try='test -s conftest.$ac_objext'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 ac_cv_member_struct_dirent_d_reclen=yes
11317else
11318 echo "$as_me: failed program was:" >&5
11319sed 's/^/| /' conftest.$ac_ext >&5
11320
11321ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040011322fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040011324fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326fi
11327echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11328echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6
11329if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11330 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011331#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011332_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011333
11334fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011335
11336echo "$as_me:$LINENO: checking for ssize_t" >&5
11337echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11338if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011339 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040011340else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011341 cat >conftest.$ac_ext <<_ACEOF
11342/* confdefs.h. */
11343_ACEOF
11344cat confdefs.h >>conftest.$ac_ext
11345cat >>conftest.$ac_ext <<_ACEOF
11346/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040011347#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011348
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011349int
11350main ()
11351{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011352if ((ssize_t *) 0)
11353 return 0;
11354if (sizeof (ssize_t))
11355 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011381 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040011382else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011386ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040011387fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040011389fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011390echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11391echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11392if test $ac_cv_type_ssize_t = yes; then
11393 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011394#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011395_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011396
11397fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011398
11399echo "$as_me:$LINENO: checking whether llseek is declared" >&5
11400echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6
11401if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011402 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040011403else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011404 cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011410#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011411
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011412int
11413main ()
11414{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011415#ifndef llseek
11416 char *p = (char *) llseek;
11417#endif
11418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext
11424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011444 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011445else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011446 echo "$as_me: failed program was:" >&5
11447sed 's/^/| /' conftest.$ac_ext >&5
11448
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011449ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011450fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011452fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011453echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
11454echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6
11455if test $ac_cv_have_decl_llseek = yes; then
11456 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011457#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011458_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011459
11460fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011461
11462echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
11463echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6
11464if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011465 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011466else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011467 cat >conftest.$ac_ext <<_ACEOF
11468/* confdefs.h. */
11469_ACEOF
11470cat confdefs.h >>conftest.$ac_ext
11471cat >>conftest.$ac_ext <<_ACEOF
11472/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011473#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011474 #define _LARGEFILE64_SOURCE
11475 #include <unistd.h>
11476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011477int
11478main ()
11479{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011480#ifndef lseek64
11481 char *p = (char *) lseek64;
11482#endif
11483
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011484 ;
11485 return 0;
11486}
11487_ACEOF
11488rm -f conftest.$ac_objext
11489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011509 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011510else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011511 echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011514ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011515fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011517fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011518echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
11519echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6
11520if test $ac_cv_have_decl_lseek64 = yes; then
11521 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011522#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011523_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011524
11525fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011526
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011527if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011528 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011529 ac_cv_sizeof_short=2
11530 ac_cv_sizeof_int=4
11531 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000011532 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011533 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11534echo "$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 +000011535fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011536echo "$as_me:$LINENO: checking for short" >&5
11537echo $ECHO_N "checking for short... $ECHO_C" >&6
11538if test "${ac_cv_type_short+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11540else
11541 cat >conftest.$ac_ext <<_ACEOF
11542/* confdefs.h. */
11543_ACEOF
11544cat confdefs.h >>conftest.$ac_ext
11545cat >>conftest.$ac_ext <<_ACEOF
11546/* end confdefs.h. */
11547$ac_includes_default
11548int
11549main ()
11550{
11551if ((short *) 0)
11552 return 0;
11553if (sizeof (short))
11554 return 0;
11555 ;
11556 return 0;
11557}
11558_ACEOF
11559rm -f conftest.$ac_objext
11560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11561 (eval $ac_compile) 2>conftest.er1
11562 ac_status=$?
11563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_type_short=yes
11581else
11582 echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
11585ac_cv_type_short=no
11586fi
11587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588fi
11589echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11590echo "${ECHO_T}$ac_cv_type_short" >&6
11591
11592echo "$as_me:$LINENO: checking size of short" >&5
11593echo $ECHO_N "checking size of short... $ECHO_C" >&6
11594if test "${ac_cv_sizeof_short+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597 if test "$ac_cv_type_short" = yes; then
11598 # The cast to unsigned long works around a bug in the HP C Compiler
11599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11601 # This bug is HP SR number 8606223364.
11602 if test "$cross_compiling" = yes; then
11603 # Depending upon the size, compute the lo and hi bounds.
11604cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_includes_default
11611int
11612main ()
11613{
11614static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11615test_array [0] = 0
11616
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext
11622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest.$ac_objext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_lo=0 ac_mid=0
11643 while :; do
11644 cat >conftest.$ac_ext <<_ACEOF
11645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
11650$ac_includes_default
11651int
11652main ()
11653{
11654static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11655test_array [0] = 0
11656
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661rm -f conftest.$ac_objext
11662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663 (eval $ac_compile) 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
11670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_hi=$ac_mid; break
11683else
11684 echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
11687ac_lo=`expr $ac_mid + 1`
11688 if test $ac_lo -le $ac_mid; then
11689 ac_lo= ac_hi=
11690 break
11691 fi
11692 ac_mid=`expr 2 '*' $ac_mid + 1`
11693fi
11694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11695 done
11696else
11697 echo "$as_me: failed program was:" >&5
11698sed 's/^/| /' conftest.$ac_ext >&5
11699
11700cat >conftest.$ac_ext <<_ACEOF
11701/* confdefs.h. */
11702_ACEOF
11703cat confdefs.h >>conftest.$ac_ext
11704cat >>conftest.$ac_ext <<_ACEOF
11705/* end confdefs.h. */
11706$ac_includes_default
11707int
11708main ()
11709{
11710static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11711test_array [0] = 0
11712
11713 ;
11714 return 0;
11715}
11716_ACEOF
11717rm -f conftest.$ac_objext
11718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719 (eval $ac_compile) 2>conftest.er1
11720 ac_status=$?
11721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_hi=-1 ac_mid=-1
11739 while :; do
11740 cat >conftest.$ac_ext <<_ACEOF
11741/* confdefs.h. */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h. */
11746$ac_includes_default
11747int
11748main ()
11749{
11750static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11751test_array [0] = 0
11752
11753 ;
11754 return 0;
11755}
11756_ACEOF
11757rm -f conftest.$ac_objext
11758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11759 (eval $ac_compile) 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest.$ac_objext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_lo=$ac_mid; break
11779else
11780 echo "$as_me: failed program was:" >&5
11781sed 's/^/| /' conftest.$ac_ext >&5
11782
11783ac_hi=`expr '(' $ac_mid ')' - 1`
11784 if test $ac_mid -le $ac_hi; then
11785 ac_lo= ac_hi=
11786 break
11787 fi
11788 ac_mid=`expr 2 '*' $ac_mid`
11789fi
11790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11791 done
11792else
11793 echo "$as_me: failed program was:" >&5
11794sed 's/^/| /' conftest.$ac_ext >&5
11795
11796ac_lo= ac_hi=
11797fi
11798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11799fi
11800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11801# Binary search between lo and hi bounds.
11802while test "x$ac_lo" != "x$ac_hi"; do
11803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11804 cat >conftest.$ac_ext <<_ACEOF
11805/* confdefs.h. */
11806_ACEOF
11807cat confdefs.h >>conftest.$ac_ext
11808cat >>conftest.$ac_ext <<_ACEOF
11809/* end confdefs.h. */
11810$ac_includes_default
11811int
11812main ()
11813{
11814static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11815test_array [0] = 0
11816
11817 ;
11818 return 0;
11819}
11820_ACEOF
11821rm -f conftest.$ac_objext
11822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823 (eval $ac_compile) 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; } &&
11836 { ac_try='test -s conftest.$ac_objext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 ac_hi=$ac_mid
11843else
11844 echo "$as_me: failed program was:" >&5
11845sed 's/^/| /' conftest.$ac_ext >&5
11846
11847ac_lo=`expr '(' $ac_mid ')' + 1`
11848fi
11849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11850done
11851case $ac_lo in
11852?*) ac_cv_sizeof_short=$ac_lo;;
11853'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11854See \`config.log' for more details." >&5
11855echo "$as_me: error: cannot compute sizeof (short), 77
11856See \`config.log' for more details." >&2;}
11857 { (exit 1); exit 1; }; } ;;
11858esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011859else
11860 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011861 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11862echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11863 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011864else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011865 cat >conftest.$ac_ext <<_ACEOF
11866/* confdefs.h. */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h. */
11871$ac_includes_default
11872long longval () { return (long) (sizeof (short)); }
11873unsigned long ulongval () { return (long) (sizeof (short)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011874#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011875#include <stdlib.h>
11876int
11877main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011878{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011879
11880 FILE *f = fopen ("conftest.val", "w");
11881 if (! f)
11882 exit (1);
11883 if (((long) (sizeof (short))) < 0)
11884 {
11885 long i = longval ();
11886 if (i != ((long) (sizeof (short))))
11887 exit (1);
11888 fprintf (f, "%ld\n", i);
11889 }
11890 else
11891 {
11892 unsigned long i = ulongval ();
11893 if (i != ((long) (sizeof (short))))
11894 exit (1);
11895 fprintf (f, "%lu\n", i);
11896 }
11897 exit (ferror (f) || fclose (f) != 0);
11898
11899 ;
11900 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011901}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011902_ACEOF
11903rm -f conftest$ac_exeext
11904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905 (eval $ac_link) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011915else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011916 echo "$as_me: program exited with status $ac_status" >&5
11917echo "$as_me: failed program was:" >&5
11918sed 's/^/| /' conftest.$ac_ext >&5
11919
11920( exit $ac_status )
11921{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11922See \`config.log' for more details." >&5
11923echo "$as_me: error: cannot compute sizeof (short), 77
11924See \`config.log' for more details." >&2;}
11925 { (exit 1); exit 1; }; }
11926fi
11927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11928fi
11929fi
11930rm -f conftest.val
11931else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011932 ac_cv_sizeof_short=0
11933fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011934fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011935echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11936echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11937cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011938#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011939_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011940
11941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011942echo "$as_me:$LINENO: checking for int" >&5
11943echo $ECHO_N "checking for int... $ECHO_C" >&6
11944if test "${ac_cv_type_int+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946else
11947 cat >conftest.$ac_ext <<_ACEOF
11948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953$ac_includes_default
11954int
11955main ()
11956{
11957if ((int *) 0)
11958 return 0;
11959if (sizeof (int))
11960 return 0;
11961 ;
11962 return 0;
11963}
11964_ACEOF
11965rm -f conftest.$ac_objext
11966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_cv_type_int=yes
11987else
11988 echo "$as_me: failed program was:" >&5
11989sed 's/^/| /' conftest.$ac_ext >&5
11990
11991ac_cv_type_int=no
11992fi
11993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994fi
11995echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11996echo "${ECHO_T}$ac_cv_type_int" >&6
11997
11998echo "$as_me:$LINENO: checking size of int" >&5
11999echo $ECHO_N "checking size of int... $ECHO_C" >&6
12000if test "${ac_cv_sizeof_int+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
12003 if test "$ac_cv_type_int" = yes; then
12004 # The cast to unsigned long works around a bug in the HP C Compiler
12005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12007 # This bug is HP SR number 8606223364.
12008 if test "$cross_compiling" = yes; then
12009 # Depending upon the size, compute the lo and hi bounds.
12010cat >conftest.$ac_ext <<_ACEOF
12011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h. */
12016$ac_includes_default
12017int
12018main ()
12019{
12020static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12021test_array [0] = 0
12022
12023 ;
12024 return 0;
12025}
12026_ACEOF
12027rm -f conftest.$ac_objext
12028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12029 (eval $ac_compile) 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_lo=0 ac_mid=0
12049 while :; do
12050 cat >conftest.$ac_ext <<_ACEOF
12051/* confdefs.h. */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h. */
12056$ac_includes_default
12057int
12058main ()
12059{
12060static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12061test_array [0] = 0
12062
12063 ;
12064 return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext
12068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest.$ac_objext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_hi=$ac_mid; break
12089else
12090 echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
12093ac_lo=`expr $ac_mid + 1`
12094 if test $ac_lo -le $ac_mid; then
12095 ac_lo= ac_hi=
12096 break
12097 fi
12098 ac_mid=`expr 2 '*' $ac_mid + 1`
12099fi
12100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12101 done
12102else
12103 echo "$as_me: failed program was:" >&5
12104sed 's/^/| /' conftest.$ac_ext >&5
12105
12106cat >conftest.$ac_ext <<_ACEOF
12107/* confdefs.h. */
12108_ACEOF
12109cat confdefs.h >>conftest.$ac_ext
12110cat >>conftest.$ac_ext <<_ACEOF
12111/* end confdefs.h. */
12112$ac_includes_default
12113int
12114main ()
12115{
12116static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12117test_array [0] = 0
12118
12119 ;
12120 return 0;
12121}
12122_ACEOF
12123rm -f conftest.$ac_objext
12124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest.$ac_objext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_hi=-1 ac_mid=-1
12145 while :; do
12146 cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152$ac_includes_default
12153int
12154main ()
12155{
12156static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12157test_array [0] = 0
12158
12159 ;
12160 return 0;
12161}
12162_ACEOF
12163rm -f conftest.$ac_objext
12164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165 (eval $ac_compile) 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_lo=$ac_mid; break
12185else
12186 echo "$as_me: failed program was:" >&5
12187sed 's/^/| /' conftest.$ac_ext >&5
12188
12189ac_hi=`expr '(' $ac_mid ')' - 1`
12190 if test $ac_mid -le $ac_hi; then
12191 ac_lo= ac_hi=
12192 break
12193 fi
12194 ac_mid=`expr 2 '*' $ac_mid`
12195fi
12196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197 done
12198else
12199 echo "$as_me: failed program was:" >&5
12200sed 's/^/| /' conftest.$ac_ext >&5
12201
12202ac_lo= ac_hi=
12203fi
12204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12205fi
12206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12207# Binary search between lo and hi bounds.
12208while test "x$ac_lo" != "x$ac_hi"; do
12209 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12210 cat >conftest.$ac_ext <<_ACEOF
12211/* confdefs.h. */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h. */
12216$ac_includes_default
12217int
12218main ()
12219{
12220static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12221test_array [0] = 0
12222
12223 ;
12224 return 0;
12225}
12226_ACEOF
12227rm -f conftest.$ac_objext
12228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229 (eval $ac_compile) 2>conftest.er1
12230 ac_status=$?
12231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_hi=$ac_mid
12249else
12250 echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
12253ac_lo=`expr '(' $ac_mid ')' + 1`
12254fi
12255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256done
12257case $ac_lo in
12258?*) ac_cv_sizeof_int=$ac_lo;;
12259'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12260See \`config.log' for more details." >&5
12261echo "$as_me: error: cannot compute sizeof (int), 77
12262See \`config.log' for more details." >&2;}
12263 { (exit 1); exit 1; }; } ;;
12264esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012265else
12266 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012267 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12268echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12269 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012271 cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
12277$ac_includes_default
12278long longval () { return (long) (sizeof (int)); }
12279unsigned long ulongval () { return (long) (sizeof (int)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012280#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012281#include <stdlib.h>
12282int
12283main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012284{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012285
12286 FILE *f = fopen ("conftest.val", "w");
12287 if (! f)
12288 exit (1);
12289 if (((long) (sizeof (int))) < 0)
12290 {
12291 long i = longval ();
12292 if (i != ((long) (sizeof (int))))
12293 exit (1);
12294 fprintf (f, "%ld\n", i);
12295 }
12296 else
12297 {
12298 unsigned long i = ulongval ();
12299 if (i != ((long) (sizeof (int))))
12300 exit (1);
12301 fprintf (f, "%lu\n", i);
12302 }
12303 exit (ferror (f) || fclose (f) != 0);
12304
12305 ;
12306 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012307}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012308_ACEOF
12309rm -f conftest$ac_exeext
12310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311 (eval $ac_link) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012321else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012322 echo "$as_me: program exited with status $ac_status" >&5
12323echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326( exit $ac_status )
12327{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12328See \`config.log' for more details." >&5
12329echo "$as_me: error: cannot compute sizeof (int), 77
12330See \`config.log' for more details." >&2;}
12331 { (exit 1); exit 1; }; }
12332fi
12333rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12334fi
12335fi
12336rm -f conftest.val
12337else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012338 ac_cv_sizeof_int=0
12339fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012340fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012341echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12342echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12343cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012344#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012345_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012346
12347
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012348echo "$as_me:$LINENO: checking for long" >&5
12349echo $ECHO_N "checking for long... $ECHO_C" >&6
12350if test "${ac_cv_type_long+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12352else
12353 cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h. */
12359$ac_includes_default
12360int
12361main ()
12362{
12363if ((long *) 0)
12364 return 0;
12365if (sizeof (long))
12366 return 0;
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371rm -f conftest.$ac_objext
12372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; } &&
12386 { ac_try='test -s conftest.$ac_objext'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 ac_cv_type_long=yes
12393else
12394 echo "$as_me: failed program was:" >&5
12395sed 's/^/| /' conftest.$ac_ext >&5
12396
12397ac_cv_type_long=no
12398fi
12399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12400fi
12401echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12402echo "${ECHO_T}$ac_cv_type_long" >&6
12403
12404echo "$as_me:$LINENO: checking size of long" >&5
12405echo $ECHO_N "checking size of long... $ECHO_C" >&6
12406if test "${ac_cv_sizeof_long+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408else
12409 if test "$ac_cv_type_long" = yes; then
12410 # The cast to unsigned long works around a bug in the HP C Compiler
12411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12413 # This bug is HP SR number 8606223364.
12414 if test "$cross_compiling" = yes; then
12415 # Depending upon the size, compute the lo and hi bounds.
12416cat >conftest.$ac_ext <<_ACEOF
12417/* confdefs.h. */
12418_ACEOF
12419cat confdefs.h >>conftest.$ac_ext
12420cat >>conftest.$ac_ext <<_ACEOF
12421/* end confdefs.h. */
12422$ac_includes_default
12423int
12424main ()
12425{
12426static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12427test_array [0] = 0
12428
12429 ;
12430 return 0;
12431}
12432_ACEOF
12433rm -f conftest.$ac_objext
12434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12435 (eval $ac_compile) 2>conftest.er1
12436 ac_status=$?
12437 grep -v '^ *+' conftest.er1 >conftest.err
12438 rm -f conftest.er1
12439 cat conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; } &&
12448 { ac_try='test -s conftest.$ac_objext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 ac_lo=0 ac_mid=0
12455 while :; do
12456 cat >conftest.$ac_ext <<_ACEOF
12457/* confdefs.h. */
12458_ACEOF
12459cat confdefs.h >>conftest.$ac_ext
12460cat >>conftest.$ac_ext <<_ACEOF
12461/* end confdefs.h. */
12462$ac_includes_default
12463int
12464main ()
12465{
12466static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12467test_array [0] = 0
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>conftest.er1
12476 ac_status=$?
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_hi=$ac_mid; break
12495else
12496 echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499ac_lo=`expr $ac_mid + 1`
12500 if test $ac_lo -le $ac_mid; then
12501 ac_lo= ac_hi=
12502 break
12503 fi
12504 ac_mid=`expr 2 '*' $ac_mid + 1`
12505fi
12506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12507 done
12508else
12509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
12512cat >conftest.$ac_ext <<_ACEOF
12513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
12518$ac_includes_default
12519int
12520main ()
12521{
12522static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12523test_array [0] = 0
12524
12525 ;
12526 return 0;
12527}
12528_ACEOF
12529rm -f conftest.$ac_objext
12530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>conftest.er1
12532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_hi=-1 ac_mid=-1
12551 while :; do
12552 cat >conftest.$ac_ext <<_ACEOF
12553/* confdefs.h. */
12554_ACEOF
12555cat confdefs.h >>conftest.$ac_ext
12556cat >>conftest.$ac_ext <<_ACEOF
12557/* end confdefs.h. */
12558$ac_includes_default
12559int
12560main ()
12561{
12562static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12563test_array [0] = 0
12564
12565 ;
12566 return 0;
12567}
12568_ACEOF
12569rm -f conftest.$ac_objext
12570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_lo=$ac_mid; break
12591else
12592 echo "$as_me: failed program was:" >&5
12593sed 's/^/| /' conftest.$ac_ext >&5
12594
12595ac_hi=`expr '(' $ac_mid ')' - 1`
12596 if test $ac_mid -le $ac_hi; then
12597 ac_lo= ac_hi=
12598 break
12599 fi
12600 ac_mid=`expr 2 '*' $ac_mid`
12601fi
12602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12603 done
12604else
12605 echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
12608ac_lo= ac_hi=
12609fi
12610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12611fi
12612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613# Binary search between lo and hi bounds.
12614while test "x$ac_lo" != "x$ac_hi"; do
12615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12616 cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622$ac_includes_default
12623int
12624main ()
12625{
12626static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12627test_array [0] = 0
12628
12629 ;
12630 return 0;
12631}
12632_ACEOF
12633rm -f conftest.$ac_objext
12634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_hi=$ac_mid
12655else
12656 echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659ac_lo=`expr '(' $ac_mid ')' + 1`
12660fi
12661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12662done
12663case $ac_lo in
12664?*) ac_cv_sizeof_long=$ac_lo;;
12665'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12666See \`config.log' for more details." >&5
12667echo "$as_me: error: cannot compute sizeof (long), 77
12668See \`config.log' for more details." >&2;}
12669 { (exit 1); exit 1; }; } ;;
12670esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012671else
12672 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012673 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12674echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12675 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012676else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012677 cat >conftest.$ac_ext <<_ACEOF
12678/* confdefs.h. */
12679_ACEOF
12680cat confdefs.h >>conftest.$ac_ext
12681cat >>conftest.$ac_ext <<_ACEOF
12682/* end confdefs.h. */
12683$ac_includes_default
12684long longval () { return (long) (sizeof (long)); }
12685unsigned long ulongval () { return (long) (sizeof (long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012686#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012687#include <stdlib.h>
12688int
12689main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012690{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012691
12692 FILE *f = fopen ("conftest.val", "w");
12693 if (! f)
12694 exit (1);
12695 if (((long) (sizeof (long))) < 0)
12696 {
12697 long i = longval ();
12698 if (i != ((long) (sizeof (long))))
12699 exit (1);
12700 fprintf (f, "%ld\n", i);
12701 }
12702 else
12703 {
12704 unsigned long i = ulongval ();
12705 if (i != ((long) (sizeof (long))))
12706 exit (1);
12707 fprintf (f, "%lu\n", i);
12708 }
12709 exit (ferror (f) || fclose (f) != 0);
12710
12711 ;
12712 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012713}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012714_ACEOF
12715rm -f conftest$ac_exeext
12716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717 (eval $ac_link) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012727else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012728 echo "$as_me: program exited with status $ac_status" >&5
12729echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732( exit $ac_status )
12733{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12734See \`config.log' for more details." >&5
12735echo "$as_me: error: cannot compute sizeof (long), 77
12736See \`config.log' for more details." >&2;}
12737 { (exit 1); exit 1; }; }
12738fi
12739rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12740fi
12741fi
12742rm -f conftest.val
12743else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012744 ac_cv_sizeof_long=0
12745fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012746fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012747echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12748echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12749cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012750#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012751_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012752
12753
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012754echo "$as_me:$LINENO: checking for long long" >&5
12755echo $ECHO_N "checking for long long... $ECHO_C" >&6
12756if test "${ac_cv_type_long_long+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12758else
12759 cat >conftest.$ac_ext <<_ACEOF
12760/* confdefs.h. */
12761_ACEOF
12762cat confdefs.h >>conftest.$ac_ext
12763cat >>conftest.$ac_ext <<_ACEOF
12764/* end confdefs.h. */
12765$ac_includes_default
12766int
12767main ()
12768{
12769if ((long long *) 0)
12770 return 0;
12771if (sizeof (long long))
12772 return 0;
12773 ;
12774 return 0;
12775}
12776_ACEOF
12777rm -f conftest.$ac_objext
12778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779 (eval $ac_compile) 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest.$ac_objext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_type_long_long=yes
12799else
12800 echo "$as_me: failed program was:" >&5
12801sed 's/^/| /' conftest.$ac_ext >&5
12802
12803ac_cv_type_long_long=no
12804fi
12805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12806fi
12807echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12808echo "${ECHO_T}$ac_cv_type_long_long" >&6
12809
12810echo "$as_me:$LINENO: checking size of long long" >&5
12811echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12812if test "${ac_cv_sizeof_long_long+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815 if test "$ac_cv_type_long_long" = yes; then
12816 # The cast to unsigned long works around a bug in the HP C Compiler
12817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12819 # This bug is HP SR number 8606223364.
12820 if test "$cross_compiling" = yes; then
12821 # Depending upon the size, compute the lo and hi bounds.
12822cat >conftest.$ac_ext <<_ACEOF
12823/* confdefs.h. */
12824_ACEOF
12825cat confdefs.h >>conftest.$ac_ext
12826cat >>conftest.$ac_ext <<_ACEOF
12827/* end confdefs.h. */
12828$ac_includes_default
12829int
12830main ()
12831{
12832static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12833test_array [0] = 0
12834
12835 ;
12836 return 0;
12837}
12838_ACEOF
12839rm -f conftest.$ac_objext
12840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841 (eval $ac_compile) 2>conftest.er1
12842 ac_status=$?
12843 grep -v '^ *+' conftest.er1 >conftest.err
12844 rm -f conftest.er1
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } &&
12848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12851 ac_status=$?
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest.$ac_objext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_lo=0 ac_mid=0
12861 while :; do
12862 cat >conftest.$ac_ext <<_ACEOF
12863/* confdefs.h. */
12864_ACEOF
12865cat confdefs.h >>conftest.$ac_ext
12866cat >>conftest.$ac_ext <<_ACEOF
12867/* end confdefs.h. */
12868$ac_includes_default
12869int
12870main ()
12871{
12872static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12873test_array [0] = 0
12874
12875 ;
12876 return 0;
12877}
12878_ACEOF
12879rm -f conftest.$ac_objext
12880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12881 (eval $ac_compile) 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest.$ac_objext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_hi=$ac_mid; break
12901else
12902 echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
12905ac_lo=`expr $ac_mid + 1`
12906 if test $ac_lo -le $ac_mid; then
12907 ac_lo= ac_hi=
12908 break
12909 fi
12910 ac_mid=`expr 2 '*' $ac_mid + 1`
12911fi
12912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12913 done
12914else
12915 echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918cat >conftest.$ac_ext <<_ACEOF
12919/* confdefs.h. */
12920_ACEOF
12921cat confdefs.h >>conftest.$ac_ext
12922cat >>conftest.$ac_ext <<_ACEOF
12923/* end confdefs.h. */
12924$ac_includes_default
12925int
12926main ()
12927{
12928static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12929test_array [0] = 0
12930
12931 ;
12932 return 0;
12933}
12934_ACEOF
12935rm -f conftest.$ac_objext
12936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937 (eval $ac_compile) 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; } &&
12950 { ac_try='test -s conftest.$ac_objext'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; }; then
12956 ac_hi=-1 ac_mid=-1
12957 while :; do
12958 cat >conftest.$ac_ext <<_ACEOF
12959/* confdefs.h. */
12960_ACEOF
12961cat confdefs.h >>conftest.$ac_ext
12962cat >>conftest.$ac_ext <<_ACEOF
12963/* end confdefs.h. */
12964$ac_includes_default
12965int
12966main ()
12967{
12968static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12969test_array [0] = 0
12970
12971 ;
12972 return 0;
12973}
12974_ACEOF
12975rm -f conftest.$ac_objext
12976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest.$ac_objext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_lo=$ac_mid; break
12997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001ac_hi=`expr '(' $ac_mid ')' - 1`
13002 if test $ac_mid -le $ac_hi; then
13003 ac_lo= ac_hi=
13004 break
13005 fi
13006 ac_mid=`expr 2 '*' $ac_mid`
13007fi
13008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13009 done
13010else
13011 echo "$as_me: failed program was:" >&5
13012sed 's/^/| /' conftest.$ac_ext >&5
13013
13014ac_lo= ac_hi=
13015fi
13016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13017fi
13018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13019# Binary search between lo and hi bounds.
13020while test "x$ac_lo" != "x$ac_hi"; do
13021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13022 cat >conftest.$ac_ext <<_ACEOF
13023/* confdefs.h. */
13024_ACEOF
13025cat confdefs.h >>conftest.$ac_ext
13026cat >>conftest.$ac_ext <<_ACEOF
13027/* end confdefs.h. */
13028$ac_includes_default
13029int
13030main ()
13031{
13032static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13033test_array [0] = 0
13034
13035 ;
13036 return 0;
13037}
13038_ACEOF
13039rm -f conftest.$ac_objext
13040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>conftest.er1
13042 ac_status=$?
13043 grep -v '^ *+' conftest.er1 >conftest.err
13044 rm -f conftest.er1
13045 cat conftest.err >&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; } &&
13054 { ac_try='test -s conftest.$ac_objext'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_hi=$ac_mid
13061else
13062 echo "$as_me: failed program was:" >&5
13063sed 's/^/| /' conftest.$ac_ext >&5
13064
13065ac_lo=`expr '(' $ac_mid ')' + 1`
13066fi
13067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13068done
13069case $ac_lo in
13070?*) ac_cv_sizeof_long_long=$ac_lo;;
13071'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13072See \`config.log' for more details." >&5
13073echo "$as_me: error: cannot compute sizeof (long long), 77
13074See \`config.log' for more details." >&2;}
13075 { (exit 1); exit 1; }; } ;;
13076esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013077else
13078 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013079 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13080echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13081 { (exit 1); exit 1; }; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013082else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013083 cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089$ac_includes_default
13090long longval () { return (long) (sizeof (long long)); }
13091unsigned long ulongval () { return (long) (sizeof (long long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013092#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013093#include <stdlib.h>
13094int
13095main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013096{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013097
13098 FILE *f = fopen ("conftest.val", "w");
13099 if (! f)
13100 exit (1);
13101 if (((long) (sizeof (long long))) < 0)
13102 {
13103 long i = longval ();
13104 if (i != ((long) (sizeof (long long))))
13105 exit (1);
13106 fprintf (f, "%ld\n", i);
13107 }
13108 else
13109 {
13110 unsigned long i = ulongval ();
13111 if (i != ((long) (sizeof (long long))))
13112 exit (1);
13113 fprintf (f, "%lu\n", i);
13114 }
13115 exit (ferror (f) || fclose (f) != 0);
13116
13117 ;
13118 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013119}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013120_ACEOF
13121rm -f conftest$ac_exeext
13122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013133else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013134 echo "$as_me: program exited with status $ac_status" >&5
13135echo "$as_me: failed program was:" >&5
13136sed 's/^/| /' conftest.$ac_ext >&5
13137
13138( exit $ac_status )
13139{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13140See \`config.log' for more details." >&5
13141echo "$as_me: error: cannot compute sizeof (long long), 77
13142See \`config.log' for more details." >&2;}
13143 { (exit 1); exit 1; }; }
13144fi
13145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13146fi
13147fi
13148rm -f conftest.val
13149else
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013150 ac_cv_sizeof_long_long=0
13151fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013152fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013153echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13154echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13155cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013156#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013157_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013158
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013159
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013160SIZEOF_SHORT=$ac_cv_sizeof_short
13161SIZEOF_INT=$ac_cv_sizeof_int
13162SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013163SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13164
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013165
13166
13167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013168echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13169echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13170if test "${ac_cv_c_bigendian+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013172else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013173 # See if sys/param.h defines the BYTE_ORDER macro.
13174cat >conftest.$ac_ext <<_ACEOF
13175/* confdefs.h. */
13176_ACEOF
13177cat confdefs.h >>conftest.$ac_ext
13178cat >>conftest.$ac_ext <<_ACEOF
13179/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013180#include <sys/types.h>
13181#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013183int
13184main ()
13185{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013186#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13187 bogus endian macros
13188#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013189
13190 ;
13191 return 0;
13192}
13193_ACEOF
13194rm -f conftest.$ac_objext
13195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>conftest.er1
13197 ac_status=$?
13198 grep -v '^ *+' conftest.er1 >conftest.err
13199 rm -f conftest.er1
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
13203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } &&
13209 { ac_try='test -s conftest.$ac_objext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013215 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013216cat >conftest.$ac_ext <<_ACEOF
13217/* confdefs.h. */
13218_ACEOF
13219cat confdefs.h >>conftest.$ac_ext
13220cat >>conftest.$ac_ext <<_ACEOF
13221/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013222#include <sys/types.h>
13223#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013225int
13226main ()
13227{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013228#if BYTE_ORDER != BIG_ENDIAN
13229 not big endian
13230#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013231
13232 ;
13233 return 0;
13234}
13235_ACEOF
13236rm -f conftest.$ac_objext
13237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; } &&
13251 { ac_try='test -s conftest.$ac_objext'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013257 ac_cv_c_bigendian=yes
13258else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013259 echo "$as_me: failed program was:" >&5
13260sed 's/^/| /' conftest.$ac_ext >&5
13261
13262ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013263fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013265else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013266 echo "$as_me: failed program was:" >&5
13267sed 's/^/| /' conftest.$ac_ext >&5
13268
13269# It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013270if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013271 # try to guess the endianness by grepping values into an object file
13272 ac_cv_c_bigendian=unknown
13273 cat >conftest.$ac_ext <<_ACEOF
13274/* confdefs.h. */
13275_ACEOF
13276cat confdefs.h >>conftest.$ac_ext
13277cat >>conftest.$ac_ext <<_ACEOF
13278/* end confdefs.h. */
13279short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13280short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13281void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13282short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13283short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13284void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13285int
13286main ()
13287{
13288 _ascii (); _ebcdic ();
13289 ;
13290 return 0;
13291}
13292_ACEOF
13293rm -f conftest.$ac_objext
13294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13295 (eval $ac_compile) 2>conftest.er1
13296 ac_status=$?
13297 grep -v '^ *+' conftest.er1 >conftest.err
13298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } &&
13302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13305 ac_status=$?
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } &&
13308 { ac_try='test -s conftest.$ac_objext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13315 ac_cv_c_bigendian=yes
13316fi
13317if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13318 if test "$ac_cv_c_bigendian" = unknown; then
13319 ac_cv_c_bigendian=no
13320 else
13321 # finding both strings is unlikely to happen, but who knows?
13322 ac_cv_c_bigendian=unknown
13323 fi
13324fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013325else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013326 echo "$as_me: failed program was:" >&5
13327sed 's/^/| /' conftest.$ac_ext >&5
13328
13329fi
13330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13331else
13332 cat >conftest.$ac_ext <<_ACEOF
13333/* confdefs.h. */
13334_ACEOF
13335cat confdefs.h >>conftest.$ac_ext
13336cat >>conftest.$ac_ext <<_ACEOF
13337/* end confdefs.h. */
13338int
13339main ()
13340{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013341 /* Are we little or big endian? From Harbison&Steele. */
13342 union
13343 {
13344 long l;
13345 char c[sizeof (long)];
13346 } u;
13347 u.l = 1;
13348 exit (u.c[sizeof (long) - 1] == 1);
13349}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013350_ACEOF
13351rm -f conftest$ac_exeext
13352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013362 ac_cv_c_bigendian=no
13363else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013364 echo "$as_me: program exited with status $ac_status" >&5
13365echo "$as_me: failed program was:" >&5
13366sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013367
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013368( exit $ac_status )
13369ac_cv_c_bigendian=yes
13370fi
13371rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013372fi
13373fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13375fi
13376echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13377echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13378case $ac_cv_c_bigendian in
13379 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013380
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013381cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013382#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013383_ACEOF
13384 ;;
13385 no)
13386 ;;
13387 *)
13388 { { echo "$as_me:$LINENO: error: unknown endianness
13389presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13390echo "$as_me: error: unknown endianness
13391presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13392 { (exit 1); exit 1; }; } ;;
13393esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013394
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013395/bin/sh $ac_aux_dir/parse-types.sh
13396ASM_TYPES_HEADER=./asm_types.h
13397
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013398
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013399for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013400do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13402if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo "$as_me:$LINENO: checking for $ac_header" >&5
13404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13405if eval "test \"\${$as_ac_Header+set}\" = set"; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013407fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013410else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013411 # Is the header compilable?
13412echo "$as_me:$LINENO: checking $ac_header usability" >&5
13413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13414cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420$ac_includes_default
13421#include <$ac_header>
13422_ACEOF
13423rm -f conftest.$ac_objext
13424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425 (eval $ac_compile) 2>conftest.er1
13426 ac_status=$?
13427 grep -v '^ *+' conftest.er1 >conftest.err
13428 rm -f conftest.er1
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest.$ac_objext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 ac_header_compiler=yes
13445else
13446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013450fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453echo "${ECHO_T}$ac_header_compiler" >&6
13454
13455# Is the header present?
13456echo "$as_me:$LINENO: checking $ac_header presence" >&5
13457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13458cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h. */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h. */
13464#include <$ac_header>
13465_ACEOF
13466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } >/dev/null; then
13474 if test -s conftest.err; then
13475 ac_cpp_err=$ac_c_preproc_warn_flag
13476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13477 else
13478 ac_cpp_err=
13479 fi
13480else
13481 ac_cpp_err=yes
13482fi
13483if test -z "$ac_cpp_err"; then
13484 ac_header_preproc=yes
13485else
13486 echo "$as_me: failed program was:" >&5
13487sed 's/^/| /' conftest.$ac_ext >&5
13488
13489 ac_header_preproc=no
13490fi
13491rm -f conftest.err conftest.$ac_ext
13492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13493echo "${ECHO_T}$ac_header_preproc" >&6
13494
13495# So? What about this header?
13496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13497 yes:no: )
13498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13502 ac_header_preproc=yes
13503 ;;
13504 no:yes:* )
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13517 (
13518 cat <<\_ASBOX
13519## ------------------------------------------ ##
13520## Report this to the AC_PACKAGE_NAME lists. ##
13521## ------------------------------------------ ##
13522_ASBOX
13523 ) |
13524 sed "s/^/$as_me: WARNING: /" >&2
13525 ;;
13526esac
13527echo "$as_me:$LINENO: checking for $ac_header" >&5
13528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13529if eval "test \"\${$as_ac_Header+set}\" = set"; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531else
13532 eval "$as_ac_Header=\$ac_header_preproc"
13533fi
13534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13536
13537fi
13538if test `eval echo '${'$as_ac_Header'}'` = yes; then
13539 cat >>confdefs.h <<_ACEOF
13540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13541_ACEOF
13542
13543fi
13544
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013545done
13546
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013547echo "$as_me:$LINENO: checking for intptr_t" >&5
13548echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13549if test "${ac_cv_type_intptr_t+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013552 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558$ac_includes_default
13559int
13560main ()
13561{
13562if ((intptr_t *) 0)
13563 return 0;
13564if (sizeof (intptr_t))
13565 return 0;
13566 ;
13567 return 0;
13568}
13569_ACEOF
13570rm -f conftest.$ac_objext
13571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest.$ac_objext'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013591 ac_cv_type_intptr_t=yes
13592else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013593 echo "$as_me: failed program was:" >&5
13594sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013595
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013596ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013597fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013599fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013600echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13601echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13602if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013603
13604cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050013605#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013606_ACEOF
13607
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050013608
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013609fi
13610
13611echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13612echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13613if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615else
13616 cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013622#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013623int
13624main ()
13625{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013626struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013627 ;
13628 return 0;
13629}
13630_ACEOF
13631rm -f conftest.$ac_objext
13632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633 (eval $ac_compile) 2>conftest.er1
13634 ac_status=$?
13635 grep -v '^ *+' conftest.er1 >conftest.err
13636 rm -f conftest.er1
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; } &&
13646 { ac_try='test -s conftest.$ac_objext'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13649 ac_status=$?
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013652 e2fsprogs_cv_struct_st_flags=yes
13653else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013654 echo "$as_me: failed program was:" >&5
13655sed 's/^/| /' conftest.$ac_ext >&5
13656
13657e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013658fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013660fi
13661
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013662echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13663echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013664if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013665 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13666echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13667 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013669else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013670 cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h. */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013676#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013677int
13678main ()
13679{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013680struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013681 ;
13682 return 0;
13683}
13684_ACEOF
13685rm -f conftest.$ac_objext
13686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13687 (eval $ac_compile) 2>conftest.er1
13688 ac_status=$?
13689 grep -v '^ *+' conftest.er1 >conftest.err
13690 rm -f conftest.er1
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; } &&
13700 { ac_try='test -s conftest.$ac_objext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013706 e2fsprogs_cv_struct_st_flags_immut=yes
13707else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013708 echo "$as_me: failed program was:" >&5
13709sed 's/^/| /' conftest.$ac_ext >&5
13710
13711e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013712fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013714fi
13715
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013716 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13717echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013718 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013719 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013720#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013721_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013722
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013723 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013724fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013725echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13726echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13727if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013728 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013729else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013730 cat >conftest.$ac_ext <<_ACEOF
13731/* confdefs.h. */
13732_ACEOF
13733cat confdefs.h >>conftest.$ac_ext
13734cat >>conftest.$ac_ext <<_ACEOF
13735/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013736#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013737 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013738
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013739int
13740main ()
13741{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013742static struct sockaddr ac_aggr;
13743if (ac_aggr.sa_len)
13744return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013745 ;
13746 return 0;
13747}
13748_ACEOF
13749rm -f conftest.$ac_objext
13750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751 (eval $ac_compile) 2>conftest.er1
13752 ac_status=$?
13753 grep -v '^ *+' conftest.er1 >conftest.err
13754 rm -f conftest.er1
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } &&
13758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; } &&
13764 { ac_try='test -s conftest.$ac_objext'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013770 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013771else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013772 echo "$as_me: failed program was:" >&5
13773sed 's/^/| /' conftest.$ac_ext >&5
13774
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013775cat >conftest.$ac_ext <<_ACEOF
13776/* confdefs.h. */
13777_ACEOF
13778cat confdefs.h >>conftest.$ac_ext
13779cat >>conftest.$ac_ext <<_ACEOF
13780/* end confdefs.h. */
13781#include <sys/types.h>
13782 #include <sys/socket.h>
13783
13784int
13785main ()
13786{
13787static struct sockaddr ac_aggr;
13788if (sizeof ac_aggr.sa_len)
13789return 0;
13790 ;
13791 return 0;
13792}
13793_ACEOF
13794rm -f conftest.$ac_objext
13795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest.$ac_objext'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_cv_member_struct_sockaddr_sa_len=yes
13816else
13817 echo "$as_me: failed program was:" >&5
13818sed 's/^/| /' conftest.$ac_ext >&5
13819
13820ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013821fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013823fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825fi
13826echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13827echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13828if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013829
13830cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013831#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013832_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013833
13834fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013854
Theodore Ts'o762c7c62005-04-06 14:44:16 -040013855
13856
Andreas Dilger9b7d8112005-07-09 22:06:59 -050013857
13858for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013859do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13861echo "$as_me:$LINENO: checking for $ac_func" >&5
13862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13863if eval "test \"\${$as_ac_var+set}\" = set"; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013865else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013866 cat >conftest.$ac_ext <<_ACEOF
13867/* confdefs.h. */
13868_ACEOF
13869cat confdefs.h >>conftest.$ac_ext
13870cat >>conftest.$ac_ext <<_ACEOF
13871/* end confdefs.h. */
13872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13874#define $ac_func innocuous_$ac_func
13875
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013876/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013877 which can conflict with char $ac_func (); below.
13878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13879 <limits.h> exists even on freestanding compilers. */
13880
13881#ifdef __STDC__
13882# include <limits.h>
13883#else
13884# include <assert.h>
13885#endif
13886
13887#undef $ac_func
13888
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013889/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013890#ifdef __cplusplus
13891extern "C"
13892{
13893#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013894/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013895 builtin and then its argument prototype would still apply. */
13896char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013897/* The GNU C library defines this for functions which it implements
13898 to always fail with ENOSYS. Some functions are actually named
13899 something starting with __ and the normal name is an alias. */
13900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13901choke me
13902#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013903char (*f) () = $ac_func;
13904#endif
13905#ifdef __cplusplus
13906}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013907#endif
13908
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013909int
13910main ()
13911{
13912return f != $ac_func;
13913 ;
13914 return 0;
13915}
13916_ACEOF
13917rm -f conftest.$ac_objext conftest$ac_exeext
13918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13919 (eval $ac_link) 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try='test -s conftest$ac_exeext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013939else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013940 echo "$as_me: failed program was:" >&5
13941sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013943eval "$as_ac_var=no"
13944fi
13945rm -f conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13947fi
13948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13950if test `eval echo '${'$as_ac_var'}'` = yes; then
13951 cat >>confdefs.h <<_ACEOF
13952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13953_ACEOF
13954
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013955fi
13956done
13957
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013958SOCKET_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13960echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13961if test "${ac_cv_lib_socket_socket+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013963else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013964 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013965LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013966cat >conftest.$ac_ext <<_ACEOF
13967/* confdefs.h. */
13968_ACEOF
13969cat confdefs.h >>conftest.$ac_ext
13970cat >>conftest.$ac_ext <<_ACEOF
13971/* end confdefs.h. */
13972
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013973/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013974#ifdef __cplusplus
13975extern "C"
13976#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013977/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013978 builtin and then its argument prototype would still apply. */
13979char socket ();
13980int
13981main ()
13982{
13983socket ();
13984 ;
13985 return 0;
13986}
13987_ACEOF
13988rm -f conftest.$ac_objext conftest$ac_exeext
13989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13990 (eval $ac_link) 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014010else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014011 echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014013
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014014ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014015fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014016rm -f conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14018LIBS=$ac_check_lib_save_LIBS
14019fi
14020echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14021echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
14022if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014023 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014024fi
14025
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014026
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014027DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014028echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14029echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14030if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014032else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014033 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014034LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014035cat >conftest.$ac_ext <<_ACEOF
14036/* confdefs.h. */
14037_ACEOF
14038cat confdefs.h >>conftest.$ac_ext
14039cat >>conftest.$ac_ext <<_ACEOF
14040/* end confdefs.h. */
14041
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014042/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014043#ifdef __cplusplus
14044extern "C"
14045#endif
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014046/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014047 builtin and then its argument prototype would still apply. */
14048char dlopen ();
14049int
14050main ()
14051{
14052dlopen ();
14053 ;
14054 return 0;
14055}
14056_ACEOF
14057rm -f conftest.$ac_objext conftest$ac_exeext
14058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14059 (eval $ac_link) 2>conftest.er1
14060 ac_status=$?
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -f conftest.er1
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest$ac_exeext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014079else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080 echo "$as_me: failed program was:" >&5
14081sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014082
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014083ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014084fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014085rm -f conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
14087LIBS=$ac_check_lib_save_LIBS
14088fi
14089echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14090echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14091if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014092 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014093cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014094#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014095_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014096
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014097fi
14098
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014099
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014100echo "$as_me:$LINENO: checking for optreset" >&5
14101echo $ECHO_N "checking for optreset... $ECHO_C" >&6
14102if test "${ac_cv_have_optreset+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014104else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014105 cat >conftest.$ac_ext <<_ACEOF
14106/* confdefs.h. */
14107_ACEOF
14108cat confdefs.h >>conftest.$ac_ext
14109cat >>conftest.$ac_ext <<_ACEOF
14110/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014111#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014112
14113_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014115 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014116 ac_cv_have_optreset=yes
14117else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014118 ac_cv_have_optreset=no
14119fi
14120rm -f conftest*
14121
14122fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014123echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14124echo "${ECHO_T}$ac_cv_have_optreset" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014125if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014126 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014127#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014128_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014129
14130fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014131case "$host_os" in
14132linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014133 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014134#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014135_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014136
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014137 ;;
14138esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014139LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014140CYGWIN_CMT="#"
14141UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014142case "$host_os" in
14143linux*)
14144 LINUX_CMT=
14145 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040014146cygwin)
14147 CYGWIN_CMT=
14148 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014149 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014150esac
14151
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014152
14153
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014154case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014155linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014156 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14157 root_prefix="";
14158 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014159 fi
14160 ;;
14161esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014162case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014163linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014164 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014165 prefix="/usr";
14166 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040014167 if test "$mandir" = '${prefix}/man' ; then
14168 echo "...and mandir defaults to /usr/share/man"
14169 mandir=/usr/share/man
14170 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014171 fi
14172;;
14173esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014174if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000014175 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014176 root_prefix="$ac_default_prefix"
14177 else
14178 root_prefix="$prefix"
14179 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040014180 root_bindir=$bindir
14181 root_sbindir=$sbindir
14182 root_libdir=$libdir
14183 root_sysconfdir=$sysconfdir
14184else
14185 root_bindir='${root_prefix}/bin'
14186 root_sbindir='${root_prefix}/sbin'
14187 root_libdir='${root_prefix}/lib'
14188 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014189fi
14190
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014191
14192
14193
14194
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014195echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14196echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
14197if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000014199else
14200 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014201cat >conftest.$ac_ext <<_ACEOF
14202/* confdefs.h. */
14203_ACEOF
14204cat confdefs.h >>conftest.$ac_ext
14205cat >>conftest.$ac_ext <<_ACEOF
14206/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000014207#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014208int
14209main ()
14210{
Theodore Ts'oae851481997-04-29 18:13:24 +000014211fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014212 ;
14213 return 0;
14214}
14215_ACEOF
14216rm -f conftest.$ac_objext conftest$ac_exeext
14217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218 (eval $ac_link) 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest$ac_exeext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
Theodore Ts'oae851481997-04-29 18:13:24 +000014237 ac_cv_e2fsprogs_use_static=yes
14238else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014239 echo "$as_me: failed program was:" >&5
14240sed 's/^/| /' conftest.$ac_ext >&5
14241
14242ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000014243fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014244rm -f conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000014246LDFLAGS=$SAVE_LDFLAGS
14247fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014248
Theodore Ts'odefde781999-01-04 07:39:19 +000014249case "$host_os" in
14250solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014251 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000014252;;
14253esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014254echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14255echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +000014256LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000014257if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014258 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000014259fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014260
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014261case "$host_os" in
14262darwin*)
14263 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014264 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014265#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014266_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014267
14268 ;;
14269esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014270SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14271ET_DIR=`cd ${srcdir}/lib/et; pwd`
14272
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014273
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014274if test "$cross_compiling" = yes ; then
14275 DO_TEST_SUITE=
14276else
14277 DO_TEST_SUITE=check
14278fi
14279
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040014280INTL_FLAGS=
14281if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14282 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14283fi
14284
Theodore Ts'odd947da2005-11-09 18:37:07 -040014285if test $cross_compiling = no; then
14286 BUILD_CFLAGS="$CFLAGS"
14287 BUILD_LDFLAGS="$LDFLAGS"
14288else
14289 BUILD_CFLAGS=
14290 BUILD_LDFLAGS=
14291fi
14292
14293
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014294test -d lib || mkdir lib
14295test -d include || mkdir include
14296test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000014297test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050014298for i in MCONFIG Makefile e2fsprogs.spec \
14299 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014300 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14301 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014302 lib/uuid/Makefile lib/uuid/uuid_types.h \
14303 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050014304 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14305 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050014306 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014307 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14308 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14309 if test -d `dirname ${srcdir}/$i` ; then
14310 outlist="$outlist $i"
14311 fi
14312done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014313 ac_config_files="$ac_config_files $outlist"
14314cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014315# This file is a shell script that caches the results of configure
14316# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014317# scripts and configure runs, see configure's option --config-cache.
14318# It is not useful on other systems. If it contains results you don't
14319# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014320#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014321# config.status only pays attention to the cache file if you give it
14322# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014323#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014324# `ac_cv_env_foo' variables (set or unset) will be overridden when
14325# loading this file, other *unset* `ac_cv_foo' will be assigned the
14326# following values.
14327
14328_ACEOF
14329
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014330# The following way of writing the cache mishandles newlines in values,
14331# but we know of no workaround that is simple, portable, and efficient.
14332# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014333# Ultrix sh set writes to stderr and can't be redirected directly,
14334# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014335{
14336 (set) 2>&1 |
14337 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14338 *ac_space=\ *)
14339 # `set' does not quote correctly, so add quotes (double-quote
14340 # substitution turns \\\\ into \\, and sed turns \\ into \).
14341 sed -n \
14342 "s/'/'\\\\''/g;
14343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14344 ;;
14345 *)
14346 # `set' quotes correctly as required by POSIX, so do not add quotes.
14347 sed -n \
14348 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14349 ;;
14350 esac;
14351} |
14352 sed '
14353 t clear
14354 : clear
14355 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14356 t end
14357 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14358 : end' >>confcache
14359if diff $cache_file confcache >/dev/null 2>&1; then :; else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014360 if test -w $cache_file; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014361 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14362 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014363 else
14364 echo "not updating unwritable cache $cache_file"
14365 fi
14366fi
14367rm -f confcache
14368
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014369test "x$prefix" = xNONE && prefix=$ac_default_prefix
14370# Let make expand exec_prefix.
14371test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14372
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014373# VPATH may cause trouble with some makes, so we remove $(srcdir),
14374# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14375# trailing colons and then remove the whole line if VPATH becomes empty
14376# (actually we leave an empty line to preserve line numbers).
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014377if test "x$srcdir" = x.; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014378 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14379s/:*\$(srcdir):*/:/;
14380s/:*\${srcdir}:*/:/;
14381s/:*@srcdir@:*/:/;
14382s/^\([^=]*=[ ]*\):*/\1/;
14383s/:*$//;
14384s/^[^=]*=[ ]*$//;
14385}'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014386fi
14387
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014388# Transform confdefs.h into DEFS.
14389# Protect against shell expansion while executing Makefile rules.
14390# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014391#
14392# If the first sed substitution is executed (which looks for macros that
14393# take arguments), then we branch to the quote section. Otherwise,
14394# look for a macro that doesn't take arguments.
14395cat >confdef2opt.sed <<\_ACEOF
14396t clear
14397: clear
14398s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14399t quote
14400s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14401t quote
14402d
14403: quote
14404s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14405s,\[,\\&,g
14406s,\],\\&,g
14407s,\$,$$,g
14408p
14409_ACEOF
14410# We use echo to avoid assuming a particular line-breaking character.
14411# The extra dot is to prevent the shell from consuming trailing
14412# line-breaks from the sub-command output. A line-break within
14413# single-quotes doesn't work because, if this script is created in a
14414# platform that uses two characters for line-breaks (e.g., DOS), tr
14415# would break.
14416ac_LF_and_DOT=`echo; echo .`
14417DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14418rm -f confdef2opt.sed
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014419
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014420
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014421ac_libobjs=
14422ac_ltlibobjs=
14423for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14424 # 1. Remove the extension, and $U if already installed.
14425 ac_i=`echo "$ac_i" |
14426 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14427 # 2. Add them.
14428 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14429 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14430done
14431LIBOBJS=$ac_libobjs
14432
14433LTLIBOBJS=$ac_ltlibobjs
14434
14435
14436
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014437: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014438ac_clean_files_save=$ac_clean_files
14439ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14440{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14441echo "$as_me: creating $CONFIG_STATUS" >&6;}
14442cat >$CONFIG_STATUS <<_ACEOF
14443#! $SHELL
14444# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014445# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014446# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014447# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014448
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014449debug=false
14450ac_cs_recheck=false
14451ac_cs_silent=false
14452SHELL=\${CONFIG_SHELL-$SHELL}
14453_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014455cat >>$CONFIG_STATUS <<\_ACEOF
14456## --------------------- ##
14457## M4sh Initialization. ##
14458## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014459
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460# Be Bourne compatible
14461if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14462 emulate sh
14463 NULLCMD=:
14464 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14465 # is contrary to our usage. Disable this feature.
14466 alias -g '${1+"$@"}'='"$@"'
14467elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14468 set -o posix
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014469fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014470DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014472# Support unset when possible.
14473if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14474 as_unset=unset
14475else
14476 as_unset=false
14477fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014478
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480# Work around bugs in pre-3.0 UWIN ksh.
14481$as_unset ENV MAIL MAILPATH
14482PS1='$ '
14483PS2='> '
14484PS4='+ '
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014486# NLS nuisances.
14487for as_var in \
14488 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14489 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14490 LC_TELEPHONE LC_TIME
14491do
14492 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14493 eval $as_var=C; export $as_var
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014494 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014495 $as_unset $as_var
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014496 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014497done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014499# Required to use basename.
14500if expr a : '\(a\)' >/dev/null 2>&1; then
14501 as_expr=expr
14502else
14503 as_expr=false
14504fi
14505
14506if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14507 as_basename=basename
14508else
14509 as_basename=false
14510fi
14511
14512
14513# Name of the executable.
14514as_me=`$as_basename "$0" ||
14515$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14516 X"$0" : 'X\(//\)$' \| \
14517 X"$0" : 'X\(/\)$' \| \
14518 . : '\(.\)' 2>/dev/null ||
14519echo X/"$0" |
14520 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14521 /^X\/\(\/\/\)$/{ s//\1/; q; }
14522 /^X\/\(\/\).*/{ s//\1/; q; }
14523 s/.*/./; q'`
14524
14525
14526# PATH needs CR, and LINENO needs CR and PATH.
14527# Avoid depending upon Character Ranges.
14528as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14529as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14530as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14531as_cr_digits='0123456789'
14532as_cr_alnum=$as_cr_Letters$as_cr_digits
14533
14534# The user is always right.
14535if test "${PATH_SEPARATOR+set}" != set; then
14536 echo "#! /bin/sh" >conf$$.sh
14537 echo "exit 0" >>conf$$.sh
14538 chmod +x conf$$.sh
14539 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14540 PATH_SEPARATOR=';'
14541 else
14542 PATH_SEPARATOR=:
14543 fi
14544 rm -f conf$$.sh
14545fi
14546
14547
14548 as_lineno_1=$LINENO
14549 as_lineno_2=$LINENO
14550 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14551 test "x$as_lineno_1" != "x$as_lineno_2" &&
14552 test "x$as_lineno_3" = "x$as_lineno_2" || {
14553 # Find who we are. Look in the path if we contain no path at all
14554 # relative or not.
14555 case $0 in
14556 *[\\/]* ) as_myself=$0 ;;
14557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558for as_dir in $PATH
14559do
14560 IFS=$as_save_IFS
14561 test -z "$as_dir" && as_dir=.
14562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14563done
14564
14565 ;;
14566 esac
14567 # We did not find ourselves, most probably we were run as `sh COMMAND'
14568 # in which case we are not to be found in the path.
14569 if test "x$as_myself" = x; then
14570 as_myself=$0
14571 fi
14572 if test ! -f "$as_myself"; then
14573 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14574echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14575 { (exit 1); exit 1; }; }
14576 fi
14577 case $CONFIG_SHELL in
14578 '')
14579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14580for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14581do
14582 IFS=$as_save_IFS
14583 test -z "$as_dir" && as_dir=.
14584 for as_base in sh bash ksh sh5; do
14585 case $as_dir in
14586 /*)
14587 if ("$as_dir/$as_base" -c '
14588 as_lineno_1=$LINENO
14589 as_lineno_2=$LINENO
14590 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14591 test "x$as_lineno_1" != "x$as_lineno_2" &&
14592 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14593 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14594 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14595 CONFIG_SHELL=$as_dir/$as_base
14596 export CONFIG_SHELL
14597 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14598 fi;;
14599 esac
14600 done
14601done
14602;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014603 esac
14604
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14606 # uniformly replaced by the line number. The first 'sed' inserts a
14607 # line-number line before each line; the second 'sed' does the real
14608 # work. The second script uses 'N' to pair each line-number line
14609 # with the numbered line, and appends trailing '-' during
14610 # substitution so that $LINENO is not a special case at line end.
14611 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14612 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14613 sed '=' <$as_myself |
14614 sed '
14615 N
14616 s,$,-,
14617 : loop
14618 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14619 t loop
14620 s,-$,,
14621 s,^['$as_cr_digits']*\n,,
14622 ' >$as_me.lineno &&
14623 chmod +x $as_me.lineno ||
14624 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14625echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14626 { (exit 1); exit 1; }; }
14627
14628 # Don't try to exec as it changes $[0], causing all sort of problems
14629 # (the dirname of $[0] is not the place where we might find the
14630 # original and so on. Autoconf is especially sensible to this).
14631 . ./$as_me.lineno
14632 # Exit status is that of the last command.
14633 exit
14634}
14635
14636
14637case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14638 *c*,-n*) ECHO_N= ECHO_C='
14639' ECHO_T=' ' ;;
14640 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14641 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14642esac
14643
14644if expr a : '\(a\)' >/dev/null 2>&1; then
14645 as_expr=expr
14646else
14647 as_expr=false
14648fi
14649
14650rm -f conf$$ conf$$.exe conf$$.file
14651echo >conf$$.file
14652if ln -s conf$$.file conf$$ 2>/dev/null; then
14653 # We could just check for DJGPP; but this test a) works b) is more generic
14654 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14655 if test -f conf$$.exe; then
14656 # Don't use ln at all; we don't have any links
14657 as_ln_s='cp -p'
14658 else
14659 as_ln_s='ln -s'
14660 fi
14661elif ln conf$$.file conf$$ 2>/dev/null; then
14662 as_ln_s=ln
14663else
14664 as_ln_s='cp -p'
14665fi
14666rm -f conf$$ conf$$.exe conf$$.file
14667
14668if mkdir -p . 2>/dev/null; then
14669 as_mkdir_p=:
14670else
14671 test -d ./-p && rmdir ./-p
14672 as_mkdir_p=false
14673fi
14674
14675as_executable_p="test -f"
14676
14677# Sed expression to map a string onto a valid CPP name.
14678as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14679
14680# Sed expression to map a string onto a valid variable name.
14681as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14682
14683
14684# IFS
14685# We need space, tab and new line, in precisely that order.
14686as_nl='
14687'
14688IFS=" $as_nl"
14689
14690# CDPATH.
14691$as_unset CDPATH
14692
14693exec 6>&1
14694
14695# Open the log real soon, to keep \$[0] and so on meaningful, and to
14696# report actual input values of CONFIG_FILES etc. instead of their
14697# values after options handling. Logging --version etc. is OK.
14698exec 5>>config.log
14699{
14700 echo
14701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14702## Running $as_me. ##
14703_ASBOX
14704} >&5
14705cat >&5 <<_CSEOF
14706
14707This file was extended by $as_me, which was
14708generated by GNU Autoconf 2.59. Invocation command line was
14709
14710 CONFIG_FILES = $CONFIG_FILES
14711 CONFIG_HEADERS = $CONFIG_HEADERS
14712 CONFIG_LINKS = $CONFIG_LINKS
14713 CONFIG_COMMANDS = $CONFIG_COMMANDS
14714 $ $0 $@
14715
14716_CSEOF
14717echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14718echo >&5
14719_ACEOF
14720
14721# Files that config.status was made for.
14722if test -n "$ac_config_files"; then
14723 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14724fi
14725
14726if test -n "$ac_config_headers"; then
14727 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14728fi
14729
14730if test -n "$ac_config_links"; then
14731 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14732fi
14733
14734if test -n "$ac_config_commands"; then
14735 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14736fi
14737
14738cat >>$CONFIG_STATUS <<\_ACEOF
14739
14740ac_cs_usage="\
14741\`$as_me' instantiates files from templates according to the
14742current configuration.
14743
14744Usage: $0 [OPTIONS] [FILE]...
14745
14746 -h, --help print this help, then exit
14747 -V, --version print version number, then exit
14748 -q, --quiet do not print progress messages
14749 -d, --debug don't remove temporary files
14750 --recheck update $as_me by reconfiguring in the same conditions
14751 --file=FILE[:TEMPLATE]
14752 instantiate the configuration file FILE
14753
14754Configuration files:
14755$config_files
14756
14757Configuration commands:
14758$config_commands
14759
14760Report bugs to <bug-autoconf@gnu.org>."
14761_ACEOF
14762
14763cat >>$CONFIG_STATUS <<_ACEOF
14764ac_cs_version="\\
14765config.status
14766configured by $0, generated by GNU Autoconf 2.59,
14767 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14768
14769Copyright (C) 2003 Free Software Foundation, Inc.
14770This config.status script is free software; the Free Software Foundation
14771gives unlimited permission to copy, distribute and modify it."
14772srcdir=$srcdir
14773INSTALL="$INSTALL"
14774_ACEOF
14775
14776cat >>$CONFIG_STATUS <<\_ACEOF
14777# If no file are specified by the user, then we need to provide default
14778# value. By we need to know if files were specified by the user.
14779ac_need_defaults=:
14780while test $# != 0
14781do
14782 case $1 in
14783 --*=*)
14784 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14785 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14786 ac_shift=:
14787 ;;
14788 -*)
14789 ac_option=$1
14790 ac_optarg=$2
14791 ac_shift=shift
14792 ;;
14793 *) # This is not an option, so the user has probably given explicit
14794 # arguments.
14795 ac_option=$1
14796 ac_need_defaults=false;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014797 esac
14798
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014799 case $ac_option in
14800 # Handling of the options.
14801_ACEOF
14802cat >>$CONFIG_STATUS <<\_ACEOF
14803 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14804 ac_cs_recheck=: ;;
14805 --version | --vers* | -V )
14806 echo "$ac_cs_version"; exit 0 ;;
14807 --he | --h)
14808 # Conflict between --help and --header
14809 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14810Try \`$0 --help' for more information." >&5
14811echo "$as_me: error: ambiguous option: $1
14812Try \`$0 --help' for more information." >&2;}
14813 { (exit 1); exit 1; }; };;
14814 --help | --hel | -h )
14815 echo "$ac_cs_usage"; exit 0 ;;
14816 --debug | --d* | -d )
14817 debug=: ;;
14818 --file | --fil | --fi | --f )
14819 $ac_shift
14820 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14821 ac_need_defaults=false;;
14822 --header | --heade | --head | --hea )
14823 $ac_shift
14824 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14825 ac_need_defaults=false;;
14826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14827 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14828 ac_cs_silent=: ;;
14829
14830 # This is an error.
14831 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14832Try \`$0 --help' for more information." >&5
14833echo "$as_me: error: unrecognized option: $1
14834Try \`$0 --help' for more information." >&2;}
14835 { (exit 1); exit 1; }; } ;;
14836
14837 *) ac_config_targets="$ac_config_targets $1" ;;
14838
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014839 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014840 shift
14841done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014842
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014843ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014844
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014845if $ac_cs_silent; then
14846 exec 6>/dev/null
14847 ac_configure_extra_args="$ac_configure_extra_args --silent"
14848fi
14849
14850_ACEOF
14851cat >>$CONFIG_STATUS <<_ACEOF
14852if \$ac_cs_recheck; then
14853 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14854 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14855fi
14856
14857_ACEOF
14858
14859cat >>$CONFIG_STATUS <<_ACEOF
14860#
14861# INIT-COMMANDS section.
14862#
14863
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014864# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014865 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014866 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014867 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014868 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14869 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014870
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014871
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014872_ACEOF
14873
14874
14875
14876cat >>$CONFIG_STATUS <<\_ACEOF
14877for ac_config_target in $ac_config_targets
14878do
14879 case "$ac_config_target" in
14880 # Handling of arguments.
14881 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14882 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14883 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14884echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14885 { (exit 1); exit 1; }; };;
14886 esac
14887done
14888
14889# If the user did not use the arguments to specify the items to instantiate,
14890# then the envvar interface is used. Set only those that are not.
14891# We use the long form for the default assignment because of an extremely
14892# bizarre bug on SunOS 4.1.3.
14893if $ac_need_defaults; then
14894 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14896fi
14897
14898# Have a temporary directory for convenience. Make it in the build tree
14899# simply because there is no reason to put it here, and in addition,
14900# creating and moving files from /tmp can sometimes cause problems.
14901# Create a temporary directory, and hook for its removal unless debugging.
14902$debug ||
14903{
14904 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14905 trap '{ (exit 1); exit 1; }' 1 2 13 15
14906}
14907
14908# Create a (secure) tmp directory for tmp files.
14909
14910{
14911 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14912 test -n "$tmp" && test -d "$tmp"
14913} ||
14914{
14915 tmp=./confstat$$-$RANDOM
14916 (umask 077 && mkdir $tmp)
14917} ||
14918{
14919 echo "$me: cannot create a temporary directory in ." >&2
14920 { (exit 1); exit 1; }
14921}
14922
14923_ACEOF
14924
14925cat >>$CONFIG_STATUS <<_ACEOF
14926
14927#
14928# CONFIG_FILES section.
14929#
14930
14931# No need to generate the scripts if there are no CONFIG_FILES.
14932# This happens for instance when ./config.status config.h
14933if test -n "\$CONFIG_FILES"; then
14934 # Protect against being on the right side of a sed subst in config.status.
14935 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14936 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14937s,@SHELL@,$SHELL,;t t
14938s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14939s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14940s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14941s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14942s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14943s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14944s,@exec_prefix@,$exec_prefix,;t t
14945s,@prefix@,$prefix,;t t
14946s,@program_transform_name@,$program_transform_name,;t t
14947s,@bindir@,$bindir,;t t
14948s,@sbindir@,$sbindir,;t t
14949s,@libexecdir@,$libexecdir,;t t
14950s,@datadir@,$datadir,;t t
14951s,@sysconfdir@,$sysconfdir,;t t
14952s,@sharedstatedir@,$sharedstatedir,;t t
14953s,@localstatedir@,$localstatedir,;t t
14954s,@libdir@,$libdir,;t t
14955s,@includedir@,$includedir,;t t
14956s,@oldincludedir@,$oldincludedir,;t t
14957s,@infodir@,$infodir,;t t
14958s,@mandir@,$mandir,;t t
14959s,@build_alias@,$build_alias,;t t
14960s,@host_alias@,$host_alias,;t t
14961s,@target_alias@,$target_alias,;t t
14962s,@DEFS@,$DEFS,;t t
14963s,@ECHO_C@,$ECHO_C,;t t
14964s,@ECHO_N@,$ECHO_N,;t t
14965s,@ECHO_T@,$ECHO_T,;t t
14966s,@LIBS@,$LIBS,;t t
14967s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14968s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14969s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14970s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14971s,@build@,$build,;t t
14972s,@build_cpu@,$build_cpu,;t t
14973s,@build_vendor@,$build_vendor,;t t
14974s,@build_os@,$build_os,;t t
14975s,@host@,$host,;t t
14976s,@host_cpu@,$host_cpu,;t t
14977s,@host_vendor@,$host_vendor,;t t
14978s,@host_os@,$host_os,;t t
14979s,@CC@,$CC,;t t
14980s,@CFLAGS@,$CFLAGS,;t t
14981s,@LDFLAGS@,$LDFLAGS,;t t
14982s,@CPPFLAGS@,$CPPFLAGS,;t t
14983s,@ac_ct_CC@,$ac_ct_CC,;t t
14984s,@EXEEXT@,$EXEEXT,;t t
14985s,@OBJEXT@,$OBJEXT,;t t
14986s,@LD@,$LD,;t t
14987s,@CPP@,$CPP,;t t
14988s,@EGREP@,$EGREP,;t t
14989s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
Theodore Ts'o98919bd2005-02-04 10:43:58 -050014990s,@MAINTAINER_CMT@,$MAINTAINER_CMT,;t t
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014991s,@HTREE_CMT@,$HTREE_CMT,;t t
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014992s,@ELF_CMT@,$ELF_CMT,;t t
14993s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14994s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14995s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14996s,@LIB_EXT@,$LIB_EXT,;t t
14997s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14998s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14999s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
15000s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
15001s,@IMAGER_CMT@,$IMAGER_CMT,;t t
15002s,@RESIZER_CMT@,$RESIZER_CMT,;t t
15003s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
15004s,@FSCK_PROG@,$FSCK_PROG,;t t
15005s,@FSCK_MAN@,$FSCK_MAN,;t t
15006s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
15007s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
Karel Zak4db2f592006-03-08 14:17:28 -050015008s,@DEVMAPPER_REQ@,$DEVMAPPER_REQ,;t t
15009s,@DEVMAPPER_PC_LIBS@,$DEVMAPPER_PC_LIBS,;t t
15010s,@DEVMAPPER_LIBS@,$DEVMAPPER_LIBS,;t t
15011s,@STATIC_DEVMAPPER_LIBS@,$STATIC_DEVMAPPER_LIBS,;t t
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015012s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
15013s,@PACKAGE@,$PACKAGE,;t t
15014s,@VERSION@,$VERSION,;t t
15015s,@SET_MAKE@,$SET_MAKE,;t t
15016s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15017s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15018s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15019s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15020s,@USE_NLS@,$USE_NLS,;t t
15021s,@MSGFMT@,$MSGFMT,;t t
15022s,@GMSGFMT@,$GMSGFMT,;t t
15023s,@XGETTEXT@,$XGETTEXT,;t t
15024s,@MSGMERGE@,$MSGMERGE,;t t
15025s,@RANLIB@,$RANLIB,;t t
15026s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15027s,@ALLOCA@,$ALLOCA,;t t
15028s,@GLIBC21@,$GLIBC21,;t t
15029s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
15030s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
15031s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
15032s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
15033s,@LIBICONV@,$LIBICONV,;t t
15034s,@LTLIBICONV@,$LTLIBICONV,;t t
15035s,@INTLBISON@,$INTLBISON,;t t
15036s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15037s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15038s,@CATOBJEXT@,$CATOBJEXT,;t t
15039s,@DATADIRNAME@,$DATADIRNAME,;t t
15040s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15041s,@GENCAT@,$GENCAT,;t t
15042s,@INTLOBJS@,$INTLOBJS,;t t
15043s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15044s,@INTLLIBS@,$INTLLIBS,;t t
15045s,@LIBINTL@,$LIBINTL,;t t
15046s,@LTLIBINTL@,$LTLIBINTL,;t t
15047s,@POSUB@,$POSUB,;t t
15048s,@BINARY_TYPE@,$BINARY_TYPE,;t t
15049s,@LN@,$LN,;t t
15050s,@LN_S@,$LN_S,;t t
15051s,@MV@,$MV,;t t
15052s,@CP@,$CP,;t t
15053s,@RM@,$RM,;t t
15054s,@CHMOD@,$CHMOD,;t t
15055s,@AWK@,$AWK,;t t
15056s,@SED@,$SED,;t t
15057s,@PERL@,$PERL,;t t
15058s,@LDCONFIG@,$LDCONFIG,;t t
15059s,@AR@,$AR,;t t
15060s,@ac_ct_AR@,$ac_ct_AR,;t t
15061s,@STRIP@,$STRIP,;t t
15062s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15063s,@BUILD_CC@,$BUILD_CC,;t t
15064s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
15065s,@SIZEOF_INT@,$SIZEOF_INT,;t t
15066s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
15067s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
15068s,@SOCKET_LIB@,$SOCKET_LIB,;t t
15069s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
15070s,@LINUX_CMT@,$LINUX_CMT,;t t
15071s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
15072s,@UNIX_CMT@,$UNIX_CMT,;t t
15073s,@root_prefix@,$root_prefix,;t t
15074s,@root_bindir@,$root_bindir,;t t
15075s,@root_sbindir@,$root_sbindir,;t t
15076s,@root_libdir@,$root_libdir,;t t
15077s,@root_sysconfdir@,$root_sysconfdir,;t t
15078s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
15079s,@SS_DIR@,$SS_DIR,;t t
15080s,@ET_DIR@,$ET_DIR,;t t
15081s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
15082s,@INTL_FLAGS@,$INTL_FLAGS,;t t
Theodore Ts'odd947da2005-11-09 18:37:07 -040015083s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15084s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015085s,@LIBOBJS@,$LIBOBJS,;t t
15086s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15087/@MCONFIG@/r $MCONFIG
15088s,@MCONFIG@,,;t t
15089/@MAKEFILE_ELF@/r $MAKEFILE_ELF
15090s,@MAKEFILE_ELF@,,;t t
15091/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
15092s,@MAKEFILE_BSDLIB@,,;t t
15093/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
15094s,@MAKEFILE_PROFILE@,,;t t
15095/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
15096s,@MAKEFILE_CHECKER@,,;t t
15097/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
15098s,@MAKEFILE_LIBRARY@,,;t t
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015099/@ASM_TYPES_HEADER@/r $ASM_TYPES_HEADER
15100s,@ASM_TYPES_HEADER@,,;t t
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015101CEOF
15102
15103_ACEOF
15104
15105 cat >>$CONFIG_STATUS <<\_ACEOF
15106 # Split the substitutions into bite-sized pieces for seds with
15107 # small command number limits, like on Digital OSF/1 and HP-UX.
15108 ac_max_sed_lines=48
15109 ac_sed_frag=1 # Number of current file.
15110 ac_beg=1 # First line for current file.
15111 ac_end=$ac_max_sed_lines # Line after last line for current file.
15112 ac_more_lines=:
15113 ac_sed_cmds=
15114 while $ac_more_lines; do
15115 if test $ac_beg -gt 1; then
15116 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15117 else
15118 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15119 fi
15120 if test ! -s $tmp/subs.frag; then
15121 ac_more_lines=false
15122 else
15123 # The purpose of the label and of the branching condition is to
15124 # speed up the sed processing (if there are no `@' at all, there
15125 # is no need to browse any of the substitutions).
15126 # These are the two extra sed commands mentioned above.
15127 (echo ':t
15128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15129 if test -z "$ac_sed_cmds"; then
15130 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15131 else
15132 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15133 fi
15134 ac_sed_frag=`expr $ac_sed_frag + 1`
15135 ac_beg=$ac_end
15136 ac_end=`expr $ac_end + $ac_max_sed_lines`
15137 fi
15138 done
15139 if test -z "$ac_sed_cmds"; then
15140 ac_sed_cmds=cat
15141 fi
15142fi # test -n "$CONFIG_FILES"
15143
15144_ACEOF
15145cat >>$CONFIG_STATUS <<\_ACEOF
15146for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15147 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15148 case $ac_file in
15149 - | *:- | *:-:* ) # input from stdin
15150 cat >$tmp/stdin
15151 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15153 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15154 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15155 * ) ac_file_in=$ac_file.in ;;
15156 esac
15157
15158 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15159 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15160$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15161 X"$ac_file" : 'X\(//\)[^/]' \| \
15162 X"$ac_file" : 'X\(//\)$' \| \
15163 X"$ac_file" : 'X\(/\)' \| \
15164 . : '\(.\)' 2>/dev/null ||
15165echo X"$ac_file" |
15166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15168 /^X\(\/\/\)$/{ s//\1/; q; }
15169 /^X\(\/\).*/{ s//\1/; q; }
15170 s/.*/./; q'`
15171 { if $as_mkdir_p; then
15172 mkdir -p "$ac_dir"
15173 else
15174 as_dir="$ac_dir"
15175 as_dirs=
15176 while test ! -d "$as_dir"; do
15177 as_dirs="$as_dir $as_dirs"
15178 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15179$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15180 X"$as_dir" : 'X\(//\)[^/]' \| \
15181 X"$as_dir" : 'X\(//\)$' \| \
15182 X"$as_dir" : 'X\(/\)' \| \
15183 . : '\(.\)' 2>/dev/null ||
15184echo X"$as_dir" |
15185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15187 /^X\(\/\/\)$/{ s//\1/; q; }
15188 /^X\(\/\).*/{ s//\1/; q; }
15189 s/.*/./; q'`
15190 done
15191 test ! -n "$as_dirs" || mkdir $as_dirs
15192 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15193echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15194 { (exit 1); exit 1; }; }; }
15195
15196 ac_builddir=.
15197
15198if test "$ac_dir" != .; then
15199 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15200 # A "../" for each directory in $ac_dir_suffix.
15201 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15202else
15203 ac_dir_suffix= ac_top_builddir=
15204fi
15205
15206case $srcdir in
15207 .) # No --srcdir option. We are building in place.
15208 ac_srcdir=.
15209 if test -z "$ac_top_builddir"; then
15210 ac_top_srcdir=.
15211 else
15212 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15213 fi ;;
15214 [\\/]* | ?:[\\/]* ) # Absolute path.
15215 ac_srcdir=$srcdir$ac_dir_suffix;
15216 ac_top_srcdir=$srcdir ;;
15217 *) # Relative path.
15218 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15219 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15220esac
15221
15222# Do not use `cd foo && pwd` to compute absolute paths, because
15223# the directories may not exist.
15224case `pwd` in
15225.) ac_abs_builddir="$ac_dir";;
15226*)
15227 case "$ac_dir" in
15228 .) ac_abs_builddir=`pwd`;;
15229 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15230 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15231 esac;;
15232esac
15233case $ac_abs_builddir in
15234.) ac_abs_top_builddir=${ac_top_builddir}.;;
15235*)
15236 case ${ac_top_builddir}. in
15237 .) ac_abs_top_builddir=$ac_abs_builddir;;
15238 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15239 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15240 esac;;
15241esac
15242case $ac_abs_builddir in
15243.) ac_abs_srcdir=$ac_srcdir;;
15244*)
15245 case $ac_srcdir in
15246 .) ac_abs_srcdir=$ac_abs_builddir;;
15247 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15248 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15249 esac;;
15250esac
15251case $ac_abs_builddir in
15252.) ac_abs_top_srcdir=$ac_top_srcdir;;
15253*)
15254 case $ac_top_srcdir in
15255 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15256 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15257 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15258 esac;;
15259esac
15260
15261
15262 case $INSTALL in
15263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15264 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15265 esac
15266
15267 # Let's still pretend it is `configure' which instantiates (i.e., don't
15268 # use $as_me), people would be surprised to read:
15269 # /* config.h. Generated by config.status. */
15270 if test x"$ac_file" = x-; then
15271 configure_input=
15272 else
15273 configure_input="$ac_file. "
15274 fi
15275 configure_input=$configure_input"Generated from `echo $ac_file_in |
15276 sed 's,.*/,,'` by configure."
15277
15278 # First look for the input files in the build tree, otherwise in the
15279 # src tree.
15280 ac_file_inputs=`IFS=:
15281 for f in $ac_file_in; do
15282 case $f in
15283 -) echo $tmp/stdin ;;
15284 [\\/$]*)
15285 # Absolute (can't be DOS-style, as IFS=:)
15286 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15287echo "$as_me: error: cannot find input file: $f" >&2;}
15288 { (exit 1); exit 1; }; }
15289 echo "$f";;
15290 *) # Relative
15291 if test -f "$f"; then
15292 # Build tree
15293 echo "$f"
15294 elif test -f "$srcdir/$f"; then
15295 # Source tree
15296 echo "$srcdir/$f"
15297 else
15298 # /dev/null tree
15299 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15300echo "$as_me: error: cannot find input file: $f" >&2;}
15301 { (exit 1); exit 1; }; }
15302 fi;;
15303 esac
15304 done` || { (exit 1); exit 1; }
15305
15306 if test x"$ac_file" != x-; then
15307 { echo "$as_me:$LINENO: creating $ac_file" >&5
15308echo "$as_me: creating $ac_file" >&6;}
15309 rm -f "$ac_file"
15310 fi
15311_ACEOF
15312cat >>$CONFIG_STATUS <<_ACEOF
15313 sed "$ac_vpsub
15314$extrasub
15315_ACEOF
15316cat >>$CONFIG_STATUS <<\_ACEOF
15317:t
15318/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15319s,@configure_input@,$configure_input,;t t
15320s,@srcdir@,$ac_srcdir,;t t
15321s,@abs_srcdir@,$ac_abs_srcdir,;t t
15322s,@top_srcdir@,$ac_top_srcdir,;t t
15323s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15324s,@builddir@,$ac_builddir,;t t
15325s,@abs_builddir@,$ac_abs_builddir,;t t
15326s,@top_builddir@,$ac_top_builddir,;t t
15327s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15328s,@INSTALL@,$ac_INSTALL,;t t
15329" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15330 rm -f $tmp/stdin
15331 if test x"$ac_file" != x-; then
15332 mv $tmp/out $ac_file
15333 else
15334 cat $tmp/out
15335 rm -f $tmp/out
15336 fi
15337
15338done
15339_ACEOF
15340cat >>$CONFIG_STATUS <<\_ACEOF
15341
15342#
15343# CONFIG_COMMANDS section.
15344#
15345for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15346 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15347 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15348 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15349$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15350 X"$ac_dest" : 'X\(//\)[^/]' \| \
15351 X"$ac_dest" : 'X\(//\)$' \| \
15352 X"$ac_dest" : 'X\(/\)' \| \
15353 . : '\(.\)' 2>/dev/null ||
15354echo X"$ac_dest" |
15355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15357 /^X\(\/\/\)$/{ s//\1/; q; }
15358 /^X\(\/\).*/{ s//\1/; q; }
15359 s/.*/./; q'`
15360 { if $as_mkdir_p; then
15361 mkdir -p "$ac_dir"
15362 else
15363 as_dir="$ac_dir"
15364 as_dirs=
15365 while test ! -d "$as_dir"; do
15366 as_dirs="$as_dir $as_dirs"
15367 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15368$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15369 X"$as_dir" : 'X\(//\)[^/]' \| \
15370 X"$as_dir" : 'X\(//\)$' \| \
15371 X"$as_dir" : 'X\(/\)' \| \
15372 . : '\(.\)' 2>/dev/null ||
15373echo X"$as_dir" |
15374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15376 /^X\(\/\/\)$/{ s//\1/; q; }
15377 /^X\(\/\).*/{ s//\1/; q; }
15378 s/.*/./; q'`
15379 done
15380 test ! -n "$as_dirs" || mkdir $as_dirs
15381 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15382echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15383 { (exit 1); exit 1; }; }; }
15384
15385 ac_builddir=.
15386
15387if test "$ac_dir" != .; then
15388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15389 # A "../" for each directory in $ac_dir_suffix.
15390 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15391else
15392 ac_dir_suffix= ac_top_builddir=
15393fi
15394
15395case $srcdir in
15396 .) # No --srcdir option. We are building in place.
15397 ac_srcdir=.
15398 if test -z "$ac_top_builddir"; then
15399 ac_top_srcdir=.
15400 else
15401 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15402 fi ;;
15403 [\\/]* | ?:[\\/]* ) # Absolute path.
15404 ac_srcdir=$srcdir$ac_dir_suffix;
15405 ac_top_srcdir=$srcdir ;;
15406 *) # Relative path.
15407 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15408 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15409esac
15410
15411# Do not use `cd foo && pwd` to compute absolute paths, because
15412# the directories may not exist.
15413case `pwd` in
15414.) ac_abs_builddir="$ac_dir";;
15415*)
15416 case "$ac_dir" in
15417 .) ac_abs_builddir=`pwd`;;
15418 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15419 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15420 esac;;
15421esac
15422case $ac_abs_builddir in
15423.) ac_abs_top_builddir=${ac_top_builddir}.;;
15424*)
15425 case ${ac_top_builddir}. in
15426 .) ac_abs_top_builddir=$ac_abs_builddir;;
15427 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15428 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15429 esac;;
15430esac
15431case $ac_abs_builddir in
15432.) ac_abs_srcdir=$ac_srcdir;;
15433*)
15434 case $ac_srcdir in
15435 .) ac_abs_srcdir=$ac_abs_builddir;;
15436 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15437 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15438 esac;;
15439esac
15440case $ac_abs_builddir in
15441.) ac_abs_top_srcdir=$ac_top_srcdir;;
15442*)
15443 case $ac_top_srcdir in
15444 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15445 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15446 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15447 esac;;
15448esac
15449
15450
15451 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15452echo "$as_me: executing $ac_dest commands" >&6;}
15453 case $ac_dest in
15454 default-1 )
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015455 for ac_file in $CONFIG_FILES; do
15456 # Support "outfile[:infile[:infile...]]"
15457 case "$ac_file" in
15458 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015459 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015460 # PO directories have a Makefile.in generated from Makefile.in.in.
15461 case "$ac_file" in */Makefile.in)
15462 # Adjust a relative srcdir.
15463 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15464 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15465 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15466 # In autoconf-2.13 it is called $ac_given_srcdir.
15467 # In autoconf-2.50 it is called $srcdir.
15468 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15469 case "$ac_given_srcdir" in
15470 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15471 /*) top_srcdir="$ac_given_srcdir" ;;
15472 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15473 esac
15474 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15475 rm -f "$ac_dir/POTFILES"
15476 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15477 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 -050015478 POMAKEFILEDEPS="POTFILES.in"
15479 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015480 # on $ac_dir but don't depend on user-specified configuration
15481 # parameters.
15482 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15483 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015484 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015485 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15486 fi
15487 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15488 # Hide the ALL_LINGUAS assigment from automake.
15489 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015490 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15491 else
15492 # The set of available languages was given in configure.in.
15493 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015494 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015495 # Compute POFILES
15496 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15497 # Compute UPDATEPOFILES
15498 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15499 # Compute DUMMYPOFILES
15500 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15501 # Compute GMOFILES
15502 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015503 case "$ac_given_srcdir" in
15504 .) srcdirpre= ;;
15505 *) srcdirpre='$(srcdir)/' ;;
15506 esac
15507 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015508 UPDATEPOFILES=
15509 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015510 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015511 for lang in $ALL_LINGUAS; do
15512 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015513 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15514 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015515 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015516 done
15517 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15518 # environment variable.
15519 INST_LINGUAS=
15520 if test -n "$ALL_LINGUAS"; then
15521 for presentlang in $ALL_LINGUAS; do
15522 useit=no
15523 if test "%UNSET%" != "$LINGUAS"; then
15524 desiredlanguages="$LINGUAS"
15525 else
15526 desiredlanguages="$ALL_LINGUAS"
15527 fi
15528 for desiredlang in $desiredlanguages; do
15529 # Use the presentlang catalog if desiredlang is
15530 # a. equal to presentlang, or
15531 # b. a variant of presentlang (because in this case,
15532 # presentlang can be used as a fallback for messages
15533 # which are not translated in the desiredlang catalog).
15534 case "$desiredlang" in
15535 "$presentlang"*) useit=yes;;
15536 esac
15537 done
15538 if test $useit = yes; then
15539 INST_LINGUAS="$INST_LINGUAS $presentlang"
15540 fi
15541 done
15542 fi
15543 CATALOGS=
15544 if test -n "$INST_LINGUAS"; then
15545 for lang in $INST_LINGUAS; do
15546 CATALOGS="$CATALOGS $lang.gmo"
15547 done
15548 fi
15549 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015550 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 -040015551 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15552 if test -f "$f"; then
15553 case "$f" in
15554 *.orig | *.bak | *~) ;;
15555 *) cat "$f" >> "$ac_dir/Makefile" ;;
15556 esac
15557 fi
15558 done
15559 fi
15560 ;;
15561 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015562 done ;;
15563 esac
15564done
15565_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015567cat >>$CONFIG_STATUS <<\_ACEOF
15568
15569{ (exit 0); exit 0; }
15570_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015571chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015572ac_clean_files=$ac_clean_files_save
15573
15574
15575# configure is writing to config.log, and then calls config.status.
15576# config.status does its own redirection, appending to config.log.
15577# Unfortunately, on DOS this fails, as config.log is still kept open
15578# by configure, so config.status won't be able to write to it; its
15579# output is simply discarded. So we exec the FD to /dev/null,
15580# effectively closing config.log, so it can be properly (re)opened and
15581# appended to by config.status. When coming back to configure, we
15582# need to make the FD available again.
15583if test "$no_create" != yes; then
15584 ac_cs_success=:
15585 ac_config_status_args=
15586 test "$silent" = yes &&
15587 ac_config_status_args="$ac_config_status_args --quiet"
15588 exec 5>/dev/null
15589 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15590 exec 5>>config.log
15591 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15592 # would make configure fail if this is the last instruction.
15593 $ac_cs_success || { (exit 1); exit 1; }
15594fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015595
Theodore Ts'oee683a12005-02-05 15:53:56 -050015596if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
15597