blob: bcee8eda01a1a93a3d8a343caaba1768dfaffa76 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003# Generated by GNU Autoconf 2.59.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005# Copyright (C) 2003 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000254ac_default_prefix=/usr/local
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="version.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS E2FSPROGS_YEAR E2FSPROGS_MONTH E2FSPROGS_DAY E2FSPROGS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD CPP EGREP LINUX_INCLUDE HTREE_CMT HTREE_CLR_CMT ELF_CMT BSDLIB_CMT PROFILE_CMT CHECKER_CMT LIB_EXT STATIC_LIB_EXT PROFILED_LIB_EXT SWAPFS_CMT DEBUGFS_CMT IMAGER_CMT RESIZER_CMT E2FSCK_TYPE FSCK_PROG FSCK_MAN E2INITRD_PROG E2INITRD_MAN GETTEXT_PACKAGE PACKAGE VERSION SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB BINARY_TYPE LN LN_S MV CP RM CHMOD AWK SED PERL LDCONFIG AR ac_ct_AR STRIP ac_ct_STRIP BUILD_CC SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG SOCKET_LIB DLOPEN_LIB LINUX_CMT CYGWIN_CMT UNIX_CMT root_prefix root_bindir root_sbindir root_libdir root_sysconfdir LDFLAG_STATIC SS_DIR ET_DIR DO_TEST_SUITE INTL_FLAGS LIBOBJS LTLIBOBJS'
313ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000314
315# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500316ac_init_help=
317ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000318# The variables have the same names as the options, with
319# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500320cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000321exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000322no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000331verbose=
332x_includes=NONE
333x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000352
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000353ac_prev=
354for ac_option
355do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500367 case $ac_option in
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000368
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500372 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000373
374 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500375 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500377 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000388
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500393 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000394
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000395 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000397 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000403
404 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000406 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000413 *) ac_optarg=yes ;;
414 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500415 eval "enable_$ac_feature='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500424 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000436
437 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500438 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000439 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500440 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000441
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500457 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500464 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500473 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500478 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000479
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500499 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000500
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500504 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500518 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500535 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500545 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500556 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000557
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500561 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000567
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500573 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000574
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000575 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500578 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000585
586 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000588 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000592 ac_package=`echo $ac_package| sed 's/-/_/g'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000595 *) ac_optarg=yes ;;
596 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500597 eval "with_$ac_package='$ac_optarg'" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000598
599 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000601 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500624 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000625
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000629 ;;
630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000641 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000656fi
657
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000660do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000666 esac
667done
668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000680
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000732 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000735 fi
736fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000773
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-compression enable EXPERIMENTAL compression support
848 --enable-htree enable EXPERIMENTAL htree directory support
849 --enable-htree-clear clear htree because we don't trust e2fsck
850 --enable-elf-shlibs select ELF shared libraries
851 --enable-bsd-shlibs select BSD shared libraries
852 --enable-profile build profiling libraries
853 --enable-checker build checker libraries
854 --enable-jbd-debug enable journal debugging
855 --enable-blkid-debug enable blkid debugging
856 --enable-testio-debug enable the use of the test I/O manager for debugging
857 --disable-swapfs disable support of legacy byte-swapped filesystems
858 --disable-debugfs disable support of debugfs program
859 --disable-imager disable support of e2image program
860 --disable-resizer disable support of e2resize program
861 --enable-dynamic-e2fsck build e2fsck dynamically
862 --enable-fsck build fsck wrapper program
863 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500864 --disable-nls do not use Native Language Support
865 --disable-rpath do not hardcode runtime library paths
866
867Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-diet-libc Use diet libc
871 --with-cc=COMPILER select compiler to use
872 --with-linker=LINKER select linker to use
873 --with-ccopts=CCOPTS select compiler command line options
874 --with-ldopts=LDOPTS select linker command line options
875 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
876 --with-gnu-ld assume the C compiler uses GNU ld default=no
877 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
878 --without-libiconv-prefix don't search for libiconv in includedir and libdir
879 --with-included-gettext use the GNU gettext library included here
880 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
881 --without-libintl-prefix don't search for libintl in includedir and libdir
882
883Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
890 CPP C preprocessor
891
892Use these variables to override the choices made by `configure' or to help
893it to find libraries and programs with nonstandard names/locations.
894
895_ACEOF
896fi
897
898if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
900 ac_popdir=`pwd`
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
903 ac_builddir=.
904
905if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909else
910 ac_dir_suffix= ac_top_builddir=
911fi
912
913case $srcdir in
914 .) # No --srcdir option. We are building in place.
915 ac_srcdir=.
916 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=.
918 else
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 fi ;;
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
924 *) # Relative path.
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927esac
928
929# Do not use `cd foo && pwd` to compute absolute paths, because
930# the directories may not exist.
931case `pwd` in
932.) ac_abs_builddir="$ac_dir";;
933*)
934 case "$ac_dir" in
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_top_builddir=${ac_top_builddir}.;;
942*)
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_srcdir=$ac_srcdir;;
951*)
952 case $ac_srcdir in
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 esac;;
957esac
958case $ac_abs_builddir in
959.) ac_abs_top_srcdir=$ac_top_srcdir;;
960*)
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 esac;;
966esac
967
968 cd $ac_dir
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
971 echo
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
974 echo
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
978 echo
979 $ac_configure --help
980 else
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 fi
983 cd "$ac_popdir"
984 done
985fi
986
987test -n "$ac_init_help" && exit 0
988if $ac_init_version; then
989 cat <<\_ACEOF
990
991Copyright (C) 2003 Free Software Foundation, Inc.
992This configure script is free software; the Free Software Foundation
993gives unlimited permission to copy, distribute and modify it.
994_ACEOF
995 exit 0
996fi
997exec 5>config.log
998cat >&5 <<_ACEOF
999This file contains any messages produced by compilers while
1000running configure, to aid debugging if configure makes a mistake.
1001
1002It was created by $as_me, which was
1003generated by GNU Autoconf 2.59. Invocation command line was
1004
1005 $ $0 $@
1006
1007_ACEOF
1008{
1009cat <<_ASUNAME
1010## --------- ##
1011## Platform. ##
1012## --------- ##
1013
1014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022
1023/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030
1031_ASUNAME
1032
1033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034for as_dir in $PATH
1035do
1036 IFS=$as_save_IFS
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1039done
1040
1041} >&5
1042
1043cat >&5 <<_ACEOF
1044
1045
1046## ----------- ##
1047## Core tests. ##
1048## ----------- ##
1049
1050_ACEOF
1051
1052
1053# Keep a trace of the command line.
1054# Strip out --no-create and --no-recursion so they do not pile up.
1055# Strip out --silent because we don't want to record it for future runs.
1056# Also quote any args containing shell meta-characters.
1057# Make two passes to allow for proper duplicate-argument suppression.
1058ac_configure_args=
1059ac_configure_args0=
1060ac_configure_args1=
1061ac_sep=
1062ac_must_keep_next=false
1063for ac_pass in 1 2
1064do
1065 for ac_arg
1066 do
1067 case $ac_arg in
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 continue ;;
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 esac
1075 case $ac_pass in
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 2)
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1081 else
1082 case $ac_arg in
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 esac
1090 ;;
1091 -* ) ac_must_keep_next=true ;;
1092 esac
1093 fi
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1096 ac_sep=" "
1097 ;;
1098 esac
1099 done
1100done
1101$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104# When interrupted or exit'd, cleanup temporary files, and complete
1105# config.log. We remove comments because anyway the quotes in there
1106# would cause problems or look ugly.
1107# WARNING: Be sure not to use single quotes in there, as some shells,
1108# such as our DU 5.0 friend, will then `close' the trap.
1109trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1111 {
1112 echo
1113
1114 cat <<\_ASBOX
1115## ---------------- ##
1116## Cache variables. ##
1117## ---------------- ##
1118_ASBOX
1119 echo
1120 # The following way of writing the cache mishandles newlines in values,
1121{
1122 (set) 2>&1 |
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 *ac_space=\ *)
1125 sed -n \
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 ;;
1129 *)
1130 sed -n \
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ;;
1133 esac;
1134}
1135 echo
1136
1137 cat <<\_ASBOX
1138## ----------------- ##
1139## Output variables. ##
1140## ----------------- ##
1141_ASBOX
1142 echo
1143 for ac_var in $ac_subst_vars
1144 do
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1149
1150 if test -n "$ac_subst_files"; then
1151 cat <<\_ASBOX
1152## ------------- ##
1153## Output files. ##
1154## ------------- ##
1155_ASBOX
1156 echo
1157 for ac_var in $ac_subst_files
1158 do
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1163 fi
1164
1165 if test -s confdefs.h; then
1166 cat <<\_ASBOX
1167## ----------- ##
1168## confdefs.h. ##
1169## ----------- ##
1170_ASBOX
1171 echo
1172 sed "/^$/d" confdefs.h | sort
1173 echo
1174 fi
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1178 } >&5
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 exit $exit_status
1182 ' 0
1183for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185done
1186ac_signal=0
1187
1188# confdefs.h avoids OS command line length limits that DEFS can exceed.
1189rm -rf conftest* confdefs.h
1190# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191echo >confdefs.h
1192
1193# Predefined preprocessor variables.
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_NAME "$PACKAGE_NAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_VERSION "$PACKAGE_VERSION"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_STRING "$PACKAGE_STRING"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217_ACEOF
1218
1219
1220# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001221# Prefer explicitly selected file to automatically selected ones.
1222if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 else
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 fi
1228fi
1229for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234 . "$ac_site_file"
1235 fi
1236done
1237
1238if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243echo "$as_me: loading cache $cache_file" >&6;}
1244 case $cache_file in
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1247 esac
1248 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251echo "$as_me: creating cache $cache_file" >&6;}
1252 >$cache_file
1253fi
1254
1255# Check that the precious variables saved in the cache have kept the same
1256# value.
1257ac_cache_corrupted=false
1258for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1265 set,)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,set)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,);;
1274 *)
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1283 fi;;
1284 esac
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1287 case $ac_new_val in
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1291 esac
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 esac
1296 fi
1297done
1298if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001304fi
1305
1306ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001307ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331ac_aux_dir=
1332for ac_dir in config $srcdir/config; do
1333 if test -f $ac_dir/install-sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1336 break
1337 elif test -f $ac_dir/install.sh; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1340 break
1341 elif test -f $ac_dir/shtool; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1344 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001345 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001346done
1347if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1349echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1350 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001351fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001352ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001355
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001356MCONFIG=./MCONFIG
1357
Theodore Ts'o74becf31997-04-26 14:37:06 +00001358BINARY_TYPE=bin
1359E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1360 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1361DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1362 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001363E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001364MONTH=`echo $DATE | awk -F- '{print $2}'`
1365YEAR=`echo $DATE | awk -F- '{print $3}'`
1366
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001367if expr $YEAR ">" 1900 > /dev/null ; then
1368 E2FSPROGS_YEAR=$YEAR
1369elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001370 E2FSPROGS_YEAR=19$YEAR
1371else
1372 E2FSPROGS_YEAR=20$YEAR
1373fi
1374
1375case $MONTH in
1376Jan) E2FSPROGS_MONTH="January" ;;
1377Feb) E2FSPROGS_MONTH="February" ;;
1378Mar) E2FSPROGS_MONTH="March" ;;
1379Apr) E2FSPROGS_MONTH="April" ;;
1380May) E2FSPROGS_MONTH="May" ;;
1381Jun) E2FSPROGS_MONTH="June" ;;
1382Jul) E2FSPROGS_MONTH="July" ;;
1383Aug) E2FSPROGS_MONTH="August" ;;
1384Sep) E2FSPROGS_MONTH="September" ;;
1385Oct) E2FSPROGS_MONTH="October" ;;
1386Nov) E2FSPROGS_MONTH="November" ;;
1387Dec) E2FSPROGS_MONTH="December" ;;
1388*) echo "Unknown month $MONTH??" ;;
1389esac
1390
1391unset DATE MONTH YEAR
1392echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1393echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1394
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001395
1396
1397
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001398# Make sure we can run config.sub.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001399$ac_config_sub sun4 >/dev/null 2>&1 ||
1400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
1403
1404echo "$as_me:$LINENO: checking build system type" >&5
1405echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 ac_cv_build_alias=$build_alias
1410test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412test -z "$ac_cv_build_alias" &&
1413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1420
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001421fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001422echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423echo "${ECHO_T}$ac_cv_build" >&6
1424build=$ac_cv_build
1425build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001428
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001430echo "$as_me:$LINENO: checking host system type" >&5
1431echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434else
1435 ac_cv_host_alias=$host_alias
1436test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001442
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001443fi
1444echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445echo "${ECHO_T}$ac_cv_host" >&6
1446host=$ac_cv_host
1447host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1451
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001452
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001453# Check whether --with-diet-libc or --without-diet-libc was given.
1454if test "${with_diet_libc+set}" = set; then
1455 withval="$with_diet_libc"
1456 CC="diet cc -nostdinc"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457echo "$as_me:$LINENO: result: CC=$CC" >&5
1458echo "${ECHO_T}CC=$CC" >&6
1459fi;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001460# Check whether --with-cc or --without-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001461if test "${with_cc+set}" = set; then
1462 withval="$with_cc"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001463 echo "$as_me:$LINENO: result: CC=$withval" >&5
1464echo "${ECHO_T}CC=$withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00001465CC=$withval
1466else
1467 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001468echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1469echo "${ECHO_T}CC defaults to $CC" >&6
1470fi; export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00001471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472ac_ext=c
1473ac_cpp='$CPP $CPPFLAGS'
1474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477if test -n "$ac_tool_prefix"; then
1478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480echo "$as_me:$LINENO: checking for $ac_word" >&5
1481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001484else
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1487else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499done
1500done
1501
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001502fi
1503fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001504CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001505if test -n "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001506 echo "$as_me:$LINENO: result: $CC" >&5
1507echo "${ECHO_T}$CC" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001508else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001509 echo "$as_me:$LINENO: result: no" >&5
1510echo "${ECHO_T}no" >&6
1511fi
1512
1513fi
1514if test -z "$ac_cv_prog_CC"; then
1515 ac_ct_CC=$CC
1516 # Extract the first word of "gcc", so it can be a program name with args.
1517set dummy gcc; ac_word=$2
1518echo "$as_me:$LINENO: checking for $ac_word" >&5
1519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525else
1526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527for as_dir in $PATH
1528do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_ac_ct_CC="gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537done
1538done
1539
1540fi
1541fi
1542ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543if test -n "$ac_ct_CC"; then
1544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545echo "${ECHO_T}$ac_ct_CC" >&6
1546else
1547 echo "$as_me:$LINENO: result: no" >&5
1548echo "${ECHO_T}no" >&6
1549fi
1550
1551 CC=$ac_ct_CC
1552else
1553 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001554fi
1555
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001556if test -z "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001557 if test -n "$ac_tool_prefix"; then
1558 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559set dummy ${ac_tool_prefix}cc; ac_word=$2
1560echo "$as_me:$LINENO: checking for $ac_word" >&5
1561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562if test "${ac_cv_prog_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001564else
1565 if test -n "$CC"; then
1566 ac_cv_prog_CC="$CC" # Let the user override the test.
1567else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_CC="${ac_tool_prefix}cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1578 fi
1579done
1580done
1581
1582fi
1583fi
1584CC=$ac_cv_prog_CC
1585if test -n "$CC"; then
1586 echo "$as_me:$LINENO: result: $CC" >&5
1587echo "${ECHO_T}$CC" >&6
1588else
1589 echo "$as_me:$LINENO: result: no" >&5
1590echo "${ECHO_T}no" >&6
1591fi
1592
1593fi
1594if test -z "$ac_cv_prog_CC"; then
1595 ac_ct_CC=$CC
1596 # Extract the first word of "cc", so it can be a program name with args.
1597set dummy cc; ac_word=$2
1598echo "$as_me:$LINENO: checking for $ac_word" >&5
1599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 if test -n "$ac_ct_CC"; then
1604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605else
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_ac_ct_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1616 fi
1617done
1618done
1619
1620fi
1621fi
1622ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623if test -n "$ac_ct_CC"; then
1624 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625echo "${ECHO_T}$ac_ct_CC" >&6
1626else
1627 echo "$as_me:$LINENO: result: no" >&5
1628echo "${ECHO_T}no" >&6
1629fi
1630
1631 CC=$ac_ct_CC
1632else
1633 CC="$ac_cv_prog_CC"
1634fi
1635
1636fi
1637if test -z "$CC"; then
1638 # Extract the first word of "cc", so it can be a program name with args.
1639set dummy cc; ac_word=$2
1640echo "$as_me:$LINENO: checking for $ac_word" >&5
1641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642if test "${ac_cv_prog_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645 if test -n "$CC"; then
1646 ac_cv_prog_CC="$CC" # Let the user override the test.
1647else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001648 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650for as_dir in $PATH
1651do
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657 ac_prog_rejected=yes
1658 continue
1659 fi
1660 ac_cv_prog_CC="cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1663 fi
1664done
1665done
1666
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001667if test $ac_prog_rejected = yes; then
1668 # We found a bogon in the path, so make sure we never use it.
1669 set dummy $ac_cv_prog_CC
1670 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001671 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001672 # We chose a different compiler from the bogus one.
1673 # However, it has the same basename, so the bogon will be chosen
1674 # first if we set CC to just the basename; use the full file name.
1675 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001677 fi
1678fi
1679fi
1680fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001681CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001682if test -n "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001683 echo "$as_me:$LINENO: result: $CC" >&5
1684echo "${ECHO_T}$CC" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001685else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001686 echo "$as_me:$LINENO: result: no" >&5
1687echo "${ECHO_T}no" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001688fi
1689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001690fi
1691if test -z "$CC"; then
1692 if test -n "$ac_tool_prefix"; then
1693 for ac_prog in cl
1694 do
1695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001701else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001719fi
1720fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001721CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001722if test -n "$CC"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001723 echo "$as_me:$LINENO: result: $CC" >&5
1724echo "${ECHO_T}$CC" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001725else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001728fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001729
1730 test -n "$CC" && break
1731 done
1732fi
1733if test -z "$CC"; then
1734 ac_ct_CC=$CC
1735 for ac_prog in cl
1736do
1737 # Extract the first word of "$ac_prog", so it can be a program name with args.
1738set dummy $ac_prog; ac_word=$2
1739echo "$as_me:$LINENO: checking for $ac_word" >&5
1740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743else
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746else
1747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748for as_dir in $PATH
1749do
1750 IFS=$as_save_IFS
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_ac_ct_CC="$ac_prog"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00001757 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001758done
1759done
1760
1761fi
1762fi
1763ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764if test -n "$ac_ct_CC"; then
1765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766echo "${ECHO_T}$ac_ct_CC" >&6
1767else
1768 echo "$as_me:$LINENO: result: no" >&5
1769echo "${ECHO_T}no" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001770fi
1771
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001772 test -n "$ac_ct_CC" && break
1773done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001774
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001775 CC=$ac_ct_CC
1776fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001778fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001779
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001781test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782See \`config.log' for more details." >&5
1783echo "$as_me: error: no acceptable C compiler found in \$PATH
1784See \`config.log' for more details." >&2;}
1785 { (exit 1); exit 1; }; }
1786
1787# Provide some information about the compiler.
1788echo "$as_me:$LINENO:" \
1789 "checking for C compiler version" >&5
1790ac_compiler=`set X $ac_compile; echo $2`
1791{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792 (eval $ac_compiler --version </dev/null >&5) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797 (eval $ac_compiler -v </dev/null >&5) 2>&5
1798 ac_status=$?
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1801{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802 (eval $ac_compiler -V </dev/null >&5) 2>&5
1803 ac_status=$?
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1806
1807cat >conftest.$ac_ext <<_ACEOF
1808/* confdefs.h. */
1809_ACEOF
1810cat confdefs.h >>conftest.$ac_ext
1811cat >>conftest.$ac_ext <<_ACEOF
1812/* end confdefs.h. */
1813
1814int
1815main ()
1816{
1817
1818 ;
1819 return 0;
1820}
1821_ACEOF
1822ac_clean_files_save=$ac_clean_files
1823ac_clean_files="$ac_clean_files a.out a.exe b.out"
1824# Try to create an executable without -o first, disregard a.out.
1825# It will help us diagnose broken compilers, and finding out an intuition
1826# of exeext.
1827echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1828echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1829ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1830if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1831 (eval $ac_link_default) 2>&5
1832 ac_status=$?
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; then
1835 # Find the output, starting from the most likely. This scheme is
1836# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1837# resort.
1838
1839# Be careful to initialize this variable, since it used to be cached.
1840# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1841ac_cv_exeext=
1842# b.out is created by i960 compilers.
1843for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1844do
1845 test -f "$ac_file" || continue
1846 case $ac_file in
1847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1848 ;;
1849 conftest.$ac_ext )
1850 # This is the source file.
1851 ;;
1852 [ab].out )
1853 # We found the default executable, but exeext='' is most
1854 # certainly right.
1855 break;;
1856 *.* )
1857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1858 # FIXME: I believe we export ac_cv_exeext for Libtool,
1859 # but it would be cool to find out if it's true. Does anybody
1860 # maintain Libtool? --akim.
1861 export ac_cv_exeext
1862 break;;
1863 * )
1864 break;;
1865 esac
1866done
1867else
1868 echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1872See \`config.log' for more details." >&5
1873echo "$as_me: error: C compiler cannot create executables
1874See \`config.log' for more details." >&2;}
1875 { (exit 77); exit 77; }; }
1876fi
1877
1878ac_exeext=$ac_cv_exeext
1879echo "$as_me:$LINENO: result: $ac_file" >&5
1880echo "${ECHO_T}$ac_file" >&6
1881
1882# Check the compiler produces executables we can run. If not, either
1883# the compiler is broken, or we cross compile.
1884echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1885echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1886# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1887# If not cross compiling, check that we can run a simple program.
1888if test "$cross_compiling" != yes; then
1889 if { ac_try='./$ac_file'
1890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891 (eval $ac_try) 2>&5
1892 ac_status=$?
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; }; then
1895 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001896 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001897 if test "$cross_compiling" = maybe; then
1898 cross_compiling=yes
1899 else
1900 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1901If you meant to cross compile, use \`--host'.
1902See \`config.log' for more details." >&5
1903echo "$as_me: error: cannot run C compiled programs.
1904If you meant to cross compile, use \`--host'.
1905See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1907 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001908 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001909fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001910echo "$as_me:$LINENO: result: yes" >&5
1911echo "${ECHO_T}yes" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001913rm -f a.out a.exe conftest$ac_cv_exeext b.out
1914ac_clean_files=$ac_clean_files_save
1915# Check the compiler produces executables we can run. If not, either
1916# the compiler is broken, or we cross compile.
1917echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1918echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1919echo "$as_me:$LINENO: result: $cross_compiling" >&5
1920echo "${ECHO_T}$cross_compiling" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001921
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001922echo "$as_me:$LINENO: checking for suffix of executables" >&5
1923echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1925 (eval $ac_link) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; then
1929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1930# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1931# work properly (i.e., refer to `conftest.exe'), while it won't with
1932# `rm'.
1933for ac_file in conftest.exe conftest conftest.*; do
1934 test -f "$ac_file" || continue
1935 case $ac_file in
1936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1938 export ac_cv_exeext
1939 break;;
1940 * ) break;;
1941 esac
1942done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04001943else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1945See \`config.log' for more details." >&5
1946echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1947See \`config.log' for more details." >&2;}
1948 { (exit 1); exit 1; }; }
1949fi
1950
1951rm -f conftest$ac_cv_exeext
1952echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1953echo "${ECHO_T}$ac_cv_exeext" >&6
1954
1955rm -f conftest.$ac_ext
1956EXEEXT=$ac_cv_exeext
1957ac_exeext=$EXEEXT
1958echo "$as_me:$LINENO: checking for suffix of object files" >&5
1959echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1960if test "${ac_cv_objext+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963 cat >conftest.$ac_ext <<_ACEOF
1964/* confdefs.h. */
1965_ACEOF
1966cat confdefs.h >>conftest.$ac_ext
1967cat >>conftest.$ac_ext <<_ACEOF
1968/* end confdefs.h. */
1969
1970int
1971main ()
1972{
1973
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978rm -f conftest.o conftest.obj
1979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; then
1984 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1985 case $ac_file in
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1988 break;;
1989 esac
1990done
1991else
1992 echo "$as_me: failed program was:" >&5
1993sed 's/^/| /' conftest.$ac_ext >&5
1994
1995{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1996See \`config.log' for more details." >&5
1997echo "$as_me: error: cannot compute suffix of object files: cannot compile
1998See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2000fi
2001
2002rm -f conftest.$ac_cv_objext conftest.$ac_ext
2003fi
2004echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2005echo "${ECHO_T}$ac_cv_objext" >&6
2006OBJEXT=$ac_cv_objext
2007ac_objext=$OBJEXT
2008echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2010if test "${ac_cv_c_compiler_gnu+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013 cat >conftest.$ac_ext <<_ACEOF
2014/* confdefs.h. */
2015_ACEOF
2016cat confdefs.h >>conftest.$ac_ext
2017cat >>conftest.$ac_ext <<_ACEOF
2018/* end confdefs.h. */
2019
2020int
2021main ()
2022{
2023#ifndef __GNUC__
2024 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002025#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002027 ;
2028 return 0;
2029}
2030_ACEOF
2031rm -f conftest.$ac_objext
2032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>conftest.er1
2034 ac_status=$?
2035 grep -v '^ *+' conftest.er1 >conftest.err
2036 rm -f conftest.er1
2037 cat conftest.err >&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042 (eval $ac_try) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 (eval $ac_try) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2052 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002053else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002054 echo "$as_me: failed program was:" >&5
2055sed 's/^/| /' conftest.$ac_ext >&5
2056
2057ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002058fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2060ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002062fi
2063echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2064echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2065GCC=`test $ac_compiler_gnu = yes && echo yes`
2066ac_test_CFLAGS=${CFLAGS+set}
2067ac_save_CFLAGS=$CFLAGS
2068CFLAGS="-g"
2069echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2070echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2071if test "${ac_cv_prog_cc_g+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002073else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002074 cat >conftest.$ac_ext <<_ACEOF
2075/* confdefs.h. */
2076_ACEOF
2077cat confdefs.h >>conftest.$ac_ext
2078cat >>conftest.$ac_ext <<_ACEOF
2079/* end confdefs.h. */
2080
2081int
2082main ()
2083{
2084
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089rm -f conftest.$ac_objext
2090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>conftest.er1
2092 ac_status=$?
2093 grep -v '^ *+' conftest.er1 >conftest.err
2094 rm -f conftest.er1
2095 cat conftest.err >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 (eval $ac_try) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 (eval $ac_try) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002110 ac_cv_prog_cc_g=yes
2111else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002112 echo "$as_me: failed program was:" >&5
2113sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002115ac_cv_prog_cc_g=no
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002116fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2118fi
2119echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2120echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002121if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002122 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002123elif test $ac_cv_prog_cc_g = yes; then
2124 if test "$GCC" = yes; then
2125 CFLAGS="-g -O2"
2126 else
2127 CFLAGS="-g"
2128 fi
2129else
2130 if test "$GCC" = yes; then
2131 CFLAGS="-O2"
2132 else
2133 CFLAGS=
2134 fi
2135fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002136echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2137echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2138if test "${ac_cv_prog_cc_stdc+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141 ac_cv_prog_cc_stdc=no
2142ac_save_CC=$CC
2143cat >conftest.$ac_ext <<_ACEOF
2144/* confdefs.h. */
2145_ACEOF
2146cat confdefs.h >>conftest.$ac_ext
2147cat >>conftest.$ac_ext <<_ACEOF
2148/* end confdefs.h. */
2149#include <stdarg.h>
2150#include <stdio.h>
2151#include <sys/types.h>
2152#include <sys/stat.h>
2153/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2154struct buf { int x; };
2155FILE * (*rcsopen) (struct buf *, struct stat *, int);
2156static char *e (p, i)
2157 char **p;
2158 int i;
2159{
2160 return p[i];
2161}
2162static char *f (char * (*g) (char **, int), char **p, ...)
2163{
2164 char *s;
2165 va_list v;
2166 va_start (v,p);
2167 s = g (p, va_arg (v,int));
2168 va_end (v);
2169 return s;
2170}
2171
2172/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2173 function prototypes and stuff, but not '\xHH' hex character constants.
2174 These don't provoke an error unfortunately, instead are silently treated
2175 as 'x'. The following induces an error, until -std1 is added to get
2176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2177 array size at least. It's necessary to write '\x00'==0 to get something
2178 that's true only with -std1. */
2179int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2180
2181int test (int i, double x);
2182struct s1 {int (*f) (int a);};
2183struct s2 {int (*f) (double a);};
2184int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2185int argc;
2186char **argv;
2187int
2188main ()
2189{
2190return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195# Don't try gcc -ansi; that turns off useful extensions and
2196# breaks some systems' header files.
2197# AIX -qlanglvl=ansi
2198# Ultrix and OSF/1 -std1
2199# HP-UX 10.20 and later -Ae
2200# HP-UX older versions -Aa -D_HPUX_SOURCE
2201# SVR4 -Xc -D__EXTENSIONS__
2202for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2203do
2204 CC="$ac_save_CC $ac_arg"
2205 rm -f conftest.$ac_objext
2206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 ac_cv_prog_cc_stdc=$ac_arg
2227break
2228else
2229 echo "$as_me: failed program was:" >&5
2230sed 's/^/| /' conftest.$ac_ext >&5
2231
2232fi
2233rm -f conftest.err conftest.$ac_objext
2234done
2235rm -f conftest.$ac_ext conftest.$ac_objext
2236CC=$ac_save_CC
2237
2238fi
2239
2240case "x$ac_cv_prog_cc_stdc" in
2241 x|xno)
2242 echo "$as_me:$LINENO: result: none needed" >&5
2243echo "${ECHO_T}none needed" >&6 ;;
2244 *)
2245 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2246echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2247 CC="$CC $ac_cv_prog_cc_stdc" ;;
2248esac
2249
2250# Some people use a C++ compiler to compile C. Since we use `exit',
2251# in C++ we need to declare it. In case someone uses the same compiler
2252# for both compiling C and C++ we need to have the C++ compiler decide
2253# the declaration of exit, since it's the most demanding environment.
2254cat >conftest.$ac_ext <<_ACEOF
2255#ifndef __cplusplus
2256 choke me
2257#endif
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>conftest.er1
2262 ac_status=$?
2263 grep -v '^ *+' conftest.er1 >conftest.err
2264 rm -f conftest.er1
2265 cat conftest.err >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 for ac_declaration in \
2281 '' \
2282 'extern "C" void std::exit (int) throw (); using std::exit;' \
2283 'extern "C" void std::exit (int); using std::exit;' \
2284 'extern "C" void exit (int) throw ();' \
2285 'extern "C" void exit (int);' \
2286 'void exit (int);'
2287do
2288 cat >conftest.$ac_ext <<_ACEOF
2289/* confdefs.h. */
2290_ACEOF
2291cat confdefs.h >>conftest.$ac_ext
2292cat >>conftest.$ac_ext <<_ACEOF
2293/* end confdefs.h. */
2294$ac_declaration
2295#include <stdlib.h>
2296int
2297main ()
2298{
2299exit (42);
2300 ;
2301 return 0;
2302}
2303_ACEOF
2304rm -f conftest.$ac_objext
2305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>conftest.er1
2307 ac_status=$?
2308 grep -v '^ *+' conftest.er1 >conftest.err
2309 rm -f conftest.er1
2310 cat conftest.err >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 (eval $ac_try) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2325 :
2326else
2327 echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330continue
2331fi
2332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h. */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h. */
2339$ac_declaration
2340int
2341main ()
2342{
2343exit (42);
2344 ;
2345 return 0;
2346}
2347_ACEOF
2348rm -f conftest.$ac_objext
2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>conftest.er1
2351 ac_status=$?
2352 grep -v '^ *+' conftest.er1 >conftest.err
2353 rm -f conftest.er1
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 break
2370else
2371 echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374fi
2375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2376done
2377rm -f conftest*
2378if test -n "$ac_declaration"; then
2379 echo '#ifdef __cplusplus' >>confdefs.h
2380 echo $ac_declaration >>confdefs.h
2381 echo '#endif' >>confdefs.h
2382fi
2383
2384else
2385 echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388fi
2389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390ac_ext=c
2391ac_cpp='$CPP $CPPFLAGS'
2392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002396
Theodore Ts'o74becf31997-04-26 14:37:06 +00002397# Check whether --with-linker or --without-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002398if test "${with_linker+set}" = set; then
2399 withval="$with_linker"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002400 echo "$as_me:$LINENO: result: LD=$withval" >&5
2401echo "${ECHO_T}LD=$withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00002402LD=$withval
2403else
2404 if test -z "$LD" ; then LD=$CC; fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002405echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2406echo "${ECHO_T}LD defaults to $LD" >&6
2407fi; export LD
2408
Theodore Ts'o74becf31997-04-26 14:37:06 +00002409
2410# Check whether --with-ccopts or --without-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002411if test "${with_ccopts+set}" = set; then
2412 withval="$with_ccopts"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002413 echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2414echo "${ECHO_T}CCOPTS is $withval" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00002415CFLAGS=$withval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002416fi;
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2423echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002424# On Suns, sometimes $CPP names a directory.
2425if test -n "$CPP" && test -d "$CPP"; then
2426 CPP=
2427fi
2428if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002429 if test "${ac_cv_prog_CPP+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002431else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432 # Double quotes because CPP needs to be expanded
2433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2434 do
2435 ac_preproc_ok=false
2436for ac_c_preproc_warn_flag in '' yes
2437do
2438 # Use a header file that comes with gcc, so configuring glibc
2439 # with a fresh cross-compiler works.
2440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2441 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002442 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002443 # not just through cpp. "Syntax error" is here to catch this case.
2444 cat >conftest.$ac_ext <<_ACEOF
2445/* confdefs.h. */
2446_ACEOF
2447cat confdefs.h >>conftest.$ac_ext
2448cat >>conftest.$ac_ext <<_ACEOF
2449/* end confdefs.h. */
2450#ifdef __STDC__
2451# include <limits.h>
2452#else
2453# include <assert.h>
2454#endif
2455 Syntax error
2456_ACEOF
2457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2459 ac_status=$?
2460 grep -v '^ *+' conftest.er1 >conftest.err
2461 rm -f conftest.er1
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } >/dev/null; then
2465 if test -s conftest.err; then
2466 ac_cpp_err=$ac_c_preproc_warn_flag
2467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2468 else
2469 ac_cpp_err=
2470 fi
2471else
2472 ac_cpp_err=yes
2473fi
2474if test -z "$ac_cpp_err"; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002475 :
2476else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477 echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002480 # Broken: fails on valid input.
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_ext
2484
2485 # OK, works on sane cases. Now check whether non-existent headers
2486 # can be detected and how.
2487 cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h. */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h. */
2493#include <ac_nonexistent.h>
2494_ACEOF
2495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2497 ac_status=$?
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } >/dev/null; then
2503 if test -s conftest.err; then
2504 ac_cpp_err=$ac_c_preproc_warn_flag
2505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2506 else
2507 ac_cpp_err=
2508 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002509else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510 ac_cpp_err=yes
2511fi
2512if test -z "$ac_cpp_err"; then
2513 # Broken: success on invalid input.
2514continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002515else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516 echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 # Passes both tests.
2520ac_preproc_ok=:
2521break
2522fi
2523rm -f conftest.err conftest.$ac_ext
2524
2525done
2526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2527rm -f conftest.err conftest.$ac_ext
2528if $ac_preproc_ok; then
2529 break
2530fi
2531
2532 done
2533 ac_cv_prog_CPP=$CPP
2534
2535fi
2536 CPP=$ac_cv_prog_CPP
2537else
2538 ac_cv_prog_CPP=$CPP
2539fi
2540echo "$as_me:$LINENO: result: $CPP" >&5
2541echo "${ECHO_T}$CPP" >&6
2542ac_preproc_ok=false
2543for ac_c_preproc_warn_flag in '' yes
2544do
2545 # Use a header file that comes with gcc, so configuring glibc
2546 # with a fresh cross-compiler works.
2547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2548 # <limits.h> exists even on freestanding compilers.
2549 # On the NeXT, cc -E runs the code through the compiler's parser,
2550 # not just through cpp. "Syntax error" is here to catch this case.
2551 cat >conftest.$ac_ext <<_ACEOF
2552/* confdefs.h. */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h. */
2557#ifdef __STDC__
2558# include <limits.h>
2559#else
2560# include <assert.h>
2561#endif
2562 Syntax error
2563_ACEOF
2564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566 ac_status=$?
2567 grep -v '^ *+' conftest.er1 >conftest.err
2568 rm -f conftest.er1
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } >/dev/null; then
2572 if test -s conftest.err; then
2573 ac_cpp_err=$ac_c_preproc_warn_flag
2574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2575 else
2576 ac_cpp_err=
2577 fi
2578else
2579 ac_cpp_err=yes
2580fi
2581if test -z "$ac_cpp_err"; then
2582 :
2583else
2584 echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587 # Broken: fails on valid input.
2588continue
2589fi
2590rm -f conftest.err conftest.$ac_ext
2591
2592 # OK, works on sane cases. Now check whether non-existent headers
2593 # can be detected and how.
2594 cat >conftest.$ac_ext <<_ACEOF
2595/* confdefs.h. */
2596_ACEOF
2597cat confdefs.h >>conftest.$ac_ext
2598cat >>conftest.$ac_ext <<_ACEOF
2599/* end confdefs.h. */
2600#include <ac_nonexistent.h>
2601_ACEOF
2602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } >/dev/null; then
2610 if test -s conftest.err; then
2611 ac_cpp_err=$ac_c_preproc_warn_flag
2612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2613 else
2614 ac_cpp_err=
2615 fi
2616else
2617 ac_cpp_err=yes
2618fi
2619if test -z "$ac_cpp_err"; then
2620 # Broken: success on invalid input.
2621continue
2622else
2623 echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 # Passes both tests.
2627ac_preproc_ok=:
2628break
2629fi
2630rm -f conftest.err conftest.$ac_ext
2631
2632done
2633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2634rm -f conftest.err conftest.$ac_ext
2635if $ac_preproc_ok; then
2636 :
2637else
2638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2639See \`config.log' for more details." >&5
2640echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2641See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2643fi
2644
2645ac_ext=c
2646ac_cpp='$CPP $CPPFLAGS'
2647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650
2651
2652echo "$as_me:$LINENO: checking for egrep" >&5
2653echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2654if test "${ac_cv_prog_egrep+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656else
2657 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2658 then ac_cv_prog_egrep='grep -E'
2659 else ac_cv_prog_egrep='egrep'
2660 fi
2661fi
2662echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2663echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2664 EGREP=$ac_cv_prog_egrep
2665
2666
2667echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2668echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2669if test "${ac_cv_header_stdc+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671else
2672 cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h. */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h. */
2678#include <stdlib.h>
2679#include <stdarg.h>
2680#include <string.h>
2681#include <float.h>
2682
2683int
2684main ()
2685{
2686
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 (eval $ac_try) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708 (eval $ac_try) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_cv_header_stdc=yes
2713else
2714 echo "$as_me: failed program was:" >&5
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
2717ac_cv_header_stdc=no
2718fi
2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720
2721if test $ac_cv_header_stdc = yes; then
2722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2723 cat >conftest.$ac_ext <<_ACEOF
2724/* confdefs.h. */
2725_ACEOF
2726cat confdefs.h >>conftest.$ac_ext
2727cat >>conftest.$ac_ext <<_ACEOF
2728/* end confdefs.h. */
2729#include <string.h>
2730
2731_ACEOF
2732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2733 $EGREP "memchr" >/dev/null 2>&1; then
2734 :
2735else
2736 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002737fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002738rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002739
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002740fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002741
2742if test $ac_cv_header_stdc = yes; then
2743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2744 cat >conftest.$ac_ext <<_ACEOF
2745/* confdefs.h. */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h. */
2750#include <stdlib.h>
2751
2752_ACEOF
2753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2754 $EGREP "free" >/dev/null 2>&1; then
2755 :
2756else
2757 ac_cv_header_stdc=no
2758fi
2759rm -f conftest*
2760
2761fi
2762
2763if test $ac_cv_header_stdc = yes; then
2764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2765 if test "$cross_compiling" = yes; then
2766 :
2767else
2768 cat >conftest.$ac_ext <<_ACEOF
2769/* confdefs.h. */
2770_ACEOF
2771cat confdefs.h >>conftest.$ac_ext
2772cat >>conftest.$ac_ext <<_ACEOF
2773/* end confdefs.h. */
2774#include <ctype.h>
2775#if ((' ' & 0x0FF) == 0x020)
2776# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2777# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2778#else
2779# define ISLOWER(c) \
2780 (('a' <= (c) && (c) <= 'i') \
2781 || ('j' <= (c) && (c) <= 'r') \
2782 || ('s' <= (c) && (c) <= 'z'))
2783# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2784#endif
2785
2786#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2787int
2788main ()
2789{
2790 int i;
2791 for (i = 0; i < 256; i++)
2792 if (XOR (islower (i), ISLOWER (i))
2793 || toupper (i) != TOUPPER (i))
2794 exit(2);
2795 exit (0);
2796}
2797_ACEOF
2798rm -f conftest$ac_exeext
2799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2800 (eval $ac_link) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 :
2810else
2811 echo "$as_me: program exited with status $ac_status" >&5
2812echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815( exit $ac_status )
2816ac_cv_header_stdc=no
2817fi
2818rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2819fi
2820fi
2821fi
2822echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2823echo "${ECHO_T}$ac_cv_header_stdc" >&6
2824if test $ac_cv_header_stdc = yes; then
2825
2826cat >>confdefs.h <<\_ACEOF
2827#define STDC_HEADERS 1
2828_ACEOF
2829
2830fi
2831
2832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2843 inttypes.h stdint.h unistd.h
2844do
2845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2846echo "$as_me:$LINENO: checking for $ac_header" >&5
2847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2848if eval "test \"\${$as_ac_Header+set}\" = set"; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850else
2851 cat >conftest.$ac_ext <<_ACEOF
2852/* confdefs.h. */
2853_ACEOF
2854cat confdefs.h >>conftest.$ac_ext
2855cat >>conftest.$ac_ext <<_ACEOF
2856/* end confdefs.h. */
2857$ac_includes_default
2858
2859#include <$ac_header>
2860_ACEOF
2861rm -f conftest.$ac_objext
2862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 eval "$as_ac_Header=yes"
2883else
2884 echo "$as_me: failed program was:" >&5
2885sed 's/^/| /' conftest.$ac_ext >&5
2886
2887eval "$as_ac_Header=no"
2888fi
2889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890fi
2891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2893if test `eval echo '${'$as_ac_Header'}'` = yes; then
2894 cat >>confdefs.h <<_ACEOF
2895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2896_ACEOF
2897
2898fi
2899
2900done
2901
2902
2903if test "${ac_cv_header_linux_fs_h+set}" = set; then
2904 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2905echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2906if test "${ac_cv_header_linux_fs_h+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908fi
2909echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2910echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2911else
2912 # Is the header compilable?
2913echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2914echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2915cat >conftest.$ac_ext <<_ACEOF
2916/* confdefs.h. */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h. */
2921$ac_includes_default
2922#include <linux/fs.h>
2923_ACEOF
2924rm -f conftest.$ac_objext
2925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; } &&
2939 { ac_try='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 ac_header_compiler=yes
2946else
2947 echo "$as_me: failed program was:" >&5
2948sed 's/^/| /' conftest.$ac_ext >&5
2949
2950ac_header_compiler=no
2951fi
2952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2954echo "${ECHO_T}$ac_header_compiler" >&6
2955
2956# Is the header present?
2957echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2958echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2959cat >conftest.$ac_ext <<_ACEOF
2960/* confdefs.h. */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h. */
2965#include <linux/fs.h>
2966_ACEOF
2967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969 ac_status=$?
2970 grep -v '^ *+' conftest.er1 >conftest.err
2971 rm -f conftest.er1
2972 cat conftest.err >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } >/dev/null; then
2975 if test -s conftest.err; then
2976 ac_cpp_err=$ac_c_preproc_warn_flag
2977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2978 else
2979 ac_cpp_err=
2980 fi
2981else
2982 ac_cpp_err=yes
2983fi
2984if test -z "$ac_cpp_err"; then
2985 ac_header_preproc=yes
2986else
2987 echo "$as_me: failed program was:" >&5
2988sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 ac_header_preproc=no
2991fi
2992rm -f conftest.err conftest.$ac_ext
2993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2994echo "${ECHO_T}$ac_header_preproc" >&6
2995
2996# So? What about this header?
2997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2998 yes:no: )
2999 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3000echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3001 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3002echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3003 ac_header_preproc=yes
3004 ;;
3005 no:yes:* )
3006 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3007echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3008 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3009echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3010 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3011echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3012 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3013echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3014 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3015echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3016 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3017echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3018 (
3019 cat <<\_ASBOX
3020## ------------------------------------------ ##
3021## Report this to the AC_PACKAGE_NAME lists. ##
3022## ------------------------------------------ ##
3023_ASBOX
3024 ) |
3025 sed "s/^/$as_me: WARNING: /" >&2
3026 ;;
3027esac
3028echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3029echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3030if test "${ac_cv_header_linux_fs_h+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032else
3033 ac_cv_header_linux_fs_h=$ac_header_preproc
3034fi
3035echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3036echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3037
3038fi
3039if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003040 linux_headers=yes
3041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003043fi
3044
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003045
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003046if test "$linux_headers" != yes; then
3047 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003048fi
3049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3051echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003052if test "$GCC" = yes
3053then
3054 case "$host_cpu" in
3055 alpha) addcflags="-mieee" ;;
3056 esac
3057fi
3058if test "x$addcflags" != x
3059then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003060 echo "$as_me:$LINENO: result: $addcflags" >&5
3061echo "${ECHO_T}$addcflags" >&6
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003062 CFLAGS="$addcflags $CFLAGS"
3063else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003064 echo "$as_me:$LINENO: result: (none)" >&5
3065echo "${ECHO_T}(none)" >&6
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003066fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003067LIB_EXT=.a
3068STATIC_LIB_EXT=.a
3069PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003070
Theodore Ts'o74becf31997-04-26 14:37:06 +00003071# Check whether --with-ldopts or --without-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003072if test "${with_ldopts+set}" = set; then
3073 withval="$with_ldopts"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074 echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3075echo "${ECHO_T}LDFLAGS is $withval" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +00003076LDFLAGS=$withval
3077else
3078 LDFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003079fi;
Theodore Ts'o74becf31997-04-26 14:37:06 +00003080
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003081# Check whether --with-root-prefix or --without-root-prefix was given.
3082if test "${with_root_prefix+set}" = set; then
3083 withval="$with_root_prefix"
3084 root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003085else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003086 root_prefix=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003087fi; # Check whether --enable-compression or --disable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003088if test "${enable_compression+set}" = set; then
3089 enableval="$enable_compression"
3090 if test "$enableval" = "no"
3091then
3092 echo "Disabling compression support"
3093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003094 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003095#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003096_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003097
3098 echo "Enabling compression support"
3099 echo "WARNING: Compression support is experimental"
3100fi
3101
3102else
3103 echo "Disabling compression support by default"
3104
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003105fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003106# Check whether --enable-htree or --disable-htree was given.
3107if test "${enable_htree+set}" = set; then
3108 enableval="$enable_htree"
3109 if test "$enableval" = "no"
3110then
3111 HTREE_CMT=#
3112 echo "Disabling htree directory support"
3113else
3114 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003116#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003117_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003118
3119 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003120fi
3121
3122else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003123 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003124cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003125#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003126_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003127
3128echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003129
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003130fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003131
3132# Check whether --enable-htree-clear or --disable-htree-clear was given.
3133if test "${enable_htree_clear+set}" = set; then
3134 enableval="$enable_htree_clear"
3135 if test "$enableval" = "no"
3136then
3137 HTREE_CLR_CMT=#
3138 echo "Disabling htree clearing"
3139else
3140 HTREE_CLR_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003141 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003142#define ENABLE_HTREE_CLEAR 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003143_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003144
3145 echo "Enabling htree clearing"
3146fi
3147
3148else
3149 HTREE_CLR_CMT=#
3150echo "Disabling htree clearing by default"
3151
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003152fi;
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003153
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003154# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003155if test "${enable_elf_shlibs+set}" = set; then
3156 enableval="$enable_elf_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003157 if test "$enableval" = "no"
3158then
3159 ELF_CMT=#
3160 MAKEFILE_ELF=/dev/null
3161 echo "Disabling ELF shared libraries"
3162else
3163 ELF_CMT=
3164 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003165 case "$host_os" in
3166 solaris2.*)
3167 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3168 ;;
3169 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003170 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003171 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003172 echo "Enabling ELF shared libraries"
3173fi
3174
3175else
3176 MAKEFILE_ELF=/dev/null
3177ELF_CMT=#
3178echo "Disabling ELF shared libraries by default"
3179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003180fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003181
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003182
3183# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003184if test "${enable_bsd_shlibs+set}" = set; then
3185 enableval="$enable_bsd_shlibs"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003186 if test "$enableval" = "no"
3187then
3188 BSDLIB_CMT=#
3189 MAKEFILE_BSDLIB=/dev/null
3190 echo "Disabling BSD shared libraries"
3191else
3192 BSDLIB_CMT=
3193 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003194 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003195 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003196 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003197 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3198 LIB_EXT=.dylib
3199 ;;
3200 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003201 echo "Enabling BSD shared libraries"
3202fi
3203
3204else
3205 MAKEFILE_BSDLIB=/dev/null
3206BSDLIB_CMT=#
3207echo "Disabling BSD shared libraries by default"
3208
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003209fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003210
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003211
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003212# Check whether --enable-profile or --disable-profile was given.
3213if test "${enable_profile+set}" = set; then
3214 enableval="$enable_profile"
3215 if test "$enableval" = "no"
3216then
3217 PROFILE_CMT=#
3218 MAKEFILE_PROFILE=/dev/null
3219 echo "Disabling profiling libraries"
3220else
3221 PROFILE_CMT=
3222 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3223 PROFILED_LIB_EXT=_p.a
3224 echo "Building profiling libraries"
3225fi
3226
3227else
3228 PROFILE_CMT=#
3229MAKEFILE_PROFILE=/dev/null
3230echo "Disabling profiling libraries by default"
3231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003232fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003233
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003234
3235# Check whether --enable-checker or --disable-checker was given.
3236if test "${enable_checker+set}" = set; then
3237 enableval="$enable_checker"
3238 if test "$enableval" = "no"
3239then
3240 CHECKER_CMT=#
3241 MAKEFILE_CHECKER=/dev/null
3242 echo "Disabling checker libraries"
3243else
3244 CHECKER_CMT=
3245 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3246 echo "Building checker libraries"
3247fi
3248
3249else
3250 CHECKER_CMT=#
3251MAKEFILE_CHECKER=/dev/null
3252echo "Disabling checker libraries by default"
3253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003254fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003255
3256
3257
3258
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003259
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003260# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3261if test "${enable_jbd_debug+set}" = set; then
3262 enableval="$enable_jbd_debug"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003263 if test "$enableval" = "no"
3264then
3265 echo "Disabling journal debugging"
3266else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003267 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003268#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003269_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003270
3271 echo "Enabling journal debugging"
3272fi
3273
3274else
3275 echo "Disabling journal debugging by default"
3276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003277fi;
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003278# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3279if test "${enable_blkid_debug+set}" = set; then
3280 enableval="$enable_blkid_debug"
3281 if test "$enableval" = "no"
3282then
3283 echo "Disabling blkid debugging"
3284else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003285 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003286#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003287_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003288
3289 echo "Enabling blkid debugging"
3290fi
3291
3292else
3293 echo "Disabling blkid debugging by default"
3294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003295fi;
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003296# Check whether --enable-testio-debug or --disable-testio-debug was given.
3297if test "${enable_testio_debug+set}" = set; then
3298 enableval="$enable_testio_debug"
3299 if test "$enableval" = "no"
3300then
3301 echo "Disabling testio debugging"
3302else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003303 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003304#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003305_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003306
3307 echo "Enabling testio debugging"
3308fi
3309
3310else
3311 echo "Disabling testio debugging by default"
3312
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003313fi;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003314# Check whether --enable-swapfs or --disable-swapfs was given.
3315if test "${enable_swapfs+set}" = set; then
3316 enableval="$enable_swapfs"
3317 if test "$enableval" = "no"
3318then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003319 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003320 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003321else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003322 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003323 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003324#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003325_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003326
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003327 echo "Enabling swapfs support"
3328fi
3329
3330else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003331 SWAPFS_CMT=
3332echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003333cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003334#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003335_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003336
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003338fi;
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05003339
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003340# Check whether --enable-debugfs or --disable-debugfs was given.
3341if test "${enable_debugfs+set}" = set; then
3342 enableval="$enable_debugfs"
3343 if test "$enableval" = "no"
3344then
3345 echo "Disabling debugfs support"
3346 DEBUGFS_CMT="#"
3347else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003348 DEBUGFS_CMT=
3349 echo "Enabling debugfs support"
3350fi
3351
3352else
3353 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003354DEBUGFS_CMT=
3355
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003356fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003357
3358# Check whether --enable-imager or --disable-imager was given.
3359if test "${enable_imager+set}" = set; then
3360 enableval="$enable_imager"
3361 if test "$enableval" = "no"
3362then
3363 echo "Disabling e2image support"
3364 IMAGER_CMT="#"
3365else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003366 IMAGER_CMT=
3367 echo "Enabling e2image support"
3368fi
3369
3370else
3371 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003372IMAGER_CMT=
3373
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003374fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003375
3376# Check whether --enable-resizer or --disable-resizer was given.
3377if test "${enable_resizer+set}" = set; then
3378 enableval="$enable_resizer"
3379 if test "$enableval" = "no"
3380then
3381 echo "Disabling e2resize support"
3382 RESIZER_CMT="#"
3383else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003384 RESIZER_CMT=
3385 echo "Enabling e2resize support"
3386fi
3387
3388else
3389 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003390RESIZER_CMT=
3391
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003392fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003393
3394# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3395if test "${enable_dynamic_e2fsck+set}" = set; then
3396 enableval="$enable_dynamic_e2fsck"
3397 if test "$enableval" = "no"
3398then
3399 E2FSCK_TYPE=static
3400 echo "Building e2fsck statically"
3401else
3402 E2FSCK_TYPE=shared
3403 echo "Building e2fsck dynamically"
3404fi
3405
3406else
3407 E2FSCK_TYPE=static
3408echo "Building e2fsck statically by default"
3409
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003410fi;
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003411
3412# Check whether --enable-fsck or --disable-fsck was given.
3413if test "${enable_fsck+set}" = set; then
3414 enableval="$enable_fsck"
3415 if test "$enableval" = "no"
3416then
3417 FSCK_PROG='' FSCK_MAN=''
3418 echo "Not building fsck wrapper"
3419else
3420 FSCK_PROG=fsck FSCK_MAN=fsck.8
3421 echo "Building fsck wrapper"
3422fi
3423
3424else
3425 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04003426 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003427 FSCK_PROG='' FSCK_MAN=''
3428 echo "Not building fsck wrapper by default"
3429 ;;
3430 *)
3431 FSCK_PROG=fsck FSCK_MAN=fsck.8
3432 echo "Building fsck wrapper by default"
3433esac
3434
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003435fi;
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003436
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003437
Theodore Ts'o5d407732004-09-18 14:53:14 -04003438# Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3439if test "${enable_e2initrd_helper+set}" = set; then
3440 enableval="$enable_e2initrd_helper"
3441 if test "$enableval" = "no"
3442then
3443 E2INITRD_PROG='' E2INITRD_MAN=''
3444 echo "Not building e2initrd helper"
3445else
3446 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3447 echo "Building e2initrd helper"
3448fi
3449
3450else
3451 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3452echo "Building e2initrd helper by default"
3453
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003454fi;
Theodore Ts'o5d407732004-09-18 14:53:14 -04003455
3456
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003457MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003459GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003460PACKAGE=e2fsprogs
3461VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003462VERSION=0.14.1
3463cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003464#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003465_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003467cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003468#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003469_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003470
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003471
3472
3473
3474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003475echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3476echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3477set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3478if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003480else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003481 cat >conftest.make <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003482all:
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003483 @echo 'ac_maketemp="$(MAKE)"'
3484_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003485# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003486eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003487if test -n "$ac_maketemp"; then
3488 eval ac_cv_prog_make_${ac_make}_set=yes
3489else
3490 eval ac_cv_prog_make_${ac_make}_set=no
3491fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003492rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003493fi
3494if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003495 echo "$as_me:$LINENO: result: yes" >&5
3496echo "${ECHO_T}yes" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003497 SET_MAKE=
3498else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003499 echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003501 SET_MAKE="MAKE=${MAKE-make}"
3502fi
3503
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003504# Find a good install program. We prefer a C program (faster),
3505# so one script is as good as another. But avoid the broken or
3506# incompatible versions:
3507# SysV /etc/install, /usr/sbin/install
3508# SunOS /usr/etc/install
3509# IRIX /sbin/install
3510# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003511# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003512# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3513# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3514# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003515# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003516# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003517echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3518echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003519if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003520if test "${ac_cv_path_install+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003522else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 # Account for people who put trailing slashes in PATH elements.
3529case $as_dir/ in
3530 ./ | .// | /cC/* | \
3531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3532 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3533 /usr/ucb/* ) ;;
3534 *)
3535 # OSF1 and SCO ODT 3.0 have their own names for install.
3536 # Don't use installbsd from OSF since it installs stuff as root
3537 # by default.
3538 for ac_prog in ginstall scoinst install; do
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003541 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003543 # AIX install. It has an incompatible calling convention.
3544 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003545 elif test $ac_prog = install &&
3546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3547 # program-specific install script used by HP pwplus--don't use.
3548 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003549 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003550 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3551 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003552 fi
3553 fi
3554 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003555 done
3556 ;;
3557esac
3558done
3559
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003560
3561fi
3562 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003563 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003564 else
3565 # As a last resort, use the slow shell script. We don't cache a
3566 # path for INSTALL within a source directory, because that will
3567 # break other packages using the cache if that directory is
3568 # removed, or if the path is relative.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003569 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003570 fi
3571fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003572echo "$as_me:$LINENO: result: $INSTALL" >&5
3573echo "${ECHO_T}$INSTALL" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003574
3575# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3576# It thinks the first close brace ends the variable substitution.
3577test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003579test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003580
3581test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3582
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003583
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003584 MKINSTALLDIRS=
3585 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003586 case "$ac_aux_dir" in
3587 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3588 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3589 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003590 fi
3591 if test -z "$MKINSTALLDIRS"; then
3592 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3593 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04003594
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003595
3596
3597 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3598echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3599 # Check whether --enable-nls or --disable-nls was given.
3600if test "${enable_nls+set}" = set; then
3601 enableval="$enable_nls"
3602 USE_NLS=$enableval
3603else
3604 USE_NLS=yes
3605fi;
3606 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3607echo "${ECHO_T}$USE_NLS" >&6
3608
3609
3610
3611
3612
3613
3614# Prepare PATH_SEPARATOR.
3615# The user is always right.
3616if test "${PATH_SEPARATOR+set}" != set; then
3617 echo "#! /bin/sh" >conf$$.sh
3618 echo "exit 0" >>conf$$.sh
3619 chmod +x conf$$.sh
3620 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3621 PATH_SEPARATOR=';'
3622 else
3623 PATH_SEPARATOR=:
3624 fi
3625 rm -f conf$$.sh
3626fi
3627
3628# Find out how to test for executable files. Don't use a zero-byte file,
3629# as systems may use methods other than mode bits to determine executability.
3630cat >conf$$.file <<_ASEOF
3631#! /bin/sh
3632exit 0
3633_ASEOF
3634chmod +x conf$$.file
3635if test -x conf$$.file >/dev/null 2>&1; then
3636 ac_executable_p="test -x"
3637else
3638 ac_executable_p="test -f"
3639fi
3640rm -f conf$$.file
3641
3642# Extract the first word of "msgfmt", so it can be a program name with args.
3643set dummy msgfmt; ac_word=$2
3644echo "$as_me:$LINENO: checking for $ac_word" >&5
3645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646if test "${ac_cv_path_MSGFMT+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648else
3649 case "$MSGFMT" in
3650 [\\/]* | ?:[\\/]*)
3651 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3652 ;;
3653 *)
3654 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3655 for ac_dir in $PATH; do
3656 IFS="$ac_save_IFS"
3657 test -z "$ac_dir" && ac_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3660 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3661 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3662 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3663 break 2
3664 fi
3665 fi
3666 done
3667 done
3668 IFS="$ac_save_IFS"
3669 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3670 ;;
3671esac
3672fi
3673MSGFMT="$ac_cv_path_MSGFMT"
3674if test "$MSGFMT" != ":"; then
3675 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3676echo "${ECHO_T}$MSGFMT" >&6
3677else
3678 echo "$as_me:$LINENO: result: no" >&5
3679echo "${ECHO_T}no" >&6
3680fi
3681
3682 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3683set dummy gmsgfmt; ac_word=$2
3684echo "$as_me:$LINENO: checking for $ac_word" >&5
3685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3686if test "${ac_cv_path_GMSGFMT+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688else
3689 case $GMSGFMT in
3690 [\\/]* | ?:[\\/]*)
3691 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3692 ;;
3693 *)
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706done
3707
3708 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3709 ;;
3710esac
3711fi
3712GMSGFMT=$ac_cv_path_GMSGFMT
3713
3714if test -n "$GMSGFMT"; then
3715 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3716echo "${ECHO_T}$GMSGFMT" >&6
3717else
3718 echo "$as_me:$LINENO: result: no" >&5
3719echo "${ECHO_T}no" >&6
3720fi
3721
3722
3723
3724# Prepare PATH_SEPARATOR.
3725# The user is always right.
3726if test "${PATH_SEPARATOR+set}" != set; then
3727 echo "#! /bin/sh" >conf$$.sh
3728 echo "exit 0" >>conf$$.sh
3729 chmod +x conf$$.sh
3730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3731 PATH_SEPARATOR=';'
3732 else
3733 PATH_SEPARATOR=:
3734 fi
3735 rm -f conf$$.sh
3736fi
3737
3738# Find out how to test for executable files. Don't use a zero-byte file,
3739# as systems may use methods other than mode bits to determine executability.
3740cat >conf$$.file <<_ASEOF
3741#! /bin/sh
3742exit 0
3743_ASEOF
3744chmod +x conf$$.file
3745if test -x conf$$.file >/dev/null 2>&1; then
3746 ac_executable_p="test -x"
3747else
3748 ac_executable_p="test -f"
3749fi
3750rm -f conf$$.file
3751
3752# Extract the first word of "xgettext", so it can be a program name with args.
3753set dummy xgettext; ac_word=$2
3754echo "$as_me:$LINENO: checking for $ac_word" >&5
3755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756if test "${ac_cv_path_XGETTEXT+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 case "$XGETTEXT" in
3760 [\\/]* | ?:[\\/]*)
3761 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3762 ;;
3763 *)
3764 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3765 for ac_dir in $PATH; do
3766 IFS="$ac_save_IFS"
3767 test -z "$ac_dir" && ac_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3770 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3771 (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
3772 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3773 break 2
3774 fi
3775 fi
3776 done
3777 done
3778 IFS="$ac_save_IFS"
3779 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3780 ;;
3781esac
3782fi
3783XGETTEXT="$ac_cv_path_XGETTEXT"
3784if test "$XGETTEXT" != ":"; then
3785 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3786echo "${ECHO_T}$XGETTEXT" >&6
3787else
3788 echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
3790fi
3791
3792 rm -f messages.po
3793
3794
3795# Prepare PATH_SEPARATOR.
3796# The user is always right.
3797if test "${PATH_SEPARATOR+set}" != set; then
3798 echo "#! /bin/sh" >conf$$.sh
3799 echo "exit 0" >>conf$$.sh
3800 chmod +x conf$$.sh
3801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3802 PATH_SEPARATOR=';'
3803 else
3804 PATH_SEPARATOR=:
3805 fi
3806 rm -f conf$$.sh
3807fi
3808
3809# Find out how to test for executable files. Don't use a zero-byte file,
3810# as systems may use methods other than mode bits to determine executability.
3811cat >conf$$.file <<_ASEOF
3812#! /bin/sh
3813exit 0
3814_ASEOF
3815chmod +x conf$$.file
3816if test -x conf$$.file >/dev/null 2>&1; then
3817 ac_executable_p="test -x"
3818else
3819 ac_executable_p="test -f"
3820fi
3821rm -f conf$$.file
3822
3823# Extract the first word of "msgmerge", so it can be a program name with args.
3824set dummy msgmerge; ac_word=$2
3825echo "$as_me:$LINENO: checking for $ac_word" >&5
3826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827if test "${ac_cv_path_MSGMERGE+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 case "$MSGMERGE" in
3831 [\\/]* | ?:[\\/]*)
3832 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3833 ;;
3834 *)
3835 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3836 for ac_dir in $PATH; do
3837 IFS="$ac_save_IFS"
3838 test -z "$ac_dir" && ac_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3841 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3842 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3843 break 2
3844 fi
3845 fi
3846 done
3847 done
3848 IFS="$ac_save_IFS"
3849 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3850 ;;
3851esac
3852fi
3853MSGMERGE="$ac_cv_path_MSGMERGE"
3854if test "$MSGMERGE" != ":"; then
3855 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3856echo "${ECHO_T}$MSGMERGE" >&6
3857else
3858 echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6
3860fi
3861
3862
3863 if test "$GMSGFMT" != ":"; then
3864 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3865 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3866 : ;
3867 else
3868 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3869 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3870echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3871 GMSGFMT=":"
3872 fi
3873 fi
3874
3875 if test "$XGETTEXT" != ":"; then
3876 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3877 (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
3878 : ;
3879 else
3880 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3881echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3882 XGETTEXT=":"
3883 fi
3884 rm -f messages.po
3885 fi
3886
3887 ac_config_commands="$ac_config_commands default-1"
3888
3889
3890if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3892set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3893echo "$as_me:$LINENO: checking for $ac_word" >&5
3894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895if test "${ac_cv_prog_RANLIB+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003897else
3898 if test -n "$RANLIB"; then
3899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3900else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00003913done
3914
3915fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003916fi
3917RANLIB=$ac_cv_prog_RANLIB
3918if test -n "$RANLIB"; then
3919 echo "$as_me:$LINENO: result: $RANLIB" >&5
3920echo "${ECHO_T}$RANLIB" >&6
3921else
3922 echo "$as_me:$LINENO: result: no" >&5
3923echo "${ECHO_T}no" >&6
3924fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003925
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003926fi
3927if test -z "$ac_cv_prog_RANLIB"; then
3928 ac_ct_RANLIB=$RANLIB
3929 # Extract the first word of "ranlib", so it can be a program name with args.
3930set dummy ranlib; ac_word=$2
3931echo "$as_me:$LINENO: checking for $ac_word" >&5
3932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936 if test -n "$ac_ct_RANLIB"; then
3937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_ac_ct_RANLIB="ranlib"
3947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951done
3952
3953 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3954fi
3955fi
3956ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3957if test -n "$ac_ct_RANLIB"; then
3958 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3959echo "${ECHO_T}$ac_ct_RANLIB" >&6
3960else
3961 echo "$as_me:$LINENO: result: no" >&5
3962echo "${ECHO_T}no" >&6
3963fi
3964
3965 RANLIB=$ac_ct_RANLIB
3966else
3967 RANLIB="$ac_cv_prog_RANLIB"
3968fi
3969
3970
3971 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3972echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3973if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976 ac_check_lib_save_LIBS=$LIBS
3977LIBS="-lcposix $LIBS"
3978cat >conftest.$ac_ext <<_ACEOF
3979/* confdefs.h. */
3980_ACEOF
3981cat confdefs.h >>conftest.$ac_ext
3982cat >>conftest.$ac_ext <<_ACEOF
3983/* end confdefs.h. */
3984
3985/* Override any gcc2 internal prototype to avoid an error. */
3986#ifdef __cplusplus
3987extern "C"
3988#endif
3989/* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
3991char strerror ();
3992int
3993main ()
3994{
3995strerror ();
3996 ;
3997 return 0;
3998}
3999_ACEOF
4000rm -f conftest.$ac_objext conftest$ac_exeext
4001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; } &&
4015 { ac_try='test -s conftest$ac_exeext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_cv_lib_cposix_strerror=yes
4022else
4023 echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
4026ac_cv_lib_cposix_strerror=no
4027fi
4028rm -f conftest.err conftest.$ac_objext \
4029 conftest$ac_exeext conftest.$ac_ext
4030LIBS=$ac_check_lib_save_LIBS
4031fi
4032echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4033echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4034if test $ac_cv_lib_cposix_strerror = yes; then
4035 LIBS="$LIBS -lcposix"
4036fi
4037
4038
4039
4040echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4041echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4042if test "${ac_cv_c_const+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
4045 cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h. */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h. */
4051
4052int
4053main ()
4054{
4055/* FIXME: Include the comments suggested by Paul. */
4056#ifndef __cplusplus
4057 /* Ultrix mips cc rejects this. */
4058 typedef int charset[2];
4059 const charset x;
4060 /* SunOS 4.1.1 cc rejects this. */
4061 char const *const *ccp;
4062 char **p;
4063 /* NEC SVR4.0.2 mips cc rejects this. */
4064 struct point {int x, y;};
4065 static struct point const zero = {0,0};
4066 /* AIX XL C 1.02.0.0 rejects this.
4067 It does not let you subtract one const X* pointer from another in
4068 an arm of an if-expression whose if-part is not a constant
4069 expression */
4070 const char *g = "string";
4071 ccp = &g + (g ? g-g : 0);
4072 /* HPUX 7.0 cc rejects these. */
4073 ++ccp;
4074 p = (char**) ccp;
4075 ccp = (char const *const *) p;
4076 { /* SCO 3.2v4 cc rejects this. */
4077 char *t;
4078 char const *s = 0 ? (char *) 0 : (char const *) 0;
4079
4080 *t++ = 0;
4081 }
4082 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4083 int x[] = {25, 17};
4084 const int *foo = &x[0];
4085 ++foo;
4086 }
4087 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4088 typedef const int *iptr;
4089 iptr p = 0;
4090 ++p;
4091 }
4092 { /* AIX XL C 1.02.0.0 rejects this saying
4093 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4094 struct s { int j; const int *ap[3]; };
4095 struct s *b; b->j = 5;
4096 }
4097 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4098 const int foo = 10;
4099 }
4100#endif
4101
4102 ;
4103 return 0;
4104}
4105_ACEOF
4106rm -f conftest.$ac_objext
4107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108 (eval $ac_compile) 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 ac_cv_c_const=yes
4128else
4129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132ac_cv_c_const=no
4133fi
4134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135fi
4136echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4137echo "${ECHO_T}$ac_cv_c_const" >&6
4138if test $ac_cv_c_const = no; then
4139
4140cat >>confdefs.h <<\_ACEOF
4141#define const
4142_ACEOF
4143
4144fi
4145
4146
4147 echo "$as_me:$LINENO: checking for signed" >&5
4148echo $ECHO_N "checking for signed... $ECHO_C" >&6
4149if test "${bh_cv_c_signed+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152 cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158
4159int
4160main ()
4161{
4162signed char x;
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167rm -f conftest.$ac_objext
4168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 (eval $ac_try) 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; } &&
4182 { ac_try='test -s conftest.$ac_objext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 (eval $ac_try) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 bh_cv_c_signed=yes
4189else
4190 echo "$as_me: failed program was:" >&5
4191sed 's/^/| /' conftest.$ac_ext >&5
4192
4193bh_cv_c_signed=no
4194fi
4195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4196fi
4197echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4198echo "${ECHO_T}$bh_cv_c_signed" >&6
4199 if test $bh_cv_c_signed = no; then
4200
4201cat >>confdefs.h <<\_ACEOF
4202#define signed
4203_ACEOF
4204
4205 fi
4206
4207echo "$as_me:$LINENO: checking for inline" >&5
4208echo $ECHO_N "checking for inline... $ECHO_C" >&6
4209if test "${ac_cv_c_inline+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211else
4212 ac_cv_c_inline=no
4213for ac_kw in inline __inline__ __inline; do
4214 cat >conftest.$ac_ext <<_ACEOF
4215/* confdefs.h. */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h. */
4220#ifndef __cplusplus
4221typedef int foo_t;
4222static $ac_kw foo_t static_foo () {return 0; }
4223$ac_kw foo_t foo () {return 0; }
4224#endif
4225
4226_ACEOF
4227rm -f conftest.$ac_objext
4228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>conftest.er1
4230 ac_status=$?
4231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_c_inline=$ac_kw; break
4249else
4250 echo "$as_me: failed program was:" >&5
4251sed 's/^/| /' conftest.$ac_ext >&5
4252
4253fi
4254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255done
4256
4257fi
4258echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4259echo "${ECHO_T}$ac_cv_c_inline" >&6
4260
4261
4262case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004263 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004264 *)
4265 case $ac_cv_c_inline in
4266 no) ac_val=;;
4267 *) ac_val=$ac_cv_c_inline;;
4268 esac
4269 cat >>confdefs.h <<_ACEOF
4270#ifndef __cplusplus
4271#define inline $ac_val
4272#endif
4273_ACEOF
4274 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004275esac
4276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004277echo "$as_me:$LINENO: checking for off_t" >&5
4278echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4279if test "${ac_cv_type_off_t+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004281else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004282 cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h. */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h. */
4288$ac_includes_default
4289int
4290main ()
4291{
4292if ((off_t *) 0)
4293 return 0;
4294if (sizeof (off_t))
4295 return 0;
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300rm -f conftest.$ac_objext
4301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302 (eval $ac_compile) 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } &&
4309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 (eval $ac_try) 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; } &&
4315 { ac_try='test -s conftest.$ac_objext'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 (eval $ac_try) 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004321 ac_cv_type_off_t=yes
4322else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004323 echo "$as_me: failed program was:" >&5
4324sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04004325
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004326ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004327fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004329fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4331echo "${ECHO_T}$ac_cv_type_off_t" >&6
4332if test $ac_cv_type_off_t = yes; then
4333 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004334else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004335
4336cat >>confdefs.h <<_ACEOF
4337#define off_t long
4338_ACEOF
4339
4340fi
4341
4342echo "$as_me:$LINENO: checking for size_t" >&5
4343echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4344if test "${ac_cv_type_size_t+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347 cat >conftest.$ac_ext <<_ACEOF
4348/* confdefs.h. */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h. */
4353$ac_includes_default
4354int
4355main ()
4356{
4357if ((size_t *) 0)
4358 return 0;
4359if (sizeof (size_t))
4360 return 0;
4361 ;
4362 return 0;
4363}
4364_ACEOF
4365rm -f conftest.$ac_objext
4366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>conftest.er1
4368 ac_status=$?
4369 grep -v '^ *+' conftest.er1 >conftest.err
4370 rm -f conftest.er1
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004386 ac_cv_type_size_t=yes
4387else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004388 echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391ac_cv_type_size_t=no
4392fi
4393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4394fi
4395echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4396echo "${ECHO_T}$ac_cv_type_size_t" >&6
4397if test $ac_cv_type_size_t = yes; then
4398 :
4399else
4400
4401cat >>confdefs.h <<_ACEOF
4402#define size_t unsigned
4403_ACEOF
4404
4405fi
4406
4407
4408 echo "$as_me:$LINENO: checking for long long" >&5
4409echo $ECHO_N "checking for long long... $ECHO_C" >&6
4410if test "${ac_cv_type_long_long+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412else
4413 cat >conftest.$ac_ext <<_ACEOF
4414/* confdefs.h. */
4415_ACEOF
4416cat confdefs.h >>conftest.$ac_ext
4417cat >>conftest.$ac_ext <<_ACEOF
4418/* end confdefs.h. */
4419long long ll = 1LL; int i = 63;
4420int
4421main ()
4422{
4423long long llmax = (long long) -1;
4424 return ll << i | ll >> i | llmax / ll | llmax % ll;
4425 ;
4426 return 0;
4427}
4428_ACEOF
4429rm -f conftest.$ac_objext conftest$ac_exeext
4430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4431 (eval $ac_link) 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; } &&
4444 { ac_try='test -s conftest$ac_exeext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_type_long_long=yes
4451else
4452 echo "$as_me: failed program was:" >&5
4453sed 's/^/| /' conftest.$ac_ext >&5
4454
4455ac_cv_type_long_long=no
4456fi
4457rm -f conftest.err conftest.$ac_objext \
4458 conftest$ac_exeext conftest.$ac_ext
4459fi
4460echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4461echo "${ECHO_T}$ac_cv_type_long_long" >&6
4462 if test $ac_cv_type_long_long = yes; then
4463
4464cat >>confdefs.h <<\_ACEOF
4465#define HAVE_LONG_LONG 1
4466_ACEOF
4467
4468 fi
4469
4470
4471 echo "$as_me:$LINENO: checking for long double" >&5
4472echo $ECHO_N "checking for long double... $ECHO_C" >&6
4473if test "${gt_cv_c_long_double+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475else
4476 if test "$GCC" = yes; then
4477 gt_cv_c_long_double=yes
4478 else
4479 cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h. */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
4485
4486 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4487 long double foo = 0.0;
4488 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4489 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4490
4491int
4492main ()
4493{
4494
4495 ;
4496 return 0;
4497}
4498_ACEOF
4499rm -f conftest.$ac_objext
4500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501 (eval $ac_compile) 2>conftest.er1
4502 ac_status=$?
4503 grep -v '^ *+' conftest.er1 >conftest.err
4504 rm -f conftest.er1
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } &&
4508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; } &&
4514 { ac_try='test -s conftest.$ac_objext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 gt_cv_c_long_double=yes
4521else
4522 echo "$as_me: failed program was:" >&5
4523sed 's/^/| /' conftest.$ac_ext >&5
4524
4525gt_cv_c_long_double=no
4526fi
4527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4528 fi
4529fi
4530echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4531echo "${ECHO_T}$gt_cv_c_long_double" >&6
4532 if test $gt_cv_c_long_double = yes; then
4533
4534cat >>confdefs.h <<\_ACEOF
4535#define HAVE_LONG_DOUBLE 1
4536_ACEOF
4537
4538 fi
4539
4540
4541 echo "$as_me:$LINENO: checking for wchar_t" >&5
4542echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4543if test "${gt_cv_c_wchar_t+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545else
4546 cat >conftest.$ac_ext <<_ACEOF
4547/* confdefs.h. */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h. */
4552#include <stddef.h>
4553 wchar_t foo = (wchar_t)'\0';
4554int
4555main ()
4556{
4557
4558 ;
4559 return 0;
4560}
4561_ACEOF
4562rm -f conftest.$ac_objext
4563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4564 (eval $ac_compile) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 gt_cv_c_wchar_t=yes
4584else
4585 echo "$as_me: failed program was:" >&5
4586sed 's/^/| /' conftest.$ac_ext >&5
4587
4588gt_cv_c_wchar_t=no
4589fi
4590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4591fi
4592echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4593echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4594 if test $gt_cv_c_wchar_t = yes; then
4595
4596cat >>confdefs.h <<\_ACEOF
4597#define HAVE_WCHAR_T 1
4598_ACEOF
4599
4600 fi
4601
4602
4603 echo "$as_me:$LINENO: checking for wint_t" >&5
4604echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4605if test "${gt_cv_c_wint_t+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608 cat >conftest.$ac_ext <<_ACEOF
4609/* confdefs.h. */
4610_ACEOF
4611cat confdefs.h >>conftest.$ac_ext
4612cat >>conftest.$ac_ext <<_ACEOF
4613/* end confdefs.h. */
4614#include <wchar.h>
4615 wint_t foo = (wchar_t)'\0';
4616int
4617main ()
4618{
4619
4620 ;
4621 return 0;
4622}
4623_ACEOF
4624rm -f conftest.$ac_objext
4625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest.$ac_objext'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 (eval $ac_try) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4645 gt_cv_c_wint_t=yes
4646else
4647 echo "$as_me: failed program was:" >&5
4648sed 's/^/| /' conftest.$ac_ext >&5
4649
4650gt_cv_c_wint_t=no
4651fi
4652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653fi
4654echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4655echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4656 if test $gt_cv_c_wint_t = yes; then
4657
4658cat >>confdefs.h <<\_ACEOF
4659#define HAVE_WINT_T 1
4660_ACEOF
4661
4662 fi
4663
4664
4665 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4666echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4667if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 cat >conftest.$ac_ext <<_ACEOF
4671/* confdefs.h. */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h. */
4676#include <sys/types.h>
4677#include <inttypes.h>
4678int
4679main ()
4680{
4681uintmax_t i = (uintmax_t) -1;
4682 ;
4683 return 0;
4684}
4685_ACEOF
4686rm -f conftest.$ac_objext
4687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>conftest.er1
4689 ac_status=$?
4690 grep -v '^ *+' conftest.er1 >conftest.err
4691 rm -f conftest.er1
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
4695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; } &&
4701 { ac_try='test -s conftest.$ac_objext'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 jm_ac_cv_header_inttypes_h=yes
4708else
4709 echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
4711
4712jm_ac_cv_header_inttypes_h=no
4713fi
4714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4715fi
4716echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4717echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4718 if test $jm_ac_cv_header_inttypes_h = yes; then
4719
4720cat >>confdefs.h <<_ACEOF
4721#define HAVE_INTTYPES_H_WITH_UINTMAX 1
4722_ACEOF
4723
4724 fi
4725
4726
4727 echo "$as_me:$LINENO: checking for stdint.h" >&5
4728echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4729if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731else
4732 cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4738#include <sys/types.h>
4739#include <stdint.h>
4740int
4741main ()
4742{
4743uintmax_t i = (uintmax_t) -1;
4744 ;
4745 return 0;
4746}
4747_ACEOF
4748rm -f conftest.$ac_objext
4749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } &&
4757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 jm_ac_cv_header_stdint_h=yes
4770else
4771 echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774jm_ac_cv_header_stdint_h=no
4775fi
4776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777fi
4778echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4779echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4780 if test $jm_ac_cv_header_stdint_h = yes; then
4781
4782cat >>confdefs.h <<_ACEOF
4783#define HAVE_STDINT_H_WITH_UINTMAX 1
4784_ACEOF
4785
4786 fi
4787
4788
4789
4790
4791 echo "$as_me:$LINENO: checking for intmax_t" >&5
4792echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4793if test "${gt_cv_c_intmax_t+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796 cat >conftest.$ac_ext <<_ACEOF
4797/* confdefs.h. */
4798_ACEOF
4799cat confdefs.h >>conftest.$ac_ext
4800cat >>conftest.$ac_ext <<_ACEOF
4801/* end confdefs.h. */
4802
4803#include <stddef.h>
4804#include <stdlib.h>
4805#if HAVE_STDINT_H_WITH_UINTMAX
4806#include <stdint.h>
4807#endif
4808#if HAVE_INTTYPES_H_WITH_UINTMAX
4809#include <inttypes.h>
4810#endif
4811
4812int
4813main ()
4814{
4815intmax_t x = -1;
4816 ;
4817 return 0;
4818}
4819_ACEOF
4820rm -f conftest.$ac_objext
4821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4823 ac_status=$?
4824 grep -v '^ *+' conftest.er1 >conftest.err
4825 rm -f conftest.er1
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 gt_cv_c_intmax_t=yes
4842else
4843 echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846gt_cv_c_intmax_t=no
4847fi
4848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4849fi
4850echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4851echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4852 if test $gt_cv_c_intmax_t = yes; then
4853
4854cat >>confdefs.h <<\_ACEOF
4855#define HAVE_INTMAX_T 1
4856_ACEOF
4857
4858 fi
4859
4860
4861
4862 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4863echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4864if test "${gt_cv_func_printf_posix+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867
4868 if test "$cross_compiling" = yes; then
4869
4870 cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h. */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h. */
4876
4877#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4878 notposix
4879#endif
4880
4881_ACEOF
4882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883 $EGREP "notposix" >/dev/null 2>&1; then
4884 gt_cv_func_printf_posix="guessing no"
4885else
4886 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004887fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004888rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004889
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004890
4891else
4892 cat >conftest.$ac_ext <<_ACEOF
4893/* confdefs.h. */
4894_ACEOF
4895cat confdefs.h >>conftest.$ac_ext
4896cat >>conftest.$ac_ext <<_ACEOF
4897/* end confdefs.h. */
4898
4899#include <stdio.h>
4900#include <string.h>
4901/* The string "%2$d %1$d", with dollar characters protected from the shell's
4902 dollar expansion (possibly an autoconf bug). */
4903static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4904static char buf[100];
4905int main ()
4906{
4907 sprintf (buf, format, 33, 55);
4908 return (strcmp (buf, "55 33") != 0);
4909}
4910_ACEOF
4911rm -f conftest$ac_exeext
4912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913 (eval $ac_link) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 gt_cv_func_printf_posix=yes
4923else
4924 echo "$as_me: program exited with status $ac_status" >&5
4925echo "$as_me: failed program was:" >&5
4926sed 's/^/| /' conftest.$ac_ext >&5
4927
4928( exit $ac_status )
4929gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004930fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4932fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004933
4934fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004935echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4936echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4937 case $gt_cv_func_printf_posix in
4938 *yes)
4939
4940cat >>confdefs.h <<\_ACEOF
4941#define HAVE_POSIX_PRINTF 1
4942_ACEOF
4943
4944 ;;
4945 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004946
4947# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4948# for constant arguments. Useless!
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004949echo "$as_me:$LINENO: checking for working alloca.h" >&5
4950echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4951if test "${ac_cv_working_alloca_h+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004953else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004960#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004961int
4962main ()
4963{
4964char *p = (char *) alloca (2 * sizeof (int));
4965 ;
4966 return 0;
4967}
4968_ACEOF
4969rm -f conftest.$ac_objext conftest$ac_exeext
4970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004992 echo "$as_me: failed program was:" >&5
4993sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004994
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004995ac_cv_working_alloca_h=no
4996fi
4997rm -f conftest.err conftest.$ac_objext \
4998 conftest$ac_exeext conftest.$ac_ext
4999fi
5000echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5001echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5002if test $ac_cv_working_alloca_h = yes; then
5003
5004cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005005#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005006_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005007
5008fi
5009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005010echo "$as_me:$LINENO: checking for alloca" >&5
5011echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5012if test "${ac_cv_func_alloca_works+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005014else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005015 cat >conftest.$ac_ext <<_ACEOF
5016/* confdefs.h. */
5017_ACEOF
5018cat confdefs.h >>conftest.$ac_ext
5019cat >>conftest.$ac_ext <<_ACEOF
5020/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005021#ifdef __GNUC__
5022# define alloca __builtin_alloca
5023#else
5024# ifdef _MSC_VER
5025# include <malloc.h>
5026# define alloca _alloca
5027# else
5028# if HAVE_ALLOCA_H
5029# include <alloca.h>
5030# else
5031# ifdef _AIX
5032 #pragma alloca
5033# else
5034# ifndef alloca /* predefined by HP cc +Olibcalls */
5035char *alloca ();
5036# endif
5037# endif
5038# endif
5039# endif
5040#endif
5041
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005042int
5043main ()
5044{
5045char *p = (char *) alloca (1);
5046 ;
5047 return 0;
5048}
5049_ACEOF
5050rm -f conftest.$ac_objext conftest$ac_exeext
5051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052 (eval $ac_link) 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest$ac_exeext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005071 ac_cv_func_alloca_works=yes
5072else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005073 echo "$as_me: failed program was:" >&5
5074sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005075
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005076ac_cv_func_alloca_works=no
5077fi
5078rm -f conftest.err conftest.$ac_objext \
5079 conftest$ac_exeext conftest.$ac_ext
5080fi
5081echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5082echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5083
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005084if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005085
5086cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005087#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005088_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005089
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005090else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005091 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5092# that cause trouble. Some versions do not even contain alloca or
5093# contain a buggy version. If you still want to use their alloca,
5094# use ar to extract alloca.o from them instead of compiling alloca.c.
5095
5096ALLOCA=alloca.$ac_objext
5097
5098cat >>confdefs.h <<\_ACEOF
5099#define C_ALLOCA 1
5100_ACEOF
5101
5102
5103echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5104echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5105if test "${ac_cv_os_cray+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107else
5108 cat >conftest.$ac_ext <<_ACEOF
5109/* confdefs.h. */
5110_ACEOF
5111cat confdefs.h >>conftest.$ac_ext
5112cat >>conftest.$ac_ext <<_ACEOF
5113/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005114#if defined(CRAY) && ! defined(CRAY2)
5115webecray
5116#else
5117wenotbecray
5118#endif
5119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005120_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005122 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005123 ac_cv_os_cray=yes
5124else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005125 ac_cv_os_cray=no
5126fi
5127rm -f conftest*
5128
5129fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005130echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5131echo "${ECHO_T}$ac_cv_os_cray" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005132if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005133 for ac_func in _getb67 GETB67 getb67; do
5134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5135echo "$as_me:$LINENO: checking for $ac_func" >&5
5136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5137if eval "test \"\${$as_ac_var+set}\" = set"; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005140 cat >conftest.$ac_ext <<_ACEOF
5141/* confdefs.h. */
5142_ACEOF
5143cat confdefs.h >>conftest.$ac_ext
5144cat >>conftest.$ac_ext <<_ACEOF
5145/* end confdefs.h. */
5146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5148#define $ac_func innocuous_$ac_func
5149
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005150/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005151 which can conflict with char $ac_func (); below.
5152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5153 <limits.h> exists even on freestanding compilers. */
5154
5155#ifdef __STDC__
5156# include <limits.h>
5157#else
5158# include <assert.h>
5159#endif
5160
5161#undef $ac_func
5162
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005163/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005164#ifdef __cplusplus
5165extern "C"
5166{
5167#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005168/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005169 builtin and then its argument prototype would still apply. */
5170char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005171/* The GNU C library defines this for functions which it implements
5172 to always fail with ENOSYS. Some functions are actually named
5173 something starting with __ and the normal name is an alias. */
5174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5175choke me
5176#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005177char (*f) () = $ac_func;
5178#endif
5179#ifdef __cplusplus
5180}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005181#endif
5182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005183int
5184main ()
5185{
5186return f != $ac_func;
5187 ;
5188 return 0;
5189}
5190_ACEOF
5191rm -f conftest.$ac_objext conftest$ac_exeext
5192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
5200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest$ac_exeext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005213else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005214 echo "$as_me: failed program was:" >&5
5215sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005216
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005217eval "$as_ac_var=no"
5218fi
5219rm -f conftest.err conftest.$ac_objext \
5220 conftest$ac_exeext conftest.$ac_ext
5221fi
5222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5224if test `eval echo '${'$as_ac_var'}'` = yes; then
5225
5226cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005227#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005228_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005229
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005230 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005231fi
5232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005233 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005234fi
5235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005236echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5237echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5238if test "${ac_cv_c_stack_direction+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005240else
5241 if test "$cross_compiling" = yes; then
5242 ac_cv_c_stack_direction=0
5243else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005244 cat >conftest.$ac_ext <<_ACEOF
5245/* confdefs.h. */
5246_ACEOF
5247cat confdefs.h >>conftest.$ac_ext
5248cat >>conftest.$ac_ext <<_ACEOF
5249/* end confdefs.h. */
5250int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005251find_stack_direction ()
5252{
5253 static char *addr = 0;
5254 auto char dummy;
5255 if (addr == 0)
5256 {
5257 addr = &dummy;
5258 return find_stack_direction ();
5259 }
5260 else
5261 return (&dummy > addr) ? 1 : -1;
5262}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005263
5264int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005265main ()
5266{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005267 exit (find_stack_direction () < 0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005268}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005269_ACEOF
5270rm -f conftest$ac_exeext
5271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005281 ac_cv_c_stack_direction=1
5282else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005283 echo "$as_me: program exited with status $ac_status" >&5
5284echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005287( exit $ac_status )
5288ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005289fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005290rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5291fi
5292fi
5293echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5294echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005296cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005297#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005298_ACEOF
5299
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005300
5301fi
5302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005303
5304
5305for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005306do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5308if eval "test \"\${$as_ac_Header+set}\" = set"; then
5309 echo "$as_me:$LINENO: checking for $ac_header" >&5
5310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5311if eval "test \"\${$as_ac_Header+set}\" = set"; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005313fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005316else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005317 # Is the header compilable?
5318echo "$as_me:$LINENO: checking $ac_header usability" >&5
5319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5320cat >conftest.$ac_ext <<_ACEOF
5321/* confdefs.h. */
5322_ACEOF
5323cat confdefs.h >>conftest.$ac_ext
5324cat >>conftest.$ac_ext <<_ACEOF
5325/* end confdefs.h. */
5326$ac_includes_default
5327#include <$ac_header>
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_header_compiler=yes
5351else
5352 echo "$as_me: failed program was:" >&5
5353sed 's/^/| /' conftest.$ac_ext >&5
5354
5355ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005356fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359echo "${ECHO_T}$ac_header_compiler" >&6
5360
5361# Is the header present?
5362echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5364cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
5370#include <$ac_header>
5371_ACEOF
5372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null; then
5380 if test -s conftest.err; then
5381 ac_cpp_err=$ac_c_preproc_warn_flag
5382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5383 else
5384 ac_cpp_err=
5385 fi
5386else
5387 ac_cpp_err=yes
5388fi
5389if test -z "$ac_cpp_err"; then
5390 ac_header_preproc=yes
5391else
5392 echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ac_header_preproc=no
5396fi
5397rm -f conftest.err conftest.$ac_ext
5398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5399echo "${ECHO_T}$ac_header_preproc" >&6
5400
5401# So? What about this header?
5402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5403 yes:no: )
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5408 ac_header_preproc=yes
5409 ;;
5410 no:yes:* )
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5418echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5423 (
5424 cat <<\_ASBOX
5425## ------------------------------------------ ##
5426## Report this to the AC_PACKAGE_NAME lists. ##
5427## ------------------------------------------ ##
5428_ASBOX
5429 ) |
5430 sed "s/^/$as_me: WARNING: /" >&2
5431 ;;
5432esac
5433echo "$as_me:$LINENO: checking for $ac_header" >&5
5434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5435if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438 eval "$as_ac_Header=\$ac_header_preproc"
5439fi
5440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442
5443fi
5444if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445 cat >>confdefs.h <<_ACEOF
5446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447_ACEOF
5448
5449fi
5450
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005451done
5452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005453
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005454for ac_func in getpagesize
5455do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5457echo "$as_me:$LINENO: checking for $ac_func" >&5
5458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5459if eval "test \"\${$as_ac_var+set}\" = set"; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005461else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005462 cat >conftest.$ac_ext <<_ACEOF
5463/* confdefs.h. */
5464_ACEOF
5465cat confdefs.h >>conftest.$ac_ext
5466cat >>conftest.$ac_ext <<_ACEOF
5467/* end confdefs.h. */
5468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5470#define $ac_func innocuous_$ac_func
5471
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005472/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005473 which can conflict with char $ac_func (); below.
5474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5475 <limits.h> exists even on freestanding compilers. */
5476
5477#ifdef __STDC__
5478# include <limits.h>
5479#else
5480# include <assert.h>
5481#endif
5482
5483#undef $ac_func
5484
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005485/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005486#ifdef __cplusplus
5487extern "C"
5488{
5489#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005490/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005491 builtin and then its argument prototype would still apply. */
5492char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005493/* The GNU C library defines this for functions which it implements
5494 to always fail with ENOSYS. Some functions are actually named
5495 something starting with __ and the normal name is an alias. */
5496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5497choke me
5498#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005499char (*f) () = $ac_func;
5500#endif
5501#ifdef __cplusplus
5502}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005503#endif
5504
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005505int
5506main ()
5507{
5508return f != $ac_func;
5509 ;
5510 return 0;
5511}
5512_ACEOF
5513rm -f conftest.$ac_objext conftest$ac_exeext
5514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515 (eval $ac_link) 2>conftest.er1
5516 ac_status=$?
5517 grep -v '^ *+' conftest.er1 >conftest.err
5518 rm -f conftest.er1
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005535else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005536 echo "$as_me: failed program was:" >&5
5537sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005539eval "$as_ac_var=no"
5540fi
5541rm -f conftest.err conftest.$ac_objext \
5542 conftest$ac_exeext conftest.$ac_ext
5543fi
5544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5545echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5546if test `eval echo '${'$as_ac_var'}'` = yes; then
5547 cat >>confdefs.h <<_ACEOF
5548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5549_ACEOF
5550
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005551fi
5552done
5553
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005554echo "$as_me:$LINENO: checking for working mmap" >&5
5555echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5556if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005558else
5559 if test "$cross_compiling" = yes; then
5560 ac_cv_func_mmap_fixed_mapped=no
5561else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005562 cat >conftest.$ac_ext <<_ACEOF
5563/* confdefs.h. */
5564_ACEOF
5565cat confdefs.h >>conftest.$ac_ext
5566cat >>conftest.$ac_ext <<_ACEOF
5567/* end confdefs.h. */
5568$ac_includes_default
5569/* malloc might have been renamed as rpl_malloc. */
5570#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005571
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005572/* Thanks to Mike Haertel and Jim Avera for this test.
5573 Here is a matrix of mmap possibilities:
5574 mmap private not fixed
5575 mmap private fixed at somewhere currently unmapped
5576 mmap private fixed at somewhere already mapped
5577 mmap shared not fixed
5578 mmap shared fixed at somewhere currently unmapped
5579 mmap shared fixed at somewhere already mapped
5580 For private mappings, we should verify that changes cannot be read()
5581 back from the file, nor mmap's back from the file at a different
5582 address. (There have been systems where private was not correctly
5583 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005584 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005585 like early versions of FreeBSD and possibly contemporary NetBSD.)
5586 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005587 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005588
5589 Grep wants private fixed already mapped.
5590 The main things grep needs to know about mmap are:
5591 * does it exist and is it safe to write into the mmap'd area
5592 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005593
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005594#include <fcntl.h>
5595#include <sys/mman.h>
5596
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005597#if !STDC_HEADERS && !HAVE_STDLIB_H
5598char *malloc ();
5599#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005601/* This mess was copied from the GNU getpagesize.h. */
5602#if !HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005603/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005604# if !HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005605# define HAVE_SYS_PARAM_H 1
5606# endif
5607
5608# ifdef _SC_PAGESIZE
5609# define getpagesize() sysconf(_SC_PAGESIZE)
5610# else /* no _SC_PAGESIZE */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005611# if HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005612# include <sys/param.h>
5613# ifdef EXEC_PAGESIZE
5614# define getpagesize() EXEC_PAGESIZE
5615# else /* no EXEC_PAGESIZE */
5616# ifdef NBPG
5617# define getpagesize() NBPG * CLSIZE
5618# ifndef CLSIZE
5619# define CLSIZE 1
5620# endif /* no CLSIZE */
5621# else /* no NBPG */
5622# ifdef NBPC
5623# define getpagesize() NBPC
5624# else /* no NBPC */
5625# ifdef PAGESIZE
5626# define getpagesize() PAGESIZE
5627# endif /* PAGESIZE */
5628# endif /* no NBPC */
5629# endif /* no NBPG */
5630# endif /* no EXEC_PAGESIZE */
5631# else /* no HAVE_SYS_PARAM_H */
5632# define getpagesize() 8192 /* punt totally */
5633# endif /* no HAVE_SYS_PARAM_H */
5634# endif /* no _SC_PAGESIZE */
5635
5636#endif /* no HAVE_GETPAGESIZE */
5637
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005638int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005639main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005640{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005641 char *data, *data2, *data3;
5642 int i, pagesize;
5643 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005644
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005645 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005646
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005647 /* First, make a file with some known garbage in it. */
5648 data = (char *) malloc (pagesize);
5649 if (!data)
5650 exit (1);
5651 for (i = 0; i < pagesize; ++i)
5652 *(data + i) = rand ();
5653 umask (0);
5654 fd = creat ("conftest.mmap", 0600);
5655 if (fd < 0)
5656 exit (1);
5657 if (write (fd, data, pagesize) != pagesize)
5658 exit (1);
5659 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005661 /* Next, try to mmap the file at a fixed address which already has
5662 something else allocated at it. If we can, also make sure that
5663 we see the same garbage. */
5664 fd = open ("conftest.mmap", O_RDWR);
5665 if (fd < 0)
5666 exit (1);
5667 data2 = (char *) malloc (2 * pagesize);
5668 if (!data2)
5669 exit (1);
5670 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5671 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5672 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5673 exit (1);
5674 for (i = 0; i < pagesize; ++i)
5675 if (*(data + i) != *(data2 + i))
5676 exit (1);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005677
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005678 /* Finally, make sure that changes to the mapped area do not
5679 percolate back to the file as seen by read(). (This is a bug on
5680 some variants of i386 svr4.0.) */
5681 for (i = 0; i < pagesize; ++i)
5682 *(data2 + i) = *(data2 + i) + 1;
5683 data3 = (char *) malloc (pagesize);
5684 if (!data3)
5685 exit (1);
5686 if (read (fd, data3, pagesize) != pagesize)
5687 exit (1);
5688 for (i = 0; i < pagesize; ++i)
5689 if (*(data + i) != *(data3 + i))
5690 exit (1);
5691 close (fd);
5692 exit (0);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005693}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005694_ACEOF
5695rm -f conftest$ac_exeext
5696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005706 ac_cv_func_mmap_fixed_mapped=yes
5707else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005708 echo "$as_me: program exited with status $ac_status" >&5
5709echo "$as_me: failed program was:" >&5
5710sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005711
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005712( exit $ac_status )
5713ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005714fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005715rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5716fi
5717fi
5718echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5719echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005720if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005721
5722cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005723#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005724_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005725
5726fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005727rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005728
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005729
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005730 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5731echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5732if test "${ac_cv_gnu_library_2_1+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005734else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005735 cat >conftest.$ac_ext <<_ACEOF
5736/* confdefs.h. */
5737_ACEOF
5738cat confdefs.h >>conftest.$ac_ext
5739cat >>conftest.$ac_ext <<_ACEOF
5740/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005741
5742#include <features.h>
5743#ifdef __GNU_LIBRARY__
5744 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5745 Lucky GNU user
5746 #endif
5747#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005748
5749_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005751 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005752 ac_cv_gnu_library_2_1=yes
5753else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005754 ac_cv_gnu_library_2_1=no
5755fi
5756rm -f conftest*
5757
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005758
5759
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005760fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005761echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5762echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005763
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005764 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005765
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005767
5768
5769 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5770echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5771if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005773else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005774
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005775 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005776
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005777 # Guess based on the CPU.
5778 case "$host_cpu" in
5779 alpha* | i3456786 | m68k | s390*)
5780 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5781 *)
5782 gt_cv_int_divbyzero_sigfpe="guessing no";;
5783 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005784
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005785else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005786 cat >conftest.$ac_ext <<_ACEOF
5787/* confdefs.h. */
5788_ACEOF
5789cat confdefs.h >>conftest.$ac_ext
5790cat >>conftest.$ac_ext <<_ACEOF
5791/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005792
5793#include <stdlib.h>
5794#include <signal.h>
5795
5796static void
5797#ifdef __cplusplus
5798sigfpe_handler (int sig)
5799#else
5800sigfpe_handler (sig) int sig;
5801#endif
5802{
5803 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5804 exit (sig != SIGFPE);
5805}
5806
5807int x = 1;
5808int y = 0;
5809int z;
5810int nan;
5811
5812int main ()
5813{
5814 signal (SIGFPE, sigfpe_handler);
5815/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5816#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5817 signal (SIGTRAP, sigfpe_handler);
5818#endif
5819/* Linux/SPARC yields signal SIGILL. */
5820#if defined (__sparc__) && defined (__linux__)
5821 signal (SIGILL, sigfpe_handler);
5822#endif
5823
5824 z = x / y;
5825 nan = y / y;
5826 exit (1);
5827}
5828
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005829_ACEOF
5830rm -f conftest$ac_exeext
5831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5832 (eval $ac_link) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005841 gt_cv_int_divbyzero_sigfpe=yes
5842else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005843 echo "$as_me: program exited with status $ac_status" >&5
5844echo "$as_me: failed program was:" >&5
5845sed 's/^/| /' conftest.$ac_ext >&5
5846
5847( exit $ac_status )
5848gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005849fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005851fi
5852
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005853fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005854echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5855echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005856 case "$gt_cv_int_divbyzero_sigfpe" in
5857 *yes) value=1;;
5858 *) value=0;;
5859 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005860
5861cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005862#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005863_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005864
5865
5866
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005867 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5868echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5869if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
5878unsigned long long ull = 1ULL; int i = 63;
5879int
5880main ()
5881{
5882unsigned long long ullmax = (unsigned long long) -1;
5883 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5884 ;
5885 return 0;
5886}
5887_ACEOF
5888rm -f conftest.$ac_objext conftest$ac_exeext
5889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890 (eval $ac_link) 2>conftest.er1
5891 ac_status=$?
5892 grep -v '^ *+' conftest.er1 >conftest.err
5893 rm -f conftest.er1
5894 cat conftest.err >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } &&
5897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 (eval $ac_try) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; } &&
5903 { ac_try='test -s conftest$ac_exeext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 (eval $ac_try) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 ac_cv_type_unsigned_long_long=yes
5910else
5911 echo "$as_me: failed program was:" >&5
5912sed 's/^/| /' conftest.$ac_ext >&5
5913
5914ac_cv_type_unsigned_long_long=no
5915fi
5916rm -f conftest.err conftest.$ac_objext \
5917 conftest$ac_exeext conftest.$ac_ext
5918fi
5919echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5920echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5921 if test $ac_cv_type_unsigned_long_long = yes; then
5922
5923cat >>confdefs.h <<\_ACEOF
5924#define HAVE_UNSIGNED_LONG_LONG 1
5925_ACEOF
5926
5927 fi
5928
5929
5930
5931
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005932 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 -05005933
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005934 test $ac_cv_type_unsigned_long_long = yes \
5935 && ac_type='unsigned long long' \
5936 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005937
5938cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005939#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005940_ACEOF
5941
5942 else
5943
5944cat >>confdefs.h <<\_ACEOF
5945#define HAVE_UINTMAX_T 1
5946_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005947
5948 fi
5949
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005951 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5952echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5953if test "${gt_cv_header_inttypes_h+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005955else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005956
5957 cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005963#include <sys/types.h>
5964#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005965int
5966main ()
5967{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005968
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005969 ;
5970 return 0;
5971}
5972_ACEOF
5973rm -f conftest.$ac_objext
5974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005994 gt_cv_header_inttypes_h=yes
5995else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005996 echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999gt_cv_header_inttypes_h=no
6000fi
6001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6002
6003fi
6004echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6005echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006006 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006007
6008cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006009#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006010_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006011
6012 fi
6013
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006014
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006015
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006016 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006017 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6018echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6019if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006021else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006022
6023 cat >conftest.$ac_ext <<_ACEOF
6024/* confdefs.h. */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
6028/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006029#include <inttypes.h>
6030#ifdef PRId32
6031char *p = PRId32;
6032#endif
6033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034int
6035main ()
6036{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006037
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006038 ;
6039 return 0;
6040}
6041_ACEOF
6042rm -f conftest.$ac_objext
6043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 (eval $ac_try) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006063 gt_cv_inttypes_pri_broken=no
6064else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065 echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006067
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006068gt_cv_inttypes_pri_broken=yes
6069fi
6070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6071
6072fi
6073echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6074echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006075 fi
6076 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077
6078cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006079#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006080_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006081
6082 fi
6083
6084
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006085
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006086for ac_header in stdint.h
6087do
6088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6089if eval "test \"\${$as_ac_Header+set}\" = set"; then
6090 echo "$as_me:$LINENO: checking for $ac_header" >&5
6091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6092if eval "test \"\${$as_ac_Header+set}\" = set"; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094fi
6095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6097else
6098 # Is the header compilable?
6099echo "$as_me:$LINENO: checking $ac_header usability" >&5
6100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6101cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h. */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h. */
6107$ac_includes_default
6108#include <$ac_header>
6109_ACEOF
6110rm -f conftest.$ac_objext
6111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112 (eval $ac_compile) 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 (eval $ac_try) 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; } &&
6125 { ac_try='test -s conftest.$ac_objext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 ac_header_compiler=yes
6132else
6133 echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136ac_header_compiler=no
6137fi
6138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6140echo "${ECHO_T}$ac_header_compiler" >&6
6141
6142# Is the header present?
6143echo "$as_me:$LINENO: checking $ac_header presence" >&5
6144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6145cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151#include <$ac_header>
6152_ACEOF
6153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } >/dev/null; then
6161 if test -s conftest.err; then
6162 ac_cpp_err=$ac_c_preproc_warn_flag
6163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6164 else
6165 ac_cpp_err=
6166 fi
6167else
6168 ac_cpp_err=yes
6169fi
6170if test -z "$ac_cpp_err"; then
6171 ac_header_preproc=yes
6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 ac_header_preproc=no
6177fi
6178rm -f conftest.err conftest.$ac_ext
6179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6180echo "${ECHO_T}$ac_header_preproc" >&6
6181
6182# So? What about this header?
6183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6184 yes:no: )
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6189 ac_header_preproc=yes
6190 ;;
6191 no:yes:* )
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6195echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6199echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6204 (
6205 cat <<\_ASBOX
6206## ------------------------------------------ ##
6207## Report this to the AC_PACKAGE_NAME lists. ##
6208## ------------------------------------------ ##
6209_ASBOX
6210 ) |
6211 sed "s/^/$as_me: WARNING: /" >&2
6212 ;;
6213esac
6214echo "$as_me:$LINENO: checking for $ac_header" >&5
6215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6216if eval "test \"\${$as_ac_Header+set}\" = set"; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219 eval "$as_ac_Header=\$ac_header_preproc"
6220fi
6221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6223
6224fi
6225if test `eval echo '${'$as_ac_Header'}'` = yes; then
6226 cat >>confdefs.h <<_ACEOF
6227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6228_ACEOF
6229
6230fi
6231
6232done
6233
6234 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6235echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6236 result=
6237 cat >conftest.$ac_ext <<_ACEOF
6238/* confdefs.h. */
6239_ACEOF
6240cat confdefs.h >>conftest.$ac_ext
6241cat >>conftest.$ac_ext <<_ACEOF
6242/* end confdefs.h. */
6243
6244#include <limits.h>
6245#if HAVE_STDINT_H
6246#include <stdint.h>
6247#endif
6248#ifdef SIZE_MAX
6249Found it
6250#endif
6251
6252_ACEOF
6253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6254 $EGREP "Found it" >/dev/null 2>&1; then
6255 result=yes
6256fi
6257rm -f conftest*
6258
6259 if test -z "$result"; then
6260 if test "$cross_compiling" = yes; then
6261 # Depending upon the size, compute the lo and hi bounds.
6262cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h. */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h. */
6268#include <stddef.h>
6269int
6270main ()
6271{
6272static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6273test_array [0] = 0
6274
6275 ;
6276 return 0;
6277}
6278_ACEOF
6279rm -f conftest.$ac_objext
6280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest.$ac_objext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 (eval $ac_try) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_lo=0 ac_mid=0
6301 while :; do
6302 cat >conftest.$ac_ext <<_ACEOF
6303/* confdefs.h. */
6304_ACEOF
6305cat confdefs.h >>conftest.$ac_ext
6306cat >>conftest.$ac_ext <<_ACEOF
6307/* end confdefs.h. */
6308#include <stddef.h>
6309int
6310main ()
6311{
6312static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6313test_array [0] = 0
6314
6315 ;
6316 return 0;
6317}
6318_ACEOF
6319rm -f conftest.$ac_objext
6320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest.$ac_objext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_hi=$ac_mid; break
6341else
6342 echo "$as_me: failed program was:" >&5
6343sed 's/^/| /' conftest.$ac_ext >&5
6344
6345ac_lo=`expr $ac_mid + 1`
6346 if test $ac_lo -le $ac_mid; then
6347 ac_lo= ac_hi=
6348 break
6349 fi
6350 ac_mid=`expr 2 '*' $ac_mid + 1`
6351fi
6352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6353 done
6354else
6355 echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
6358cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h. */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h. */
6364#include <stddef.h>
6365int
6366main ()
6367{
6368static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6369test_array [0] = 0
6370
6371 ;
6372 return 0;
6373}
6374_ACEOF
6375rm -f conftest.$ac_objext
6376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>conftest.er1
6378 ac_status=$?
6379 grep -v '^ *+' conftest.er1 >conftest.err
6380 rm -f conftest.er1
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6396 ac_hi=-1 ac_mid=-1
6397 while :; do
6398 cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h. */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h. */
6404#include <stddef.h>
6405int
6406main ()
6407{
6408static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6409test_array [0] = 0
6410
6411 ;
6412 return 0;
6413}
6414_ACEOF
6415rm -f conftest.$ac_objext
6416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; } &&
6430 { ac_try='test -s conftest.$ac_objext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 ac_lo=$ac_mid; break
6437else
6438 echo "$as_me: failed program was:" >&5
6439sed 's/^/| /' conftest.$ac_ext >&5
6440
6441ac_hi=`expr '(' $ac_mid ')' - 1`
6442 if test $ac_mid -le $ac_hi; then
6443 ac_lo= ac_hi=
6444 break
6445 fi
6446 ac_mid=`expr 2 '*' $ac_mid`
6447fi
6448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449 done
6450else
6451 echo "$as_me: failed program was:" >&5
6452sed 's/^/| /' conftest.$ac_ext >&5
6453
6454ac_lo= ac_hi=
6455fi
6456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6457fi
6458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6459# Binary search between lo and hi bounds.
6460while test "x$ac_lo" != "x$ac_hi"; do
6461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6462 cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h. */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h. */
6468#include <stddef.h>
6469int
6470main ()
6471{
6472static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6473test_array [0] = 0
6474
6475 ;
6476 return 0;
6477}
6478_ACEOF
6479rm -f conftest.$ac_objext
6480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_hi=$ac_mid
6501else
6502 echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505ac_lo=`expr '(' $ac_mid ')' + 1`
6506fi
6507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508done
6509case $ac_lo in
6510?*) res_hi=$ac_lo;;
6511'') result=? ;;
6512esac
6513else
6514 if test "$cross_compiling" = yes; then
6515 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6516echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6517 { (exit 1); exit 1; }; }
6518else
6519 cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h. */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h. */
6525#include <stddef.h>
6526long longval () { return ~(size_t)0 / 10; }
6527unsigned long ulongval () { return ~(size_t)0 / 10; }
6528#include <stdio.h>
6529#include <stdlib.h>
6530int
6531main ()
6532{
6533
6534 FILE *f = fopen ("conftest.val", "w");
6535 if (! f)
6536 exit (1);
6537 if ((~(size_t)0 / 10) < 0)
6538 {
6539 long i = longval ();
6540 if (i != (~(size_t)0 / 10))
6541 exit (1);
6542 fprintf (f, "%ld\n", i);
6543 }
6544 else
6545 {
6546 unsigned long i = ulongval ();
6547 if (i != (~(size_t)0 / 10))
6548 exit (1);
6549 fprintf (f, "%lu\n", i);
6550 }
6551 exit (ferror (f) || fclose (f) != 0);
6552
6553 ;
6554 return 0;
6555}
6556_ACEOF
6557rm -f conftest$ac_exeext
6558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 (eval $ac_try) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 res_hi=`cat conftest.val`
6569else
6570 echo "$as_me: program exited with status $ac_status" >&5
6571echo "$as_me: failed program was:" >&5
6572sed 's/^/| /' conftest.$ac_ext >&5
6573
6574( exit $ac_status )
6575result=?
6576fi
6577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6578fi
6579fi
6580rm -f conftest.val
6581 if test "$cross_compiling" = yes; then
6582 # Depending upon the size, compute the lo and hi bounds.
6583cat >conftest.$ac_ext <<_ACEOF
6584/* confdefs.h. */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h. */
6589#include <stddef.h>
6590int
6591main ()
6592{
6593static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6594test_array [0] = 0
6595
6596 ;
6597 return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext
6601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602 (eval $ac_compile) 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_lo=0 ac_mid=0
6622 while :; do
6623 cat >conftest.$ac_ext <<_ACEOF
6624/* confdefs.h. */
6625_ACEOF
6626cat confdefs.h >>conftest.$ac_ext
6627cat >>conftest.$ac_ext <<_ACEOF
6628/* end confdefs.h. */
6629#include <stddef.h>
6630int
6631main ()
6632{
6633static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6634test_array [0] = 0
6635
6636 ;
6637 return 0;
6638}
6639_ACEOF
6640rm -f conftest.$ac_objext
6641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; } &&
6655 { ac_try='test -s conftest.$ac_objext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_hi=$ac_mid; break
6662else
6663 echo "$as_me: failed program was:" >&5
6664sed 's/^/| /' conftest.$ac_ext >&5
6665
6666ac_lo=`expr $ac_mid + 1`
6667 if test $ac_lo -le $ac_mid; then
6668 ac_lo= ac_hi=
6669 break
6670 fi
6671 ac_mid=`expr 2 '*' $ac_mid + 1`
6672fi
6673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 done
6675else
6676 echo "$as_me: failed program was:" >&5
6677sed 's/^/| /' conftest.$ac_ext >&5
6678
6679cat >conftest.$ac_ext <<_ACEOF
6680/* confdefs.h. */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
6684/* end confdefs.h. */
6685#include <stddef.h>
6686int
6687main ()
6688{
6689static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6690test_array [0] = 0
6691
6692 ;
6693 return 0;
6694}
6695_ACEOF
6696rm -f conftest.$ac_objext
6697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6698 (eval $ac_compile) 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; } &&
6711 { ac_try='test -s conftest.$ac_objext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 (eval $ac_try) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 ac_hi=-1 ac_mid=-1
6718 while :; do
6719 cat >conftest.$ac_ext <<_ACEOF
6720/* confdefs.h. */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h. */
6725#include <stddef.h>
6726int
6727main ()
6728{
6729static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6730test_array [0] = 0
6731
6732 ;
6733 return 0;
6734}
6735_ACEOF
6736rm -f conftest.$ac_objext
6737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 ac_lo=$ac_mid; break
6758else
6759 echo "$as_me: failed program was:" >&5
6760sed 's/^/| /' conftest.$ac_ext >&5
6761
6762ac_hi=`expr '(' $ac_mid ')' - 1`
6763 if test $ac_mid -le $ac_hi; then
6764 ac_lo= ac_hi=
6765 break
6766 fi
6767 ac_mid=`expr 2 '*' $ac_mid`
6768fi
6769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6770 done
6771else
6772 echo "$as_me: failed program was:" >&5
6773sed 's/^/| /' conftest.$ac_ext >&5
6774
6775ac_lo= ac_hi=
6776fi
6777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6778fi
6779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6780# Binary search between lo and hi bounds.
6781while test "x$ac_lo" != "x$ac_hi"; do
6782 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6783 cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
6789#include <stddef.h>
6790int
6791main ()
6792{
6793static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6794test_array [0] = 0
6795
6796 ;
6797 return 0;
6798}
6799_ACEOF
6800rm -f conftest.$ac_objext
6801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest.$ac_objext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 ac_hi=$ac_mid
6822else
6823 echo "$as_me: failed program was:" >&5
6824sed 's/^/| /' conftest.$ac_ext >&5
6825
6826ac_lo=`expr '(' $ac_mid ')' + 1`
6827fi
6828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6829done
6830case $ac_lo in
6831?*) res_lo=$ac_lo;;
6832'') result=? ;;
6833esac
6834else
6835 if test "$cross_compiling" = yes; then
6836 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6837echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6838 { (exit 1); exit 1; }; }
6839else
6840 cat >conftest.$ac_ext <<_ACEOF
6841/* confdefs.h. */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h. */
6846#include <stddef.h>
6847long longval () { return ~(size_t)0 % 10; }
6848unsigned long ulongval () { return ~(size_t)0 % 10; }
6849#include <stdio.h>
6850#include <stdlib.h>
6851int
6852main ()
6853{
6854
6855 FILE *f = fopen ("conftest.val", "w");
6856 if (! f)
6857 exit (1);
6858 if ((~(size_t)0 % 10) < 0)
6859 {
6860 long i = longval ();
6861 if (i != (~(size_t)0 % 10))
6862 exit (1);
6863 fprintf (f, "%ld\n", i);
6864 }
6865 else
6866 {
6867 unsigned long i = ulongval ();
6868 if (i != (~(size_t)0 % 10))
6869 exit (1);
6870 fprintf (f, "%lu\n", i);
6871 }
6872 exit (ferror (f) || fclose (f) != 0);
6873
6874 ;
6875 return 0;
6876}
6877_ACEOF
6878rm -f conftest$ac_exeext
6879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880 (eval $ac_link) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; }; then
6889 res_lo=`cat conftest.val`
6890else
6891 echo "$as_me: program exited with status $ac_status" >&5
6892echo "$as_me: failed program was:" >&5
6893sed 's/^/| /' conftest.$ac_ext >&5
6894
6895( exit $ac_status )
6896result=?
6897fi
6898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6899fi
6900fi
6901rm -f conftest.val
6902 if test "$cross_compiling" = yes; then
6903 # Depending upon the size, compute the lo and hi bounds.
6904cat >conftest.$ac_ext <<_ACEOF
6905/* confdefs.h. */
6906_ACEOF
6907cat confdefs.h >>conftest.$ac_ext
6908cat >>conftest.$ac_ext <<_ACEOF
6909/* end confdefs.h. */
6910#include <stddef.h>
6911int
6912main ()
6913{
6914static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6915test_array [0] = 0
6916
6917 ;
6918 return 0;
6919}
6920_ACEOF
6921rm -f conftest.$ac_objext
6922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923 (eval $ac_compile) 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } &&
6930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; } &&
6936 { ac_try='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 ac_lo=0 ac_mid=0
6943 while :; do
6944 cat >conftest.$ac_ext <<_ACEOF
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
6950#include <stddef.h>
6951int
6952main ()
6953{
6954static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6955test_array [0] = 0
6956
6957 ;
6958 return 0;
6959}
6960_ACEOF
6961rm -f conftest.$ac_objext
6962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 ac_hi=$ac_mid; break
6983else
6984 echo "$as_me: failed program was:" >&5
6985sed 's/^/| /' conftest.$ac_ext >&5
6986
6987ac_lo=`expr $ac_mid + 1`
6988 if test $ac_lo -le $ac_mid; then
6989 ac_lo= ac_hi=
6990 break
6991 fi
6992 ac_mid=`expr 2 '*' $ac_mid + 1`
6993fi
6994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995 done
6996else
6997 echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000cat >conftest.$ac_ext <<_ACEOF
7001/* confdefs.h. */
7002_ACEOF
7003cat confdefs.h >>conftest.$ac_ext
7004cat >>conftest.$ac_ext <<_ACEOF
7005/* end confdefs.h. */
7006#include <stddef.h>
7007int
7008main ()
7009{
7010static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7011test_array [0] = 0
7012
7013 ;
7014 return 0;
7015}
7016_ACEOF
7017rm -f conftest.$ac_objext
7018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7019 (eval $ac_compile) 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; } &&
7032 { ac_try='test -s conftest.$ac_objext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_hi=-1 ac_mid=-1
7039 while :; do
7040 cat >conftest.$ac_ext <<_ACEOF
7041/* confdefs.h. */
7042_ACEOF
7043cat confdefs.h >>conftest.$ac_ext
7044cat >>conftest.$ac_ext <<_ACEOF
7045/* end confdefs.h. */
7046#include <stddef.h>
7047int
7048main ()
7049{
7050static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7051test_array [0] = 0
7052
7053 ;
7054 return 0;
7055}
7056_ACEOF
7057rm -f conftest.$ac_objext
7058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; } &&
7072 { ac_try='test -s conftest.$ac_objext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 (eval $ac_try) 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 ac_lo=$ac_mid; break
7079else
7080 echo "$as_me: failed program was:" >&5
7081sed 's/^/| /' conftest.$ac_ext >&5
7082
7083ac_hi=`expr '(' $ac_mid ')' - 1`
7084 if test $ac_mid -le $ac_hi; then
7085 ac_lo= ac_hi=
7086 break
7087 fi
7088 ac_mid=`expr 2 '*' $ac_mid`
7089fi
7090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7091 done
7092else
7093 echo "$as_me: failed program was:" >&5
7094sed 's/^/| /' conftest.$ac_ext >&5
7095
7096ac_lo= ac_hi=
7097fi
7098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7099fi
7100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101# Binary search between lo and hi bounds.
7102while test "x$ac_lo" != "x$ac_hi"; do
7103 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7104 cat >conftest.$ac_ext <<_ACEOF
7105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
7110#include <stddef.h>
7111int
7112main ()
7113{
7114static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7115test_array [0] = 0
7116
7117 ;
7118 return 0;
7119}
7120_ACEOF
7121rm -f conftest.$ac_objext
7122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; } &&
7136 { ac_try='test -s conftest.$ac_objext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 ac_hi=$ac_mid
7143else
7144 echo "$as_me: failed program was:" >&5
7145sed 's/^/| /' conftest.$ac_ext >&5
7146
7147ac_lo=`expr '(' $ac_mid ')' + 1`
7148fi
7149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150done
7151case $ac_lo in
7152?*) fits_in_uint=$ac_lo;;
7153'') result=? ;;
7154esac
7155else
7156 if test "$cross_compiling" = yes; then
7157 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7158echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7159 { (exit 1); exit 1; }; }
7160else
7161 cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h. */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h. */
7167#include <stddef.h>
7168long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7169unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7170#include <stdio.h>
7171#include <stdlib.h>
7172int
7173main ()
7174{
7175
7176 FILE *f = fopen ("conftest.val", "w");
7177 if (! f)
7178 exit (1);
7179 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7180 {
7181 long i = longval ();
7182 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7183 exit (1);
7184 fprintf (f, "%ld\n", i);
7185 }
7186 else
7187 {
7188 unsigned long i = ulongval ();
7189 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7190 exit (1);
7191 fprintf (f, "%lu\n", i);
7192 }
7193 exit (ferror (f) || fclose (f) != 0);
7194
7195 ;
7196 return 0;
7197}
7198_ACEOF
7199rm -f conftest$ac_exeext
7200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7201 (eval $ac_link) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 fits_in_uint=`cat conftest.val`
7211else
7212 echo "$as_me: program exited with status $ac_status" >&5
7213echo "$as_me: failed program was:" >&5
7214sed 's/^/| /' conftest.$ac_ext >&5
7215
7216( exit $ac_status )
7217result=?
7218fi
7219rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7220fi
7221fi
7222rm -f conftest.val
7223 if test "$fits_in_uint" = 1; then
7224 cat >conftest.$ac_ext <<_ACEOF
7225/* confdefs.h. */
7226_ACEOF
7227cat confdefs.h >>conftest.$ac_ext
7228cat >>conftest.$ac_ext <<_ACEOF
7229/* end confdefs.h. */
7230#include <stddef.h>
7231 extern size_t foo;
7232 extern unsigned long foo;
7233
7234int
7235main ()
7236{
7237
7238 ;
7239 return 0;
7240}
7241_ACEOF
7242rm -f conftest.$ac_objext
7243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244 (eval $ac_compile) 2>conftest.er1
7245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 (eval $ac_try) 2>&5
7260 ac_status=$?
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263 fits_in_uint=0
7264else
7265 echo "$as_me: failed program was:" >&5
7266sed 's/^/| /' conftest.$ac_ext >&5
7267
7268fi
7269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7270 fi
7271 if test -z "$result"; then
7272 if test "$fits_in_uint" = 1; then
7273 result="$res_hi$res_lo"U
7274 else
7275 result="$res_hi$res_lo"UL
7276 fi
7277 else
7278 result='~(size_t)0'
7279 fi
7280 fi
7281 echo "$as_me:$LINENO: result: $result" >&5
7282echo "${ECHO_T}$result" >&6
7283 if test "$result" != yes; then
7284
7285cat >>confdefs.h <<_ACEOF
7286#define SIZE_MAX $result
7287_ACEOF
7288
7289 fi
7290
7291
7292
7293
7294for ac_header in stdint.h
7295do
7296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297if eval "test \"\${$as_ac_Header+set}\" = set"; then
7298 echo "$as_me:$LINENO: checking for $ac_header" >&5
7299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302fi
7303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7305else
7306 # Is the header compilable?
7307echo "$as_me:$LINENO: checking $ac_header usability" >&5
7308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7309cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h. */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h. */
7315$ac_includes_default
7316#include <$ac_header>
7317_ACEOF
7318rm -f conftest.$ac_objext
7319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>conftest.er1
7321 ac_status=$?
7322 grep -v '^ *+' conftest.er1 >conftest.err
7323 rm -f conftest.er1
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; } &&
7333 { ac_try='test -s conftest.$ac_objext'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 (eval $ac_try) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7339 ac_header_compiler=yes
7340else
7341 echo "$as_me: failed program was:" >&5
7342sed 's/^/| /' conftest.$ac_ext >&5
7343
7344ac_header_compiler=no
7345fi
7346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348echo "${ECHO_T}$ac_header_compiler" >&6
7349
7350# Is the header present?
7351echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7353cat >conftest.$ac_ext <<_ACEOF
7354/* confdefs.h. */
7355_ACEOF
7356cat confdefs.h >>conftest.$ac_ext
7357cat >>conftest.$ac_ext <<_ACEOF
7358/* end confdefs.h. */
7359#include <$ac_header>
7360_ACEOF
7361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } >/dev/null; then
7369 if test -s conftest.err; then
7370 ac_cpp_err=$ac_c_preproc_warn_flag
7371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7372 else
7373 ac_cpp_err=
7374 fi
7375else
7376 ac_cpp_err=yes
7377fi
7378if test -z "$ac_cpp_err"; then
7379 ac_header_preproc=yes
7380else
7381 echo "$as_me: failed program was:" >&5
7382sed 's/^/| /' conftest.$ac_ext >&5
7383
7384 ac_header_preproc=no
7385fi
7386rm -f conftest.err conftest.$ac_ext
7387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388echo "${ECHO_T}$ac_header_preproc" >&6
7389
7390# So? What about this header?
7391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7392 yes:no: )
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7394echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7396echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7397 ac_header_preproc=yes
7398 ;;
7399 no:yes:* )
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7403echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7405echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7407echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7411echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7412 (
7413 cat <<\_ASBOX
7414## ------------------------------------------ ##
7415## Report this to the AC_PACKAGE_NAME lists. ##
7416## ------------------------------------------ ##
7417_ASBOX
7418 ) |
7419 sed "s/^/$as_me: WARNING: /" >&2
7420 ;;
7421esac
7422echo "$as_me:$LINENO: checking for $ac_header" >&5
7423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7424if eval "test \"\${$as_ac_Header+set}\" = set"; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427 eval "$as_ac_Header=\$ac_header_preproc"
7428fi
7429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7431
7432fi
7433if test `eval echo '${'$as_ac_Header'}'` = yes; then
7434 cat >>confdefs.h <<_ACEOF
7435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7436_ACEOF
7437
7438fi
7439
7440done
7441
7442
7443
7444 if test "X$prefix" = "XNONE"; then
7445 acl_final_prefix="$ac_default_prefix"
7446 else
7447 acl_final_prefix="$prefix"
7448 fi
7449 if test "X$exec_prefix" = "XNONE"; then
7450 acl_final_exec_prefix='${prefix}'
7451 else
7452 acl_final_exec_prefix="$exec_prefix"
7453 fi
7454 acl_save_prefix="$prefix"
7455 prefix="$acl_final_prefix"
7456 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7457 prefix="$acl_save_prefix"
7458
7459
7460# Check whether --with-gnu-ld or --without-gnu-ld was given.
7461if test "${with_gnu_ld+set}" = set; then
7462 withval="$with_gnu_ld"
7463 test "$withval" = no || with_gnu_ld=yes
7464else
7465 with_gnu_ld=no
7466fi;
7467# Prepare PATH_SEPARATOR.
7468# The user is always right.
7469if test "${PATH_SEPARATOR+set}" != set; then
7470 echo "#! /bin/sh" >conf$$.sh
7471 echo "exit 0" >>conf$$.sh
7472 chmod +x conf$$.sh
7473 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7474 PATH_SEPARATOR=';'
7475 else
7476 PATH_SEPARATOR=:
7477 fi
7478 rm -f conf$$.sh
7479fi
7480ac_prog=ld
7481if test "$GCC" = yes; then
7482 # Check if gcc -print-prog-name=ld gives a path.
7483 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7484echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7485 case $host in
7486 *-*-mingw*)
7487 # gcc leaves a trailing carriage return which upsets mingw
7488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7489 *)
7490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7491 esac
7492 case $ac_prog in
7493 # Accept absolute paths.
7494 [\\/]* | [A-Za-z]:[\\/]*)
7495 re_direlt='/[^/][^/]*/\.\./'
7496 # Canonicalize the path of ld
7497 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7498 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7499 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7500 done
7501 test -z "$LD" && LD="$ac_prog"
7502 ;;
7503 "")
7504 # If it fails, then pretend we aren't using GCC.
7505 ac_prog=ld
7506 ;;
7507 *)
7508 # If it is relative, then search for the first ld in PATH.
7509 with_gnu_ld=unknown
7510 ;;
7511 esac
7512elif test "$with_gnu_ld" = yes; then
7513 echo "$as_me:$LINENO: checking for GNU ld" >&5
7514echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7515else
7516 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7517echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7518fi
7519if test "${acl_cv_path_LD+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521else
7522 if test -z "$LD"; then
7523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7524 for ac_dir in $PATH; do
7525 test -z "$ac_dir" && ac_dir=.
7526 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7527 acl_cv_path_LD="$ac_dir/$ac_prog"
7528 # Check to see if the program is GNU ld. I'd rather use --version,
7529 # but apparently some GNU ld's only accept -v.
7530 # Break only if it was the GNU/non-GNU ld that we prefer.
7531 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7532 *GNU* | *'with BFD'*)
7533 test "$with_gnu_ld" != no && break ;;
7534 *)
7535 test "$with_gnu_ld" != yes && break ;;
7536 esac
7537 fi
7538 done
7539 IFS="$ac_save_ifs"
7540else
7541 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7542fi
7543fi
7544
7545LD="$acl_cv_path_LD"
7546if test -n "$LD"; then
7547 echo "$as_me:$LINENO: result: $LD" >&5
7548echo "${ECHO_T}$LD" >&6
7549else
7550 echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
7552fi
7553test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7554echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7555 { (exit 1); exit 1; }; }
7556echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7557echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7558if test "${acl_cv_prog_gnu_ld+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7562case `$LD -v 2>&1 </dev/null` in
7563*GNU* | *'with BFD'*)
7564 acl_cv_prog_gnu_ld=yes ;;
7565*)
7566 acl_cv_prog_gnu_ld=no ;;
7567esac
7568fi
7569echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7570echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7571with_gnu_ld=$acl_cv_prog_gnu_ld
7572
7573
7574
7575 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7576echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7577if test "${acl_cv_rpath+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580
7581 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7582 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7583 . ./conftest.sh
7584 rm -f ./conftest.sh
7585 acl_cv_rpath=done
7586
7587fi
7588echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7589echo "${ECHO_T}$acl_cv_rpath" >&6
7590 wl="$acl_cv_wl"
7591 libext="$acl_cv_libext"
7592 shlibext="$acl_cv_shlibext"
7593 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7594 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7595 hardcode_direct="$acl_cv_hardcode_direct"
7596 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7597 # Check whether --enable-rpath or --disable-rpath was given.
7598if test "${enable_rpath+set}" = set; then
7599 enableval="$enable_rpath"
7600 :
7601else
7602 enable_rpath=yes
7603fi;
7604
7605
7606
7607
7608
7609
7610
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007611 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007612
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007613 acl_save_prefix="$prefix"
7614 prefix="$acl_final_prefix"
7615 acl_save_exec_prefix="$exec_prefix"
7616 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007618 eval additional_includedir=\"$includedir\"
7619 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007621 exec_prefix="$acl_save_exec_prefix"
7622 prefix="$acl_save_prefix"
7623
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007624
7625# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007626if test "${with_libiconv_prefix+set}" = set; then
7627 withval="$with_libiconv_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007629 if test "X$withval" = "Xno"; then
7630 use_additional=no
7631 else
7632 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007633
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007634 acl_save_prefix="$prefix"
7635 prefix="$acl_final_prefix"
7636 acl_save_exec_prefix="$exec_prefix"
7637 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007639 eval additional_includedir=\"$includedir\"
7640 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007641
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007642 exec_prefix="$acl_save_exec_prefix"
7643 prefix="$acl_save_prefix"
7644
7645 else
7646 additional_includedir="$withval/include"
7647 additional_libdir="$withval/lib"
7648 fi
7649 fi
7650
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651fi;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007652 LIBICONV=
7653 LTLIBICONV=
7654 INCICONV=
7655 rpathdirs=
7656 ltrpathdirs=
7657 names_already_handled=
7658 names_next_round='iconv '
7659 while test -n "$names_next_round"; do
7660 names_this_round="$names_next_round"
7661 names_next_round=
7662 for name in $names_this_round; do
7663 already_handled=
7664 for n in $names_already_handled; do
7665 if test "$n" = "$name"; then
7666 already_handled=yes
7667 break
7668 fi
7669 done
7670 if test -z "$already_handled"; then
7671 names_already_handled="$names_already_handled $name"
7672 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7673 eval value=\"\$HAVE_LIB$uppername\"
7674 if test -n "$value"; then
7675 if test "$value" = yes; then
7676 eval value=\"\$LIB$uppername\"
7677 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7678 eval value=\"\$LTLIB$uppername\"
7679 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7680 else
7681 :
7682 fi
7683 else
7684 found_dir=
7685 found_la=
7686 found_so=
7687 found_a=
7688 if test $use_additional = yes; then
7689 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7690 found_dir="$additional_libdir"
7691 found_so="$additional_libdir/lib$name.$shlibext"
7692 if test -f "$additional_libdir/lib$name.la"; then
7693 found_la="$additional_libdir/lib$name.la"
7694 fi
7695 else
7696 if test -f "$additional_libdir/lib$name.$libext"; then
7697 found_dir="$additional_libdir"
7698 found_a="$additional_libdir/lib$name.$libext"
7699 if test -f "$additional_libdir/lib$name.la"; then
7700 found_la="$additional_libdir/lib$name.la"
7701 fi
7702 fi
7703 fi
7704 fi
7705 if test "X$found_dir" = "X"; then
7706 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007707
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007708 acl_save_prefix="$prefix"
7709 prefix="$acl_final_prefix"
7710 acl_save_exec_prefix="$exec_prefix"
7711 exec_prefix="$acl_final_exec_prefix"
7712 eval x=\"$x\"
7713 exec_prefix="$acl_save_exec_prefix"
7714 prefix="$acl_save_prefix"
7715
7716 case "$x" in
7717 -L*)
7718 dir=`echo "X$x" | sed -e 's/^X-L//'`
7719 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7720 found_dir="$dir"
7721 found_so="$dir/lib$name.$shlibext"
7722 if test -f "$dir/lib$name.la"; then
7723 found_la="$dir/lib$name.la"
7724 fi
7725 else
7726 if test -f "$dir/lib$name.$libext"; then
7727 found_dir="$dir"
7728 found_a="$dir/lib$name.$libext"
7729 if test -f "$dir/lib$name.la"; then
7730 found_la="$dir/lib$name.la"
7731 fi
7732 fi
7733 fi
7734 ;;
7735 esac
7736 if test "X$found_dir" != "X"; then
7737 break
7738 fi
7739 done
7740 fi
7741 if test "X$found_dir" != "X"; then
7742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7743 if test "X$found_so" != "X"; then
7744 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7746 else
7747 haveit=
7748 for x in $ltrpathdirs; do
7749 if test "X$x" = "X$found_dir"; then
7750 haveit=yes
7751 break
7752 fi
7753 done
7754 if test -z "$haveit"; then
7755 ltrpathdirs="$ltrpathdirs $found_dir"
7756 fi
7757 if test "$hardcode_direct" = yes; then
7758 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7759 else
7760 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7761 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7762 haveit=
7763 for x in $rpathdirs; do
7764 if test "X$x" = "X$found_dir"; then
7765 haveit=yes
7766 break
7767 fi
7768 done
7769 if test -z "$haveit"; then
7770 rpathdirs="$rpathdirs $found_dir"
7771 fi
7772 else
7773 haveit=
7774 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007775
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007776 acl_save_prefix="$prefix"
7777 prefix="$acl_final_prefix"
7778 acl_save_exec_prefix="$exec_prefix"
7779 exec_prefix="$acl_final_exec_prefix"
7780 eval x=\"$x\"
7781 exec_prefix="$acl_save_exec_prefix"
7782 prefix="$acl_save_prefix"
7783
7784 if test "X$x" = "X-L$found_dir"; then
7785 haveit=yes
7786 break
7787 fi
7788 done
7789 if test -z "$haveit"; then
7790 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7791 fi
7792 if test "$hardcode_minus_L" != no; then
7793 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7794 else
7795 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7796 fi
7797 fi
7798 fi
7799 fi
7800 else
7801 if test "X$found_a" != "X"; then
7802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7803 else
7804 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7805 fi
7806 fi
7807 additional_includedir=
7808 case "$found_dir" in
7809 */lib | */lib/)
7810 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7811 additional_includedir="$basedir/include"
7812 ;;
7813 esac
7814 if test "X$additional_includedir" != "X"; then
7815 if test "X$additional_includedir" != "X/usr/include"; then
7816 haveit=
7817 if test "X$additional_includedir" = "X/usr/local/include"; then
7818 if test -n "$GCC"; then
7819 case $host_os in
7820 linux*) haveit=yes;;
7821 esac
7822 fi
7823 fi
7824 if test -z "$haveit"; then
7825 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007826
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007827 acl_save_prefix="$prefix"
7828 prefix="$acl_final_prefix"
7829 acl_save_exec_prefix="$exec_prefix"
7830 exec_prefix="$acl_final_exec_prefix"
7831 eval x=\"$x\"
7832 exec_prefix="$acl_save_exec_prefix"
7833 prefix="$acl_save_prefix"
7834
7835 if test "X$x" = "X-I$additional_includedir"; then
7836 haveit=yes
7837 break
7838 fi
7839 done
7840 if test -z "$haveit"; then
7841 if test -d "$additional_includedir"; then
7842 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7843 fi
7844 fi
7845 fi
7846 fi
7847 fi
7848 if test -n "$found_la"; then
7849 save_libdir="$libdir"
7850 case "$found_la" in
7851 */* | *\\*) . "$found_la" ;;
7852 *) . "./$found_la" ;;
7853 esac
7854 libdir="$save_libdir"
7855 for dep in $dependency_libs; do
7856 case "$dep" in
7857 -L*)
7858 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7859 if test "X$additional_libdir" != "X/usr/lib"; then
7860 haveit=
7861 if test "X$additional_libdir" = "X/usr/local/lib"; then
7862 if test -n "$GCC"; then
7863 case $host_os in
7864 linux*) haveit=yes;;
7865 esac
7866 fi
7867 fi
7868 if test -z "$haveit"; then
7869 haveit=
7870 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007871
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007872 acl_save_prefix="$prefix"
7873 prefix="$acl_final_prefix"
7874 acl_save_exec_prefix="$exec_prefix"
7875 exec_prefix="$acl_final_exec_prefix"
7876 eval x=\"$x\"
7877 exec_prefix="$acl_save_exec_prefix"
7878 prefix="$acl_save_prefix"
7879
7880 if test "X$x" = "X-L$additional_libdir"; then
7881 haveit=yes
7882 break
7883 fi
7884 done
7885 if test -z "$haveit"; then
7886 if test -d "$additional_libdir"; then
7887 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7888 fi
7889 fi
7890 haveit=
7891 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007892
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007893 acl_save_prefix="$prefix"
7894 prefix="$acl_final_prefix"
7895 acl_save_exec_prefix="$exec_prefix"
7896 exec_prefix="$acl_final_exec_prefix"
7897 eval x=\"$x\"
7898 exec_prefix="$acl_save_exec_prefix"
7899 prefix="$acl_save_prefix"
7900
7901 if test "X$x" = "X-L$additional_libdir"; then
7902 haveit=yes
7903 break
7904 fi
7905 done
7906 if test -z "$haveit"; then
7907 if test -d "$additional_libdir"; then
7908 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7909 fi
7910 fi
7911 fi
7912 fi
7913 ;;
7914 -R*)
7915 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7916 if test "$enable_rpath" != no; then
7917 haveit=
7918 for x in $rpathdirs; do
7919 if test "X$x" = "X$dir"; then
7920 haveit=yes
7921 break
7922 fi
7923 done
7924 if test -z "$haveit"; then
7925 rpathdirs="$rpathdirs $dir"
7926 fi
7927 haveit=
7928 for x in $ltrpathdirs; do
7929 if test "X$x" = "X$dir"; then
7930 haveit=yes
7931 break
7932 fi
7933 done
7934 if test -z "$haveit"; then
7935 ltrpathdirs="$ltrpathdirs $dir"
7936 fi
7937 fi
7938 ;;
7939 -l*)
7940 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7941 ;;
7942 *.la)
7943 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7944 ;;
7945 *)
7946 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7948 ;;
7949 esac
7950 done
7951 fi
7952 else
7953 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7954 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7955 fi
7956 fi
7957 fi
7958 done
7959 done
7960 if test "X$rpathdirs" != "X"; then
7961 if test -n "$hardcode_libdir_separator"; then
7962 alldirs=
7963 for found_dir in $rpathdirs; do
7964 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7965 done
7966 acl_save_libdir="$libdir"
7967 libdir="$alldirs"
7968 eval flag=\"$hardcode_libdir_flag_spec\"
7969 libdir="$acl_save_libdir"
7970 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7971 else
7972 for found_dir in $rpathdirs; do
7973 acl_save_libdir="$libdir"
7974 libdir="$found_dir"
7975 eval flag=\"$hardcode_libdir_flag_spec\"
7976 libdir="$acl_save_libdir"
7977 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7978 done
7979 fi
7980 fi
7981 if test "X$ltrpathdirs" != "X"; then
7982 for found_dir in $ltrpathdirs; do
7983 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7984 done
7985 fi
7986
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007987
7988
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007989
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007990
7991
7992
7993
7994 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
7995echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
7996if test "${ac_cv_type_ptrdiff_t+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007998else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007999 cat >conftest.$ac_ext <<_ACEOF
8000/* confdefs.h. */
8001_ACEOF
8002cat confdefs.h >>conftest.$ac_ext
8003cat >>conftest.$ac_ext <<_ACEOF
8004/* end confdefs.h. */
8005$ac_includes_default
8006int
8007main ()
8008{
8009if ((ptrdiff_t *) 0)
8010 return 0;
8011if (sizeof (ptrdiff_t))
8012 return 0;
8013 ;
8014 return 0;
8015}
8016_ACEOF
8017rm -f conftest.$ac_objext
8018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019 (eval $ac_compile) 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; } &&
8032 { ac_try='test -s conftest.$ac_objext'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 (eval $ac_try) 2>&5
8035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8038 ac_cv_type_ptrdiff_t=yes
8039else
8040 echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
8043ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008044fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8046fi
8047echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8048echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8049if test $ac_cv_type_ptrdiff_t = yes; then
8050 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008051else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008052
8053cat >>confdefs.h <<\_ACEOF
8054#define ptrdiff_t long
8055_ACEOF
8056
8057
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008058fi
8059
8060
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008061
8062
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008063
8064
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008065
8066
8067
8068
8069
8070for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008071stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008072do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8074if eval "test \"\${$as_ac_Header+set}\" = set"; then
8075 echo "$as_me:$LINENO: checking for $ac_header" >&5
8076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8077if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008079fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008082else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008083 # Is the header compilable?
8084echo "$as_me:$LINENO: checking $ac_header usability" >&5
8085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8086cat >conftest.$ac_ext <<_ACEOF
8087/* confdefs.h. */
8088_ACEOF
8089cat confdefs.h >>conftest.$ac_ext
8090cat >>conftest.$ac_ext <<_ACEOF
8091/* end confdefs.h. */
8092$ac_includes_default
8093#include <$ac_header>
8094_ACEOF
8095rm -f conftest.$ac_objext
8096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8097 (eval $ac_compile) 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; } &&
8110 { ac_try='test -s conftest.$ac_objext'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8116 ac_header_compiler=yes
8117else
8118 echo "$as_me: failed program was:" >&5
8119sed 's/^/| /' conftest.$ac_ext >&5
8120
8121ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008122fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8124echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8125echo "${ECHO_T}$ac_header_compiler" >&6
8126
8127# Is the header present?
8128echo "$as_me:$LINENO: checking $ac_header presence" >&5
8129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8130cat >conftest.$ac_ext <<_ACEOF
8131/* confdefs.h. */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h. */
8136#include <$ac_header>
8137_ACEOF
8138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } >/dev/null; then
8146 if test -s conftest.err; then
8147 ac_cpp_err=$ac_c_preproc_warn_flag
8148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8149 else
8150 ac_cpp_err=
8151 fi
8152else
8153 ac_cpp_err=yes
8154fi
8155if test -z "$ac_cpp_err"; then
8156 ac_header_preproc=yes
8157else
8158 echo "$as_me: failed program was:" >&5
8159sed 's/^/| /' conftest.$ac_ext >&5
8160
8161 ac_header_preproc=no
8162fi
8163rm -f conftest.err conftest.$ac_ext
8164echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8165echo "${ECHO_T}$ac_header_preproc" >&6
8166
8167# So? What about this header?
8168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8169 yes:no: )
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8174 ac_header_preproc=yes
8175 ;;
8176 no:yes:* )
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8189 (
8190 cat <<\_ASBOX
8191## ------------------------------------------ ##
8192## Report this to the AC_PACKAGE_NAME lists. ##
8193## ------------------------------------------ ##
8194_ASBOX
8195 ) |
8196 sed "s/^/$as_me: WARNING: /" >&2
8197 ;;
8198esac
8199echo "$as_me:$LINENO: checking for $ac_header" >&5
8200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8201if eval "test \"\${$as_ac_Header+set}\" = set"; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203else
8204 eval "$as_ac_Header=\$ac_header_preproc"
8205fi
8206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8208
8209fi
8210if test `eval echo '${'$as_ac_Header'}'` = yes; then
8211 cat >>confdefs.h <<_ACEOF
8212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8213_ACEOF
8214
8215fi
8216
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008217done
8218
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8243mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8244strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8245__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008246do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8248echo "$as_me:$LINENO: checking for $ac_func" >&5
8249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8250if eval "test \"\${$as_ac_var+set}\" = set"; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008252else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008253 cat >conftest.$ac_ext <<_ACEOF
8254/* confdefs.h. */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h. */
8259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8261#define $ac_func innocuous_$ac_func
8262
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008263/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008264 which can conflict with char $ac_func (); below.
8265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8266 <limits.h> exists even on freestanding compilers. */
8267
8268#ifdef __STDC__
8269# include <limits.h>
8270#else
8271# include <assert.h>
8272#endif
8273
8274#undef $ac_func
8275
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008276/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008277#ifdef __cplusplus
8278extern "C"
8279{
8280#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008281/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008282 builtin and then its argument prototype would still apply. */
8283char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008284/* The GNU C library defines this for functions which it implements
8285 to always fail with ENOSYS. Some functions are actually named
8286 something starting with __ and the normal name is an alias. */
8287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8288choke me
8289#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008290char (*f) () = $ac_func;
8291#endif
8292#ifdef __cplusplus
8293}
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008294#endif
8295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008296int
8297main ()
8298{
8299return f != $ac_func;
8300 ;
8301 return 0;
8302}
8303_ACEOF
8304rm -f conftest.$ac_objext conftest$ac_exeext
8305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008326else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008327 echo "$as_me: failed program was:" >&5
8328sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008330eval "$as_ac_var=no"
8331fi
8332rm -f conftest.err conftest.$ac_objext \
8333 conftest$ac_exeext conftest.$ac_ext
8334fi
8335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8336echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8337if test `eval echo '${'$as_ac_var'}'` = yes; then
8338 cat >>confdefs.h <<_ACEOF
8339#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8340_ACEOF
8341
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008342fi
8343done
8344
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008345
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346
8347 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8348echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8349if test "${ac_cv_have_decl__snprintf+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351else
8352 cat >conftest.$ac_ext <<_ACEOF
8353/* confdefs.h. */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
8357/* end confdefs.h. */
8358#include <stdio.h>
8359int
8360main ()
8361{
8362
8363#ifndef _snprintf
8364 char *p = (char *) _snprintf;
8365#endif
8366
8367 ;
8368 return 0;
8369}
8370_ACEOF
8371rm -f conftest.$ac_objext
8372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 (eval $ac_try) 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try='test -s conftest.$ac_objext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_have_decl__snprintf=yes
8393else
8394 echo "$as_me: failed program was:" >&5
8395sed 's/^/| /' conftest.$ac_ext >&5
8396
8397ac_cv_have_decl__snprintf=no
8398fi
8399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8400fi
8401echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8402echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8403 if test $ac_cv_have_decl__snprintf = yes; then
8404 gt_value=1
8405 else
8406 gt_value=0
8407 fi
8408
8409cat >>confdefs.h <<_ACEOF
8410#define HAVE_DECL__SNPRINTF $gt_value
8411_ACEOF
8412
8413
8414
8415 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8416echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8417if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419else
8420 cat >conftest.$ac_ext <<_ACEOF
8421/* confdefs.h. */
8422_ACEOF
8423cat confdefs.h >>conftest.$ac_ext
8424cat >>conftest.$ac_ext <<_ACEOF
8425/* end confdefs.h. */
8426#include <stdio.h>
8427int
8428main ()
8429{
8430
8431#ifndef _snwprintf
8432 char *p = (char *) _snwprintf;
8433#endif
8434
8435 ;
8436 return 0;
8437}
8438_ACEOF
8439rm -f conftest.$ac_objext
8440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441 (eval $ac_compile) 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest.$ac_objext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 ac_cv_have_decl__snwprintf=yes
8461else
8462 echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
8464
8465ac_cv_have_decl__snwprintf=no
8466fi
8467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8468fi
8469echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8470echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8471 if test $ac_cv_have_decl__snwprintf = yes; then
8472 gt_value=1
8473 else
8474 gt_value=0
8475 fi
8476
8477cat >>confdefs.h <<_ACEOF
8478#define HAVE_DECL__SNWPRINTF $gt_value
8479_ACEOF
8480
8481
8482
8483
8484 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8485echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8486if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488else
8489 cat >conftest.$ac_ext <<_ACEOF
8490/* confdefs.h. */
8491_ACEOF
8492cat confdefs.h >>conftest.$ac_ext
8493cat >>conftest.$ac_ext <<_ACEOF
8494/* end confdefs.h. */
8495#include <stdio.h>
8496int
8497main ()
8498{
8499
8500#ifndef feof_unlocked
8501 char *p = (char *) feof_unlocked;
8502#endif
8503
8504 ;
8505 return 0;
8506}
8507_ACEOF
8508rm -f conftest.$ac_objext
8509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8510 (eval $ac_compile) 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 (eval $ac_try) 2>&5
8520 ac_status=$?
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; } &&
8523 { ac_try='test -s conftest.$ac_objext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 (eval $ac_try) 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_cv_have_decl_feof_unlocked=yes
8530else
8531 echo "$as_me: failed program was:" >&5
8532sed 's/^/| /' conftest.$ac_ext >&5
8533
8534ac_cv_have_decl_feof_unlocked=no
8535fi
8536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8537fi
8538echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8539echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8540 if test $ac_cv_have_decl_feof_unlocked = yes; then
8541 gt_value=1
8542 else
8543 gt_value=0
8544 fi
8545
8546cat >>confdefs.h <<_ACEOF
8547#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8548_ACEOF
8549
8550
8551
8552 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8553echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8554if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557 cat >conftest.$ac_ext <<_ACEOF
8558/* confdefs.h. */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h. */
8563#include <stdio.h>
8564int
8565main ()
8566{
8567
8568#ifndef fgets_unlocked
8569 char *p = (char *) fgets_unlocked;
8570#endif
8571
8572 ;
8573 return 0;
8574}
8575_ACEOF
8576rm -f conftest.$ac_objext
8577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8578 (eval $ac_compile) 2>conftest.er1
8579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_cv_have_decl_fgets_unlocked=yes
8598else
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
8602ac_cv_have_decl_fgets_unlocked=no
8603fi
8604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8605fi
8606echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8607echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8608 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8609 gt_value=1
8610 else
8611 gt_value=0
8612 fi
8613
8614cat >>confdefs.h <<_ACEOF
8615#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8616_ACEOF
8617
8618
8619
8620 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8621echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8622if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624else
8625 cat >conftest.$ac_ext <<_ACEOF
8626/* confdefs.h. */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h. */
8631#include <stdio.h>
8632int
8633main ()
8634{
8635
8636#ifndef getc_unlocked
8637 char *p = (char *) getc_unlocked;
8638#endif
8639
8640 ;
8641 return 0;
8642}
8643_ACEOF
8644rm -f conftest.$ac_objext
8645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest.$ac_objext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_have_decl_getc_unlocked=yes
8666else
8667 echo "$as_me: failed program was:" >&5
8668sed 's/^/| /' conftest.$ac_ext >&5
8669
8670ac_cv_have_decl_getc_unlocked=no
8671fi
8672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8673fi
8674echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8675echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8676 if test $ac_cv_have_decl_getc_unlocked = yes; then
8677 gt_value=1
8678 else
8679 gt_value=0
8680 fi
8681
8682cat >>confdefs.h <<_ACEOF
8683#define HAVE_DECL_GETC_UNLOCKED $gt_value
8684_ACEOF
8685
8686
8687
8688 case $gt_cv_func_printf_posix in
8689 *yes) HAVE_POSIX_PRINTF=1 ;;
8690 *) HAVE_POSIX_PRINTF=0 ;;
8691 esac
8692
8693 if test "$ac_cv_func_asprintf" = yes; then
8694 HAVE_ASPRINTF=1
8695 else
8696 HAVE_ASPRINTF=0
8697 fi
8698
8699 if test "$ac_cv_func_snprintf" = yes; then
8700 HAVE_SNPRINTF=1
8701 else
8702 HAVE_SNPRINTF=0
8703 fi
8704
8705 if test "$ac_cv_func_wprintf" = yes; then
8706 HAVE_WPRINTF=1
8707 else
8708 HAVE_WPRINTF=0
8709 fi
8710
8711
8712
8713
8714
8715
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008716
8717 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008718
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008719 for element in $INCICONV; do
8720 haveit=
8721 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008722
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008723 acl_save_prefix="$prefix"
8724 prefix="$acl_final_prefix"
8725 acl_save_exec_prefix="$exec_prefix"
8726 exec_prefix="$acl_final_exec_prefix"
8727 eval x=\"$x\"
8728 exec_prefix="$acl_save_exec_prefix"
8729 prefix="$acl_save_prefix"
8730
8731 if test "X$x" = "X$element"; then
8732 haveit=yes
8733 break
8734 fi
8735 done
8736 if test -z "$haveit"; then
8737 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8738 fi
8739 done
8740
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008741
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008742 echo "$as_me:$LINENO: checking for iconv" >&5
8743echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8744if test "${am_cv_func_iconv+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008746else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008747
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008748 am_cv_func_iconv="no, consider installing GNU libiconv"
8749 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008750 cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h. */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008756#include <stdlib.h>
8757#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008758int
8759main ()
8760{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008761iconv_t cd = iconv_open("","");
8762 iconv(cd,NULL,NULL,NULL,NULL);
8763 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008764 ;
8765 return 0;
8766}
8767_ACEOF
8768rm -f conftest.$ac_objext conftest$ac_exeext
8769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 (eval $ac_try) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008789 am_cv_func_iconv=yes
8790else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008791 echo "$as_me: failed program was:" >&5
8792sed 's/^/| /' conftest.$ac_ext >&5
8793
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008794fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008795rm -f conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008797 if test "$am_cv_func_iconv" != yes; then
8798 am_save_LIBS="$LIBS"
8799 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008800 cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h. */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008806#include <stdlib.h>
8807#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008808int
8809main ()
8810{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008811iconv_t cd = iconv_open("","");
8812 iconv(cd,NULL,NULL,NULL,NULL);
8813 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008814 ;
8815 return 0;
8816}
8817_ACEOF
8818rm -f conftest.$ac_objext conftest$ac_exeext
8819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820 (eval $ac_link) 2>conftest.er1
8821 ac_status=$?
8822 grep -v '^ *+' conftest.er1 >conftest.err
8823 rm -f conftest.er1
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest$ac_exeext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008839 am_cv_lib_iconv=yes
8840 am_cv_func_iconv=yes
8841else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008842 echo "$as_me: failed program was:" >&5
8843sed 's/^/| /' conftest.$ac_ext >&5
8844
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008845fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008846rm -f conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008848 LIBS="$am_save_LIBS"
8849 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008850
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008851fi
8852echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8853echo "${ECHO_T}$am_cv_func_iconv" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008854 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008855
8856cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008857#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008858_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008859
8860 fi
8861 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008862 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8863echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8864 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8865echo "${ECHO_T}$LIBICONV" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008866 else
8867 CPPFLAGS="$am_save_CPPFLAGS"
8868 LIBICONV=
8869 LTLIBICONV=
8870 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008871
8872
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008873
8874 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008875 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8876echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8877 if test "${am_cv_proto_iconv+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008879else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008880
8881 cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h. */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008887
8888#include <stdlib.h>
8889#include <iconv.h>
8890extern
8891#ifdef __cplusplus
8892"C"
8893#endif
8894#if defined(__STDC__) || defined(__cplusplus)
8895size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8896#else
8897size_t iconv();
8898#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008899
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008900int
8901main ()
8902{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008904 ;
8905 return 0;
8906}
8907_ACEOF
8908rm -f conftest.$ac_objext
8909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910 (eval $ac_compile) 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 (eval $ac_try) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 (eval $ac_try) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008929 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008930else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008931 echo "$as_me: failed program was:" >&5
8932sed 's/^/| /' conftest.$ac_ext >&5
8933
8934am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008935fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008937 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 +00008938fi
8939
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008940 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008941 echo "$as_me:$LINENO: result: ${ac_t:-
8942 }$am_cv_proto_iconv" >&5
8943echo "${ECHO_T}${ac_t:-
8944 }$am_cv_proto_iconv" >&6
8945
8946cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008947#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008948_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008949
8950 fi
8951
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008952
8953 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8954echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8955if test "${am_cv_langinfo_codeset+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008957else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008958 cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h. */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008964#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008965int
8966main ()
8967{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008968char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008969 ;
8970 return 0;
8971}
8972_ACEOF
8973rm -f conftest.$ac_objext conftest$ac_exeext
8974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975 (eval $ac_link) 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008994 am_cv_langinfo_codeset=yes
8995else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008996 echo "$as_me: failed program was:" >&5
8997sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008999am_cv_langinfo_codeset=no
9000fi
9001rm -f conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9003
9004fi
9005echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9006echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009007 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009008
9009cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009010#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009011_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009012
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009013 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009014
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009015 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009016
9017 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9018echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9019if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009021else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009022 cat >conftest.$ac_ext <<_ACEOF
9023/* confdefs.h. */
9024_ACEOF
9025cat confdefs.h >>conftest.$ac_ext
9026cat >>conftest.$ac_ext <<_ACEOF
9027/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009028#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009029int
9030main ()
9031{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009032return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009033 ;
9034 return 0;
9035}
9036_ACEOF
9037rm -f conftest.$ac_objext conftest$ac_exeext
9038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039 (eval $ac_link) 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest$ac_exeext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009058 am_cv_val_LC_MESSAGES=yes
9059else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009060 echo "$as_me: failed program was:" >&5
9061sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009062
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009063am_cv_val_LC_MESSAGES=no
9064fi
9065rm -f conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067fi
9068echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9069echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009070 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009071
9072cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009073#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009074_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009075
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009076 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009077
9078 fi
9079
9080 for ac_prog in bison
9081do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009082 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009083set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009084echo "$as_me:$LINENO: checking for $ac_word" >&5
9085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9086if test "${ac_cv_prog_INTLBISON+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009088else
9089 if test -n "$INTLBISON"; then
9090 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9091else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093for as_dir in $PATH
9094do
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_INTLBISON="$ac_prog"
9100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9102 fi
9103done
9104done
9105
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009106fi
9107fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009108INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009109if test -n "$INTLBISON"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009110 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9111echo "${ECHO_T}$INTLBISON" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009112else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009113 echo "$as_me:$LINENO: result: no" >&5
9114echo "${ECHO_T}no" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009115fi
9116
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009117 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009118done
9119
9120 if test -z "$INTLBISON"; then
9121 ac_verc_fail=yes
9122 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009123 echo "$as_me:$LINENO: checking version of bison" >&5
9124echo $ECHO_N "checking version of bison... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009125 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9126 case $ac_prog_version in
9127 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9128 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9129 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9130 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9131 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009132 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9133echo "${ECHO_T}$ac_prog_version" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009134 fi
9135 if test $ac_verc_fail = yes; then
9136 INTLBISON=:
9137 fi
9138
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009139
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009140
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009141
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009142
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009143
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9155echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009156 # Check whether --enable-nls or --disable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009157if test "${enable_nls+set}" = set; then
9158 enableval="$enable_nls"
9159 USE_NLS=$enableval
9160else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009161 USE_NLS=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009162fi;
9163 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9164echo "${ECHO_T}$USE_NLS" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009165
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009167
9168
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009169 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009170 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009171
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009172 LIBINTL=
9173 LTLIBINTL=
9174 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009175
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009176 if test "$USE_NLS" = "yes"; then
9177 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009178
9179 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9180echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9181
9182# Check whether --with-included-gettext or --without-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009183if test "${with_included_gettext+set}" = set; then
9184 withval="$with_included_gettext"
9185 nls_cv_force_use_gnu_gettext=$withval
9186else
9187 nls_cv_force_use_gnu_gettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009188fi;
9189 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9190echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009191
9192 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9193 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009194
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009195
9196
9197
9198
9199
9200 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9201echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9202if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009204else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009205 cat >conftest.$ac_ext <<_ACEOF
9206/* confdefs.h. */
9207_ACEOF
9208cat confdefs.h >>conftest.$ac_ext
9209cat >>conftest.$ac_ext <<_ACEOF
9210/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009211#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009212extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009213extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009214int
9215main ()
9216{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009217bindtextdomain ("", "");
9218return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009219 ;
9220 return 0;
9221}
9222_ACEOF
9223rm -f conftest.$ac_objext conftest$ac_exeext
9224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; } &&
9238 { ac_try='test -s conftest$ac_exeext'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009244 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009245else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009246 echo "$as_me: failed program was:" >&5
9247sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009248
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009249gt_cv_func_gnugettext1_libc=no
9250fi
9251rm -f conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253fi
9254echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9255echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009256
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009257 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009258
9259
9260
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009261 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009262
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009263 acl_save_prefix="$prefix"
9264 prefix="$acl_final_prefix"
9265 acl_save_exec_prefix="$exec_prefix"
9266 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009267
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009268 eval additional_includedir=\"$includedir\"
9269 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009270
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009271 exec_prefix="$acl_save_exec_prefix"
9272 prefix="$acl_save_prefix"
9273
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009274
9275# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009276if test "${with_libintl_prefix+set}" = set; then
9277 withval="$with_libintl_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009278
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009279 if test "X$withval" = "Xno"; then
9280 use_additional=no
9281 else
9282 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009283
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009284 acl_save_prefix="$prefix"
9285 prefix="$acl_final_prefix"
9286 acl_save_exec_prefix="$exec_prefix"
9287 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009288
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009289 eval additional_includedir=\"$includedir\"
9290 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009291
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009292 exec_prefix="$acl_save_exec_prefix"
9293 prefix="$acl_save_prefix"
9294
9295 else
9296 additional_includedir="$withval/include"
9297 additional_libdir="$withval/lib"
9298 fi
9299 fi
9300
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009301fi;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009302 LIBINTL=
9303 LTLIBINTL=
9304 INCINTL=
9305 rpathdirs=
9306 ltrpathdirs=
9307 names_already_handled=
9308 names_next_round='intl '
9309 while test -n "$names_next_round"; do
9310 names_this_round="$names_next_round"
9311 names_next_round=
9312 for name in $names_this_round; do
9313 already_handled=
9314 for n in $names_already_handled; do
9315 if test "$n" = "$name"; then
9316 already_handled=yes
9317 break
9318 fi
9319 done
9320 if test -z "$already_handled"; then
9321 names_already_handled="$names_already_handled $name"
9322 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9323 eval value=\"\$HAVE_LIB$uppername\"
9324 if test -n "$value"; then
9325 if test "$value" = yes; then
9326 eval value=\"\$LIB$uppername\"
9327 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9328 eval value=\"\$LTLIB$uppername\"
9329 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9330 else
9331 :
9332 fi
9333 else
9334 found_dir=
9335 found_la=
9336 found_so=
9337 found_a=
9338 if test $use_additional = yes; then
9339 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9340 found_dir="$additional_libdir"
9341 found_so="$additional_libdir/lib$name.$shlibext"
9342 if test -f "$additional_libdir/lib$name.la"; then
9343 found_la="$additional_libdir/lib$name.la"
9344 fi
9345 else
9346 if test -f "$additional_libdir/lib$name.$libext"; then
9347 found_dir="$additional_libdir"
9348 found_a="$additional_libdir/lib$name.$libext"
9349 if test -f "$additional_libdir/lib$name.la"; then
9350 found_la="$additional_libdir/lib$name.la"
9351 fi
9352 fi
9353 fi
9354 fi
9355 if test "X$found_dir" = "X"; then
9356 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009357
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009358 acl_save_prefix="$prefix"
9359 prefix="$acl_final_prefix"
9360 acl_save_exec_prefix="$exec_prefix"
9361 exec_prefix="$acl_final_exec_prefix"
9362 eval x=\"$x\"
9363 exec_prefix="$acl_save_exec_prefix"
9364 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009365
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009366 case "$x" in
9367 -L*)
9368 dir=`echo "X$x" | sed -e 's/^X-L//'`
9369 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9370 found_dir="$dir"
9371 found_so="$dir/lib$name.$shlibext"
9372 if test -f "$dir/lib$name.la"; then
9373 found_la="$dir/lib$name.la"
9374 fi
9375 else
9376 if test -f "$dir/lib$name.$libext"; then
9377 found_dir="$dir"
9378 found_a="$dir/lib$name.$libext"
9379 if test -f "$dir/lib$name.la"; then
9380 found_la="$dir/lib$name.la"
9381 fi
9382 fi
9383 fi
9384 ;;
9385 esac
9386 if test "X$found_dir" != "X"; then
9387 break
9388 fi
9389 done
9390 fi
9391 if test "X$found_dir" != "X"; then
9392 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9393 if test "X$found_so" != "X"; then
9394 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9395 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9396 else
9397 haveit=
9398 for x in $ltrpathdirs; do
9399 if test "X$x" = "X$found_dir"; then
9400 haveit=yes
9401 break
9402 fi
9403 done
9404 if test -z "$haveit"; then
9405 ltrpathdirs="$ltrpathdirs $found_dir"
9406 fi
9407 if test "$hardcode_direct" = yes; then
9408 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9409 else
9410 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9411 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9412 haveit=
9413 for x in $rpathdirs; do
9414 if test "X$x" = "X$found_dir"; then
9415 haveit=yes
9416 break
9417 fi
9418 done
9419 if test -z "$haveit"; then
9420 rpathdirs="$rpathdirs $found_dir"
9421 fi
9422 else
9423 haveit=
9424 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009425
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009426 acl_save_prefix="$prefix"
9427 prefix="$acl_final_prefix"
9428 acl_save_exec_prefix="$exec_prefix"
9429 exec_prefix="$acl_final_exec_prefix"
9430 eval x=\"$x\"
9431 exec_prefix="$acl_save_exec_prefix"
9432 prefix="$acl_save_prefix"
9433
9434 if test "X$x" = "X-L$found_dir"; then
9435 haveit=yes
9436 break
9437 fi
9438 done
9439 if test -z "$haveit"; then
9440 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9441 fi
9442 if test "$hardcode_minus_L" != no; then
9443 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9444 else
9445 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9446 fi
9447 fi
9448 fi
9449 fi
9450 else
9451 if test "X$found_a" != "X"; then
9452 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9453 else
9454 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9455 fi
9456 fi
9457 additional_includedir=
9458 case "$found_dir" in
9459 */lib | */lib/)
9460 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9461 additional_includedir="$basedir/include"
9462 ;;
9463 esac
9464 if test "X$additional_includedir" != "X"; then
9465 if test "X$additional_includedir" != "X/usr/include"; then
9466 haveit=
9467 if test "X$additional_includedir" = "X/usr/local/include"; then
9468 if test -n "$GCC"; then
9469 case $host_os in
9470 linux*) haveit=yes;;
9471 esac
9472 fi
9473 fi
9474 if test -z "$haveit"; then
9475 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009476
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009477 acl_save_prefix="$prefix"
9478 prefix="$acl_final_prefix"
9479 acl_save_exec_prefix="$exec_prefix"
9480 exec_prefix="$acl_final_exec_prefix"
9481 eval x=\"$x\"
9482 exec_prefix="$acl_save_exec_prefix"
9483 prefix="$acl_save_prefix"
9484
9485 if test "X$x" = "X-I$additional_includedir"; then
9486 haveit=yes
9487 break
9488 fi
9489 done
9490 if test -z "$haveit"; then
9491 if test -d "$additional_includedir"; then
9492 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9493 fi
9494 fi
9495 fi
9496 fi
9497 fi
9498 if test -n "$found_la"; then
9499 save_libdir="$libdir"
9500 case "$found_la" in
9501 */* | *\\*) . "$found_la" ;;
9502 *) . "./$found_la" ;;
9503 esac
9504 libdir="$save_libdir"
9505 for dep in $dependency_libs; do
9506 case "$dep" in
9507 -L*)
9508 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9509 if test "X$additional_libdir" != "X/usr/lib"; then
9510 haveit=
9511 if test "X$additional_libdir" = "X/usr/local/lib"; then
9512 if test -n "$GCC"; then
9513 case $host_os in
9514 linux*) haveit=yes;;
9515 esac
9516 fi
9517 fi
9518 if test -z "$haveit"; then
9519 haveit=
9520 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009521
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009522 acl_save_prefix="$prefix"
9523 prefix="$acl_final_prefix"
9524 acl_save_exec_prefix="$exec_prefix"
9525 exec_prefix="$acl_final_exec_prefix"
9526 eval x=\"$x\"
9527 exec_prefix="$acl_save_exec_prefix"
9528 prefix="$acl_save_prefix"
9529
9530 if test "X$x" = "X-L$additional_libdir"; then
9531 haveit=yes
9532 break
9533 fi
9534 done
9535 if test -z "$haveit"; then
9536 if test -d "$additional_libdir"; then
9537 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9538 fi
9539 fi
9540 haveit=
9541 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009542
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009543 acl_save_prefix="$prefix"
9544 prefix="$acl_final_prefix"
9545 acl_save_exec_prefix="$exec_prefix"
9546 exec_prefix="$acl_final_exec_prefix"
9547 eval x=\"$x\"
9548 exec_prefix="$acl_save_exec_prefix"
9549 prefix="$acl_save_prefix"
9550
9551 if test "X$x" = "X-L$additional_libdir"; then
9552 haveit=yes
9553 break
9554 fi
9555 done
9556 if test -z "$haveit"; then
9557 if test -d "$additional_libdir"; then
9558 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9559 fi
9560 fi
9561 fi
9562 fi
9563 ;;
9564 -R*)
9565 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9566 if test "$enable_rpath" != no; then
9567 haveit=
9568 for x in $rpathdirs; do
9569 if test "X$x" = "X$dir"; then
9570 haveit=yes
9571 break
9572 fi
9573 done
9574 if test -z "$haveit"; then
9575 rpathdirs="$rpathdirs $dir"
9576 fi
9577 haveit=
9578 for x in $ltrpathdirs; do
9579 if test "X$x" = "X$dir"; then
9580 haveit=yes
9581 break
9582 fi
9583 done
9584 if test -z "$haveit"; then
9585 ltrpathdirs="$ltrpathdirs $dir"
9586 fi
9587 fi
9588 ;;
9589 -l*)
9590 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9591 ;;
9592 *.la)
9593 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9594 ;;
9595 *)
9596 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9597 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9598 ;;
9599 esac
9600 done
9601 fi
9602 else
9603 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9604 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9605 fi
9606 fi
9607 fi
9608 done
9609 done
9610 if test "X$rpathdirs" != "X"; then
9611 if test -n "$hardcode_libdir_separator"; then
9612 alldirs=
9613 for found_dir in $rpathdirs; do
9614 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9615 done
9616 acl_save_libdir="$libdir"
9617 libdir="$alldirs"
9618 eval flag=\"$hardcode_libdir_flag_spec\"
9619 libdir="$acl_save_libdir"
9620 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9621 else
9622 for found_dir in $rpathdirs; do
9623 acl_save_libdir="$libdir"
9624 libdir="$found_dir"
9625 eval flag=\"$hardcode_libdir_flag_spec\"
9626 libdir="$acl_save_libdir"
9627 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9628 done
9629 fi
9630 fi
9631 if test "X$ltrpathdirs" != "X"; then
9632 for found_dir in $ltrpathdirs; do
9633 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9634 done
9635 fi
9636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009637 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9638echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9639if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009641else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009642 gt_save_CPPFLAGS="$CPPFLAGS"
9643 CPPFLAGS="$CPPFLAGS $INCINTL"
9644 gt_save_LIBS="$LIBS"
9645 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009646 cat >conftest.$ac_ext <<_ACEOF
9647/* confdefs.h. */
9648_ACEOF
9649cat confdefs.h >>conftest.$ac_ext
9650cat >>conftest.$ac_ext <<_ACEOF
9651/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009652#include <libintl.h>
9653extern int _nl_msg_cat_cntr;
9654extern
9655#ifdef __cplusplus
9656"C"
9657#endif
9658const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009659int
9660main ()
9661{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009662bindtextdomain ("", "");
9663return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009664 ;
9665 return 0;
9666}
9667_ACEOF
9668rm -f conftest.$ac_objext conftest$ac_exeext
9669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; } &&
9683 { ac_try='test -s conftest$ac_exeext'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009689 gt_cv_func_gnugettext1_libintl=yes
9690else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009691 echo "$as_me: failed program was:" >&5
9692sed 's/^/| /' conftest.$ac_ext >&5
9693
9694gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009695fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009696rm -f conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009698 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9699 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009700 cat >conftest.$ac_ext <<_ACEOF
9701/* confdefs.h. */
9702_ACEOF
9703cat confdefs.h >>conftest.$ac_ext
9704cat >>conftest.$ac_ext <<_ACEOF
9705/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009706#include <libintl.h>
9707extern int _nl_msg_cat_cntr;
9708extern
9709#ifdef __cplusplus
9710"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009711#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009712const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009713int
9714main ()
9715{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009716bindtextdomain ("", "");
9717return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009718 ;
9719 return 0;
9720}
9721_ACEOF
9722rm -f conftest.$ac_objext conftest$ac_exeext
9723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724 (eval $ac_link) 2>conftest.er1
9725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009743 LIBINTL="$LIBINTL $LIBICONV"
9744 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9745 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009746
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009747else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009748 echo "$as_me: failed program was:" >&5
9749sed 's/^/| /' conftest.$ac_ext >&5
9750
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009751fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009752rm -f conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009754 fi
9755 CPPFLAGS="$gt_save_CPPFLAGS"
9756 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009757fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009758echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9759echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009760 fi
9761
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009762 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9763 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009764 && test "$PACKAGE" != gettext-runtime \
9765 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009766 gt_use_preinstalled_gnugettext=yes
9767 else
9768 LIBINTL=
9769 LTLIBINTL=
9770 INCINTL=
9771 fi
9772
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009773
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009774 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9775 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009776 fi
9777 fi
9778
9779 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009780 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009781 USE_INCLUDED_LIBINTL=yes
9782 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9783 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9784 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009785 fi
9786
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009787 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9788 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9789 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009790 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009791
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009792
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009793 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9794 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009795
9796cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009797#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009798_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009799
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009800 else
9801 USE_NLS=no
9802 fi
9803 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009804
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009805 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9806echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9807 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9808echo "${ECHO_T}$USE_NLS" >&6
9809 if test "$USE_NLS" = "yes"; then
9810 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9811echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9812 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9813 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9814 gt_source="external libintl"
9815 else
9816 gt_source="libc"
9817 fi
9818 else
9819 gt_source="included intl directory"
9820 fi
9821 echo "$as_me:$LINENO: result: $gt_source" >&5
9822echo "${ECHO_T}$gt_source" >&6
9823 fi
9824
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009825 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009826
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009827 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9828 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009829 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9830echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9831 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9832echo "${ECHO_T}$LIBINTL" >&6
9833
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009834 for element in $INCINTL; do
9835 haveit=
9836 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009837
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009838 acl_save_prefix="$prefix"
9839 prefix="$acl_final_prefix"
9840 acl_save_exec_prefix="$exec_prefix"
9841 exec_prefix="$acl_final_exec_prefix"
9842 eval x=\"$x\"
9843 exec_prefix="$acl_save_exec_prefix"
9844 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009845
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009846 if test "X$x" = "X$element"; then
9847 haveit=yes
9848 break
9849 fi
9850 done
9851 if test -z "$haveit"; then
9852 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9853 fi
9854 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009855
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009856 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009857
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009858
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009859cat >>confdefs.h <<\_ACEOF
9860#define HAVE_GETTEXT 1
9861_ACEOF
9862
9863
9864cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009865#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009866_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009867
9868 fi
9869
9870 POSUB=po
9871 fi
9872
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009873
9874 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009875 BUILD_INCLUDED_LIBINTL=yes
9876 fi
9877
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009878
9879
9880
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009881
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009882 nls_cv_header_intl=
9883 nls_cv_header_libgt=
9884
9885 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009886
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009887
9888 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009889
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009890
9891 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009892
9893
9894 if test "$USE_INCLUDED_LIBINTL" = yes; then
9895 INTLOBJS="\$(GETTOBJS)"
9896 fi
9897
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009898
9899 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009900
9901
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009902
9903 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009904
9905
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009906
9907
9908
9909
9910
9911echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9912echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9913set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9914if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009916else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917 cat >conftest.make <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009918all:
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009919 @echo 'ac_maketemp="$(MAKE)"'
9920_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009921# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009922eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009923if test -n "$ac_maketemp"; then
9924 eval ac_cv_prog_make_${ac_make}_set=yes
9925else
9926 eval ac_cv_prog_make_${ac_make}_set=no
9927fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009928rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009929fi
9930if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931 echo "$as_me:$LINENO: result: yes" >&5
9932echo "${ECHO_T}yes" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009933 SET_MAKE=
9934else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009935 echo "$as_me:$LINENO: result: no" >&5
9936echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009937 SET_MAKE="MAKE=${MAKE-make}"
9938fi
9939
9940# Extract the first word of "ln", so it can be a program name with args.
9941set dummy ln; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009942echo "$as_me:$LINENO: checking for $ac_word" >&5
9943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9944if test "${ac_cv_path_LN+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009946else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009947 case $LN in
9948 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009949 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9950 ;;
9951 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953for as_dir in $PATH
9954do
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9959 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9962 fi
9963done
9964done
9965
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009966 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9967 ;;
9968esac
9969fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009970LN=$ac_cv_path_LN
9971
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009972if test -n "$LN"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009973 echo "$as_me:$LINENO: result: $LN" >&5
9974echo "${ECHO_T}$LN" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009976 echo "$as_me:$LINENO: result: no" >&5
9977echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009978fi
9979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009980echo "$as_me:$LINENO: checking whether ln -s works" >&5
9981echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9982LN_S=$as_ln_s
9983if test "$LN_S" = "ln -s"; then
9984 echo "$as_me:$LINENO: result: yes" >&5
9985echo "${ECHO_T}yes" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009986else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009987 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9988echo "${ECHO_T}no, using $LN_S" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009989fi
9990
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009991# Extract the first word of "mv", so it can be a program name with args.
9992set dummy mv; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009993echo "$as_me:$LINENO: checking for $ac_word" >&5
9994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9995if test "${ac_cv_path_MV+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009997else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009998 case $MV in
9999 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010000 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10001 ;;
10002 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10013 fi
10014done
10015done
10016
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010017 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10018 ;;
10019esac
10020fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010021MV=$ac_cv_path_MV
10022
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010023if test -n "$MV"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024 echo "$as_me:$LINENO: result: $MV" >&5
10025echo "${ECHO_T}$MV" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010026else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010027 echo "$as_me:$LINENO: result: no" >&5
10028echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010029fi
10030
10031# Extract the first word of "cp", so it can be a program name with args.
10032set dummy cp; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010033echo "$as_me:$LINENO: checking for $ac_word" >&5
10034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10035if test "${ac_cv_path_CP+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010037else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010038 case $CP in
10039 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010040 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10041 ;;
10042 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044for as_dir in $PATH
10045do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10053 fi
10054done
10055done
10056
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010057 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10058 ;;
10059esac
10060fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010061CP=$ac_cv_path_CP
10062
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010063if test -n "$CP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010064 echo "$as_me:$LINENO: result: $CP" >&5
10065echo "${ECHO_T}$CP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010066else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010067 echo "$as_me:$LINENO: result: no" >&5
10068echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010069fi
10070
10071# Extract the first word of "rm", so it can be a program name with args.
10072set dummy rm; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010073echo "$as_me:$LINENO: checking for $ac_word" >&5
10074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10075if test "${ac_cv_path_RM+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010077else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010078 case $RM in
10079 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010080 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10081 ;;
10082 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10090 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10093 fi
10094done
10095done
10096
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010097 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10098 ;;
10099esac
10100fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010101RM=$ac_cv_path_RM
10102
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010103if test -n "$RM"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010104 echo "$as_me:$LINENO: result: $RM" >&5
10105echo "${ECHO_T}$RM" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010106else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010107 echo "$as_me:$LINENO: result: no" >&5
10108echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010109fi
10110
10111# Extract the first word of "chmod", so it can be a program name with args.
10112set dummy chmod; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010113echo "$as_me:$LINENO: checking for $ac_word" >&5
10114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10115if test "${ac_cv_path_CHMOD+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010117else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010118 case $CHMOD in
10119 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010120 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10121 ;;
10122 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124for as_dir in $PATH
10125do
10126 IFS=$as_save_IFS
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10130 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 break 2
10133 fi
10134done
10135done
10136
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010137 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10138 ;;
10139esac
10140fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010141CHMOD=$ac_cv_path_CHMOD
10142
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010143if test -n "$CHMOD"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010144 echo "$as_me:$LINENO: result: $CHMOD" >&5
10145echo "${ECHO_T}$CHMOD" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010146else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010147 echo "$as_me:$LINENO: result: no" >&5
10148echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010149fi
10150
Theodore Ts'o32237012005-01-17 19:13:39 -050010151for ac_prog in gawk mawk nawk awk
10152do
10153 # Extract the first word of "$ac_prog", so it can be a program name with args.
10154set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010155echo "$as_me:$LINENO: checking for $ac_word" >&5
10156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050010157if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010158 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010159else
Theodore Ts'o32237012005-01-17 19:13:39 -050010160 if test -n "$AWK"; then
10161 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10162else
10163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010164for as_dir in $PATH
10165do
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010170 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10173 fi
10174done
10175done
10176
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010177fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010178fi
10179AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010180if test -n "$AWK"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010181 echo "$as_me:$LINENO: result: $AWK" >&5
10182echo "${ECHO_T}$AWK" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010183else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010184 echo "$as_me:$LINENO: result: no" >&5
10185echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010186fi
10187
Theodore Ts'o32237012005-01-17 19:13:39 -050010188 test -n "$AWK" && break
10189done
10190
10191echo "$as_me:$LINENO: checking for egrep" >&5
10192echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10193if test "${ac_cv_prog_egrep+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10197 then ac_cv_prog_egrep='grep -E'
10198 else ac_cv_prog_egrep='egrep'
10199 fi
10200fi
10201echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10202echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10203 EGREP=$ac_cv_prog_egrep
10204
10205
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010206# Extract the first word of "sed", so it can be a program name with args.
10207set dummy sed; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010208echo "$as_me:$LINENO: checking for $ac_word" >&5
10209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10210if test "${ac_cv_path_SED+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010212else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010213 case $SED in
10214 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010215 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10216 ;;
10217 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219for as_dir in $PATH
10220do
10221 IFS=$as_save_IFS
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10225 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 break 2
10228 fi
10229done
10230done
10231
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010232 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10233 ;;
10234esac
10235fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010236SED=$ac_cv_path_SED
10237
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010238if test -n "$SED"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010239 echo "$as_me:$LINENO: result: $SED" >&5
10240echo "${ECHO_T}$SED" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010241else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010242 echo "$as_me:$LINENO: result: no" >&5
10243echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010244fi
10245
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010246# Extract the first word of "perl", so it can be a program name with args.
10247set dummy perl; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010248echo "$as_me:$LINENO: checking for $ac_word" >&5
10249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10250if test "${ac_cv_path_PERL+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010252else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010253 case $PERL in
10254 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010255 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10256 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010257 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259for as_dir in $PATH
10260do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10268 fi
10269done
10270done
10271
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010272 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10273 ;;
10274esac
10275fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010276PERL=$ac_cv_path_PERL
10277
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010278if test -n "$PERL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010279 echo "$as_me:$LINENO: result: $PERL" >&5
10280echo "${ECHO_T}$PERL" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010281else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010282 echo "$as_me:$LINENO: result: no" >&5
10283echo "${ECHO_T}no" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010284fi
10285
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010286# Extract the first word of "ldconfig", so it can be a program name with args.
10287set dummy ldconfig; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010288echo "$as_me:$LINENO: checking for $ac_word" >&5
10289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10290if test "${ac_cv_path_LDCONFIG+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010292else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010293 case $LDCONFIG in
10294 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010295 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10296 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010297 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299for as_dir in $PATH
10300do
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 break 2
10308 fi
10309done
10310done
10311
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010312 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10313 ;;
10314esac
10315fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010316LDCONFIG=$ac_cv_path_LDCONFIG
10317
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010318if test -n "$LDCONFIG"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010319 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10320echo "${ECHO_T}$LDCONFIG" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010321else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010322 echo "$as_me:$LINENO: result: no" >&5
10323echo "${ECHO_T}no" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010324fi
10325
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010326if test -n "$ac_tool_prefix"; then
10327 # 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 +000010328set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010329echo "$as_me:$LINENO: checking for $ac_word" >&5
10330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10331if test "${ac_cv_prog_AR+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010333else
10334 if test -n "$AR"; then
10335 ac_cv_prog_AR="$AR" # Let the user override the test.
10336else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338for as_dir in $PATH
10339do
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10344 ac_cv_prog_AR="${ac_tool_prefix}ar"
10345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10347 fi
10348done
10349done
10350
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010351fi
10352fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010353AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010354if test -n "$AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010355 echo "$as_me:$LINENO: result: $AR" >&5
10356echo "${ECHO_T}$AR" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010357else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010358 echo "$as_me:$LINENO: result: no" >&5
10359echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010360fi
10361
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010362fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010363if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010364 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010365 # Extract the first word of "ar", so it can be a program name with args.
10366set dummy ar; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010367echo "$as_me:$LINENO: checking for $ac_word" >&5
10368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10369if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010371else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010372 if test -n "$ac_ct_AR"; then
10373 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010374else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376for as_dir in $PATH
10377do
10378 IFS=$as_save_IFS
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10382 ac_cv_prog_ac_ct_AR="ar"
10383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10384 break 2
10385 fi
10386done
10387done
10388
10389 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010390fi
10391fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010392ac_ct_AR=$ac_cv_prog_ac_ct_AR
10393if test -n "$ac_ct_AR"; then
10394 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10395echo "${ECHO_T}$ac_ct_AR" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010396else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010397 echo "$as_me:$LINENO: result: no" >&5
10398echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010399fi
10400
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010401 AR=$ac_ct_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010402else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010403 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010404fi
10405
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010406if test -n "$ac_tool_prefix"; then
10407 # 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 +000010408set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010409echo "$as_me:$LINENO: checking for $ac_word" >&5
10410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10411if test "${ac_cv_prog_RANLIB+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010413else
10414 if test -n "$RANLIB"; then
10415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10416else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
10422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 break 2
10427 fi
10428done
10429done
10430
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010431fi
10432fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010433RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010434if test -n "$RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010435 echo "$as_me:$LINENO: result: $RANLIB" >&5
10436echo "${ECHO_T}$RANLIB" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010437else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010438 echo "$as_me:$LINENO: result: no" >&5
10439echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010440fi
10441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010442fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010443if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010444 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010445 # Extract the first word of "ranlib", so it can be a program name with args.
10446set dummy ranlib; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010447echo "$as_me:$LINENO: checking for $ac_word" >&5
10448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10449if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010451else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010452 if test -n "$ac_ct_RANLIB"; then
10453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010454else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10462 ac_cv_prog_ac_ct_RANLIB="ranlib"
10463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10464 break 2
10465 fi
10466done
10467done
10468
10469 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010470fi
10471fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010472ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10473if test -n "$ac_ct_RANLIB"; then
10474 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10475echo "${ECHO_T}$ac_ct_RANLIB" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010476else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010477 echo "$as_me:$LINENO: result: no" >&5
10478echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010479fi
10480
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010481 RANLIB=$ac_ct_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010482else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010483 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010484fi
10485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010486if test -n "$ac_tool_prefix"; then
10487 # 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 +000010488set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010489echo "$as_me:$LINENO: checking for $ac_word" >&5
10490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10491if test "${ac_cv_prog_STRIP+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010493else
10494 if test -n "$STRIP"; then
10495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10496else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498for as_dir in $PATH
10499do
10500 IFS=$as_save_IFS
10501 test -z "$as_dir" && as_dir=.
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10506 break 2
10507 fi
10508done
10509done
10510
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010511fi
10512fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010513STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010514if test -n "$STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010515 echo "$as_me:$LINENO: result: $STRIP" >&5
10516echo "${ECHO_T}$STRIP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010517else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010518 echo "$as_me:$LINENO: result: no" >&5
10519echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010520fi
10521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010523if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010524 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010525 # Extract the first word of "strip", so it can be a program name with args.
10526set dummy strip; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010527echo "$as_me:$LINENO: checking for $ac_word" >&5
10528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10529if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010531else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010532 if test -n "$ac_ct_STRIP"; then
10533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010534else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536for as_dir in $PATH
10537do
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10542 ac_cv_prog_ac_ct_STRIP="strip"
10543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10545 fi
10546done
10547done
10548
10549 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010550fi
10551fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010552ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10553if test -n "$ac_ct_STRIP"; then
10554 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10555echo "${ECHO_T}$ac_ct_STRIP" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010556else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010557 echo "$as_me:$LINENO: result: no" >&5
10558echo "${ECHO_T}no" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010559fi
10560
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010561 STRIP=$ac_ct_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010562else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010563 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010564fi
10565
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010566# Find a good install program. We prefer a C program (faster),
10567# so one script is as good as another. But avoid the broken or
10568# incompatible versions:
10569# SysV /etc/install, /usr/sbin/install
10570# SunOS /usr/etc/install
10571# IRIX /sbin/install
10572# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010573# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000010574# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010575# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10576# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010578# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010579echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10580echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010581if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010582if test "${ac_cv_path_install+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010584else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 # Account for people who put trailing slashes in PATH elements.
10591case $as_dir/ in
10592 ./ | .// | /cC/* | \
10593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10594 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10595 /usr/ucb/* ) ;;
10596 *)
10597 # OSF1 and SCO ODT 3.0 have their own names for install.
10598 # Don't use installbsd from OSF since it installs stuff as root
10599 # by default.
10600 for ac_prog in ginstall scoinst install; do
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010603 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010605 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010606 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010607 elif test $ac_prog = install &&
10608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10609 # program-specific install script used by HP pwplus--don't use.
10610 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010611 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10613 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010614 fi
10615 fi
10616 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010617 done
10618 ;;
10619esac
10620done
10621
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010622
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010623fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010624 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010625 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010626 else
10627 # As a last resort, use the slow shell script. We don't cache a
10628 # path for INSTALL within a source directory, because that will
10629 # break other packages using the cache if that directory is
10630 # removed, or if the path is relative.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010631 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000010632 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010633fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010634echo "$as_me:$LINENO: result: $INSTALL" >&5
10635echo "${ECHO_T}$INSTALL" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010636
10637# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10638# It thinks the first close brace ends the variable substitution.
10639test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10640
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010641test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000010642
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010643test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10644
Theodore Ts'o6c133521999-07-03 20:37:03 +000010645# See if we need a separate native compiler.
10646if test $cross_compiling = no; then
10647 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010648
Theodore Ts'o6c133521999-07-03 20:37:03 +000010649else
10650 for ac_prog in gcc cc
10651do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010652 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010653set dummy $ac_prog; ac_word=$2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010654echo "$as_me:$LINENO: checking for $ac_word" >&5
10655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10656if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010658else
10659 if test -n "$BUILD_CC"; then
10660 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10661else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010664do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669 ac_cv_prog_BUILD_CC="$ac_prog"
10670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010674done
10675
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010676fi
10677fi
10678BUILD_CC=$ac_cv_prog_BUILD_CC
10679if test -n "$BUILD_CC"; then
10680 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10681echo "${ECHO_T}$BUILD_CC" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010682else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010683 echo "$as_me:$LINENO: result: no" >&5
10684echo "${ECHO_T}no" >&6
10685fi
10686
10687 test -n "$BUILD_CC" && break
10688done
10689
10690fi
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010720for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010721do
10722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723if eval "test \"\${$as_ac_Header+set}\" = set"; then
10724 echo "$as_me:$LINENO: checking for $ac_header" >&5
10725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10726if eval "test \"\${$as_ac_Header+set}\" = set"; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728fi
10729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10731else
10732 # Is the header compilable?
10733echo "$as_me:$LINENO: checking $ac_header usability" >&5
10734echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10735cat >conftest.$ac_ext <<_ACEOF
10736/* confdefs.h. */
10737_ACEOF
10738cat confdefs.h >>conftest.$ac_ext
10739cat >>conftest.$ac_ext <<_ACEOF
10740/* end confdefs.h. */
10741$ac_includes_default
10742#include <$ac_header>
10743_ACEOF
10744rm -f conftest.$ac_objext
10745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10746 (eval $ac_compile) 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
10753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest.$ac_objext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_header_compiler=yes
10766else
10767 echo "$as_me: failed program was:" >&5
10768sed 's/^/| /' conftest.$ac_ext >&5
10769
10770ac_header_compiler=no
10771fi
10772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10773echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10774echo "${ECHO_T}$ac_header_compiler" >&6
10775
10776# Is the header present?
10777echo "$as_me:$LINENO: checking $ac_header presence" >&5
10778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10779cat >conftest.$ac_ext <<_ACEOF
10780/* confdefs.h. */
10781_ACEOF
10782cat confdefs.h >>conftest.$ac_ext
10783cat >>conftest.$ac_ext <<_ACEOF
10784/* end confdefs.h. */
10785#include <$ac_header>
10786_ACEOF
10787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } >/dev/null; then
10795 if test -s conftest.err; then
10796 ac_cpp_err=$ac_c_preproc_warn_flag
10797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10798 else
10799 ac_cpp_err=
10800 fi
10801else
10802 ac_cpp_err=yes
10803fi
10804if test -z "$ac_cpp_err"; then
10805 ac_header_preproc=yes
10806else
10807 echo "$as_me: failed program was:" >&5
10808sed 's/^/| /' conftest.$ac_ext >&5
10809
10810 ac_header_preproc=no
10811fi
10812rm -f conftest.err conftest.$ac_ext
10813echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10814echo "${ECHO_T}$ac_header_preproc" >&6
10815
10816# So? What about this header?
10817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10818 yes:no: )
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10820echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10822echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10823 ac_header_preproc=yes
10824 ;;
10825 no:yes:* )
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10827echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10829echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10831echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10833echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10835echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10837echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10838 (
10839 cat <<\_ASBOX
10840## ------------------------------------------ ##
10841## Report this to the AC_PACKAGE_NAME lists. ##
10842## ------------------------------------------ ##
10843_ASBOX
10844 ) |
10845 sed "s/^/$as_me: WARNING: /" >&2
10846 ;;
10847esac
10848echo "$as_me:$LINENO: checking for $ac_header" >&5
10849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10850if eval "test \"\${$as_ac_Header+set}\" = set"; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 eval "$as_ac_Header=\$ac_header_preproc"
10854fi
10855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10857
10858fi
10859if test `eval echo '${'$as_ac_Header'}'` = yes; then
10860 cat >>confdefs.h <<_ACEOF
10861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10862_ACEOF
10863
10864fi
10865
10866done
10867
10868
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010869
10870for ac_header in sys/disk.h sys/mount.h
10871do
10872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10873echo "$as_me:$LINENO: checking for $ac_header" >&5
10874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10875if eval "test \"\${$as_ac_Header+set}\" = set"; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 cat >conftest.$ac_ext <<_ACEOF
10879/* confdefs.h. */
10880_ACEOF
10881cat confdefs.h >>conftest.$ac_ext
10882cat >>conftest.$ac_ext <<_ACEOF
10883/* end confdefs.h. */
10884
10885#if HAVE_SYS_QUEUE_H
10886#include <sys/queue.h>
10887#endif
10888
10889
10890#include <$ac_header>
10891_ACEOF
10892rm -f conftest.$ac_objext
10893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10894 (eval $ac_compile) 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try='test -s conftest.$ac_objext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 eval "$as_ac_Header=yes"
10914else
10915 echo "$as_me: failed program was:" >&5
10916sed 's/^/| /' conftest.$ac_ext >&5
10917
10918eval "$as_ac_Header=no"
10919fi
10920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10921fi
10922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10924if test `eval echo '${'$as_ac_Header'}'` = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10927_ACEOF
10928
10929fi
10930
10931done
10932
10933
10934for ac_header in net/if.h
10935do
10936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937echo "$as_me:$LINENO: checking for $ac_header" >&5
10938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10939if eval "test \"\${$as_ac_Header+set}\" = set"; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941else
10942 cat >conftest.$ac_ext <<_ACEOF
10943/* confdefs.h. */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
10947/* end confdefs.h. */
10948
10949#if HAVE_SYS_TYPES_H
10950#include <sys/types.h>
10951#endif
10952#if HAVE_SYS_SOCKET
10953#include <sys/socket.h>
10954#endif
10955
10956
10957#include <$ac_header>
10958_ACEOF
10959rm -f conftest.$ac_objext
10960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>conftest.er1
10962 ac_status=$?
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } &&
10968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; } &&
10974 { ac_try='test -s conftest.$ac_objext'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 eval "$as_ac_Header=yes"
10981else
10982 echo "$as_me: failed program was:" >&5
10983sed 's/^/| /' conftest.$ac_ext >&5
10984
10985eval "$as_ac_Header=no"
10986fi
10987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10988fi
10989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10991if test `eval echo '${'$as_ac_Header'}'` = yes; then
10992 cat >>confdefs.h <<_ACEOF
10993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10994_ACEOF
10995
10996fi
10997
10998done
10999
11000
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011001for ac_func in vprintf
11002do
11003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11004echo "$as_me:$LINENO: checking for $ac_func" >&5
11005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11006if eval "test \"\${$as_ac_var+set}\" = set"; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009 cat >conftest.$ac_ext <<_ACEOF
11010/* confdefs.h. */
11011_ACEOF
11012cat confdefs.h >>conftest.$ac_ext
11013cat >>conftest.$ac_ext <<_ACEOF
11014/* end confdefs.h. */
11015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11017#define $ac_func innocuous_$ac_func
11018
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011019/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011020 which can conflict with char $ac_func (); below.
11021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11022 <limits.h> exists even on freestanding compilers. */
11023
11024#ifdef __STDC__
11025# include <limits.h>
11026#else
11027# include <assert.h>
11028#endif
11029
11030#undef $ac_func
11031
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011032/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011033#ifdef __cplusplus
11034extern "C"
11035{
11036#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011037/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011038 builtin and then its argument prototype would still apply. */
11039char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011040/* The GNU C library defines this for functions which it implements
11041 to always fail with ENOSYS. Some functions are actually named
11042 something starting with __ and the normal name is an alias. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011044choke me
11045#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011046char (*f) () = $ac_func;
11047#endif
11048#ifdef __cplusplus
11049}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011050#endif
11051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011052int
11053main ()
11054{
11055return f != $ac_func;
11056 ;
11057 return 0;
11058}
11059_ACEOF
11060rm -f conftest.$ac_objext conftest$ac_exeext
11061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest$ac_exeext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011082else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011083 echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011085
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011086eval "$as_ac_var=no"
11087fi
11088rm -f conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090fi
11091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11092echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11093if test `eval echo '${'$as_ac_var'}'` = yes; then
11094 cat >>confdefs.h <<_ACEOF
11095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11096_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011097
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011098echo "$as_me:$LINENO: checking for _doprnt" >&5
11099echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11100if test "${ac_cv_func__doprnt+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011103 cat >conftest.$ac_ext <<_ACEOF
11104/* confdefs.h. */
11105_ACEOF
11106cat confdefs.h >>conftest.$ac_ext
11107cat >>conftest.$ac_ext <<_ACEOF
11108/* end confdefs.h. */
11109/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011112
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011113/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011114 which can conflict with char _doprnt (); below.
11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116 <limits.h> exists even on freestanding compilers. */
11117
11118#ifdef __STDC__
11119# include <limits.h>
11120#else
11121# include <assert.h>
11122#endif
11123
11124#undef _doprnt
11125
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011126/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011127#ifdef __cplusplus
11128extern "C"
11129{
11130#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011131/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011132 builtin and then its argument prototype would still apply. */
11133char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011134/* The GNU C library defines this for functions which it implements
11135 to always fail with ENOSYS. Some functions are actually named
11136 something starting with __ and the normal name is an alias. */
11137#if defined (__stub__doprnt) || defined (__stub____doprnt)
11138choke me
11139#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011140char (*f) () = _doprnt;
11141#endif
11142#ifdef __cplusplus
11143}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011144#endif
11145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011146int
11147main ()
11148{
11149return f != _doprnt;
11150 ;
11151 return 0;
11152}
11153_ACEOF
11154rm -f conftest.$ac_objext conftest$ac_exeext
11155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest$ac_exeext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011176else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011177 echo "$as_me: failed program was:" >&5
11178sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011180ac_cv_func__doprnt=no
11181fi
11182rm -f conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11184fi
11185echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11186echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11187if test $ac_cv_func__doprnt = yes; then
11188
11189cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011190#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011191_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011192
11193fi
11194
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011195fi
11196done
11197
11198
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011199echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11200echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6
11201if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011202 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011203else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011204 cat >conftest.$ac_ext <<_ACEOF
11205/* confdefs.h. */
11206_ACEOF
11207cat confdefs.h >>conftest.$ac_ext
11208cat >>conftest.$ac_ext <<_ACEOF
11209/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040011210#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011212int
11213main ()
11214{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011215static struct dirent ac_aggr;
11216if (ac_aggr.d_reclen)
11217return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011218 ;
11219 return 0;
11220}
11221_ACEOF
11222rm -f conftest.$ac_objext
11223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11224 (eval $ac_compile) 2>conftest.er1
11225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011243 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040011244else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011245 echo "$as_me: failed program was:" >&5
11246sed 's/^/| /' conftest.$ac_ext >&5
11247
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011248cat >conftest.$ac_ext <<_ACEOF
11249/* confdefs.h. */
11250_ACEOF
11251cat confdefs.h >>conftest.$ac_ext
11252cat >>conftest.$ac_ext <<_ACEOF
11253/* end confdefs.h. */
11254#include <dirent.h>
11255
11256int
11257main ()
11258{
11259static struct dirent ac_aggr;
11260if (sizeof ac_aggr.d_reclen)
11261return 0;
11262 ;
11263 return 0;
11264}
11265_ACEOF
11266rm -f conftest.$ac_objext
11267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11268 (eval $ac_compile) 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } &&
11275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; } &&
11281 { ac_try='test -s conftest.$ac_objext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 ac_cv_member_struct_dirent_d_reclen=yes
11288else
11289 echo "$as_me: failed program was:" >&5
11290sed 's/^/| /' conftest.$ac_ext >&5
11291
11292ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040011293fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040011295fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11297fi
11298echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11299echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6
11300if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11301 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011302#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011303_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011304
11305fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011306
11307echo "$as_me:$LINENO: checking for ssize_t" >&5
11308echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11309if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011310 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040011311else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011312 cat >conftest.$ac_ext <<_ACEOF
11313/* confdefs.h. */
11314_ACEOF
11315cat confdefs.h >>conftest.$ac_ext
11316cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040011318#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011320int
11321main ()
11322{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011323if ((ssize_t *) 0)
11324 return 0;
11325if (sizeof (ssize_t))
11326 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011327 ;
11328 return 0;
11329}
11330_ACEOF
11331rm -f conftest.$ac_objext
11332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11333 (eval $ac_compile) 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011352 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040011353else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011354 echo "$as_me: failed program was:" >&5
11355sed 's/^/| /' conftest.$ac_ext >&5
11356
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011357ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040011358fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040011360fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011361echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11362echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11363if test $ac_cv_type_ssize_t = yes; then
11364 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011365#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011366_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011367
11368fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011369
11370echo "$as_me:$LINENO: checking whether llseek is declared" >&5
11371echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6
11372if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011373 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040011374else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011375 cat >conftest.$ac_ext <<_ACEOF
11376/* confdefs.h. */
11377_ACEOF
11378cat confdefs.h >>conftest.$ac_ext
11379cat >>conftest.$ac_ext <<_ACEOF
11380/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011381#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011382
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011383int
11384main ()
11385{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011386#ifndef llseek
11387 char *p = (char *) llseek;
11388#endif
11389
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011390 ;
11391 return 0;
11392}
11393_ACEOF
11394rm -f conftest.$ac_objext
11395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11396 (eval $ac_compile) 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; } &&
11409 { ac_try='test -s conftest.$ac_objext'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011415 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011416else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011417 echo "$as_me: failed program was:" >&5
11418sed 's/^/| /' conftest.$ac_ext >&5
11419
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011420ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011421fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011423fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011424echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
11425echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6
11426if test $ac_cv_have_decl_llseek = yes; then
11427 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011428#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011429_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000011430
11431fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011432
11433echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
11434echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6
11435if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011437else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011438 cat >conftest.$ac_ext <<_ACEOF
11439/* confdefs.h. */
11440_ACEOF
11441cat confdefs.h >>conftest.$ac_ext
11442cat >>conftest.$ac_ext <<_ACEOF
11443/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011444#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011445 #define _LARGEFILE64_SOURCE
11446 #include <unistd.h>
11447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011448int
11449main ()
11450{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011451#ifndef lseek64
11452 char *p = (char *) lseek64;
11453#endif
11454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455 ;
11456 return 0;
11457}
11458_ACEOF
11459rm -f conftest.$ac_objext
11460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461 (eval $ac_compile) 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011480 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011481else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011482 echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011485ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011486fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011488fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011489echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
11490echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6
11491if test $ac_cv_have_decl_lseek64 = yes; then
11492 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011493#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011494_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000011495
11496fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011497
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011498if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011499 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011500 ac_cv_sizeof_short=2
11501 ac_cv_sizeof_int=4
11502 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000011503 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011504 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11505echo "$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 +000011506fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011507echo "$as_me:$LINENO: checking for short" >&5
11508echo $ECHO_N "checking for short... $ECHO_C" >&6
11509if test "${ac_cv_type_short+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511else
11512 cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h. */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
11518$ac_includes_default
11519int
11520main ()
11521{
11522if ((short *) 0)
11523 return 0;
11524if (sizeof (short))
11525 return 0;
11526 ;
11527 return 0;
11528}
11529_ACEOF
11530rm -f conftest.$ac_objext
11531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11532 (eval $ac_compile) 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 ac_cv_type_short=yes
11552else
11553 echo "$as_me: failed program was:" >&5
11554sed 's/^/| /' conftest.$ac_ext >&5
11555
11556ac_cv_type_short=no
11557fi
11558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11559fi
11560echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11561echo "${ECHO_T}$ac_cv_type_short" >&6
11562
11563echo "$as_me:$LINENO: checking size of short" >&5
11564echo $ECHO_N "checking size of short... $ECHO_C" >&6
11565if test "${ac_cv_sizeof_short+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567else
11568 if test "$ac_cv_type_short" = yes; then
11569 # The cast to unsigned long works around a bug in the HP C Compiler
11570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11572 # This bug is HP SR number 8606223364.
11573 if test "$cross_compiling" = yes; then
11574 # Depending upon the size, compute the lo and hi bounds.
11575cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
11581$ac_includes_default
11582int
11583main ()
11584{
11585static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11586test_array [0] = 0
11587
11588 ;
11589 return 0;
11590}
11591_ACEOF
11592rm -f conftest.$ac_objext
11593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594 (eval $ac_compile) 2>conftest.er1
11595 ac_status=$?
11596 grep -v '^ *+' conftest.er1 >conftest.err
11597 rm -f conftest.er1
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest.$ac_objext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 ac_lo=0 ac_mid=0
11614 while :; do
11615 cat >conftest.$ac_ext <<_ACEOF
11616/* confdefs.h. */
11617_ACEOF
11618cat confdefs.h >>conftest.$ac_ext
11619cat >>conftest.$ac_ext <<_ACEOF
11620/* end confdefs.h. */
11621$ac_includes_default
11622int
11623main ()
11624{
11625static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11626test_array [0] = 0
11627
11628 ;
11629 return 0;
11630}
11631_ACEOF
11632rm -f conftest.$ac_objext
11633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11634 (eval $ac_compile) 2>conftest.er1
11635 ac_status=$?
11636 grep -v '^ *+' conftest.er1 >conftest.err
11637 rm -f conftest.er1
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; } &&
11647 { ac_try='test -s conftest.$ac_objext'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; }; then
11653 ac_hi=$ac_mid; break
11654else
11655 echo "$as_me: failed program was:" >&5
11656sed 's/^/| /' conftest.$ac_ext >&5
11657
11658ac_lo=`expr $ac_mid + 1`
11659 if test $ac_lo -le $ac_mid; then
11660 ac_lo= ac_hi=
11661 break
11662 fi
11663 ac_mid=`expr 2 '*' $ac_mid + 1`
11664fi
11665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11666 done
11667else
11668 echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
11671cat >conftest.$ac_ext <<_ACEOF
11672/* confdefs.h. */
11673_ACEOF
11674cat confdefs.h >>conftest.$ac_ext
11675cat >>conftest.$ac_ext <<_ACEOF
11676/* end confdefs.h. */
11677$ac_includes_default
11678int
11679main ()
11680{
11681static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11682test_array [0] = 0
11683
11684 ;
11685 return 0;
11686}
11687_ACEOF
11688rm -f conftest.$ac_objext
11689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest.$ac_objext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 ac_hi=-1 ac_mid=-1
11710 while :; do
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717$ac_includes_default
11718int
11719main ()
11720{
11721static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11722test_array [0] = 0
11723
11724 ;
11725 return 0;
11726}
11727_ACEOF
11728rm -f conftest.$ac_objext
11729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730 (eval $ac_compile) 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest.$ac_objext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 ac_lo=$ac_mid; break
11750else
11751 echo "$as_me: failed program was:" >&5
11752sed 's/^/| /' conftest.$ac_ext >&5
11753
11754ac_hi=`expr '(' $ac_mid ')' - 1`
11755 if test $ac_mid -le $ac_hi; then
11756 ac_lo= ac_hi=
11757 break
11758 fi
11759 ac_mid=`expr 2 '*' $ac_mid`
11760fi
11761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11762 done
11763else
11764 echo "$as_me: failed program was:" >&5
11765sed 's/^/| /' conftest.$ac_ext >&5
11766
11767ac_lo= ac_hi=
11768fi
11769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11770fi
11771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11772# Binary search between lo and hi bounds.
11773while test "x$ac_lo" != "x$ac_hi"; do
11774 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11775 cat >conftest.$ac_ext <<_ACEOF
11776/* confdefs.h. */
11777_ACEOF
11778cat confdefs.h >>conftest.$ac_ext
11779cat >>conftest.$ac_ext <<_ACEOF
11780/* end confdefs.h. */
11781$ac_includes_default
11782int
11783main ()
11784{
11785static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11786test_array [0] = 0
11787
11788 ;
11789 return 0;
11790}
11791_ACEOF
11792rm -f conftest.$ac_objext
11793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11794 (eval $ac_compile) 2>conftest.er1
11795 ac_status=$?
11796 grep -v '^ *+' conftest.er1 >conftest.err
11797 rm -f conftest.er1
11798 cat conftest.err >&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } &&
11801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest.$ac_objext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_hi=$ac_mid
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
11818ac_lo=`expr '(' $ac_mid ')' + 1`
11819fi
11820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11821done
11822case $ac_lo in
11823?*) ac_cv_sizeof_short=$ac_lo;;
11824'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11825See \`config.log' for more details." >&5
11826echo "$as_me: error: cannot compute sizeof (short), 77
11827See \`config.log' for more details." >&2;}
11828 { (exit 1); exit 1; }; } ;;
11829esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011830else
11831 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011832 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11833echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11834 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011835else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011836 cat >conftest.$ac_ext <<_ACEOF
11837/* confdefs.h. */
11838_ACEOF
11839cat confdefs.h >>conftest.$ac_ext
11840cat >>conftest.$ac_ext <<_ACEOF
11841/* end confdefs.h. */
11842$ac_includes_default
11843long longval () { return (long) (sizeof (short)); }
11844unsigned long ulongval () { return (long) (sizeof (short)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011845#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011846#include <stdlib.h>
11847int
11848main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011849{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011850
11851 FILE *f = fopen ("conftest.val", "w");
11852 if (! f)
11853 exit (1);
11854 if (((long) (sizeof (short))) < 0)
11855 {
11856 long i = longval ();
11857 if (i != ((long) (sizeof (short))))
11858 exit (1);
11859 fprintf (f, "%ld\n", i);
11860 }
11861 else
11862 {
11863 unsigned long i = ulongval ();
11864 if (i != ((long) (sizeof (short))))
11865 exit (1);
11866 fprintf (f, "%lu\n", i);
11867 }
11868 exit (ferror (f) || fclose (f) != 0);
11869
11870 ;
11871 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011872}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011873_ACEOF
11874rm -f conftest$ac_exeext
11875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876 (eval $ac_link) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011886else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011887 echo "$as_me: program exited with status $ac_status" >&5
11888echo "$as_me: failed program was:" >&5
11889sed 's/^/| /' conftest.$ac_ext >&5
11890
11891( exit $ac_status )
11892{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11893See \`config.log' for more details." >&5
11894echo "$as_me: error: cannot compute sizeof (short), 77
11895See \`config.log' for more details." >&2;}
11896 { (exit 1); exit 1; }; }
11897fi
11898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11899fi
11900fi
11901rm -f conftest.val
11902else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011903 ac_cv_sizeof_short=0
11904fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011905fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011906echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11907echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11908cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011909#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011910_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011911
11912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011913echo "$as_me:$LINENO: checking for int" >&5
11914echo $ECHO_N "checking for int... $ECHO_C" >&6
11915if test "${ac_cv_type_int+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11917else
11918 cat >conftest.$ac_ext <<_ACEOF
11919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
11924$ac_includes_default
11925int
11926main ()
11927{
11928if ((int *) 0)
11929 return 0;
11930if (sizeof (int))
11931 return 0;
11932 ;
11933 return 0;
11934}
11935_ACEOF
11936rm -f conftest.$ac_objext
11937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938 (eval $ac_compile) 2>conftest.er1
11939 ac_status=$?
11940 grep -v '^ *+' conftest.er1 >conftest.err
11941 rm -f conftest.er1
11942 cat conftest.err >&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
11945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest.$ac_objext'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_type_int=yes
11958else
11959 echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962ac_cv_type_int=no
11963fi
11964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11965fi
11966echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11967echo "${ECHO_T}$ac_cv_type_int" >&6
11968
11969echo "$as_me:$LINENO: checking size of int" >&5
11970echo $ECHO_N "checking size of int... $ECHO_C" >&6
11971if test "${ac_cv_sizeof_int+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973else
11974 if test "$ac_cv_type_int" = yes; then
11975 # The cast to unsigned long works around a bug in the HP C Compiler
11976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11978 # This bug is HP SR number 8606223364.
11979 if test "$cross_compiling" = yes; then
11980 # Depending upon the size, compute the lo and hi bounds.
11981cat >conftest.$ac_ext <<_ACEOF
11982/* confdefs.h. */
11983_ACEOF
11984cat confdefs.h >>conftest.$ac_ext
11985cat >>conftest.$ac_ext <<_ACEOF
11986/* end confdefs.h. */
11987$ac_includes_default
11988int
11989main ()
11990{
11991static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11992test_array [0] = 0
11993
11994 ;
11995 return 0;
11996}
11997_ACEOF
11998rm -f conftest.$ac_objext
11999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12000 (eval $ac_compile) 2>conftest.er1
12001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; } &&
12013 { ac_try='test -s conftest.$ac_objext'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; }; then
12019 ac_lo=0 ac_mid=0
12020 while :; do
12021 cat >conftest.$ac_ext <<_ACEOF
12022/* confdefs.h. */
12023_ACEOF
12024cat confdefs.h >>conftest.$ac_ext
12025cat >>conftest.$ac_ext <<_ACEOF
12026/* end confdefs.h. */
12027$ac_includes_default
12028int
12029main ()
12030{
12031static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12032test_array [0] = 0
12033
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext
12039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>conftest.er1
12041 ac_status=$?
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest.$ac_objext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_hi=$ac_mid; break
12060else
12061 echo "$as_me: failed program was:" >&5
12062sed 's/^/| /' conftest.$ac_ext >&5
12063
12064ac_lo=`expr $ac_mid + 1`
12065 if test $ac_lo -le $ac_mid; then
12066 ac_lo= ac_hi=
12067 break
12068 fi
12069 ac_mid=`expr 2 '*' $ac_mid + 1`
12070fi
12071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12072 done
12073else
12074 echo "$as_me: failed program was:" >&5
12075sed 's/^/| /' conftest.$ac_ext >&5
12076
12077cat >conftest.$ac_ext <<_ACEOF
12078/* confdefs.h. */
12079_ACEOF
12080cat confdefs.h >>conftest.$ac_ext
12081cat >>conftest.$ac_ext <<_ACEOF
12082/* end confdefs.h. */
12083$ac_includes_default
12084int
12085main ()
12086{
12087static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12088test_array [0] = 0
12089
12090 ;
12091 return 0;
12092}
12093_ACEOF
12094rm -f conftest.$ac_objext
12095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096 (eval $ac_compile) 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 ac_hi=-1 ac_mid=-1
12116 while :; do
12117 cat >conftest.$ac_ext <<_ACEOF
12118/* confdefs.h. */
12119_ACEOF
12120cat confdefs.h >>conftest.$ac_ext
12121cat >>conftest.$ac_ext <<_ACEOF
12122/* end confdefs.h. */
12123$ac_includes_default
12124int
12125main ()
12126{
12127static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12128test_array [0] = 0
12129
12130 ;
12131 return 0;
12132}
12133_ACEOF
12134rm -f conftest.$ac_objext
12135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12146 ac_status=$?
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; } &&
12149 { ac_try='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 ac_lo=$ac_mid; break
12156else
12157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
12160ac_hi=`expr '(' $ac_mid ')' - 1`
12161 if test $ac_mid -le $ac_hi; then
12162 ac_lo= ac_hi=
12163 break
12164 fi
12165 ac_mid=`expr 2 '*' $ac_mid`
12166fi
12167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12168 done
12169else
12170 echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
12172
12173ac_lo= ac_hi=
12174fi
12175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12176fi
12177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12178# Binary search between lo and hi bounds.
12179while test "x$ac_lo" != "x$ac_hi"; do
12180 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12181 cat >conftest.$ac_ext <<_ACEOF
12182/* confdefs.h. */
12183_ACEOF
12184cat confdefs.h >>conftest.$ac_ext
12185cat >>conftest.$ac_ext <<_ACEOF
12186/* end confdefs.h. */
12187$ac_includes_default
12188int
12189main ()
12190{
12191static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12192test_array [0] = 0
12193
12194 ;
12195 return 0;
12196}
12197_ACEOF
12198rm -f conftest.$ac_objext
12199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest.$ac_objext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_hi=$ac_mid
12220else
12221 echo "$as_me: failed program was:" >&5
12222sed 's/^/| /' conftest.$ac_ext >&5
12223
12224ac_lo=`expr '(' $ac_mid ')' + 1`
12225fi
12226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12227done
12228case $ac_lo in
12229?*) ac_cv_sizeof_int=$ac_lo;;
12230'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12231See \`config.log' for more details." >&5
12232echo "$as_me: error: cannot compute sizeof (int), 77
12233See \`config.log' for more details." >&2;}
12234 { (exit 1); exit 1; }; } ;;
12235esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012236else
12237 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012238 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12239echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12240 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012241else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012242 cat >conftest.$ac_ext <<_ACEOF
12243/* confdefs.h. */
12244_ACEOF
12245cat confdefs.h >>conftest.$ac_ext
12246cat >>conftest.$ac_ext <<_ACEOF
12247/* end confdefs.h. */
12248$ac_includes_default
12249long longval () { return (long) (sizeof (int)); }
12250unsigned long ulongval () { return (long) (sizeof (int)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012251#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012252#include <stdlib.h>
12253int
12254main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012255{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012256
12257 FILE *f = fopen ("conftest.val", "w");
12258 if (! f)
12259 exit (1);
12260 if (((long) (sizeof (int))) < 0)
12261 {
12262 long i = longval ();
12263 if (i != ((long) (sizeof (int))))
12264 exit (1);
12265 fprintf (f, "%ld\n", i);
12266 }
12267 else
12268 {
12269 unsigned long i = ulongval ();
12270 if (i != ((long) (sizeof (int))))
12271 exit (1);
12272 fprintf (f, "%lu\n", i);
12273 }
12274 exit (ferror (f) || fclose (f) != 0);
12275
12276 ;
12277 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012278}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012279_ACEOF
12280rm -f conftest$ac_exeext
12281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282 (eval $ac_link) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012292else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012293 echo "$as_me: program exited with status $ac_status" >&5
12294echo "$as_me: failed program was:" >&5
12295sed 's/^/| /' conftest.$ac_ext >&5
12296
12297( exit $ac_status )
12298{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12299See \`config.log' for more details." >&5
12300echo "$as_me: error: cannot compute sizeof (int), 77
12301See \`config.log' for more details." >&2;}
12302 { (exit 1); exit 1; }; }
12303fi
12304rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12305fi
12306fi
12307rm -f conftest.val
12308else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012309 ac_cv_sizeof_int=0
12310fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012311fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012312echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12313echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12314cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012315#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012316_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012317
12318
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012319echo "$as_me:$LINENO: checking for long" >&5
12320echo $ECHO_N "checking for long... $ECHO_C" >&6
12321if test "${ac_cv_type_long+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323else
12324 cat >conftest.$ac_ext <<_ACEOF
12325/* confdefs.h. */
12326_ACEOF
12327cat confdefs.h >>conftest.$ac_ext
12328cat >>conftest.$ac_ext <<_ACEOF
12329/* end confdefs.h. */
12330$ac_includes_default
12331int
12332main ()
12333{
12334if ((long *) 0)
12335 return 0;
12336if (sizeof (long))
12337 return 0;
12338 ;
12339 return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext
12343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest.$ac_objext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 ac_cv_type_long=yes
12364else
12365 echo "$as_me: failed program was:" >&5
12366sed 's/^/| /' conftest.$ac_ext >&5
12367
12368ac_cv_type_long=no
12369fi
12370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371fi
12372echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12373echo "${ECHO_T}$ac_cv_type_long" >&6
12374
12375echo "$as_me:$LINENO: checking size of long" >&5
12376echo $ECHO_N "checking size of long... $ECHO_C" >&6
12377if test "${ac_cv_sizeof_long+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379else
12380 if test "$ac_cv_type_long" = yes; then
12381 # The cast to unsigned long works around a bug in the HP C Compiler
12382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12384 # This bug is HP SR number 8606223364.
12385 if test "$cross_compiling" = yes; then
12386 # Depending upon the size, compute the lo and hi bounds.
12387cat >conftest.$ac_ext <<_ACEOF
12388/* confdefs.h. */
12389_ACEOF
12390cat confdefs.h >>conftest.$ac_ext
12391cat >>conftest.$ac_ext <<_ACEOF
12392/* end confdefs.h. */
12393$ac_includes_default
12394int
12395main ()
12396{
12397static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12398test_array [0] = 0
12399
12400 ;
12401 return 0;
12402}
12403_ACEOF
12404rm -f conftest.$ac_objext
12405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>conftest.er1
12407 ac_status=$?
12408 grep -v '^ *+' conftest.er1 >conftest.err
12409 rm -f conftest.er1
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest.$ac_objext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_lo=0 ac_mid=0
12426 while :; do
12427 cat >conftest.$ac_ext <<_ACEOF
12428/* confdefs.h. */
12429_ACEOF
12430cat confdefs.h >>conftest.$ac_ext
12431cat >>conftest.$ac_ext <<_ACEOF
12432/* end confdefs.h. */
12433$ac_includes_default
12434int
12435main ()
12436{
12437static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12438test_array [0] = 0
12439
12440 ;
12441 return 0;
12442}
12443_ACEOF
12444rm -f conftest.$ac_objext
12445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12446 (eval $ac_compile) 2>conftest.er1
12447 ac_status=$?
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_hi=$ac_mid; break
12466else
12467 echo "$as_me: failed program was:" >&5
12468sed 's/^/| /' conftest.$ac_ext >&5
12469
12470ac_lo=`expr $ac_mid + 1`
12471 if test $ac_lo -le $ac_mid; then
12472 ac_lo= ac_hi=
12473 break
12474 fi
12475 ac_mid=`expr 2 '*' $ac_mid + 1`
12476fi
12477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12478 done
12479else
12480 echo "$as_me: failed program was:" >&5
12481sed 's/^/| /' conftest.$ac_ext >&5
12482
12483cat >conftest.$ac_ext <<_ACEOF
12484/* confdefs.h. */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
12488/* end confdefs.h. */
12489$ac_includes_default
12490int
12491main ()
12492{
12493static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12494test_array [0] = 0
12495
12496 ;
12497 return 0;
12498}
12499_ACEOF
12500rm -f conftest.$ac_objext
12501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest.$ac_objext'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 ac_hi=-1 ac_mid=-1
12522 while :; do
12523 cat >conftest.$ac_ext <<_ACEOF
12524/* confdefs.h. */
12525_ACEOF
12526cat confdefs.h >>conftest.$ac_ext
12527cat >>conftest.$ac_ext <<_ACEOF
12528/* end confdefs.h. */
12529$ac_includes_default
12530int
12531main ()
12532{
12533static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12534test_array [0] = 0
12535
12536 ;
12537 return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext
12541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542 (eval $ac_compile) 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest.$ac_objext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_lo=$ac_mid; break
12562else
12563 echo "$as_me: failed program was:" >&5
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
12566ac_hi=`expr '(' $ac_mid ')' - 1`
12567 if test $ac_mid -le $ac_hi; then
12568 ac_lo= ac_hi=
12569 break
12570 fi
12571 ac_mid=`expr 2 '*' $ac_mid`
12572fi
12573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12574 done
12575else
12576 echo "$as_me: failed program was:" >&5
12577sed 's/^/| /' conftest.$ac_ext >&5
12578
12579ac_lo= ac_hi=
12580fi
12581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12582fi
12583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12584# Binary search between lo and hi bounds.
12585while test "x$ac_lo" != "x$ac_hi"; do
12586 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12587 cat >conftest.$ac_ext <<_ACEOF
12588/* confdefs.h. */
12589_ACEOF
12590cat confdefs.h >>conftest.$ac_ext
12591cat >>conftest.$ac_ext <<_ACEOF
12592/* end confdefs.h. */
12593$ac_includes_default
12594int
12595main ()
12596{
12597static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12598test_array [0] = 0
12599
12600 ;
12601 return 0;
12602}
12603_ACEOF
12604rm -f conftest.$ac_objext
12605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; } &&
12619 { ac_try='test -s conftest.$ac_objext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_hi=$ac_mid
12626else
12627 echo "$as_me: failed program was:" >&5
12628sed 's/^/| /' conftest.$ac_ext >&5
12629
12630ac_lo=`expr '(' $ac_mid ')' + 1`
12631fi
12632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12633done
12634case $ac_lo in
12635?*) ac_cv_sizeof_long=$ac_lo;;
12636'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12637See \`config.log' for more details." >&5
12638echo "$as_me: error: cannot compute sizeof (long), 77
12639See \`config.log' for more details." >&2;}
12640 { (exit 1); exit 1; }; } ;;
12641esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012642else
12643 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012644 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12645echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12646 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012647else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012648 cat >conftest.$ac_ext <<_ACEOF
12649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
12654$ac_includes_default
12655long longval () { return (long) (sizeof (long)); }
12656unsigned long ulongval () { return (long) (sizeof (long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012657#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012658#include <stdlib.h>
12659int
12660main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012661{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012662
12663 FILE *f = fopen ("conftest.val", "w");
12664 if (! f)
12665 exit (1);
12666 if (((long) (sizeof (long))) < 0)
12667 {
12668 long i = longval ();
12669 if (i != ((long) (sizeof (long))))
12670 exit (1);
12671 fprintf (f, "%ld\n", i);
12672 }
12673 else
12674 {
12675 unsigned long i = ulongval ();
12676 if (i != ((long) (sizeof (long))))
12677 exit (1);
12678 fprintf (f, "%lu\n", i);
12679 }
12680 exit (ferror (f) || fclose (f) != 0);
12681
12682 ;
12683 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012684}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012685_ACEOF
12686rm -f conftest$ac_exeext
12687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688 (eval $ac_link) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12697 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012698else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012699 echo "$as_me: program exited with status $ac_status" >&5
12700echo "$as_me: failed program was:" >&5
12701sed 's/^/| /' conftest.$ac_ext >&5
12702
12703( exit $ac_status )
12704{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12705See \`config.log' for more details." >&5
12706echo "$as_me: error: cannot compute sizeof (long), 77
12707See \`config.log' for more details." >&2;}
12708 { (exit 1); exit 1; }; }
12709fi
12710rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12711fi
12712fi
12713rm -f conftest.val
12714else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012715 ac_cv_sizeof_long=0
12716fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012717fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012718echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12719echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12720cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012721#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012722_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012723
12724
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012725echo "$as_me:$LINENO: checking for long long" >&5
12726echo $ECHO_N "checking for long long... $ECHO_C" >&6
12727if test "${ac_cv_type_long_long+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12729else
12730 cat >conftest.$ac_ext <<_ACEOF
12731/* confdefs.h. */
12732_ACEOF
12733cat confdefs.h >>conftest.$ac_ext
12734cat >>conftest.$ac_ext <<_ACEOF
12735/* end confdefs.h. */
12736$ac_includes_default
12737int
12738main ()
12739{
12740if ((long long *) 0)
12741 return 0;
12742if (sizeof (long long))
12743 return 0;
12744 ;
12745 return 0;
12746}
12747_ACEOF
12748rm -f conftest.$ac_objext
12749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>conftest.er1
12751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest.$ac_objext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_cv_type_long_long=yes
12770else
12771 echo "$as_me: failed program was:" >&5
12772sed 's/^/| /' conftest.$ac_ext >&5
12773
12774ac_cv_type_long_long=no
12775fi
12776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12777fi
12778echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12779echo "${ECHO_T}$ac_cv_type_long_long" >&6
12780
12781echo "$as_me:$LINENO: checking size of long long" >&5
12782echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12783if test "${ac_cv_sizeof_long_long+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12785else
12786 if test "$ac_cv_type_long_long" = yes; then
12787 # The cast to unsigned long works around a bug in the HP C Compiler
12788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12790 # This bug is HP SR number 8606223364.
12791 if test "$cross_compiling" = yes; then
12792 # Depending upon the size, compute the lo and hi bounds.
12793cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */
12799$ac_includes_default
12800int
12801main ()
12802{
12803static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12804test_array [0] = 0
12805
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810rm -f conftest.$ac_objext
12811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812 (eval $ac_compile) 2>conftest.er1
12813 ac_status=$?
12814 grep -v '^ *+' conftest.er1 >conftest.err
12815 rm -f conftest.er1
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
12819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest.$ac_objext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 ac_lo=0 ac_mid=0
12832 while :; do
12833 cat >conftest.$ac_ext <<_ACEOF
12834/* confdefs.h. */
12835_ACEOF
12836cat confdefs.h >>conftest.$ac_ext
12837cat >>conftest.$ac_ext <<_ACEOF
12838/* end confdefs.h. */
12839$ac_includes_default
12840int
12841main ()
12842{
12843static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12844test_array [0] = 0
12845
12846 ;
12847 return 0;
12848}
12849_ACEOF
12850rm -f conftest.$ac_objext
12851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12852 (eval $ac_compile) 2>conftest.er1
12853 ac_status=$?
12854 grep -v '^ *+' conftest.er1 >conftest.err
12855 rm -f conftest.er1
12856 cat conftest.err >&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } &&
12859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest.$ac_objext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_hi=$ac_mid; break
12872else
12873 echo "$as_me: failed program was:" >&5
12874sed 's/^/| /' conftest.$ac_ext >&5
12875
12876ac_lo=`expr $ac_mid + 1`
12877 if test $ac_lo -le $ac_mid; then
12878 ac_lo= ac_hi=
12879 break
12880 fi
12881 ac_mid=`expr 2 '*' $ac_mid + 1`
12882fi
12883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12884 done
12885else
12886 echo "$as_me: failed program was:" >&5
12887sed 's/^/| /' conftest.$ac_ext >&5
12888
12889cat >conftest.$ac_ext <<_ACEOF
12890/* confdefs.h. */
12891_ACEOF
12892cat confdefs.h >>conftest.$ac_ext
12893cat >>conftest.$ac_ext <<_ACEOF
12894/* end confdefs.h. */
12895$ac_includes_default
12896int
12897main ()
12898{
12899static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12900test_array [0] = 0
12901
12902 ;
12903 return 0;
12904}
12905_ACEOF
12906rm -f conftest.$ac_objext
12907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>conftest.er1
12909 ac_status=$?
12910 grep -v '^ *+' conftest.er1 >conftest.err
12911 rm -f conftest.er1
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest.$ac_objext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_hi=-1 ac_mid=-1
12928 while :; do
12929 cat >conftest.$ac_ext <<_ACEOF
12930/* confdefs.h. */
12931_ACEOF
12932cat confdefs.h >>conftest.$ac_ext
12933cat >>conftest.$ac_ext <<_ACEOF
12934/* end confdefs.h. */
12935$ac_includes_default
12936int
12937main ()
12938{
12939static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12940test_array [0] = 0
12941
12942 ;
12943 return 0;
12944}
12945_ACEOF
12946rm -f conftest.$ac_objext
12947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948 (eval $ac_compile) 2>conftest.er1
12949 ac_status=$?
12950 grep -v '^ *+' conftest.er1 >conftest.err
12951 rm -f conftest.er1
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; } &&
12961 { ac_try='test -s conftest.$ac_objext'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_lo=$ac_mid; break
12968else
12969 echo "$as_me: failed program was:" >&5
12970sed 's/^/| /' conftest.$ac_ext >&5
12971
12972ac_hi=`expr '(' $ac_mid ')' - 1`
12973 if test $ac_mid -le $ac_hi; then
12974 ac_lo= ac_hi=
12975 break
12976 fi
12977 ac_mid=`expr 2 '*' $ac_mid`
12978fi
12979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12980 done
12981else
12982 echo "$as_me: failed program was:" >&5
12983sed 's/^/| /' conftest.$ac_ext >&5
12984
12985ac_lo= ac_hi=
12986fi
12987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988fi
12989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12990# Binary search between lo and hi bounds.
12991while test "x$ac_lo" != "x$ac_hi"; do
12992 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12993 cat >conftest.$ac_ext <<_ACEOF
12994/* confdefs.h. */
12995_ACEOF
12996cat confdefs.h >>conftest.$ac_ext
12997cat >>conftest.$ac_ext <<_ACEOF
12998/* end confdefs.h. */
12999$ac_includes_default
13000int
13001main ()
13002{
13003static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13004test_array [0] = 0
13005
13006 ;
13007 return 0;
13008}
13009_ACEOF
13010rm -f conftest.$ac_objext
13011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012 (eval $ac_compile) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try='test -s conftest.$ac_objext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_hi=$ac_mid
13032else
13033 echo "$as_me: failed program was:" >&5
13034sed 's/^/| /' conftest.$ac_ext >&5
13035
13036ac_lo=`expr '(' $ac_mid ')' + 1`
13037fi
13038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13039done
13040case $ac_lo in
13041?*) ac_cv_sizeof_long_long=$ac_lo;;
13042'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13043See \`config.log' for more details." >&5
13044echo "$as_me: error: cannot compute sizeof (long long), 77
13045See \`config.log' for more details." >&2;}
13046 { (exit 1); exit 1; }; } ;;
13047esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013048else
13049 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013050 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13051echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13052 { (exit 1); exit 1; }; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013053else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013054 cat >conftest.$ac_ext <<_ACEOF
13055/* confdefs.h. */
13056_ACEOF
13057cat confdefs.h >>conftest.$ac_ext
13058cat >>conftest.$ac_ext <<_ACEOF
13059/* end confdefs.h. */
13060$ac_includes_default
13061long longval () { return (long) (sizeof (long long)); }
13062unsigned long ulongval () { return (long) (sizeof (long long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013063#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013064#include <stdlib.h>
13065int
13066main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013067{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013068
13069 FILE *f = fopen ("conftest.val", "w");
13070 if (! f)
13071 exit (1);
13072 if (((long) (sizeof (long long))) < 0)
13073 {
13074 long i = longval ();
13075 if (i != ((long) (sizeof (long long))))
13076 exit (1);
13077 fprintf (f, "%ld\n", i);
13078 }
13079 else
13080 {
13081 unsigned long i = ulongval ();
13082 if (i != ((long) (sizeof (long long))))
13083 exit (1);
13084 fprintf (f, "%lu\n", i);
13085 }
13086 exit (ferror (f) || fclose (f) != 0);
13087
13088 ;
13089 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013090}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013091_ACEOF
13092rm -f conftest$ac_exeext
13093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13094 (eval $ac_link) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013104else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013105 echo "$as_me: program exited with status $ac_status" >&5
13106echo "$as_me: failed program was:" >&5
13107sed 's/^/| /' conftest.$ac_ext >&5
13108
13109( exit $ac_status )
13110{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13111See \`config.log' for more details." >&5
13112echo "$as_me: error: cannot compute sizeof (long long), 77
13113See \`config.log' for more details." >&2;}
13114 { (exit 1); exit 1; }; }
13115fi
13116rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13117fi
13118fi
13119rm -f conftest.val
13120else
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013121 ac_cv_sizeof_long_long=0
13122fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013123fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013124echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13125echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13126cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013127#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013128_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013129
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013130
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013131SIZEOF_SHORT=$ac_cv_sizeof_short
13132SIZEOF_INT=$ac_cv_sizeof_int
13133SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013134SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13135
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013136
13137
13138
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013139echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13140echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13141if test "${ac_cv_c_bigendian+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013143else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013144 # See if sys/param.h defines the BYTE_ORDER macro.
13145cat >conftest.$ac_ext <<_ACEOF
13146/* confdefs.h. */
13147_ACEOF
13148cat confdefs.h >>conftest.$ac_ext
13149cat >>conftest.$ac_ext <<_ACEOF
13150/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013151#include <sys/types.h>
13152#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013154int
13155main ()
13156{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013157#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13158 bogus endian macros
13159#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013160
13161 ;
13162 return 0;
13163}
13164_ACEOF
13165rm -f conftest.$ac_objext
13166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167 (eval $ac_compile) 2>conftest.er1
13168 ac_status=$?
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try='test -s conftest.$ac_objext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013186 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013187cat >conftest.$ac_ext <<_ACEOF
13188/* confdefs.h. */
13189_ACEOF
13190cat confdefs.h >>conftest.$ac_ext
13191cat >>conftest.$ac_ext <<_ACEOF
13192/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013193#include <sys/types.h>
13194#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013195
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013196int
13197main ()
13198{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013199#if BYTE_ORDER != BIG_ENDIAN
13200 not big endian
13201#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013202
13203 ;
13204 return 0;
13205}
13206_ACEOF
13207rm -f conftest.$ac_objext
13208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>conftest.er1
13210 ac_status=$?
13211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest.$ac_objext'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013228 ac_cv_c_bigendian=yes
13229else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013230 echo "$as_me: failed program was:" >&5
13231sed 's/^/| /' conftest.$ac_ext >&5
13232
13233ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013234fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013236else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013237 echo "$as_me: failed program was:" >&5
13238sed 's/^/| /' conftest.$ac_ext >&5
13239
13240# It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013241if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013242 # try to guess the endianness by grepping values into an object file
13243 ac_cv_c_bigendian=unknown
13244 cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
13250short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13251short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13252void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13253short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13254short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13255void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13256int
13257main ()
13258{
13259 _ascii (); _ebcdic ();
13260 ;
13261 return 0;
13262}
13263_ACEOF
13264rm -f conftest.$ac_objext
13265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13266 (eval $ac_compile) 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest.$ac_objext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13286 ac_cv_c_bigendian=yes
13287fi
13288if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13289 if test "$ac_cv_c_bigendian" = unknown; then
13290 ac_cv_c_bigendian=no
13291 else
13292 # finding both strings is unlikely to happen, but who knows?
13293 ac_cv_c_bigendian=unknown
13294 fi
13295fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013296else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013297 echo "$as_me: failed program was:" >&5
13298sed 's/^/| /' conftest.$ac_ext >&5
13299
13300fi
13301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13302else
13303 cat >conftest.$ac_ext <<_ACEOF
13304/* confdefs.h. */
13305_ACEOF
13306cat confdefs.h >>conftest.$ac_ext
13307cat >>conftest.$ac_ext <<_ACEOF
13308/* end confdefs.h. */
13309int
13310main ()
13311{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013312 /* Are we little or big endian? From Harbison&Steele. */
13313 union
13314 {
13315 long l;
13316 char c[sizeof (long)];
13317 } u;
13318 u.l = 1;
13319 exit (u.c[sizeof (long) - 1] == 1);
13320}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013321_ACEOF
13322rm -f conftest$ac_exeext
13323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324 (eval $ac_link) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013333 ac_cv_c_bigendian=no
13334else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013335 echo "$as_me: program exited with status $ac_status" >&5
13336echo "$as_me: failed program was:" >&5
13337sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013338
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013339( exit $ac_status )
13340ac_cv_c_bigendian=yes
13341fi
13342rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013343fi
13344fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13346fi
13347echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13348echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13349case $ac_cv_c_bigendian in
13350 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013352cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013353#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013354_ACEOF
13355 ;;
13356 no)
13357 ;;
13358 *)
13359 { { echo "$as_me:$LINENO: error: unknown endianness
13360presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13361echo "$as_me: error: unknown endianness
13362presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13363 { (exit 1); exit 1; }; } ;;
13364esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013365
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013366
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013367for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013368do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13370if eval "test \"\${$as_ac_Header+set}\" = set"; then
13371 echo "$as_me:$LINENO: checking for $ac_header" >&5
13372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13373if eval "test \"\${$as_ac_Header+set}\" = set"; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013375fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013378else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013379 # Is the header compilable?
13380echo "$as_me:$LINENO: checking $ac_header usability" >&5
13381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13382cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h. */
13388$ac_includes_default
13389#include <$ac_header>
13390_ACEOF
13391rm -f conftest.$ac_objext
13392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13393 (eval $ac_compile) 2>conftest.er1
13394 ac_status=$?
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
13400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest.$ac_objext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 ac_header_compiler=yes
13413else
13414 echo "$as_me: failed program was:" >&5
13415sed 's/^/| /' conftest.$ac_ext >&5
13416
13417ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013418fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13421echo "${ECHO_T}$ac_header_compiler" >&6
13422
13423# Is the header present?
13424echo "$as_me:$LINENO: checking $ac_header presence" >&5
13425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13426cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
13432#include <$ac_header>
13433_ACEOF
13434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13436 ac_status=$?
13437 grep -v '^ *+' conftest.er1 >conftest.err
13438 rm -f conftest.er1
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } >/dev/null; then
13442 if test -s conftest.err; then
13443 ac_cpp_err=$ac_c_preproc_warn_flag
13444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13445 else
13446 ac_cpp_err=
13447 fi
13448else
13449 ac_cpp_err=yes
13450fi
13451if test -z "$ac_cpp_err"; then
13452 ac_header_preproc=yes
13453else
13454 echo "$as_me: failed program was:" >&5
13455sed 's/^/| /' conftest.$ac_ext >&5
13456
13457 ac_header_preproc=no
13458fi
13459rm -f conftest.err conftest.$ac_ext
13460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13461echo "${ECHO_T}$ac_header_preproc" >&6
13462
13463# So? What about this header?
13464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13465 yes:no: )
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13470 ac_header_preproc=yes
13471 ;;
13472 no:yes:* )
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13485 (
13486 cat <<\_ASBOX
13487## ------------------------------------------ ##
13488## Report this to the AC_PACKAGE_NAME lists. ##
13489## ------------------------------------------ ##
13490_ASBOX
13491 ) |
13492 sed "s/^/$as_me: WARNING: /" >&2
13493 ;;
13494esac
13495echo "$as_me:$LINENO: checking for $ac_header" >&5
13496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13497if eval "test \"\${$as_ac_Header+set}\" = set"; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499else
13500 eval "$as_ac_Header=\$ac_header_preproc"
13501fi
13502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13504
13505fi
13506if test `eval echo '${'$as_ac_Header'}'` = yes; then
13507 cat >>confdefs.h <<_ACEOF
13508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13509_ACEOF
13510
13511fi
13512
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013513done
13514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013515echo "$as_me:$LINENO: checking for intptr_t" >&5
13516echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13517if test "${ac_cv_type_intptr_t+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013519else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013520 cat >conftest.$ac_ext <<_ACEOF
13521/* confdefs.h. */
13522_ACEOF
13523cat confdefs.h >>conftest.$ac_ext
13524cat >>conftest.$ac_ext <<_ACEOF
13525/* end confdefs.h. */
13526$ac_includes_default
13527int
13528main ()
13529{
13530if ((intptr_t *) 0)
13531 return 0;
13532if (sizeof (intptr_t))
13533 return 0;
13534 ;
13535 return 0;
13536}
13537_ACEOF
13538rm -f conftest.$ac_objext
13539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>conftest.er1
13541 ac_status=$?
13542 grep -v '^ *+' conftest.er1 >conftest.err
13543 rm -f conftest.er1
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; } &&
13553 { ac_try='test -s conftest.$ac_objext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013559 ac_cv_type_intptr_t=yes
13560else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013561 echo "$as_me: failed program was:" >&5
13562sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013564ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013565fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040013567fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013568echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13569echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13570if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013571
13572cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050013573#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013574_ACEOF
13575
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050013576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013577fi
13578
13579echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13580echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13581if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583else
13584 cat >conftest.$ac_ext <<_ACEOF
13585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
13589/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013590#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013591int
13592main ()
13593{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013594struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013595 ;
13596 return 0;
13597}
13598_ACEOF
13599rm -f conftest.$ac_objext
13600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601 (eval $ac_compile) 2>conftest.er1
13602 ac_status=$?
13603 grep -v '^ *+' conftest.er1 >conftest.err
13604 rm -f conftest.er1
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; } &&
13614 { ac_try='test -s conftest.$ac_objext'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13617 ac_status=$?
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013620 e2fsprogs_cv_struct_st_flags=yes
13621else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013622 echo "$as_me: failed program was:" >&5
13623sed 's/^/| /' conftest.$ac_ext >&5
13624
13625e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013626fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013628fi
13629
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013630echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13631echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013632if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013633 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13634echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13635 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013637else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013638 cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013644#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013645int
13646main ()
13647{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013648struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013649 ;
13650 return 0;
13651}
13652_ACEOF
13653rm -f conftest.$ac_objext
13654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>conftest.er1
13656 ac_status=$?
13657 grep -v '^ *+' conftest.er1 >conftest.err
13658 rm -f conftest.er1
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
13662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest.$ac_objext'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013674 e2fsprogs_cv_struct_st_flags_immut=yes
13675else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013676 echo "$as_me: failed program was:" >&5
13677sed 's/^/| /' conftest.$ac_ext >&5
13678
13679e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013680fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013682fi
13683
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013684 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13685echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013686 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013687 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013688#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013689_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013690
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013691 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013692fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013693echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13694echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13695if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013696 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013697else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013698 cat >conftest.$ac_ext <<_ACEOF
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013704#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013705 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013706
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013707int
13708main ()
13709{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013710static struct sockaddr ac_aggr;
13711if (ac_aggr.sa_len)
13712return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013713 ;
13714 return 0;
13715}
13716_ACEOF
13717rm -f conftest.$ac_objext
13718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13719 (eval $ac_compile) 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest.$ac_objext'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013738 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013739else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013740 echo "$as_me: failed program was:" >&5
13741sed 's/^/| /' conftest.$ac_ext >&5
13742
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013743cat >conftest.$ac_ext <<_ACEOF
13744/* confdefs.h. */
13745_ACEOF
13746cat confdefs.h >>conftest.$ac_ext
13747cat >>conftest.$ac_ext <<_ACEOF
13748/* end confdefs.h. */
13749#include <sys/types.h>
13750 #include <sys/socket.h>
13751
13752int
13753main ()
13754{
13755static struct sockaddr ac_aggr;
13756if (sizeof ac_aggr.sa_len)
13757return 0;
13758 ;
13759 return 0;
13760}
13761_ACEOF
13762rm -f conftest.$ac_objext
13763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764 (eval $ac_compile) 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 ac_cv_member_struct_sockaddr_sa_len=yes
13784else
13785 echo "$as_me: failed program was:" >&5
13786sed 's/^/| /' conftest.$ac_ext >&5
13787
13788ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013789fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013791fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13793fi
13794echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13795echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13796if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013797
13798cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013799#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013800_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013801
13802fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013822
Theodore Ts'o1c29b092003-07-12 16:01:45 -040013823for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013824do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13826echo "$as_me:$LINENO: checking for $ac_func" >&5
13827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13828if eval "test \"\${$as_ac_var+set}\" = set"; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013830else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013831 cat >conftest.$ac_ext <<_ACEOF
13832/* confdefs.h. */
13833_ACEOF
13834cat confdefs.h >>conftest.$ac_ext
13835cat >>conftest.$ac_ext <<_ACEOF
13836/* end confdefs.h. */
13837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13839#define $ac_func innocuous_$ac_func
13840
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013841/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013842 which can conflict with char $ac_func (); below.
13843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13844 <limits.h> exists even on freestanding compilers. */
13845
13846#ifdef __STDC__
13847# include <limits.h>
13848#else
13849# include <assert.h>
13850#endif
13851
13852#undef $ac_func
13853
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013854/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013855#ifdef __cplusplus
13856extern "C"
13857{
13858#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013859/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013860 builtin and then its argument prototype would still apply. */
13861char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013862/* The GNU C library defines this for functions which it implements
13863 to always fail with ENOSYS. Some functions are actually named
13864 something starting with __ and the normal name is an alias. */
13865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13866choke me
13867#else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013868char (*f) () = $ac_func;
13869#endif
13870#ifdef __cplusplus
13871}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013872#endif
13873
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013874int
13875main ()
13876{
13877return f != $ac_func;
13878 ;
13879 return 0;
13880}
13881_ACEOF
13882rm -f conftest.$ac_objext conftest$ac_exeext
13883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13884 (eval $ac_link) 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; } &&
13897 { ac_try='test -s conftest$ac_exeext'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013904else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013905 echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013908eval "$as_ac_var=no"
13909fi
13910rm -f conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13912fi
13913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13914echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13915if test `eval echo '${'$as_ac_var'}'` = yes; then
13916 cat >>confdefs.h <<_ACEOF
13917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13918_ACEOF
13919
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013920fi
13921done
13922
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013923SOCKET_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013924echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13925echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13926if test "${ac_cv_lib_socket_socket+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013928else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013929 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013930LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013931cat >conftest.$ac_ext <<_ACEOF
13932/* confdefs.h. */
13933_ACEOF
13934cat confdefs.h >>conftest.$ac_ext
13935cat >>conftest.$ac_ext <<_ACEOF
13936/* end confdefs.h. */
13937
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013938/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013939#ifdef __cplusplus
13940extern "C"
13941#endif
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013942/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013943 builtin and then its argument prototype would still apply. */
13944char socket ();
13945int
13946main ()
13947{
13948socket ();
13949 ;
13950 return 0;
13951}
13952_ACEOF
13953rm -f conftest.$ac_objext conftest$ac_exeext
13954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13955 (eval $ac_link) 2>conftest.er1
13956 ac_status=$?
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest$ac_exeext'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013976 echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013979ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013980fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013981rm -f conftest.err conftest.$ac_objext \
13982 conftest$ac_exeext conftest.$ac_ext
13983LIBS=$ac_check_lib_save_LIBS
13984fi
13985echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13986echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
13987if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013988 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013989fi
13990
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013991
Theodore Ts'obbac86b2003-03-16 06:27:22 -050013992DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013993echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13994echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13995if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050013997else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013998 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050013999LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014000cat >conftest.$ac_ext <<_ACEOF
14001/* confdefs.h. */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
14005/* end confdefs.h. */
14006
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014007/* Override any gcc2 internal prototype to avoid an error. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014008#ifdef __cplusplus
14009extern "C"
14010#endif
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014011/* We use char because int might match the return type of a gcc2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014012 builtin and then its argument prototype would still apply. */
14013char dlopen ();
14014int
14015main ()
14016{
14017dlopen ();
14018 ;
14019 return 0;
14020}
14021_ACEOF
14022rm -f conftest.$ac_objext conftest$ac_exeext
14023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024 (eval $ac_link) 2>conftest.er1
14025 ac_status=$?
14026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest$ac_exeext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014044else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014045 echo "$as_me: failed program was:" >&5
14046sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014047
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014048ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014049fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014050rm -f conftest.err conftest.$ac_objext \
14051 conftest$ac_exeext conftest.$ac_ext
14052LIBS=$ac_check_lib_save_LIBS
14053fi
14054echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14055echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14056if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014057 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014058cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014059#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014060_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014061
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014062fi
14063
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014064
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014065echo "$as_me:$LINENO: checking for optreset" >&5
14066echo $ECHO_N "checking for optreset... $ECHO_C" >&6
14067if test "${ac_cv_have_optreset+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014069else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014070 cat >conftest.$ac_ext <<_ACEOF
14071/* confdefs.h. */
14072_ACEOF
14073cat confdefs.h >>conftest.$ac_ext
14074cat >>conftest.$ac_ext <<_ACEOF
14075/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014076#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014077
14078_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014081 ac_cv_have_optreset=yes
14082else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014083 ac_cv_have_optreset=no
14084fi
14085rm -f conftest*
14086
14087fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014088echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14089echo "${ECHO_T}$ac_cv_have_optreset" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014090if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014091 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014092#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014093_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014094
14095fi
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014096case "$host_os" in
14097linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014098 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014099#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014100_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014101
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014102 ;;
14103esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014104LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014105CYGWIN_CMT="#"
14106UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014107case "$host_os" in
14108linux*)
14109 LINUX_CMT=
14110 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040014111cygwin)
14112 CYGWIN_CMT=
14113 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014114 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014115esac
14116
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014117
14118
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014119case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014120linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014121 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14122 root_prefix="";
14123 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014124 fi
14125 ;;
14126esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014127case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014128linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014129 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014130 prefix="/usr";
14131 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040014132 if test "$mandir" = '${prefix}/man' ; then
14133 echo "...and mandir defaults to /usr/share/man"
14134 mandir=/usr/share/man
14135 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014136 fi
14137;;
14138esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014139if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000014140 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014141 root_prefix="$ac_default_prefix"
14142 else
14143 root_prefix="$prefix"
14144 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040014145 root_bindir=$bindir
14146 root_sbindir=$sbindir
14147 root_libdir=$libdir
14148 root_sysconfdir=$sysconfdir
14149else
14150 root_bindir='${root_prefix}/bin'
14151 root_sbindir='${root_prefix}/sbin'
14152 root_libdir='${root_prefix}/lib'
14153 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014154fi
14155
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014156
14157
14158
14159
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014160echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14161echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
14162if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000014164else
14165 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014166cat >conftest.$ac_ext <<_ACEOF
14167/* confdefs.h. */
14168_ACEOF
14169cat confdefs.h >>conftest.$ac_ext
14170cat >>conftest.$ac_ext <<_ACEOF
14171/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000014172#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014173int
14174main ()
14175{
Theodore Ts'oae851481997-04-29 18:13:24 +000014176fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014177 ;
14178 return 0;
14179}
14180_ACEOF
14181rm -f conftest.$ac_objext conftest$ac_exeext
14182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>conftest.er1
14184 ac_status=$?
14185 grep -v '^ *+' conftest.er1 >conftest.err
14186 rm -f conftest.er1
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
14190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; } &&
14196 { ac_try='test -s conftest$ac_exeext'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
Theodore Ts'oae851481997-04-29 18:13:24 +000014202 ac_cv_e2fsprogs_use_static=yes
14203else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014204 echo "$as_me: failed program was:" >&5
14205sed 's/^/| /' conftest.$ac_ext >&5
14206
14207ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000014208fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014209rm -f conftest.err conftest.$ac_objext \
14210 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000014211LDFLAGS=$SAVE_LDFLAGS
14212fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014213
Theodore Ts'odefde781999-01-04 07:39:19 +000014214case "$host_os" in
14215solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014216 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000014217;;
14218esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014219echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14220echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
Theodore Ts'o74becf31997-04-26 14:37:06 +000014221LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000014222if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014223 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000014224fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014225
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014226case "$host_os" in
14227darwin*)
14228 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014229 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014230#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014231_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014232
14233 ;;
14234esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014235SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14236ET_DIR=`cd ${srcdir}/lib/et; pwd`
14237
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014238
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014239if test "$cross_compiling" = yes ; then
14240 DO_TEST_SUITE=
14241else
14242 DO_TEST_SUITE=check
14243fi
14244
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040014245INTL_FLAGS=
14246if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14247 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14248fi
14249
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014250test -d lib || mkdir lib
14251test -d include || mkdir include
14252test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000014253test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050014254for i in MCONFIG Makefile e2fsprogs.spec \
14255 util/Makefile util/subst.conf util/gen-tarball \
14256 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014257 lib/uuid/Makefile lib/uuid/uuid_types.h \
14258 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050014259 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14260 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050014261 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014262 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14263 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14264 if test -d `dirname ${srcdir}/$i` ; then
14265 outlist="$outlist $i"
14266 fi
14267done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014268 ac_config_files="$ac_config_files $outlist"
14269cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014270# This file is a shell script that caches the results of configure
14271# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014272# scripts and configure runs, see configure's option --config-cache.
14273# It is not useful on other systems. If it contains results you don't
14274# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014275#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014276# config.status only pays attention to the cache file if you give it
14277# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014278#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014279# `ac_cv_env_foo' variables (set or unset) will be overridden when
14280# loading this file, other *unset* `ac_cv_foo' will be assigned the
14281# following values.
14282
14283_ACEOF
14284
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014285# The following way of writing the cache mishandles newlines in values,
14286# but we know of no workaround that is simple, portable, and efficient.
14287# So, don't put newlines in cache variables' values.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014288# Ultrix sh set writes to stderr and can't be redirected directly,
14289# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014290{
14291 (set) 2>&1 |
14292 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14293 *ac_space=\ *)
14294 # `set' does not quote correctly, so add quotes (double-quote
14295 # substitution turns \\\\ into \\, and sed turns \\ into \).
14296 sed -n \
14297 "s/'/'\\\\''/g;
14298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14299 ;;
14300 *)
14301 # `set' quotes correctly as required by POSIX, so do not add quotes.
14302 sed -n \
14303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14304 ;;
14305 esac;
14306} |
14307 sed '
14308 t clear
14309 : clear
14310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14311 t end
14312 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14313 : end' >>confcache
14314if diff $cache_file confcache >/dev/null 2>&1; then :; else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014315 if test -w $cache_file; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014316 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14317 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014318 else
14319 echo "not updating unwritable cache $cache_file"
14320 fi
14321fi
14322rm -f confcache
14323
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014324test "x$prefix" = xNONE && prefix=$ac_default_prefix
14325# Let make expand exec_prefix.
14326test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014328# VPATH may cause trouble with some makes, so we remove $(srcdir),
14329# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14330# trailing colons and then remove the whole line if VPATH becomes empty
14331# (actually we leave an empty line to preserve line numbers).
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014332if test "x$srcdir" = x.; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014333 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14334s/:*\$(srcdir):*/:/;
14335s/:*\${srcdir}:*/:/;
14336s/:*@srcdir@:*/:/;
14337s/^\([^=]*=[ ]*\):*/\1/;
14338s/:*$//;
14339s/^[^=]*=[ ]*$//;
14340}'
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014341fi
14342
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014343# Transform confdefs.h into DEFS.
14344# Protect against shell expansion while executing Makefile rules.
14345# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014346#
14347# If the first sed substitution is executed (which looks for macros that
14348# take arguments), then we branch to the quote section. Otherwise,
14349# look for a macro that doesn't take arguments.
14350cat >confdef2opt.sed <<\_ACEOF
14351t clear
14352: clear
14353s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14354t quote
14355s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14356t quote
14357d
14358: quote
14359s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14360s,\[,\\&,g
14361s,\],\\&,g
14362s,\$,$$,g
14363p
14364_ACEOF
14365# We use echo to avoid assuming a particular line-breaking character.
14366# The extra dot is to prevent the shell from consuming trailing
14367# line-breaks from the sub-command output. A line-break within
14368# single-quotes doesn't work because, if this script is created in a
14369# platform that uses two characters for line-breaks (e.g., DOS), tr
14370# would break.
14371ac_LF_and_DOT=`echo; echo .`
14372DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14373rm -f confdef2opt.sed
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014374
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014375
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014376ac_libobjs=
14377ac_ltlibobjs=
14378for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14379 # 1. Remove the extension, and $U if already installed.
14380 ac_i=`echo "$ac_i" |
14381 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14382 # 2. Add them.
14383 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14384 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14385done
14386LIBOBJS=$ac_libobjs
14387
14388LTLIBOBJS=$ac_ltlibobjs
14389
14390
14391
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014392: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014393ac_clean_files_save=$ac_clean_files
14394ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14395{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14396echo "$as_me: creating $CONFIG_STATUS" >&6;}
14397cat >$CONFIG_STATUS <<_ACEOF
14398#! $SHELL
14399# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014400# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014401# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014402# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404debug=false
14405ac_cs_recheck=false
14406ac_cs_silent=false
14407SHELL=\${CONFIG_SHELL-$SHELL}
14408_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014409
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410cat >>$CONFIG_STATUS <<\_ACEOF
14411## --------------------- ##
14412## M4sh Initialization. ##
14413## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014414
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014415# Be Bourne compatible
14416if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14417 emulate sh
14418 NULLCMD=:
14419 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14420 # is contrary to our usage. Disable this feature.
14421 alias -g '${1+"$@"}'='"$@"'
14422elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14423 set -o posix
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014424fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014425DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014426
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014427# Support unset when possible.
14428if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14429 as_unset=unset
14430else
14431 as_unset=false
14432fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014433
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014434
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014435# Work around bugs in pre-3.0 UWIN ksh.
14436$as_unset ENV MAIL MAILPATH
14437PS1='$ '
14438PS2='> '
14439PS4='+ '
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014440
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014441# NLS nuisances.
14442for as_var in \
14443 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14444 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14445 LC_TELEPHONE LC_TIME
14446do
14447 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14448 eval $as_var=C; export $as_var
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014449 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014450 $as_unset $as_var
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014451 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014452done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014453
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014454# Required to use basename.
14455if expr a : '\(a\)' >/dev/null 2>&1; then
14456 as_expr=expr
14457else
14458 as_expr=false
14459fi
14460
14461if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14462 as_basename=basename
14463else
14464 as_basename=false
14465fi
14466
14467
14468# Name of the executable.
14469as_me=`$as_basename "$0" ||
14470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14471 X"$0" : 'X\(//\)$' \| \
14472 X"$0" : 'X\(/\)$' \| \
14473 . : '\(.\)' 2>/dev/null ||
14474echo X/"$0" |
14475 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14476 /^X\/\(\/\/\)$/{ s//\1/; q; }
14477 /^X\/\(\/\).*/{ s//\1/; q; }
14478 s/.*/./; q'`
14479
14480
14481# PATH needs CR, and LINENO needs CR and PATH.
14482# Avoid depending upon Character Ranges.
14483as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14484as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14485as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14486as_cr_digits='0123456789'
14487as_cr_alnum=$as_cr_Letters$as_cr_digits
14488
14489# The user is always right.
14490if test "${PATH_SEPARATOR+set}" != set; then
14491 echo "#! /bin/sh" >conf$$.sh
14492 echo "exit 0" >>conf$$.sh
14493 chmod +x conf$$.sh
14494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14495 PATH_SEPARATOR=';'
14496 else
14497 PATH_SEPARATOR=:
14498 fi
14499 rm -f conf$$.sh
14500fi
14501
14502
14503 as_lineno_1=$LINENO
14504 as_lineno_2=$LINENO
14505 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14506 test "x$as_lineno_1" != "x$as_lineno_2" &&
14507 test "x$as_lineno_3" = "x$as_lineno_2" || {
14508 # Find who we are. Look in the path if we contain no path at all
14509 # relative or not.
14510 case $0 in
14511 *[\\/]* ) as_myself=$0 ;;
14512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14513for as_dir in $PATH
14514do
14515 IFS=$as_save_IFS
14516 test -z "$as_dir" && as_dir=.
14517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14518done
14519
14520 ;;
14521 esac
14522 # We did not find ourselves, most probably we were run as `sh COMMAND'
14523 # in which case we are not to be found in the path.
14524 if test "x$as_myself" = x; then
14525 as_myself=$0
14526 fi
14527 if test ! -f "$as_myself"; then
14528 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14529echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14530 { (exit 1); exit 1; }; }
14531 fi
14532 case $CONFIG_SHELL in
14533 '')
14534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14535for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14536do
14537 IFS=$as_save_IFS
14538 test -z "$as_dir" && as_dir=.
14539 for as_base in sh bash ksh sh5; do
14540 case $as_dir in
14541 /*)
14542 if ("$as_dir/$as_base" -c '
14543 as_lineno_1=$LINENO
14544 as_lineno_2=$LINENO
14545 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14546 test "x$as_lineno_1" != "x$as_lineno_2" &&
14547 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14548 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14549 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14550 CONFIG_SHELL=$as_dir/$as_base
14551 export CONFIG_SHELL
14552 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14553 fi;;
14554 esac
14555 done
14556done
14557;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014558 esac
14559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014560 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14561 # uniformly replaced by the line number. The first 'sed' inserts a
14562 # line-number line before each line; the second 'sed' does the real
14563 # work. The second script uses 'N' to pair each line-number line
14564 # with the numbered line, and appends trailing '-' during
14565 # substitution so that $LINENO is not a special case at line end.
14566 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14567 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14568 sed '=' <$as_myself |
14569 sed '
14570 N
14571 s,$,-,
14572 : loop
14573 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14574 t loop
14575 s,-$,,
14576 s,^['$as_cr_digits']*\n,,
14577 ' >$as_me.lineno &&
14578 chmod +x $as_me.lineno ||
14579 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14580echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14581 { (exit 1); exit 1; }; }
14582
14583 # Don't try to exec as it changes $[0], causing all sort of problems
14584 # (the dirname of $[0] is not the place where we might find the
14585 # original and so on. Autoconf is especially sensible to this).
14586 . ./$as_me.lineno
14587 # Exit status is that of the last command.
14588 exit
14589}
14590
14591
14592case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14593 *c*,-n*) ECHO_N= ECHO_C='
14594' ECHO_T=' ' ;;
14595 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14596 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14597esac
14598
14599if expr a : '\(a\)' >/dev/null 2>&1; then
14600 as_expr=expr
14601else
14602 as_expr=false
14603fi
14604
14605rm -f conf$$ conf$$.exe conf$$.file
14606echo >conf$$.file
14607if ln -s conf$$.file conf$$ 2>/dev/null; then
14608 # We could just check for DJGPP; but this test a) works b) is more generic
14609 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14610 if test -f conf$$.exe; then
14611 # Don't use ln at all; we don't have any links
14612 as_ln_s='cp -p'
14613 else
14614 as_ln_s='ln -s'
14615 fi
14616elif ln conf$$.file conf$$ 2>/dev/null; then
14617 as_ln_s=ln
14618else
14619 as_ln_s='cp -p'
14620fi
14621rm -f conf$$ conf$$.exe conf$$.file
14622
14623if mkdir -p . 2>/dev/null; then
14624 as_mkdir_p=:
14625else
14626 test -d ./-p && rmdir ./-p
14627 as_mkdir_p=false
14628fi
14629
14630as_executable_p="test -f"
14631
14632# Sed expression to map a string onto a valid CPP name.
14633as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14634
14635# Sed expression to map a string onto a valid variable name.
14636as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14637
14638
14639# IFS
14640# We need space, tab and new line, in precisely that order.
14641as_nl='
14642'
14643IFS=" $as_nl"
14644
14645# CDPATH.
14646$as_unset CDPATH
14647
14648exec 6>&1
14649
14650# Open the log real soon, to keep \$[0] and so on meaningful, and to
14651# report actual input values of CONFIG_FILES etc. instead of their
14652# values after options handling. Logging --version etc. is OK.
14653exec 5>>config.log
14654{
14655 echo
14656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14657## Running $as_me. ##
14658_ASBOX
14659} >&5
14660cat >&5 <<_CSEOF
14661
14662This file was extended by $as_me, which was
14663generated by GNU Autoconf 2.59. Invocation command line was
14664
14665 CONFIG_FILES = $CONFIG_FILES
14666 CONFIG_HEADERS = $CONFIG_HEADERS
14667 CONFIG_LINKS = $CONFIG_LINKS
14668 CONFIG_COMMANDS = $CONFIG_COMMANDS
14669 $ $0 $@
14670
14671_CSEOF
14672echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14673echo >&5
14674_ACEOF
14675
14676# Files that config.status was made for.
14677if test -n "$ac_config_files"; then
14678 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14679fi
14680
14681if test -n "$ac_config_headers"; then
14682 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14683fi
14684
14685if test -n "$ac_config_links"; then
14686 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14687fi
14688
14689if test -n "$ac_config_commands"; then
14690 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14691fi
14692
14693cat >>$CONFIG_STATUS <<\_ACEOF
14694
14695ac_cs_usage="\
14696\`$as_me' instantiates files from templates according to the
14697current configuration.
14698
14699Usage: $0 [OPTIONS] [FILE]...
14700
14701 -h, --help print this help, then exit
14702 -V, --version print version number, then exit
14703 -q, --quiet do not print progress messages
14704 -d, --debug don't remove temporary files
14705 --recheck update $as_me by reconfiguring in the same conditions
14706 --file=FILE[:TEMPLATE]
14707 instantiate the configuration file FILE
14708
14709Configuration files:
14710$config_files
14711
14712Configuration commands:
14713$config_commands
14714
14715Report bugs to <bug-autoconf@gnu.org>."
14716_ACEOF
14717
14718cat >>$CONFIG_STATUS <<_ACEOF
14719ac_cs_version="\\
14720config.status
14721configured by $0, generated by GNU Autoconf 2.59,
14722 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14723
14724Copyright (C) 2003 Free Software Foundation, Inc.
14725This config.status script is free software; the Free Software Foundation
14726gives unlimited permission to copy, distribute and modify it."
14727srcdir=$srcdir
14728INSTALL="$INSTALL"
14729_ACEOF
14730
14731cat >>$CONFIG_STATUS <<\_ACEOF
14732# If no file are specified by the user, then we need to provide default
14733# value. By we need to know if files were specified by the user.
14734ac_need_defaults=:
14735while test $# != 0
14736do
14737 case $1 in
14738 --*=*)
14739 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14740 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14741 ac_shift=:
14742 ;;
14743 -*)
14744 ac_option=$1
14745 ac_optarg=$2
14746 ac_shift=shift
14747 ;;
14748 *) # This is not an option, so the user has probably given explicit
14749 # arguments.
14750 ac_option=$1
14751 ac_need_defaults=false;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014752 esac
14753
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014754 case $ac_option in
14755 # Handling of the options.
14756_ACEOF
14757cat >>$CONFIG_STATUS <<\_ACEOF
14758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14759 ac_cs_recheck=: ;;
14760 --version | --vers* | -V )
14761 echo "$ac_cs_version"; exit 0 ;;
14762 --he | --h)
14763 # Conflict between --help and --header
14764 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14765Try \`$0 --help' for more information." >&5
14766echo "$as_me: error: ambiguous option: $1
14767Try \`$0 --help' for more information." >&2;}
14768 { (exit 1); exit 1; }; };;
14769 --help | --hel | -h )
14770 echo "$ac_cs_usage"; exit 0 ;;
14771 --debug | --d* | -d )
14772 debug=: ;;
14773 --file | --fil | --fi | --f )
14774 $ac_shift
14775 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14776 ac_need_defaults=false;;
14777 --header | --heade | --head | --hea )
14778 $ac_shift
14779 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14780 ac_need_defaults=false;;
14781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14782 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14783 ac_cs_silent=: ;;
14784
14785 # This is an error.
14786 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14787Try \`$0 --help' for more information." >&5
14788echo "$as_me: error: unrecognized option: $1
14789Try \`$0 --help' for more information." >&2;}
14790 { (exit 1); exit 1; }; } ;;
14791
14792 *) ac_config_targets="$ac_config_targets $1" ;;
14793
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014794 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014795 shift
14796done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014797
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014798ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014799
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014800if $ac_cs_silent; then
14801 exec 6>/dev/null
14802 ac_configure_extra_args="$ac_configure_extra_args --silent"
14803fi
14804
14805_ACEOF
14806cat >>$CONFIG_STATUS <<_ACEOF
14807if \$ac_cs_recheck; then
14808 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14809 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14810fi
14811
14812_ACEOF
14813
14814cat >>$CONFIG_STATUS <<_ACEOF
14815#
14816# INIT-COMMANDS section.
14817#
14818
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014819# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014820 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014821 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014822 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014823 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14824 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014825
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014826
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014827_ACEOF
14828
14829
14830
14831cat >>$CONFIG_STATUS <<\_ACEOF
14832for ac_config_target in $ac_config_targets
14833do
14834 case "$ac_config_target" in
14835 # Handling of arguments.
14836 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14837 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14838 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14839echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14840 { (exit 1); exit 1; }; };;
14841 esac
14842done
14843
14844# If the user did not use the arguments to specify the items to instantiate,
14845# then the envvar interface is used. Set only those that are not.
14846# We use the long form for the default assignment because of an extremely
14847# bizarre bug on SunOS 4.1.3.
14848if $ac_need_defaults; then
14849 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14850 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14851fi
14852
14853# Have a temporary directory for convenience. Make it in the build tree
14854# simply because there is no reason to put it here, and in addition,
14855# creating and moving files from /tmp can sometimes cause problems.
14856# Create a temporary directory, and hook for its removal unless debugging.
14857$debug ||
14858{
14859 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14860 trap '{ (exit 1); exit 1; }' 1 2 13 15
14861}
14862
14863# Create a (secure) tmp directory for tmp files.
14864
14865{
14866 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14867 test -n "$tmp" && test -d "$tmp"
14868} ||
14869{
14870 tmp=./confstat$$-$RANDOM
14871 (umask 077 && mkdir $tmp)
14872} ||
14873{
14874 echo "$me: cannot create a temporary directory in ." >&2
14875 { (exit 1); exit 1; }
14876}
14877
14878_ACEOF
14879
14880cat >>$CONFIG_STATUS <<_ACEOF
14881
14882#
14883# CONFIG_FILES section.
14884#
14885
14886# No need to generate the scripts if there are no CONFIG_FILES.
14887# This happens for instance when ./config.status config.h
14888if test -n "\$CONFIG_FILES"; then
14889 # Protect against being on the right side of a sed subst in config.status.
14890 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14891 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14892s,@SHELL@,$SHELL,;t t
14893s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14894s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14895s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14896s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14897s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14898s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14899s,@exec_prefix@,$exec_prefix,;t t
14900s,@prefix@,$prefix,;t t
14901s,@program_transform_name@,$program_transform_name,;t t
14902s,@bindir@,$bindir,;t t
14903s,@sbindir@,$sbindir,;t t
14904s,@libexecdir@,$libexecdir,;t t
14905s,@datadir@,$datadir,;t t
14906s,@sysconfdir@,$sysconfdir,;t t
14907s,@sharedstatedir@,$sharedstatedir,;t t
14908s,@localstatedir@,$localstatedir,;t t
14909s,@libdir@,$libdir,;t t
14910s,@includedir@,$includedir,;t t
14911s,@oldincludedir@,$oldincludedir,;t t
14912s,@infodir@,$infodir,;t t
14913s,@mandir@,$mandir,;t t
14914s,@build_alias@,$build_alias,;t t
14915s,@host_alias@,$host_alias,;t t
14916s,@target_alias@,$target_alias,;t t
14917s,@DEFS@,$DEFS,;t t
14918s,@ECHO_C@,$ECHO_C,;t t
14919s,@ECHO_N@,$ECHO_N,;t t
14920s,@ECHO_T@,$ECHO_T,;t t
14921s,@LIBS@,$LIBS,;t t
14922s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14923s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14924s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14925s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14926s,@build@,$build,;t t
14927s,@build_cpu@,$build_cpu,;t t
14928s,@build_vendor@,$build_vendor,;t t
14929s,@build_os@,$build_os,;t t
14930s,@host@,$host,;t t
14931s,@host_cpu@,$host_cpu,;t t
14932s,@host_vendor@,$host_vendor,;t t
14933s,@host_os@,$host_os,;t t
14934s,@CC@,$CC,;t t
14935s,@CFLAGS@,$CFLAGS,;t t
14936s,@LDFLAGS@,$LDFLAGS,;t t
14937s,@CPPFLAGS@,$CPPFLAGS,;t t
14938s,@ac_ct_CC@,$ac_ct_CC,;t t
14939s,@EXEEXT@,$EXEEXT,;t t
14940s,@OBJEXT@,$OBJEXT,;t t
14941s,@LD@,$LD,;t t
14942s,@CPP@,$CPP,;t t
14943s,@EGREP@,$EGREP,;t t
14944s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
14945s,@HTREE_CMT@,$HTREE_CMT,;t t
14946s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t
14947s,@ELF_CMT@,$ELF_CMT,;t t
14948s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14949s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14950s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14951s,@LIB_EXT@,$LIB_EXT,;t t
14952s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14953s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14954s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
14955s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
14956s,@IMAGER_CMT@,$IMAGER_CMT,;t t
14957s,@RESIZER_CMT@,$RESIZER_CMT,;t t
14958s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
14959s,@FSCK_PROG@,$FSCK_PROG,;t t
14960s,@FSCK_MAN@,$FSCK_MAN,;t t
14961s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
14962s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
14963s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
14964s,@PACKAGE@,$PACKAGE,;t t
14965s,@VERSION@,$VERSION,;t t
14966s,@SET_MAKE@,$SET_MAKE,;t t
14967s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14968s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14969s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14970s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14971s,@USE_NLS@,$USE_NLS,;t t
14972s,@MSGFMT@,$MSGFMT,;t t
14973s,@GMSGFMT@,$GMSGFMT,;t t
14974s,@XGETTEXT@,$XGETTEXT,;t t
14975s,@MSGMERGE@,$MSGMERGE,;t t
14976s,@RANLIB@,$RANLIB,;t t
14977s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14978s,@ALLOCA@,$ALLOCA,;t t
14979s,@GLIBC21@,$GLIBC21,;t t
14980s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
14981s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
14982s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
14983s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
14984s,@LIBICONV@,$LIBICONV,;t t
14985s,@LTLIBICONV@,$LTLIBICONV,;t t
14986s,@INTLBISON@,$INTLBISON,;t t
14987s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14988s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14989s,@CATOBJEXT@,$CATOBJEXT,;t t
14990s,@DATADIRNAME@,$DATADIRNAME,;t t
14991s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14992s,@GENCAT@,$GENCAT,;t t
14993s,@INTLOBJS@,$INTLOBJS,;t t
14994s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14995s,@INTLLIBS@,$INTLLIBS,;t t
14996s,@LIBINTL@,$LIBINTL,;t t
14997s,@LTLIBINTL@,$LTLIBINTL,;t t
14998s,@POSUB@,$POSUB,;t t
14999s,@BINARY_TYPE@,$BINARY_TYPE,;t t
15000s,@LN@,$LN,;t t
15001s,@LN_S@,$LN_S,;t t
15002s,@MV@,$MV,;t t
15003s,@CP@,$CP,;t t
15004s,@RM@,$RM,;t t
15005s,@CHMOD@,$CHMOD,;t t
15006s,@AWK@,$AWK,;t t
15007s,@SED@,$SED,;t t
15008s,@PERL@,$PERL,;t t
15009s,@LDCONFIG@,$LDCONFIG,;t t
15010s,@AR@,$AR,;t t
15011s,@ac_ct_AR@,$ac_ct_AR,;t t
15012s,@STRIP@,$STRIP,;t t
15013s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15014s,@BUILD_CC@,$BUILD_CC,;t t
15015s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
15016s,@SIZEOF_INT@,$SIZEOF_INT,;t t
15017s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
15018s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
15019s,@SOCKET_LIB@,$SOCKET_LIB,;t t
15020s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
15021s,@LINUX_CMT@,$LINUX_CMT,;t t
15022s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
15023s,@UNIX_CMT@,$UNIX_CMT,;t t
15024s,@root_prefix@,$root_prefix,;t t
15025s,@root_bindir@,$root_bindir,;t t
15026s,@root_sbindir@,$root_sbindir,;t t
15027s,@root_libdir@,$root_libdir,;t t
15028s,@root_sysconfdir@,$root_sysconfdir,;t t
15029s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
15030s,@SS_DIR@,$SS_DIR,;t t
15031s,@ET_DIR@,$ET_DIR,;t t
15032s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
15033s,@INTL_FLAGS@,$INTL_FLAGS,;t t
15034s,@LIBOBJS@,$LIBOBJS,;t t
15035s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15036/@MCONFIG@/r $MCONFIG
15037s,@MCONFIG@,,;t t
15038/@MAKEFILE_ELF@/r $MAKEFILE_ELF
15039s,@MAKEFILE_ELF@,,;t t
15040/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
15041s,@MAKEFILE_BSDLIB@,,;t t
15042/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
15043s,@MAKEFILE_PROFILE@,,;t t
15044/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
15045s,@MAKEFILE_CHECKER@,,;t t
15046/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
15047s,@MAKEFILE_LIBRARY@,,;t t
15048CEOF
15049
15050_ACEOF
15051
15052 cat >>$CONFIG_STATUS <<\_ACEOF
15053 # Split the substitutions into bite-sized pieces for seds with
15054 # small command number limits, like on Digital OSF/1 and HP-UX.
15055 ac_max_sed_lines=48
15056 ac_sed_frag=1 # Number of current file.
15057 ac_beg=1 # First line for current file.
15058 ac_end=$ac_max_sed_lines # Line after last line for current file.
15059 ac_more_lines=:
15060 ac_sed_cmds=
15061 while $ac_more_lines; do
15062 if test $ac_beg -gt 1; then
15063 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15064 else
15065 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15066 fi
15067 if test ! -s $tmp/subs.frag; then
15068 ac_more_lines=false
15069 else
15070 # The purpose of the label and of the branching condition is to
15071 # speed up the sed processing (if there are no `@' at all, there
15072 # is no need to browse any of the substitutions).
15073 # These are the two extra sed commands mentioned above.
15074 (echo ':t
15075 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15076 if test -z "$ac_sed_cmds"; then
15077 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15078 else
15079 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15080 fi
15081 ac_sed_frag=`expr $ac_sed_frag + 1`
15082 ac_beg=$ac_end
15083 ac_end=`expr $ac_end + $ac_max_sed_lines`
15084 fi
15085 done
15086 if test -z "$ac_sed_cmds"; then
15087 ac_sed_cmds=cat
15088 fi
15089fi # test -n "$CONFIG_FILES"
15090
15091_ACEOF
15092cat >>$CONFIG_STATUS <<\_ACEOF
15093for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15094 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15095 case $ac_file in
15096 - | *:- | *:-:* ) # input from stdin
15097 cat >$tmp/stdin
15098 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15099 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15100 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15101 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15102 * ) ac_file_in=$ac_file.in ;;
15103 esac
15104
15105 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15106 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15107$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15108 X"$ac_file" : 'X\(//\)[^/]' \| \
15109 X"$ac_file" : 'X\(//\)$' \| \
15110 X"$ac_file" : 'X\(/\)' \| \
15111 . : '\(.\)' 2>/dev/null ||
15112echo X"$ac_file" |
15113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15115 /^X\(\/\/\)$/{ s//\1/; q; }
15116 /^X\(\/\).*/{ s//\1/; q; }
15117 s/.*/./; q'`
15118 { if $as_mkdir_p; then
15119 mkdir -p "$ac_dir"
15120 else
15121 as_dir="$ac_dir"
15122 as_dirs=
15123 while test ! -d "$as_dir"; do
15124 as_dirs="$as_dir $as_dirs"
15125 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15126$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15127 X"$as_dir" : 'X\(//\)[^/]' \| \
15128 X"$as_dir" : 'X\(//\)$' \| \
15129 X"$as_dir" : 'X\(/\)' \| \
15130 . : '\(.\)' 2>/dev/null ||
15131echo X"$as_dir" |
15132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15134 /^X\(\/\/\)$/{ s//\1/; q; }
15135 /^X\(\/\).*/{ s//\1/; q; }
15136 s/.*/./; q'`
15137 done
15138 test ! -n "$as_dirs" || mkdir $as_dirs
15139 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15140echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15141 { (exit 1); exit 1; }; }; }
15142
15143 ac_builddir=.
15144
15145if test "$ac_dir" != .; then
15146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15147 # A "../" for each directory in $ac_dir_suffix.
15148 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15149else
15150 ac_dir_suffix= ac_top_builddir=
15151fi
15152
15153case $srcdir in
15154 .) # No --srcdir option. We are building in place.
15155 ac_srcdir=.
15156 if test -z "$ac_top_builddir"; then
15157 ac_top_srcdir=.
15158 else
15159 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15160 fi ;;
15161 [\\/]* | ?:[\\/]* ) # Absolute path.
15162 ac_srcdir=$srcdir$ac_dir_suffix;
15163 ac_top_srcdir=$srcdir ;;
15164 *) # Relative path.
15165 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15166 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15167esac
15168
15169# Do not use `cd foo && pwd` to compute absolute paths, because
15170# the directories may not exist.
15171case `pwd` in
15172.) ac_abs_builddir="$ac_dir";;
15173*)
15174 case "$ac_dir" in
15175 .) ac_abs_builddir=`pwd`;;
15176 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15177 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15178 esac;;
15179esac
15180case $ac_abs_builddir in
15181.) ac_abs_top_builddir=${ac_top_builddir}.;;
15182*)
15183 case ${ac_top_builddir}. in
15184 .) ac_abs_top_builddir=$ac_abs_builddir;;
15185 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15186 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15187 esac;;
15188esac
15189case $ac_abs_builddir in
15190.) ac_abs_srcdir=$ac_srcdir;;
15191*)
15192 case $ac_srcdir in
15193 .) ac_abs_srcdir=$ac_abs_builddir;;
15194 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15195 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15196 esac;;
15197esac
15198case $ac_abs_builddir in
15199.) ac_abs_top_srcdir=$ac_top_srcdir;;
15200*)
15201 case $ac_top_srcdir in
15202 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15203 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15204 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15205 esac;;
15206esac
15207
15208
15209 case $INSTALL in
15210 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15211 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15212 esac
15213
15214 # Let's still pretend it is `configure' which instantiates (i.e., don't
15215 # use $as_me), people would be surprised to read:
15216 # /* config.h. Generated by config.status. */
15217 if test x"$ac_file" = x-; then
15218 configure_input=
15219 else
15220 configure_input="$ac_file. "
15221 fi
15222 configure_input=$configure_input"Generated from `echo $ac_file_in |
15223 sed 's,.*/,,'` by configure."
15224
15225 # First look for the input files in the build tree, otherwise in the
15226 # src tree.
15227 ac_file_inputs=`IFS=:
15228 for f in $ac_file_in; do
15229 case $f in
15230 -) echo $tmp/stdin ;;
15231 [\\/$]*)
15232 # Absolute (can't be DOS-style, as IFS=:)
15233 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15234echo "$as_me: error: cannot find input file: $f" >&2;}
15235 { (exit 1); exit 1; }; }
15236 echo "$f";;
15237 *) # Relative
15238 if test -f "$f"; then
15239 # Build tree
15240 echo "$f"
15241 elif test -f "$srcdir/$f"; then
15242 # Source tree
15243 echo "$srcdir/$f"
15244 else
15245 # /dev/null tree
15246 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15247echo "$as_me: error: cannot find input file: $f" >&2;}
15248 { (exit 1); exit 1; }; }
15249 fi;;
15250 esac
15251 done` || { (exit 1); exit 1; }
15252
15253 if test x"$ac_file" != x-; then
15254 { echo "$as_me:$LINENO: creating $ac_file" >&5
15255echo "$as_me: creating $ac_file" >&6;}
15256 rm -f "$ac_file"
15257 fi
15258_ACEOF
15259cat >>$CONFIG_STATUS <<_ACEOF
15260 sed "$ac_vpsub
15261$extrasub
15262_ACEOF
15263cat >>$CONFIG_STATUS <<\_ACEOF
15264:t
15265/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15266s,@configure_input@,$configure_input,;t t
15267s,@srcdir@,$ac_srcdir,;t t
15268s,@abs_srcdir@,$ac_abs_srcdir,;t t
15269s,@top_srcdir@,$ac_top_srcdir,;t t
15270s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15271s,@builddir@,$ac_builddir,;t t
15272s,@abs_builddir@,$ac_abs_builddir,;t t
15273s,@top_builddir@,$ac_top_builddir,;t t
15274s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15275s,@INSTALL@,$ac_INSTALL,;t t
15276" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15277 rm -f $tmp/stdin
15278 if test x"$ac_file" != x-; then
15279 mv $tmp/out $ac_file
15280 else
15281 cat $tmp/out
15282 rm -f $tmp/out
15283 fi
15284
15285done
15286_ACEOF
15287cat >>$CONFIG_STATUS <<\_ACEOF
15288
15289#
15290# CONFIG_COMMANDS section.
15291#
15292for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15293 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15294 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15295 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15296$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15297 X"$ac_dest" : 'X\(//\)[^/]' \| \
15298 X"$ac_dest" : 'X\(//\)$' \| \
15299 X"$ac_dest" : 'X\(/\)' \| \
15300 . : '\(.\)' 2>/dev/null ||
15301echo X"$ac_dest" |
15302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15304 /^X\(\/\/\)$/{ s//\1/; q; }
15305 /^X\(\/\).*/{ s//\1/; q; }
15306 s/.*/./; q'`
15307 { if $as_mkdir_p; then
15308 mkdir -p "$ac_dir"
15309 else
15310 as_dir="$ac_dir"
15311 as_dirs=
15312 while test ! -d "$as_dir"; do
15313 as_dirs="$as_dir $as_dirs"
15314 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15315$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15316 X"$as_dir" : 'X\(//\)[^/]' \| \
15317 X"$as_dir" : 'X\(//\)$' \| \
15318 X"$as_dir" : 'X\(/\)' \| \
15319 . : '\(.\)' 2>/dev/null ||
15320echo X"$as_dir" |
15321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15323 /^X\(\/\/\)$/{ s//\1/; q; }
15324 /^X\(\/\).*/{ s//\1/; q; }
15325 s/.*/./; q'`
15326 done
15327 test ! -n "$as_dirs" || mkdir $as_dirs
15328 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15329echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15330 { (exit 1); exit 1; }; }; }
15331
15332 ac_builddir=.
15333
15334if test "$ac_dir" != .; then
15335 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15336 # A "../" for each directory in $ac_dir_suffix.
15337 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15338else
15339 ac_dir_suffix= ac_top_builddir=
15340fi
15341
15342case $srcdir in
15343 .) # No --srcdir option. We are building in place.
15344 ac_srcdir=.
15345 if test -z "$ac_top_builddir"; then
15346 ac_top_srcdir=.
15347 else
15348 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15349 fi ;;
15350 [\\/]* | ?:[\\/]* ) # Absolute path.
15351 ac_srcdir=$srcdir$ac_dir_suffix;
15352 ac_top_srcdir=$srcdir ;;
15353 *) # Relative path.
15354 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15355 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15356esac
15357
15358# Do not use `cd foo && pwd` to compute absolute paths, because
15359# the directories may not exist.
15360case `pwd` in
15361.) ac_abs_builddir="$ac_dir";;
15362*)
15363 case "$ac_dir" in
15364 .) ac_abs_builddir=`pwd`;;
15365 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15366 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15367 esac;;
15368esac
15369case $ac_abs_builddir in
15370.) ac_abs_top_builddir=${ac_top_builddir}.;;
15371*)
15372 case ${ac_top_builddir}. in
15373 .) ac_abs_top_builddir=$ac_abs_builddir;;
15374 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15375 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15376 esac;;
15377esac
15378case $ac_abs_builddir in
15379.) ac_abs_srcdir=$ac_srcdir;;
15380*)
15381 case $ac_srcdir in
15382 .) ac_abs_srcdir=$ac_abs_builddir;;
15383 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15384 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15385 esac;;
15386esac
15387case $ac_abs_builddir in
15388.) ac_abs_top_srcdir=$ac_top_srcdir;;
15389*)
15390 case $ac_top_srcdir in
15391 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15392 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15393 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15394 esac;;
15395esac
15396
15397
15398 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15399echo "$as_me: executing $ac_dest commands" >&6;}
15400 case $ac_dest in
15401 default-1 )
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015402 for ac_file in $CONFIG_FILES; do
15403 # Support "outfile[:infile[:infile...]]"
15404 case "$ac_file" in
15405 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015406 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015407 # PO directories have a Makefile.in generated from Makefile.in.in.
15408 case "$ac_file" in */Makefile.in)
15409 # Adjust a relative srcdir.
15410 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15411 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15412 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15413 # In autoconf-2.13 it is called $ac_given_srcdir.
15414 # In autoconf-2.50 it is called $srcdir.
15415 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15416 case "$ac_given_srcdir" in
15417 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15418 /*) top_srcdir="$ac_given_srcdir" ;;
15419 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15420 esac
15421 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15422 rm -f "$ac_dir/POTFILES"
15423 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15424 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 -050015425 POMAKEFILEDEPS="POTFILES.in"
15426 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015427 # on $ac_dir but don't depend on user-specified configuration
15428 # parameters.
15429 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15430 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015431 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015432 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15433 fi
15434 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15435 # Hide the ALL_LINGUAS assigment from automake.
15436 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015437 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15438 else
15439 # The set of available languages was given in configure.in.
15440 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015441 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015442 # Compute POFILES
15443 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15444 # Compute UPDATEPOFILES
15445 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15446 # Compute DUMMYPOFILES
15447 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15448 # Compute GMOFILES
15449 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015450 case "$ac_given_srcdir" in
15451 .) srcdirpre= ;;
15452 *) srcdirpre='$(srcdir)/' ;;
15453 esac
15454 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015455 UPDATEPOFILES=
15456 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015457 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015458 for lang in $ALL_LINGUAS; do
15459 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015460 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15461 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015462 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015463 done
15464 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15465 # environment variable.
15466 INST_LINGUAS=
15467 if test -n "$ALL_LINGUAS"; then
15468 for presentlang in $ALL_LINGUAS; do
15469 useit=no
15470 if test "%UNSET%" != "$LINGUAS"; then
15471 desiredlanguages="$LINGUAS"
15472 else
15473 desiredlanguages="$ALL_LINGUAS"
15474 fi
15475 for desiredlang in $desiredlanguages; do
15476 # Use the presentlang catalog if desiredlang is
15477 # a. equal to presentlang, or
15478 # b. a variant of presentlang (because in this case,
15479 # presentlang can be used as a fallback for messages
15480 # which are not translated in the desiredlang catalog).
15481 case "$desiredlang" in
15482 "$presentlang"*) useit=yes;;
15483 esac
15484 done
15485 if test $useit = yes; then
15486 INST_LINGUAS="$INST_LINGUAS $presentlang"
15487 fi
15488 done
15489 fi
15490 CATALOGS=
15491 if test -n "$INST_LINGUAS"; then
15492 for lang in $INST_LINGUAS; do
15493 CATALOGS="$CATALOGS $lang.gmo"
15494 done
15495 fi
15496 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015497 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 -040015498 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15499 if test -f "$f"; then
15500 case "$f" in
15501 *.orig | *.bak | *~) ;;
15502 *) cat "$f" >> "$ac_dir/Makefile" ;;
15503 esac
15504 fi
15505 done
15506 fi
15507 ;;
15508 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015509 done ;;
15510 esac
15511done
15512_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015514cat >>$CONFIG_STATUS <<\_ACEOF
15515
15516{ (exit 0); exit 0; }
15517_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015518chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015519ac_clean_files=$ac_clean_files_save
15520
15521
15522# configure is writing to config.log, and then calls config.status.
15523# config.status does its own redirection, appending to config.log.
15524# Unfortunately, on DOS this fails, as config.log is still kept open
15525# by configure, so config.status won't be able to write to it; its
15526# output is simply discarded. So we exec the FD to /dev/null,
15527# effectively closing config.log, so it can be properly (re)opened and
15528# appended to by config.status. When coming back to configure, we
15529# need to make the FD available again.
15530if test "$no_create" != yes; then
15531 ac_cs_success=:
15532 ac_config_status_args=
15533 test "$silent" = yes &&
15534 ac_config_status_args="$ac_config_status_args --quiet"
15535 exec 5>/dev/null
15536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15537 exec 5>>config.log
15538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15539 # would make configure fail if this is the last instruction.
15540 $ac_cs_success || { (exit 1); exit 1; }
15541fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015542